]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
f0983263 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
83448d71 RD |
140 | #include <limits.h> |
141 | #include <float.h> | |
142 | ||
143 | #ifdef __cplusplus | |
144 | #define SWIG_STATIC_INLINE static inline | |
145 | #else | |
146 | #define SWIG_STATIC_INLINE static | |
147 | #endif | |
148 | ||
149 | SWIG_STATIC_INLINE long | |
150 | SPyObj_AsLong(PyObject * obj) | |
151 | { | |
152 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
153 | } | |
154 | ||
155 | SWIG_STATIC_INLINE unsigned long | |
156 | SPyObj_AsUnsignedLong(PyObject * obj) | |
157 | { | |
158 | if (PyLong_Check(obj)) { | |
159 | return PyLong_AsUnsignedLong(obj); | |
160 | } else { | |
161 | long i = PyInt_AsLong(obj); | |
162 | if ( !PyErr_Occurred() && (i < 0)) { | |
163 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
164 | } | |
165 | return i; | |
166 | } | |
167 | } | |
168 | ||
169 | #if !defined(_MSC_VER) | |
170 | SWIG_STATIC_INLINE PyObject* | |
171 | SPyObj_FromLongLong(long long value) | |
172 | { | |
173 | return (value > (long)(LONG_MAX)) ? | |
174 | PyLong_FromLongLong(value) : PyInt_FromLong((long)value); | |
175 | } | |
176 | #endif | |
177 | ||
178 | SWIG_STATIC_INLINE PyObject* | |
179 | SPyObj_FromUnsignedLong(unsigned long value) | |
180 | { | |
181 | return (value > (unsigned long)(LONG_MAX)) ? | |
182 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
183 | } | |
184 | ||
185 | #if !defined(_MSC_VER) | |
186 | SWIG_STATIC_INLINE PyObject* | |
187 | SPyObj_FromUnsignedLongLong(unsigned long long value) | |
188 | { | |
189 | return (value > (unsigned long long)(LONG_MAX)) ? | |
190 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value); | |
191 | } | |
192 | #endif | |
193 | ||
194 | SWIG_STATIC_INLINE long | |
195 | SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value) | |
196 | { | |
197 | long value = SPyObj_AsLong(obj); | |
198 | if (!PyErr_Occurred()) { | |
199 | if (value < min_value) { | |
200 | PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum"); | |
201 | } else if (value > max_value) { | |
202 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
203 | } | |
204 | } | |
205 | return value; | |
206 | } | |
207 | ||
208 | SWIG_STATIC_INLINE unsigned long | |
209 | SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value) | |
210 | { | |
211 | unsigned long value = SPyObj_AsUnsignedLong(obj); | |
212 | if (!PyErr_Occurred()) { | |
213 | if (value > max_value) { | |
214 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
215 | } | |
216 | } | |
217 | return value; | |
218 | } | |
219 | ||
220 | SWIG_STATIC_INLINE signed char | |
221 | SPyObj_AsSignedChar(PyObject *obj) { | |
222 | return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX); | |
223 | } | |
224 | ||
225 | SWIG_STATIC_INLINE short | |
226 | SPyObj_AsShort(PyObject *obj) { | |
227 | return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX); | |
228 | } | |
229 | ||
230 | SWIG_STATIC_INLINE int | |
231 | SPyObj_AsInt(PyObject *obj) { | |
232 | return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX); | |
233 | } | |
234 | ||
235 | SWIG_STATIC_INLINE unsigned char | |
236 | SPyObj_AsUnsignedChar(PyObject *obj) { | |
237 | return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX); | |
238 | } | |
239 | ||
240 | SWIG_STATIC_INLINE unsigned short | |
241 | SPyObj_AsUnsignedShort(PyObject *obj) { | |
242 | return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX); | |
243 | } | |
244 | ||
245 | SWIG_STATIC_INLINE unsigned int | |
246 | SPyObj_AsUnsignedInt(PyObject *obj) { | |
247 | return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX); | |
248 | } | |
249 | ||
250 | #if !defined(_MSC_VER) | |
251 | SWIG_STATIC_INLINE long long | |
252 | SPyObj_AsLongLong(PyObject *obj) { | |
253 | return PyInt_Check(obj) ? | |
254 | PyInt_AsLong(obj) : PyLong_AsLongLong(obj); | |
255 | } | |
256 | ||
257 | SWIG_STATIC_INLINE unsigned long long | |
258 | SPyObj_AsUnsignedLongLong(PyObject *obj) { | |
259 | return PyLong_Check(obj) ? | |
260 | PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj); | |
261 | } | |
262 | #endif | |
263 | ||
264 | SWIG_STATIC_INLINE double | |
265 | SPyObj_AsDouble(PyObject *obj) { | |
266 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
267 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
268 | } | |
269 | ||
270 | SWIG_STATIC_INLINE float | |
271 | SPyObj_AsFloat(PyObject *obj) { | |
272 | double value = SPyObj_AsDouble(obj); | |
273 | if (!PyErr_Occurred()) { | |
274 | if (value < FLT_MIN) { | |
275 | PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min"); | |
276 | } else if (value > FLT_MAX) { | |
277 | PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max"); | |
278 | } | |
279 | } | |
280 | return (float) value; | |
281 | } | |
282 | ||
283 | SWIG_STATIC_INLINE char | |
284 | SPyObj_AsChar(PyObject *obj) { | |
285 | char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ? | |
286 | PyString_AsString(obj)[0] | |
287 | : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX); | |
288 | if (PyErr_Occurred()) { | |
289 | PyErr_Clear(); | |
290 | PyErr_SetString(PyExc_TypeError, "a char is required"); | |
291 | } | |
292 | return c; | |
293 | } | |
294 | ||
295 | SWIG_STATIC_INLINE PyObject * | |
296 | SPyObj_FromChar(char c) { | |
297 | return PyString_FromStringAndSize(&c,1); | |
298 | } | |
299 | ||
300 | SWIG_STATIC_INLINE PyObject * | |
301 | SPyObj_FromCharPtr(const char* cptr) { | |
302 | return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)""); | |
303 | } | |
304 | ||
305 | SWIG_STATIC_INLINE int | |
306 | SPyObj_AsBool(PyObject *obj) { | |
307 | return SPyObj_AsLong/*Long*/(obj) ? 1 : 0; | |
308 | } | |
309 | ||
310 | ||
311 | ||
d14a1e28 RD |
312 | #ifdef __cplusplus |
313 | extern "C" { | |
314 | #endif | |
315 | ||
316 | #define SWIG_PY_INT 1 | |
317 | #define SWIG_PY_FLOAT 2 | |
318 | #define SWIG_PY_STRING 3 | |
319 | #define SWIG_PY_POINTER 4 | |
320 | #define SWIG_PY_BINARY 5 | |
321 | ||
322 | /* Flags for pointer conversion */ | |
323 | ||
324 | #define SWIG_POINTER_EXCEPTION 0x1 | |
325 | #define SWIG_POINTER_DISOWN 0x2 | |
326 | ||
327 | /* Exception handling in wrappers */ | |
328 | #define SWIG_fail goto fail | |
329 | ||
330 | /* Constant information structure */ | |
331 | typedef struct swig_const_info { | |
332 | int type; | |
333 | char *name; | |
334 | long lvalue; | |
335 | double dvalue; | |
336 | void *pvalue; | |
337 | swig_type_info **ptype; | |
338 | } swig_const_info; | |
339 | ||
d14a1e28 RD |
340 | /* Common SWIG API */ |
341 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
342 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
343 | #define SWIG_NewPointerObj(p, type, flags) \ | |
344 | SWIG_Python_NewPointerObj(p, type, flags) | |
345 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
346 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
83448d71 | 347 | |
d14a1e28 RD |
348 | /* Python-specific SWIG API */ |
349 | #define SWIG_newvarlink() \ | |
350 | SWIG_Python_newvarlink() | |
351 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
352 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
353 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
354 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
355 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
356 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
357 | #define SWIG_InstallConstants(d, constants) \ | |
358 | SWIG_Python_InstallConstants(d, constants) | |
359 | ||
360 | ||
f0983263 RD |
361 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
362 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
363 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
364 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
365 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
366 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
367 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
368 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 369 | |
d14a1e28 RD |
370 | |
371 | ||
372 | /* Contract support */ | |
373 | ||
423f194a | 374 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 375 | |
d14a1e28 RD |
376 | #ifdef __cplusplus |
377 | } | |
378 | #endif | |
379 | ||
380 | ||
381 | ||
382 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
383 | ||
384 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
385 | #define SWIGTYPE_p_wxBrush swig_types[1] |
386 | #define SWIGTYPE_p_wxColour swig_types[2] | |
387 | #define SWIGTYPE_p_wxDC swig_types[3] | |
388 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
389 | #define SWIGTYPE_p_byte swig_types[5] | |
390 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
391 | #define SWIGTYPE_p_wxIconLocation swig_types[7] | |
392 | #define SWIGTYPE_p_wxImage swig_types[8] | |
393 | #define SWIGTYPE_p_wxMetaFileDC swig_types[9] | |
394 | #define SWIGTYPE_p_wxMask swig_types[10] | |
395 | #define SWIGTYPE_p_wxFont swig_types[11] | |
396 | #define SWIGTYPE_p_wxWindow swig_types[12] | |
397 | #define SWIGTYPE_p_wxSize swig_types[13] | |
398 | #define SWIGTYPE_p_double swig_types[14] | |
399 | #define SWIGTYPE_p_wxMemoryDC swig_types[15] | |
400 | #define SWIGTYPE_p_wxFontMapper swig_types[16] | |
401 | #define SWIGTYPE_p_wxEffects swig_types[17] | |
402 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18] | |
403 | #define SWIGTYPE_p_wxPalette swig_types[19] | |
404 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
405 | #define SWIGTYPE_p_wxObject swig_types[21] | |
406 | #define SWIGTYPE_p_wxRegionIterator swig_types[22] | |
407 | #define SWIGTYPE_p_wxRect swig_types[23] | |
408 | #define SWIGTYPE_p_wxString swig_types[24] | |
409 | #define SWIGTYPE_p_wxPrinterDC swig_types[25] | |
410 | #define SWIGTYPE_p_wxIconBundle swig_types[26] | |
411 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
412 | #define SWIGTYPE_p_wxDash swig_types[28] | |
413 | #define SWIGTYPE_p_wxScreenDC swig_types[29] | |
414 | #define SWIGTYPE_p_wxCursor swig_types[30] | |
415 | #define SWIGTYPE_p_wxClientDC swig_types[31] | |
416 | #define SWIGTYPE_p_wxBufferedDC swig_types[32] | |
417 | #define SWIGTYPE_p_wxImageList swig_types[33] | |
418 | #define SWIGTYPE_p_unsigned_char swig_types[34] | |
419 | #define SWIGTYPE_p_wxGDIObject swig_types[35] | |
420 | #define SWIGTYPE_p_wxLocale swig_types[36] | |
421 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
422 | #define SWIGTYPE_p_wxRegion swig_types[38] | |
423 | #define SWIGTYPE_p_wxLanguageInfo swig_types[39] | |
424 | #define SWIGTYPE_p_wxConfigBase swig_types[40] | |
425 | #define SWIGTYPE_p_wxWindowDC swig_types[41] | |
426 | #define SWIGTYPE_p_wxPrintData swig_types[42] | |
427 | #define SWIGTYPE_p_wxBrushList swig_types[43] | |
428 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
429 | #define SWIGTYPE_p_wxPen swig_types[45] | |
430 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46] | |
431 | #define SWIGTYPE_p_wxPaintDC swig_types[47] | |
432 | #define SWIGTYPE_p_wxPenList swig_types[48] | |
433 | #define SWIGTYPE_p_wxPyPen swig_types[49] | |
434 | #define SWIGTYPE_p_int swig_types[50] | |
435 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
436 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
437 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
438 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
439 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
440 | |
441 | /* -------- TYPES TABLE (END) -------- */ | |
442 | ||
443 | ||
444 | /*----------------------------------------------- | |
445 | @(target):= _gdi.so | |
446 | ------------------------------------------------*/ | |
447 | #define SWIG_init init_gdi | |
448 | ||
449 | #define SWIG_name "_gdi" | |
450 | ||
451 | #include "wx/wxPython/wxPython.h" | |
452 | #include "wx/wxPython/pyclasses.h" | |
453 | ||
d14a1e28 | 454 | |
d03fd34d | 455 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
456 | PyObject *wxColour_Get(wxColour *self){ |
457 | PyObject* rv = PyTuple_New(3); | |
458 | int red = -1; | |
459 | int green = -1; | |
460 | int blue = -1; | |
461 | if (self->Ok()) { | |
462 | red = self->Red(); | |
463 | green = self->Green(); | |
464 | blue = self->Blue(); | |
465 | } | |
466 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
467 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
468 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
469 | return rv; | |
470 | } | |
471 | ||
472 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
473 | PyObject* o2; | |
474 | PyObject* o3; | |
475 | ||
476 | if (!target) { | |
477 | target = o; | |
478 | } else if (target == Py_None) { | |
479 | Py_DECREF(Py_None); | |
480 | target = o; | |
481 | } else { | |
482 | if (!PyTuple_Check(target)) { | |
483 | o2 = target; | |
484 | target = PyTuple_New(1); | |
485 | PyTuple_SetItem(target, 0, o2); | |
486 | } | |
487 | o3 = PyTuple_New(1); | |
488 | PyTuple_SetItem(o3, 0, o); | |
489 | ||
490 | o2 = target; | |
491 | target = PySequence_Concat(o2, o3); | |
492 | Py_DECREF(o2); | |
493 | Py_DECREF(o3); | |
494 | } | |
495 | return target; | |
496 | } | |
497 | ||
498 | PyObject *wxPen_GetDashes(wxPen *self){ | |
499 | wxDash* dashes; | |
500 | int count = self->GetDashes(&dashes); | |
501 | wxPyBeginBlockThreads(); | |
502 | PyObject* retval = PyList_New(0); | |
503 | for (int x=0; x<count; x++) | |
504 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
505 | wxPyEndBlockThreads(); | |
506 | return retval; | |
507 | } | |
508 | ||
509 | wxPyPen::~wxPyPen() | |
510 | { | |
511 | if (m_dash) | |
512 | delete [] m_dash; | |
513 | } | |
514 | ||
515 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
516 | { | |
517 | if (m_dash) | |
518 | delete [] m_dash; | |
519 | m_dash = new wxDash[nb_dashes]; | |
520 | for (int i=0; i<nb_dashes; i++) { | |
521 | m_dash[i] = dash[i]; | |
522 | } | |
523 | wxPen::SetDashes(nb_dashes, m_dash); | |
524 | } | |
525 | ||
526 | ||
527 | #include <wx/image.h> | |
528 | ||
529 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
530 | char** cArray = NULL; | |
531 | int count; | |
532 | ||
533 | if (!PyList_Check(listOfStrings)) { | |
534 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
535 | return NULL; | |
536 | } | |
537 | count = PyList_Size(listOfStrings); | |
538 | cArray = new char*[count]; | |
539 | ||
540 | for(int x=0; x<count; x++) { | |
541 | // TODO: Need some validation and error checking here | |
542 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
543 | } | |
544 | return cArray; | |
545 | } | |
546 | ||
547 | ||
548 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
549 | char** cArray = NULL; | |
550 | wxBitmap* bmp; | |
551 | ||
552 | cArray = ConvertListOfStrings(listOfStrings); | |
553 | if (! cArray) | |
554 | return NULL; | |
555 | bmp = new wxBitmap(cArray); | |
556 | delete [] cArray; | |
557 | return bmp; | |
558 | } | |
559 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
560 | char* buf; | |
561 | int length; | |
562 | PyString_AsStringAndSize(bits, &buf, &length); | |
563 | return new wxBitmap(buf, width, height, depth); | |
564 | } | |
565 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
566 | wxMask *mask = new wxMask(*self, colour); | |
567 | self->SetMask(mask); | |
568 | } | |
569 | ||
570 | #include <wx/iconbndl.h> | |
571 | ||
572 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
573 | wxIcon* icon = new wxIcon(); | |
574 | icon->CopyFromBitmap(bmp); | |
575 | return icon; | |
576 | } | |
577 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
578 | char** cArray = NULL; | |
579 | wxIcon* icon; | |
580 | ||
581 | cArray = ConvertListOfStrings(listOfStrings); | |
582 | if (! cArray) | |
583 | return NULL; | |
584 | icon = new wxIcon(cArray); | |
585 | delete [] cArray; | |
586 | return icon; | |
587 | } | |
588 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
589 | ||
590 | return new wxIconLocation(*filename, num); | |
591 | ||
592 | ||
593 | ||
594 | } | |
595 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
596 | ||
597 | self->SetIndex(num); | |
598 | ||
599 | ||
600 | ||
601 | } | |
602 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
603 | ||
604 | return self->GetIndex(); | |
605 | ||
606 | ||
607 | ||
608 | } | |
609 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
610 | ||
611 | ||
612 | ||
613 | ||
614 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
615 | ||
616 | } | |
617 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
618 | char* bitsbuf; | |
619 | char* maskbuf = NULL; | |
620 | int length; | |
621 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
622 | if (maskBits) | |
623 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
624 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
625 | } | |
626 | ||
627 | ||
628 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
629 | (*self) ++; | |
630 | } | |
631 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
632 | return self->operator bool(); | |
633 | } | |
634 | ||
635 | #include <wx/fontutil.h> | |
636 | #include <wx/fontmap.h> | |
637 | #include <wx/fontenum.h> | |
638 | ||
639 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
640 | return self->ToString(); | |
641 | } | |
642 | ||
643 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
cbd72d4f | 644 | { wxPyRaiseNotImplemented(); return NULL; } |
d14a1e28 RD |
645 | |
646 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
cbd72d4f | 647 | { wxPyRaiseNotImplemented(); return False; } |
d14a1e28 RD |
648 | |
649 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
650 | wxFontEncoding alt_enc; | |
651 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
652 | return PyInt_FromLong(alt_enc); | |
653 | else { | |
654 | Py_INCREF(Py_None); | |
655 | return Py_None; | |
656 | } | |
657 | } | |
658 | wxFont *new_wxFont(wxString const &info){ | |
659 | wxNativeFontInfo nfi; | |
660 | nfi.FromString(info); | |
661 | return new wxFont(nfi); | |
662 | } | |
663 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
664 | return wxFont::New(pointSize, family, flags, face, encoding); | |
665 | } | |
666 | ||
667 | class wxPyFontEnumerator : public wxFontEnumerator { | |
668 | public: | |
669 | wxPyFontEnumerator() {} | |
670 | ~wxPyFontEnumerator() {} | |
671 | ||
672 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
673 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
674 | ||
675 | PYPRIVATE; | |
676 | }; | |
677 | ||
678 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
679 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
680 | ||
681 | ||
682 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
683 | wxArrayString* arr = self->GetEncodings(); | |
684 | return wxArrayString2PyList_helper(*arr); | |
685 | } | |
686 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
687 | wxArrayString* arr = self->GetFacenames(); | |
688 | return wxArrayString2PyList_helper(*arr); | |
689 | } | |
690 | ||
691 | ||
692 | ||
693 | #include "wx/wxPython/pydrawxxx.h" | |
694 | ||
423f194a | 695 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
696 | wxColour col; |
697 | self->GetPixel(x, y, &col); | |
698 | return col; | |
699 | } | |
700 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
701 | wxColour col; | |
702 | self->GetPixel(pt, &col); | |
703 | return col; | |
704 | } | |
705 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
706 | wxRect rv; | |
707 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
708 | return rv; | |
709 | } | |
710 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
711 | wxRect rect; | |
712 | self->GetClippingBox(rect); | |
713 | return rect; | |
714 | } | |
715 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
716 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
717 | } | |
718 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
719 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
720 | } | |
721 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
722 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
723 | } | |
724 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
725 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
726 | } | |
727 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
728 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
729 | } | |
730 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
731 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
732 | } | |
733 | ||
734 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
735 | *x1 = dc->MinX(); | |
736 | *y1 = dc->MinY(); | |
737 | *x2 = dc->MaxX(); | |
738 | *y2 = dc->MaxY(); | |
739 | } | |
740 | ||
741 | ||
742 | #include <wx/dcps.h> | |
743 | ||
744 | ||
745 | #include <wx/metafile.h> | |
746 | ||
747 | ||
748 | ||
749 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
750 | self->AddColour(name, wxColour(red, green, blue)); | |
751 | } | |
752 | ||
d14a1e28 RD |
753 | #include <wx/effects.h> |
754 | ||
755 | #ifdef __cplusplus | |
756 | extern "C" { | |
757 | #endif | |
758 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
759 | PyObject *resultobj; | |
760 | wxGDIObject *result; | |
761 | char *kwnames[] = { | |
762 | NULL | |
763 | }; | |
764 | ||
765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
766 | { | |
767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
768 | result = (wxGDIObject *)new wxGDIObject(); | |
769 | ||
770 | wxPyEndAllowThreads(__tstate); | |
771 | if (PyErr_Occurred()) SWIG_fail; | |
772 | } | |
773 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
774 | return resultobj; | |
775 | fail: | |
776 | return NULL; | |
777 | } | |
778 | ||
779 | ||
780 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
781 | PyObject *resultobj; | |
782 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
783 | PyObject * obj0 = 0 ; | |
784 | char *kwnames[] = { | |
785 | (char *) "self", NULL | |
786 | }; | |
787 | ||
788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
790 | { | |
791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
792 | delete arg1; | |
793 | ||
794 | wxPyEndAllowThreads(__tstate); | |
795 | if (PyErr_Occurred()) SWIG_fail; | |
796 | } | |
797 | Py_INCREF(Py_None); resultobj = Py_None; | |
798 | return resultobj; | |
799 | fail: | |
800 | return NULL; | |
801 | } | |
802 | ||
803 | ||
804 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
805 | PyObject *resultobj; | |
806 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
807 | bool result; | |
808 | PyObject * obj0 = 0 ; | |
809 | char *kwnames[] = { | |
810 | (char *) "self", NULL | |
811 | }; | |
812 | ||
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
815 | { | |
816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
817 | result = (bool)(arg1)->GetVisible(); | |
818 | ||
819 | wxPyEndAllowThreads(__tstate); | |
820 | if (PyErr_Occurred()) SWIG_fail; | |
821 | } | |
822 | resultobj = PyInt_FromLong((long)result); | |
823 | return resultobj; | |
824 | fail: | |
825 | return NULL; | |
826 | } | |
827 | ||
828 | ||
829 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
830 | PyObject *resultobj; | |
831 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
832 | bool arg2 ; | |
833 | PyObject * obj0 = 0 ; | |
834 | PyObject * obj1 = 0 ; | |
835 | char *kwnames[] = { | |
836 | (char *) "self",(char *) "visible", NULL | |
837 | }; | |
838 | ||
839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
841 | { |
842 | arg2 = (bool) SPyObj_AsBool(obj1); | |
843 | if (PyErr_Occurred()) SWIG_fail; | |
844 | } | |
d14a1e28 RD |
845 | { |
846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
847 | (arg1)->SetVisible(arg2); | |
848 | ||
849 | wxPyEndAllowThreads(__tstate); | |
850 | if (PyErr_Occurred()) SWIG_fail; | |
851 | } | |
852 | Py_INCREF(Py_None); resultobj = Py_None; | |
853 | return resultobj; | |
854 | fail: | |
855 | return NULL; | |
856 | } | |
857 | ||
858 | ||
859 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
860 | PyObject *resultobj; | |
861 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
862 | bool result; | |
863 | PyObject * obj0 = 0 ; | |
864 | char *kwnames[] = { | |
865 | (char *) "self", NULL | |
866 | }; | |
867 | ||
868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
870 | { | |
871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
872 | result = (bool)(arg1)->IsNull(); | |
873 | ||
874 | wxPyEndAllowThreads(__tstate); | |
875 | if (PyErr_Occurred()) SWIG_fail; | |
876 | } | |
877 | resultobj = PyInt_FromLong((long)result); | |
878 | return resultobj; | |
879 | fail: | |
880 | return NULL; | |
881 | } | |
882 | ||
883 | ||
884 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
885 | PyObject *obj; | |
886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
887 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
888 | Py_INCREF(obj); | |
889 | return Py_BuildValue((char *)""); | |
890 | } | |
891 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
892 | PyObject *resultobj; | |
893 | unsigned char arg1 = (unsigned char) 0 ; | |
894 | unsigned char arg2 = (unsigned char) 0 ; | |
895 | unsigned char arg3 = (unsigned char) 0 ; | |
896 | wxColour *result; | |
897 | PyObject * obj0 = 0 ; | |
898 | PyObject * obj1 = 0 ; | |
899 | PyObject * obj2 = 0 ; | |
900 | char *kwnames[] = { | |
901 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
902 | }; | |
903 | ||
904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
905 | if (obj0) { | |
83448d71 RD |
906 | { |
907 | arg1 = (unsigned char) SPyObj_AsUnsignedChar(obj0); | |
908 | if (PyErr_Occurred()) SWIG_fail; | |
909 | } | |
d14a1e28 RD |
910 | } |
911 | if (obj1) { | |
83448d71 RD |
912 | { |
913 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
914 | if (PyErr_Occurred()) SWIG_fail; | |
915 | } | |
d14a1e28 RD |
916 | } |
917 | if (obj2) { | |
83448d71 RD |
918 | { |
919 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
920 | if (PyErr_Occurred()) SWIG_fail; | |
921 | } | |
d14a1e28 RD |
922 | } |
923 | { | |
924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
925 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
926 | ||
927 | wxPyEndAllowThreads(__tstate); | |
928 | if (PyErr_Occurred()) SWIG_fail; | |
929 | } | |
930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
931 | return resultobj; | |
932 | fail: | |
933 | return NULL; | |
934 | } | |
935 | ||
936 | ||
937 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
938 | PyObject *resultobj; | |
939 | wxColour *arg1 = (wxColour *) 0 ; | |
940 | PyObject * obj0 = 0 ; | |
941 | char *kwnames[] = { | |
942 | (char *) "self", NULL | |
943 | }; | |
944 | ||
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
947 | { | |
948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
949 | delete arg1; | |
950 | ||
951 | wxPyEndAllowThreads(__tstate); | |
952 | if (PyErr_Occurred()) SWIG_fail; | |
953 | } | |
954 | Py_INCREF(Py_None); resultobj = Py_None; | |
955 | return resultobj; | |
956 | fail: | |
957 | return NULL; | |
958 | } | |
959 | ||
960 | ||
961 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject *resultobj; | |
963 | wxString *arg1 = 0 ; | |
964 | wxColour *result; | |
423f194a | 965 | bool temp1 = False ; |
d14a1e28 RD |
966 | PyObject * obj0 = 0 ; |
967 | char *kwnames[] = { | |
968 | (char *) "colorName", NULL | |
969 | }; | |
970 | ||
971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
972 | { | |
973 | arg1 = wxString_in_helper(obj0); | |
974 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 975 | temp1 = True; |
d14a1e28 RD |
976 | } |
977 | { | |
978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
979 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
980 | ||
981 | wxPyEndAllowThreads(__tstate); | |
982 | if (PyErr_Occurred()) SWIG_fail; | |
983 | } | |
984 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
985 | { | |
986 | if (temp1) | |
987 | delete arg1; | |
988 | } | |
989 | return resultobj; | |
990 | fail: | |
991 | { | |
992 | if (temp1) | |
993 | delete arg1; | |
994 | } | |
995 | return NULL; | |
996 | } | |
997 | ||
998 | ||
999 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1000 | PyObject *resultobj; | |
1001 | unsigned long arg1 ; | |
1002 | wxColour *result; | |
1003 | PyObject * obj0 = 0 ; | |
1004 | char *kwnames[] = { | |
1005 | (char *) "colRGB", NULL | |
1006 | }; | |
1007 | ||
1008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
83448d71 RD |
1009 | { |
1010 | arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0); | |
1011 | if (PyErr_Occurred()) SWIG_fail; | |
1012 | } | |
d14a1e28 RD |
1013 | { |
1014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1015 | result = (wxColour *)new wxColour(arg1); | |
1016 | ||
1017 | wxPyEndAllowThreads(__tstate); | |
1018 | if (PyErr_Occurred()) SWIG_fail; | |
1019 | } | |
1020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1021 | return resultobj; | |
1022 | fail: | |
1023 | return NULL; | |
1024 | } | |
1025 | ||
1026 | ||
1027 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject *resultobj; | |
1029 | wxColour *arg1 = (wxColour *) 0 ; | |
1030 | unsigned char result; | |
1031 | PyObject * obj0 = 0 ; | |
1032 | char *kwnames[] = { | |
1033 | (char *) "self", NULL | |
1034 | }; | |
1035 | ||
1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1038 | { | |
1039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1040 | result = (unsigned char)(arg1)->Red(); | |
1041 | ||
1042 | wxPyEndAllowThreads(__tstate); | |
1043 | if (PyErr_Occurred()) SWIG_fail; | |
1044 | } | |
1045 | resultobj = PyInt_FromLong((long)result); | |
1046 | return resultobj; | |
1047 | fail: | |
1048 | return NULL; | |
1049 | } | |
1050 | ||
1051 | ||
1052 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1053 | PyObject *resultobj; | |
1054 | wxColour *arg1 = (wxColour *) 0 ; | |
1055 | unsigned char result; | |
1056 | PyObject * obj0 = 0 ; | |
1057 | char *kwnames[] = { | |
1058 | (char *) "self", NULL | |
1059 | }; | |
1060 | ||
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1063 | { | |
1064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1065 | result = (unsigned char)(arg1)->Green(); | |
1066 | ||
1067 | wxPyEndAllowThreads(__tstate); | |
1068 | if (PyErr_Occurred()) SWIG_fail; | |
1069 | } | |
1070 | resultobj = PyInt_FromLong((long)result); | |
1071 | return resultobj; | |
1072 | fail: | |
1073 | return NULL; | |
1074 | } | |
1075 | ||
1076 | ||
1077 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1078 | PyObject *resultobj; | |
1079 | wxColour *arg1 = (wxColour *) 0 ; | |
1080 | unsigned char result; | |
1081 | PyObject * obj0 = 0 ; | |
1082 | char *kwnames[] = { | |
1083 | (char *) "self", NULL | |
1084 | }; | |
1085 | ||
1086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1088 | { | |
1089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1090 | result = (unsigned char)(arg1)->Blue(); | |
1091 | ||
1092 | wxPyEndAllowThreads(__tstate); | |
1093 | if (PyErr_Occurred()) SWIG_fail; | |
1094 | } | |
1095 | resultobj = PyInt_FromLong((long)result); | |
1096 | return resultobj; | |
1097 | fail: | |
1098 | return NULL; | |
1099 | } | |
1100 | ||
1101 | ||
1102 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1103 | PyObject *resultobj; | |
1104 | wxColour *arg1 = (wxColour *) 0 ; | |
1105 | bool result; | |
1106 | PyObject * obj0 = 0 ; | |
1107 | char *kwnames[] = { | |
1108 | (char *) "self", NULL | |
1109 | }; | |
1110 | ||
1111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1113 | { | |
1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1115 | result = (bool)(arg1)->Ok(); | |
1116 | ||
1117 | wxPyEndAllowThreads(__tstate); | |
1118 | if (PyErr_Occurred()) SWIG_fail; | |
1119 | } | |
1120 | resultobj = PyInt_FromLong((long)result); | |
1121 | return resultobj; | |
1122 | fail: | |
1123 | return NULL; | |
1124 | } | |
1125 | ||
1126 | ||
1127 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1128 | PyObject *resultobj; | |
1129 | wxColour *arg1 = (wxColour *) 0 ; | |
1130 | unsigned char arg2 ; | |
1131 | unsigned char arg3 ; | |
1132 | unsigned char arg4 ; | |
1133 | PyObject * obj0 = 0 ; | |
1134 | PyObject * obj1 = 0 ; | |
1135 | PyObject * obj2 = 0 ; | |
1136 | PyObject * obj3 = 0 ; | |
1137 | char *kwnames[] = { | |
1138 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1139 | }; | |
1140 | ||
1141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
1143 | { |
1144 | arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1); | |
1145 | if (PyErr_Occurred()) SWIG_fail; | |
1146 | } | |
1147 | { | |
1148 | arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2); | |
1149 | if (PyErr_Occurred()) SWIG_fail; | |
1150 | } | |
1151 | { | |
1152 | arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3); | |
1153 | if (PyErr_Occurred()) SWIG_fail; | |
1154 | } | |
d14a1e28 RD |
1155 | { |
1156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1157 | (arg1)->Set(arg2,arg3,arg4); | |
1158 | ||
1159 | wxPyEndAllowThreads(__tstate); | |
1160 | if (PyErr_Occurred()) SWIG_fail; | |
1161 | } | |
1162 | Py_INCREF(Py_None); resultobj = Py_None; | |
1163 | return resultobj; | |
1164 | fail: | |
1165 | return NULL; | |
1166 | } | |
1167 | ||
1168 | ||
9fd4be55 | 1169 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1170 | PyObject *resultobj; |
1171 | wxColour *arg1 = (wxColour *) 0 ; | |
1172 | unsigned long arg2 ; | |
1173 | PyObject * obj0 = 0 ; | |
1174 | PyObject * obj1 = 0 ; | |
1175 | char *kwnames[] = { | |
1176 | (char *) "self",(char *) "colRGB", NULL | |
1177 | }; | |
1178 | ||
9fd4be55 | 1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 RD |
1181 | { |
1182 | arg2 = (unsigned long) SPyObj_AsUnsignedLong(obj1); | |
1183 | if (PyErr_Occurred()) SWIG_fail; | |
1184 | } | |
d14a1e28 RD |
1185 | { |
1186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1187 | (arg1)->Set(arg2); | |
1188 | ||
1189 | wxPyEndAllowThreads(__tstate); | |
1190 | if (PyErr_Occurred()) SWIG_fail; | |
1191 | } | |
1192 | Py_INCREF(Py_None); resultobj = Py_None; | |
1193 | return resultobj; | |
1194 | fail: | |
1195 | return NULL; | |
1196 | } | |
1197 | ||
1198 | ||
1199 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject *resultobj; | |
1201 | wxColour *arg1 = (wxColour *) 0 ; | |
1202 | wxColour *arg2 = 0 ; | |
1203 | bool result; | |
1204 | wxColour temp2 ; | |
1205 | PyObject * obj0 = 0 ; | |
1206 | PyObject * obj1 = 0 ; | |
1207 | char *kwnames[] = { | |
1208 | (char *) "self",(char *) "colour", NULL | |
1209 | }; | |
1210 | ||
1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1213 | { | |
1214 | arg2 = &temp2; | |
1215 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1216 | } | |
1217 | { | |
1218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1219 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1220 | ||
1221 | wxPyEndAllowThreads(__tstate); | |
1222 | if (PyErr_Occurred()) SWIG_fail; | |
1223 | } | |
1224 | resultobj = PyInt_FromLong((long)result); | |
1225 | return resultobj; | |
1226 | fail: | |
1227 | return NULL; | |
1228 | } | |
1229 | ||
1230 | ||
1231 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1232 | PyObject *resultobj; | |
1233 | wxColour *arg1 = (wxColour *) 0 ; | |
1234 | wxColour *arg2 = 0 ; | |
1235 | bool result; | |
1236 | wxColour temp2 ; | |
1237 | PyObject * obj0 = 0 ; | |
1238 | PyObject * obj1 = 0 ; | |
1239 | char *kwnames[] = { | |
1240 | (char *) "self",(char *) "colour", NULL | |
1241 | }; | |
1242 | ||
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1245 | { | |
1246 | arg2 = &temp2; | |
1247 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1248 | } | |
1249 | { | |
1250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1251 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1252 | ||
1253 | wxPyEndAllowThreads(__tstate); | |
1254 | if (PyErr_Occurred()) SWIG_fail; | |
1255 | } | |
1256 | resultobj = PyInt_FromLong((long)result); | |
1257 | return resultobj; | |
1258 | fail: | |
1259 | return NULL; | |
1260 | } | |
1261 | ||
1262 | ||
9fd4be55 RD |
1263 | static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1264 | PyObject *resultobj; | |
1265 | wxColour *arg1 = (wxColour *) 0 ; | |
1266 | wxString *arg2 = 0 ; | |
1267 | bool temp2 = False ; | |
1268 | PyObject * obj0 = 0 ; | |
1269 | PyObject * obj1 = 0 ; | |
1270 | char *kwnames[] = { | |
1271 | (char *) "self",(char *) "colourName", NULL | |
1272 | }; | |
1273 | ||
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail; | |
1275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1276 | { | |
1277 | arg2 = wxString_in_helper(obj1); | |
1278 | if (arg2 == NULL) SWIG_fail; | |
1279 | temp2 = True; | |
1280 | } | |
1281 | { | |
1282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1283 | (arg1)->InitFromName((wxString const &)*arg2); | |
1284 | ||
1285 | wxPyEndAllowThreads(__tstate); | |
1286 | if (PyErr_Occurred()) SWIG_fail; | |
1287 | } | |
1288 | Py_INCREF(Py_None); resultobj = Py_None; | |
1289 | { | |
1290 | if (temp2) | |
1291 | delete arg2; | |
1292 | } | |
1293 | return resultobj; | |
1294 | fail: | |
1295 | { | |
1296 | if (temp2) | |
1297 | delete arg2; | |
1298 | } | |
1299 | return NULL; | |
1300 | } | |
1301 | ||
1302 | ||
d14a1e28 RD |
1303 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
1304 | PyObject *resultobj; | |
1305 | wxColour *arg1 = (wxColour *) 0 ; | |
1306 | PyObject *result; | |
1307 | PyObject * obj0 = 0 ; | |
1308 | char *kwnames[] = { | |
1309 | (char *) "self", NULL | |
1310 | }; | |
1311 | ||
1312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1314 | { | |
1315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1316 | result = (PyObject *)wxColour_Get(arg1); | |
1317 | ||
1318 | wxPyEndAllowThreads(__tstate); | |
1319 | if (PyErr_Occurred()) SWIG_fail; | |
1320 | } | |
1321 | resultobj = result; | |
1322 | return resultobj; | |
1323 | fail: | |
1324 | return NULL; | |
1325 | } | |
1326 | ||
1327 | ||
1328 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1329 | PyObject *obj; | |
1330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1331 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1332 | Py_INCREF(obj); | |
1333 | return Py_BuildValue((char *)""); | |
1334 | } | |
1335 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1336 | PyObject *resultobj; | |
1337 | int arg1 ; | |
1338 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1339 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1340 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1341 | wxPalette *result; | |
1342 | PyObject * obj1 = 0 ; | |
1343 | PyObject * obj2 = 0 ; | |
1344 | PyObject * obj3 = 0 ; | |
1345 | char *kwnames[] = { | |
1346 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1347 | }; | |
1348 | ||
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1351 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1352 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1353 | { | |
1354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1355 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1356 | ||
1357 | wxPyEndAllowThreads(__tstate); | |
1358 | if (PyErr_Occurred()) SWIG_fail; | |
1359 | } | |
1360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1361 | return resultobj; | |
1362 | fail: | |
1363 | return NULL; | |
1364 | } | |
1365 | ||
1366 | ||
1367 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject *resultobj; | |
1369 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1370 | PyObject * obj0 = 0 ; | |
1371 | char *kwnames[] = { | |
1372 | (char *) "self", NULL | |
1373 | }; | |
1374 | ||
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1377 | { | |
1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1379 | delete arg1; | |
1380 | ||
1381 | wxPyEndAllowThreads(__tstate); | |
1382 | if (PyErr_Occurred()) SWIG_fail; | |
1383 | } | |
1384 | Py_INCREF(Py_None); resultobj = Py_None; | |
1385 | return resultobj; | |
1386 | fail: | |
1387 | return NULL; | |
1388 | } | |
1389 | ||
1390 | ||
1391 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject *resultobj; | |
1393 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1394 | byte arg2 ; | |
1395 | byte arg3 ; | |
1396 | byte arg4 ; | |
1397 | int result; | |
1398 | PyObject * obj0 = 0 ; | |
1399 | PyObject * obj1 = 0 ; | |
1400 | PyObject * obj2 = 0 ; | |
1401 | PyObject * obj3 = 0 ; | |
1402 | char *kwnames[] = { | |
1403 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1404 | }; | |
1405 | ||
1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
1408 | { |
1409 | arg2 = (byte) SPyObj_AsUnsignedChar(obj1); | |
1410 | if (PyErr_Occurred()) SWIG_fail; | |
1411 | } | |
1412 | { | |
1413 | arg3 = (byte) SPyObj_AsUnsignedChar(obj2); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
1416 | { | |
1417 | arg4 = (byte) SPyObj_AsUnsignedChar(obj3); | |
1418 | if (PyErr_Occurred()) SWIG_fail; | |
1419 | } | |
d14a1e28 RD |
1420 | { |
1421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1422 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1423 | ||
1424 | wxPyEndAllowThreads(__tstate); | |
1425 | if (PyErr_Occurred()) SWIG_fail; | |
1426 | } | |
1427 | resultobj = PyInt_FromLong((long)result); | |
1428 | return resultobj; | |
1429 | fail: | |
1430 | return NULL; | |
1431 | } | |
1432 | ||
1433 | ||
1434 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject *resultobj; | |
1436 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1437 | int arg2 ; | |
1438 | byte *arg3 = (byte *) 0 ; | |
1439 | byte *arg4 = (byte *) 0 ; | |
1440 | byte *arg5 = (byte *) 0 ; | |
1441 | bool result; | |
1442 | byte temp3 ; | |
1443 | byte temp4 ; | |
1444 | byte temp5 ; | |
1445 | PyObject * obj0 = 0 ; | |
1446 | char *kwnames[] = { | |
1447 | (char *) "self",(char *) "pixel", NULL | |
1448 | }; | |
1449 | ||
1450 | arg3 = &temp3; | |
1451 | arg4 = &temp4; | |
1452 | arg5 = &temp5; | |
1453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1455 | { | |
1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1457 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1458 | ||
1459 | wxPyEndAllowThreads(__tstate); | |
1460 | if (PyErr_Occurred()) SWIG_fail; | |
1461 | } | |
1462 | resultobj = PyInt_FromLong((long)result); | |
1463 | { | |
1464 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1465 | resultobj = t_output_helper(resultobj,o); | |
1466 | } | |
1467 | { | |
1468 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1469 | resultobj = t_output_helper(resultobj,o); | |
1470 | } | |
1471 | { | |
1472 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1473 | resultobj = t_output_helper(resultobj,o); | |
1474 | } | |
1475 | return resultobj; | |
1476 | fail: | |
1477 | return NULL; | |
1478 | } | |
1479 | ||
1480 | ||
1481 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1482 | PyObject *resultobj; | |
1483 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1484 | bool result; | |
1485 | PyObject * obj0 = 0 ; | |
1486 | char *kwnames[] = { | |
1487 | (char *) "self", NULL | |
1488 | }; | |
1489 | ||
1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1492 | { | |
1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1494 | result = (bool)(arg1)->Ok(); | |
1495 | ||
1496 | wxPyEndAllowThreads(__tstate); | |
1497 | if (PyErr_Occurred()) SWIG_fail; | |
1498 | } | |
1499 | resultobj = PyInt_FromLong((long)result); | |
1500 | return resultobj; | |
1501 | fail: | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
1506 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1507 | PyObject *obj; | |
1508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1509 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1510 | Py_INCREF(obj); | |
1511 | return Py_BuildValue((char *)""); | |
1512 | } | |
1513 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject *resultobj; | |
1515 | wxColour *arg1 = 0 ; | |
1516 | int arg2 = (int) 1 ; | |
1517 | int arg3 = (int) wxSOLID ; | |
1518 | wxPen *result; | |
1519 | wxColour temp1 ; | |
1520 | PyObject * obj0 = 0 ; | |
1521 | char *kwnames[] = { | |
1522 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1523 | }; | |
1524 | ||
1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1526 | { | |
1527 | arg1 = &temp1; | |
1528 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1529 | } | |
1530 | { | |
1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1532 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1533 | ||
1534 | wxPyEndAllowThreads(__tstate); | |
1535 | if (PyErr_Occurred()) SWIG_fail; | |
1536 | } | |
1537 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1538 | return resultobj; | |
1539 | fail: | |
1540 | return NULL; | |
1541 | } | |
1542 | ||
1543 | ||
1544 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1545 | PyObject *resultobj; | |
1546 | wxPen *arg1 = (wxPen *) 0 ; | |
1547 | PyObject * obj0 = 0 ; | |
1548 | char *kwnames[] = { | |
1549 | (char *) "self", NULL | |
1550 | }; | |
1551 | ||
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1554 | { | |
1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1556 | delete arg1; | |
1557 | ||
1558 | wxPyEndAllowThreads(__tstate); | |
1559 | if (PyErr_Occurred()) SWIG_fail; | |
1560 | } | |
1561 | Py_INCREF(Py_None); resultobj = Py_None; | |
1562 | return resultobj; | |
1563 | fail: | |
1564 | return NULL; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject *resultobj; | |
1570 | wxPen *arg1 = (wxPen *) 0 ; | |
1571 | int result; | |
1572 | PyObject * obj0 = 0 ; | |
1573 | char *kwnames[] = { | |
1574 | (char *) "self", NULL | |
1575 | }; | |
1576 | ||
1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1579 | { | |
1580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1581 | result = (int)(arg1)->GetCap(); | |
1582 | ||
1583 | wxPyEndAllowThreads(__tstate); | |
1584 | if (PyErr_Occurred()) SWIG_fail; | |
1585 | } | |
1586 | resultobj = PyInt_FromLong((long)result); | |
1587 | return resultobj; | |
1588 | fail: | |
1589 | return NULL; | |
1590 | } | |
1591 | ||
1592 | ||
1593 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject *resultobj; | |
1595 | wxPen *arg1 = (wxPen *) 0 ; | |
1596 | wxColour result; | |
1597 | PyObject * obj0 = 0 ; | |
1598 | char *kwnames[] = { | |
1599 | (char *) "self", NULL | |
1600 | }; | |
1601 | ||
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1604 | { | |
1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1606 | result = (arg1)->GetColour(); | |
1607 | ||
1608 | wxPyEndAllowThreads(__tstate); | |
1609 | if (PyErr_Occurred()) SWIG_fail; | |
1610 | } | |
1611 | { | |
1612 | wxColour * resultptr; | |
1613 | resultptr = new wxColour((wxColour &) result); | |
1614 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1615 | } | |
1616 | return resultobj; | |
1617 | fail: | |
1618 | return NULL; | |
1619 | } | |
1620 | ||
1621 | ||
1622 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject *resultobj; | |
1624 | wxPen *arg1 = (wxPen *) 0 ; | |
1625 | int result; | |
1626 | PyObject * obj0 = 0 ; | |
1627 | char *kwnames[] = { | |
1628 | (char *) "self", NULL | |
1629 | }; | |
1630 | ||
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1633 | { | |
1634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1635 | result = (int)(arg1)->GetJoin(); | |
1636 | ||
1637 | wxPyEndAllowThreads(__tstate); | |
1638 | if (PyErr_Occurred()) SWIG_fail; | |
1639 | } | |
1640 | resultobj = PyInt_FromLong((long)result); | |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxPen *arg1 = (wxPen *) 0 ; | |
1650 | int result; | |
1651 | PyObject * obj0 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "self", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1658 | { | |
1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1660 | result = (int)(arg1)->GetStyle(); | |
1661 | ||
1662 | wxPyEndAllowThreads(__tstate); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
1665 | resultobj = PyInt_FromLong((long)result); | |
1666 | return resultobj; | |
1667 | fail: | |
1668 | return NULL; | |
1669 | } | |
1670 | ||
1671 | ||
1672 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject *resultobj; | |
1674 | wxPen *arg1 = (wxPen *) 0 ; | |
1675 | int result; | |
1676 | PyObject * obj0 = 0 ; | |
1677 | char *kwnames[] = { | |
1678 | (char *) "self", NULL | |
1679 | }; | |
1680 | ||
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1683 | { | |
1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1685 | result = (int)(arg1)->GetWidth(); | |
1686 | ||
1687 | wxPyEndAllowThreads(__tstate); | |
1688 | if (PyErr_Occurred()) SWIG_fail; | |
1689 | } | |
1690 | resultobj = PyInt_FromLong((long)result); | |
1691 | return resultobj; | |
1692 | fail: | |
1693 | return NULL; | |
1694 | } | |
1695 | ||
1696 | ||
1697 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1698 | PyObject *resultobj; | |
1699 | wxPen *arg1 = (wxPen *) 0 ; | |
1700 | bool result; | |
1701 | PyObject * obj0 = 0 ; | |
1702 | char *kwnames[] = { | |
1703 | (char *) "self", NULL | |
1704 | }; | |
1705 | ||
1706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1708 | { | |
1709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1710 | result = (bool)(arg1)->Ok(); | |
1711 | ||
1712 | wxPyEndAllowThreads(__tstate); | |
1713 | if (PyErr_Occurred()) SWIG_fail; | |
1714 | } | |
1715 | resultobj = PyInt_FromLong((long)result); | |
1716 | return resultobj; | |
1717 | fail: | |
1718 | return NULL; | |
1719 | } | |
1720 | ||
1721 | ||
1722 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1723 | PyObject *resultobj; | |
1724 | wxPen *arg1 = (wxPen *) 0 ; | |
1725 | int arg2 ; | |
1726 | PyObject * obj0 = 0 ; | |
1727 | char *kwnames[] = { | |
1728 | (char *) "self",(char *) "cap_style", NULL | |
1729 | }; | |
1730 | ||
1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1733 | { | |
1734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1735 | (arg1)->SetCap(arg2); | |
1736 | ||
1737 | wxPyEndAllowThreads(__tstate); | |
1738 | if (PyErr_Occurred()) SWIG_fail; | |
1739 | } | |
1740 | Py_INCREF(Py_None); resultobj = Py_None; | |
1741 | return resultobj; | |
1742 | fail: | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject *resultobj; | |
1749 | wxPen *arg1 = (wxPen *) 0 ; | |
1750 | wxColour *arg2 = 0 ; | |
1751 | wxColour temp2 ; | |
1752 | PyObject * obj0 = 0 ; | |
1753 | PyObject * obj1 = 0 ; | |
1754 | char *kwnames[] = { | |
1755 | (char *) "self",(char *) "colour", NULL | |
1756 | }; | |
1757 | ||
1758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1760 | { | |
1761 | arg2 = &temp2; | |
1762 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1763 | } | |
1764 | { | |
1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1766 | (arg1)->SetColour(*arg2); | |
1767 | ||
1768 | wxPyEndAllowThreads(__tstate); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
1771 | Py_INCREF(Py_None); resultobj = Py_None; | |
1772 | return resultobj; | |
1773 | fail: | |
1774 | return NULL; | |
1775 | } | |
1776 | ||
1777 | ||
1778 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1779 | PyObject *resultobj; | |
1780 | wxPen *arg1 = (wxPen *) 0 ; | |
1781 | int arg2 ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | char *kwnames[] = { | |
1784 | (char *) "self",(char *) "join_style", NULL | |
1785 | }; | |
1786 | ||
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1789 | { | |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | (arg1)->SetJoin(arg2); | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
1796 | Py_INCREF(Py_None); resultobj = Py_None; | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | wxPen *arg1 = (wxPen *) 0 ; | |
1806 | int arg2 ; | |
1807 | PyObject * obj0 = 0 ; | |
1808 | char *kwnames[] = { | |
1809 | (char *) "self",(char *) "style", NULL | |
1810 | }; | |
1811 | ||
1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | (arg1)->SetStyle(arg2); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | Py_INCREF(Py_None); resultobj = Py_None; | |
1822 | return resultobj; | |
1823 | fail: | |
1824 | return NULL; | |
1825 | } | |
1826 | ||
1827 | ||
1828 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1829 | PyObject *resultobj; | |
1830 | wxPen *arg1 = (wxPen *) 0 ; | |
1831 | int arg2 ; | |
1832 | PyObject * obj0 = 0 ; | |
1833 | char *kwnames[] = { | |
1834 | (char *) "self",(char *) "width", NULL | |
1835 | }; | |
1836 | ||
1837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1839 | { | |
1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1841 | (arg1)->SetWidth(arg2); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) SWIG_fail; | |
1845 | } | |
1846 | Py_INCREF(Py_None); resultobj = Py_None; | |
1847 | return resultobj; | |
1848 | fail: | |
1849 | return NULL; | |
1850 | } | |
1851 | ||
1852 | ||
1853 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject *resultobj; | |
1855 | wxPen *arg1 = (wxPen *) 0 ; | |
1856 | int arg2 ; | |
1857 | wxDash *arg3 = (wxDash *) 0 ; | |
1858 | PyObject * obj0 = 0 ; | |
1859 | PyObject * obj1 = 0 ; | |
1860 | char *kwnames[] = { | |
1861 | (char *) "self",(char *) "dashes", NULL | |
1862 | }; | |
1863 | ||
1864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1866 | { | |
1867 | arg2 = PyList_Size(obj1); | |
1868 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1869 | if (arg3 == NULL) SWIG_fail; | |
1870 | } | |
1871 | { | |
1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1873 | (arg1)->SetDashes(arg2,arg3); | |
1874 | ||
1875 | wxPyEndAllowThreads(__tstate); | |
1876 | if (PyErr_Occurred()) SWIG_fail; | |
1877 | } | |
1878 | Py_INCREF(Py_None); resultobj = Py_None; | |
1879 | { | |
1880 | if (arg3) delete [] arg3; | |
1881 | } | |
1882 | return resultobj; | |
1883 | fail: | |
1884 | { | |
1885 | if (arg3) delete [] arg3; | |
1886 | } | |
1887 | return NULL; | |
1888 | } | |
1889 | ||
1890 | ||
1891 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1892 | PyObject *resultobj; | |
1893 | wxPen *arg1 = (wxPen *) 0 ; | |
1894 | PyObject *result; | |
1895 | PyObject * obj0 = 0 ; | |
1896 | char *kwnames[] = { | |
1897 | (char *) "self", NULL | |
1898 | }; | |
1899 | ||
1900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1902 | { | |
1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1904 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1905 | ||
1906 | wxPyEndAllowThreads(__tstate); | |
1907 | if (PyErr_Occurred()) SWIG_fail; | |
1908 | } | |
1909 | resultobj = result; | |
1910 | return resultobj; | |
1911 | fail: | |
1912 | return NULL; | |
1913 | } | |
1914 | ||
1915 | ||
9fd4be55 RD |
1916 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
1917 | PyObject *resultobj; | |
1918 | wxPen *arg1 = (wxPen *) 0 ; | |
1919 | int result; | |
1920 | PyObject * obj0 = 0 ; | |
1921 | char *kwnames[] = { | |
1922 | (char *) "self", NULL | |
1923 | }; | |
1924 | ||
1925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
1926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1927 | { | |
1928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1929 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
1930 | ||
1931 | wxPyEndAllowThreads(__tstate); | |
1932 | if (PyErr_Occurred()) SWIG_fail; | |
1933 | } | |
1934 | resultobj = PyInt_FromLong((long)result); | |
1935 | return resultobj; | |
1936 | fail: | |
1937 | return NULL; | |
1938 | } | |
1939 | ||
1940 | ||
d14a1e28 RD |
1941 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
1942 | PyObject *resultobj; | |
1943 | wxPen *arg1 = (wxPen *) 0 ; | |
1944 | wxBitmap *result; | |
1945 | PyObject * obj0 = 0 ; | |
1946 | char *kwnames[] = { | |
1947 | (char *) "self", NULL | |
1948 | }; | |
1949 | ||
1950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
1951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1952 | { | |
1953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1954 | result = (wxBitmap *)(arg1)->GetStipple(); | |
1955 | ||
1956 | wxPyEndAllowThreads(__tstate); | |
1957 | if (PyErr_Occurred()) SWIG_fail; | |
1958 | } | |
1959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
1960 | return resultobj; | |
1961 | fail: | |
1962 | return NULL; | |
1963 | } | |
1964 | ||
1965 | ||
1966 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1967 | PyObject *resultobj; | |
1968 | wxPen *arg1 = (wxPen *) 0 ; | |
1969 | wxBitmap *arg2 = 0 ; | |
1970 | PyObject * obj0 = 0 ; | |
1971 | PyObject * obj1 = 0 ; | |
1972 | char *kwnames[] = { | |
1973 | (char *) "self",(char *) "stipple", NULL | |
1974 | }; | |
1975 | ||
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1978 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1979 | if (arg2 == NULL) { | |
1980 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1981 | } | |
1982 | { | |
1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1984 | (arg1)->SetStipple(*arg2); | |
1985 | ||
1986 | wxPyEndAllowThreads(__tstate); | |
1987 | if (PyErr_Occurred()) SWIG_fail; | |
1988 | } | |
1989 | Py_INCREF(Py_None); resultobj = Py_None; | |
1990 | return resultobj; | |
1991 | fail: | |
1992 | return NULL; | |
1993 | } | |
1994 | ||
1995 | ||
1996 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1997 | PyObject *obj; | |
1998 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1999 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2000 | Py_INCREF(obj); | |
2001 | return Py_BuildValue((char *)""); | |
2002 | } | |
2003 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject *resultobj; | |
2005 | wxColour *arg1 = 0 ; | |
2006 | int arg2 = (int) 1 ; | |
2007 | int arg3 = (int) wxSOLID ; | |
2008 | wxPyPen *result; | |
2009 | wxColour temp1 ; | |
2010 | PyObject * obj0 = 0 ; | |
2011 | char *kwnames[] = { | |
2012 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2013 | }; | |
2014 | ||
2015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2016 | { | |
2017 | arg1 = &temp1; | |
2018 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2019 | } | |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2028 | return resultobj; | |
2029 | fail: | |
2030 | return NULL; | |
2031 | } | |
2032 | ||
2033 | ||
2034 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2035 | PyObject *resultobj; | |
2036 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2037 | PyObject * obj0 = 0 ; | |
2038 | char *kwnames[] = { | |
2039 | (char *) "self", NULL | |
2040 | }; | |
2041 | ||
2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2044 | { | |
2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2046 | delete arg1; | |
2047 | ||
2048 | wxPyEndAllowThreads(__tstate); | |
2049 | if (PyErr_Occurred()) SWIG_fail; | |
2050 | } | |
2051 | Py_INCREF(Py_None); resultobj = Py_None; | |
2052 | return resultobj; | |
2053 | fail: | |
2054 | return NULL; | |
2055 | } | |
2056 | ||
2057 | ||
2058 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2059 | PyObject *resultobj; | |
2060 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2061 | int arg2 ; | |
2062 | wxDash *arg3 = (wxDash *) 0 ; | |
2063 | PyObject * obj0 = 0 ; | |
2064 | PyObject * obj1 = 0 ; | |
2065 | char *kwnames[] = { | |
2066 | (char *) "self",(char *) "dashes", NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2071 | { | |
2072 | arg2 = PyList_Size(obj1); | |
2073 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2074 | if (arg3 == NULL) SWIG_fail; | |
2075 | } | |
2076 | { | |
2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2078 | (arg1)->SetDashes(arg2,arg3); | |
2079 | ||
2080 | wxPyEndAllowThreads(__tstate); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
2082 | } | |
2083 | Py_INCREF(Py_None); resultobj = Py_None; | |
2084 | { | |
2085 | if (arg3) delete [] arg3; | |
2086 | } | |
2087 | return resultobj; | |
2088 | fail: | |
2089 | { | |
2090 | if (arg3) delete [] arg3; | |
2091 | } | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
2096 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2097 | PyObject *obj; | |
2098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2099 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2100 | Py_INCREF(obj); | |
2101 | return Py_BuildValue((char *)""); | |
2102 | } | |
2103 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2104 | PyObject *resultobj; | |
2105 | wxColour *arg1 = 0 ; | |
2106 | int arg2 = (int) wxSOLID ; | |
2107 | wxBrush *result; | |
2108 | wxColour temp1 ; | |
2109 | PyObject * obj0 = 0 ; | |
2110 | char *kwnames[] = { | |
2111 | (char *) "colour",(char *) "style", NULL | |
2112 | }; | |
2113 | ||
2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
2115 | { | |
2116 | arg1 = &temp1; | |
2117 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2118 | } | |
2119 | { | |
2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2121 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2122 | ||
2123 | wxPyEndAllowThreads(__tstate); | |
2124 | if (PyErr_Occurred()) SWIG_fail; | |
2125 | } | |
2126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2127 | return resultobj; | |
2128 | fail: | |
2129 | return NULL; | |
2130 | } | |
2131 | ||
2132 | ||
2133 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2134 | PyObject *resultobj; | |
2135 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2136 | PyObject * obj0 = 0 ; | |
2137 | char *kwnames[] = { | |
2138 | (char *) "self", NULL | |
2139 | }; | |
2140 | ||
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2143 | { | |
2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2145 | delete arg1; | |
2146 | ||
2147 | wxPyEndAllowThreads(__tstate); | |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
2149 | } | |
2150 | Py_INCREF(Py_None); resultobj = Py_None; | |
2151 | return resultobj; | |
2152 | fail: | |
2153 | return NULL; | |
2154 | } | |
2155 | ||
2156 | ||
2157 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2158 | PyObject *resultobj; | |
2159 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2160 | wxColour *arg2 = 0 ; | |
2161 | wxColour temp2 ; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | PyObject * obj1 = 0 ; | |
2164 | char *kwnames[] = { | |
2165 | (char *) "self",(char *) "col", NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2170 | { | |
2171 | arg2 = &temp2; | |
2172 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2173 | } | |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | (arg1)->SetColour((wxColour const &)*arg2); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | Py_INCREF(Py_None); resultobj = Py_None; | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2189 | PyObject *resultobj; | |
2190 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2191 | int arg2 ; | |
2192 | PyObject * obj0 = 0 ; | |
2193 | char *kwnames[] = { | |
2194 | (char *) "self",(char *) "style", NULL | |
2195 | }; | |
2196 | ||
2197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
2198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2199 | { | |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | (arg1)->SetStyle(arg2); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | Py_INCREF(Py_None); resultobj = Py_None; | |
2207 | return resultobj; | |
2208 | fail: | |
2209 | return NULL; | |
2210 | } | |
2211 | ||
2212 | ||
2213 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2214 | PyObject *resultobj; | |
2215 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2216 | wxBitmap *arg2 = 0 ; | |
2217 | PyObject * obj0 = 0 ; | |
2218 | PyObject * obj1 = 0 ; | |
2219 | char *kwnames[] = { | |
2220 | (char *) "self",(char *) "stipple", NULL | |
2221 | }; | |
2222 | ||
2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2226 | if (arg2 == NULL) { | |
2227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2228 | } | |
2229 | { | |
2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2231 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2232 | ||
2233 | wxPyEndAllowThreads(__tstate); | |
2234 | if (PyErr_Occurred()) SWIG_fail; | |
2235 | } | |
2236 | Py_INCREF(Py_None); resultobj = Py_None; | |
2237 | return resultobj; | |
2238 | fail: | |
2239 | return NULL; | |
2240 | } | |
2241 | ||
2242 | ||
2243 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2244 | PyObject *resultobj; | |
2245 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2246 | wxColour result; | |
2247 | PyObject * obj0 = 0 ; | |
2248 | char *kwnames[] = { | |
2249 | (char *) "self", NULL | |
2250 | }; | |
2251 | ||
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2254 | { | |
2255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2256 | result = ((wxBrush const *)arg1)->GetColour(); | |
2257 | ||
2258 | wxPyEndAllowThreads(__tstate); | |
2259 | if (PyErr_Occurred()) SWIG_fail; | |
2260 | } | |
2261 | { | |
2262 | wxColour * resultptr; | |
2263 | resultptr = new wxColour((wxColour &) result); | |
2264 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2265 | } | |
2266 | return resultobj; | |
2267 | fail: | |
2268 | return NULL; | |
2269 | } | |
2270 | ||
2271 | ||
2272 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2273 | PyObject *resultobj; | |
2274 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2275 | int result; | |
2276 | PyObject * obj0 = 0 ; | |
2277 | char *kwnames[] = { | |
2278 | (char *) "self", NULL | |
2279 | }; | |
2280 | ||
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2283 | { | |
2284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2285 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2286 | ||
2287 | wxPyEndAllowThreads(__tstate); | |
2288 | if (PyErr_Occurred()) SWIG_fail; | |
2289 | } | |
2290 | resultobj = PyInt_FromLong((long)result); | |
2291 | return resultobj; | |
2292 | fail: | |
2293 | return NULL; | |
2294 | } | |
2295 | ||
2296 | ||
2297 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2298 | PyObject *resultobj; | |
2299 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2300 | wxBitmap *result; | |
2301 | PyObject * obj0 = 0 ; | |
2302 | char *kwnames[] = { | |
2303 | (char *) "self", NULL | |
2304 | }; | |
2305 | ||
2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2308 | { | |
2309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2310 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2311 | ||
2312 | wxPyEndAllowThreads(__tstate); | |
2313 | if (PyErr_Occurred()) SWIG_fail; | |
2314 | } | |
2315 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2316 | return resultobj; | |
2317 | fail: | |
2318 | return NULL; | |
2319 | } | |
2320 | ||
2321 | ||
2322 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2323 | PyObject *resultobj; | |
2324 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2325 | bool result; | |
2326 | PyObject * obj0 = 0 ; | |
2327 | char *kwnames[] = { | |
2328 | (char *) "self", NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2333 | { | |
2334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2335 | result = (bool)(arg1)->Ok(); | |
2336 | ||
2337 | wxPyEndAllowThreads(__tstate); | |
2338 | if (PyErr_Occurred()) SWIG_fail; | |
2339 | } | |
2340 | resultobj = PyInt_FromLong((long)result); | |
2341 | return resultobj; | |
2342 | fail: | |
2343 | return NULL; | |
2344 | } | |
2345 | ||
2346 | ||
2347 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2348 | PyObject *obj; | |
2349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2350 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2351 | Py_INCREF(obj); | |
2352 | return Py_BuildValue((char *)""); | |
2353 | } | |
2354 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2355 | PyObject *resultobj; | |
2356 | wxString *arg1 = 0 ; | |
2357 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2358 | wxBitmap *result; | |
423f194a | 2359 | bool temp1 = False ; |
d14a1e28 RD |
2360 | PyObject * obj0 = 0 ; |
2361 | char *kwnames[] = { | |
2362 | (char *) "name",(char *) "type", NULL | |
2363 | }; | |
2364 | ||
2365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2366 | { | |
2367 | arg1 = wxString_in_helper(obj0); | |
2368 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2369 | temp1 = True; |
d14a1e28 RD |
2370 | } |
2371 | { | |
2372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2373 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2374 | ||
2375 | wxPyEndAllowThreads(__tstate); | |
2376 | if (PyErr_Occurred()) SWIG_fail; | |
2377 | } | |
2378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2379 | { | |
2380 | if (temp1) | |
2381 | delete arg1; | |
2382 | } | |
2383 | return resultobj; | |
2384 | fail: | |
2385 | { | |
2386 | if (temp1) | |
2387 | delete arg1; | |
2388 | } | |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
2393 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject *resultobj; | |
2395 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2396 | PyObject * obj0 = 0 ; | |
2397 | char *kwnames[] = { | |
2398 | (char *) "self", NULL | |
2399 | }; | |
2400 | ||
2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2403 | { | |
2404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2405 | delete arg1; | |
2406 | ||
2407 | wxPyEndAllowThreads(__tstate); | |
2408 | if (PyErr_Occurred()) SWIG_fail; | |
2409 | } | |
2410 | Py_INCREF(Py_None); resultobj = Py_None; | |
2411 | return resultobj; | |
2412 | fail: | |
2413 | return NULL; | |
2414 | } | |
2415 | ||
2416 | ||
2417 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2418 | PyObject *resultobj; | |
2419 | int arg1 ; | |
2420 | int arg2 ; | |
2421 | int arg3 = (int) -1 ; | |
2422 | wxBitmap *result; | |
2423 | char *kwnames[] = { | |
2424 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2425 | }; | |
2426 | ||
2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2428 | { | |
2429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2430 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2431 | ||
2432 | wxPyEndAllowThreads(__tstate); | |
2433 | if (PyErr_Occurred()) SWIG_fail; | |
2434 | } | |
2435 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2436 | return resultobj; | |
2437 | fail: | |
2438 | return NULL; | |
2439 | } | |
2440 | ||
2441 | ||
2442 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2443 | PyObject *resultobj; | |
2444 | wxIcon *arg1 = 0 ; | |
2445 | wxBitmap *result; | |
2446 | PyObject * obj0 = 0 ; | |
2447 | char *kwnames[] = { | |
2448 | (char *) "icon", NULL | |
2449 | }; | |
2450 | ||
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2453 | if (arg1 == NULL) { | |
2454 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2455 | } | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
2463 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2464 | return resultobj; | |
2465 | fail: | |
2466 | return NULL; | |
2467 | } | |
2468 | ||
2469 | ||
2470 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2471 | PyObject *resultobj; | |
2472 | wxImage *arg1 = 0 ; | |
2473 | int arg2 = (int) -1 ; | |
2474 | wxBitmap *result; | |
2475 | PyObject * obj0 = 0 ; | |
2476 | char *kwnames[] = { | |
2477 | (char *) "image",(char *) "depth", NULL | |
2478 | }; | |
2479 | ||
2480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2482 | if (arg1 == NULL) { | |
2483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2484 | } | |
2485 | { | |
2486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2487 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2488 | ||
2489 | wxPyEndAllowThreads(__tstate); | |
2490 | if (PyErr_Occurred()) SWIG_fail; | |
2491 | } | |
2492 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2493 | return resultobj; | |
2494 | fail: | |
2495 | return NULL; | |
2496 | } | |
2497 | ||
2498 | ||
2499 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2500 | PyObject *resultobj; | |
2501 | PyObject *arg1 = (PyObject *) 0 ; | |
2502 | wxBitmap *result; | |
2503 | PyObject * obj0 = 0 ; | |
2504 | char *kwnames[] = { | |
2505 | (char *) "listOfStrings", NULL | |
2506 | }; | |
2507 | ||
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2509 | arg1 = obj0; | |
2510 | { | |
2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2512 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2513 | ||
2514 | wxPyEndAllowThreads(__tstate); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | } | |
2517 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2518 | return resultobj; | |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | PyObject *arg1 = (PyObject *) 0 ; | |
2527 | int arg2 ; | |
2528 | int arg3 ; | |
2529 | int arg4 = (int) 1 ; | |
2530 | wxBitmap *result; | |
2531 | PyObject * obj0 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2537 | arg1 = obj0; | |
2538 | { | |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) SWIG_fail; | |
2544 | } | |
2545 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2546 | return resultobj; | |
2547 | fail: | |
2548 | return NULL; | |
2549 | } | |
2550 | ||
2551 | ||
2552 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2553 | PyObject *resultobj; | |
2554 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2555 | wxPalette *arg2 = 0 ; | |
2556 | PyObject * obj0 = 0 ; | |
2557 | PyObject * obj1 = 0 ; | |
2558 | char *kwnames[] = { | |
2559 | (char *) "self",(char *) "palette", NULL | |
2560 | }; | |
2561 | ||
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2564 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2565 | if (arg2 == NULL) { | |
2566 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | (arg1)->SetPalette(*arg2); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
2574 | } | |
2575 | Py_INCREF(Py_None); resultobj = Py_None; | |
2576 | return resultobj; | |
2577 | fail: | |
2578 | return NULL; | |
2579 | } | |
2580 | ||
2581 | ||
2582 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject *resultobj; | |
2584 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2585 | long result; | |
2586 | PyObject * obj0 = 0 ; | |
2587 | char *kwnames[] = { | |
2588 | (char *) "self", NULL | |
2589 | }; | |
2590 | ||
2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2593 | { | |
2594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2595 | result = (long)(arg1)->GetHandle(); | |
2596 | ||
2597 | wxPyEndAllowThreads(__tstate); | |
2598 | if (PyErr_Occurred()) SWIG_fail; | |
2599 | } | |
2600 | resultobj = PyInt_FromLong((long)result); | |
2601 | return resultobj; | |
2602 | fail: | |
2603 | return NULL; | |
2604 | } | |
2605 | ||
2606 | ||
2607 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2608 | PyObject *resultobj; | |
2609 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2610 | long arg2 ; | |
2611 | PyObject * obj0 = 0 ; | |
2612 | char *kwnames[] = { | |
2613 | (char *) "self",(char *) "handle", NULL | |
2614 | }; | |
2615 | ||
2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
2617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2618 | { | |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2620 | (arg1)->SetHandle(arg2); | |
2621 | ||
2622 | wxPyEndAllowThreads(__tstate); | |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
2624 | } | |
2625 | Py_INCREF(Py_None); resultobj = Py_None; | |
2626 | return resultobj; | |
2627 | fail: | |
2628 | return NULL; | |
2629 | } | |
2630 | ||
2631 | ||
2632 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject *resultobj; | |
2634 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2635 | bool result; | |
2636 | PyObject * obj0 = 0 ; | |
2637 | char *kwnames[] = { | |
2638 | (char *) "self", NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2643 | { | |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | result = (bool)(arg1)->Ok(); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | resultobj = PyInt_FromLong((long)result); | |
2651 | return resultobj; | |
2652 | fail: | |
2653 | return NULL; | |
2654 | } | |
2655 | ||
2656 | ||
2657 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2658 | PyObject *resultobj; | |
2659 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2660 | int result; | |
2661 | PyObject * obj0 = 0 ; | |
2662 | char *kwnames[] = { | |
2663 | (char *) "self", NULL | |
2664 | }; | |
2665 | ||
2666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | result = (int)(arg1)->GetWidth(); | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
2675 | resultobj = PyInt_FromLong((long)result); | |
2676 | return resultobj; | |
2677 | fail: | |
2678 | return NULL; | |
2679 | } | |
2680 | ||
2681 | ||
2682 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2683 | PyObject *resultobj; | |
2684 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2685 | int result; | |
2686 | PyObject * obj0 = 0 ; | |
2687 | char *kwnames[] = { | |
2688 | (char *) "self", NULL | |
2689 | }; | |
2690 | ||
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2693 | { | |
2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2695 | result = (int)(arg1)->GetHeight(); | |
2696 | ||
2697 | wxPyEndAllowThreads(__tstate); | |
2698 | if (PyErr_Occurred()) SWIG_fail; | |
2699 | } | |
2700 | resultobj = PyInt_FromLong((long)result); | |
2701 | return resultobj; | |
2702 | fail: | |
2703 | return NULL; | |
2704 | } | |
2705 | ||
2706 | ||
2707 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2708 | PyObject *resultobj; | |
2709 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2710 | int result; | |
2711 | PyObject * obj0 = 0 ; | |
2712 | char *kwnames[] = { | |
2713 | (char *) "self", NULL | |
2714 | }; | |
2715 | ||
2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2718 | { | |
2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2720 | result = (int)(arg1)->GetDepth(); | |
2721 | ||
2722 | wxPyEndAllowThreads(__tstate); | |
2723 | if (PyErr_Occurred()) SWIG_fail; | |
2724 | } | |
2725 | resultobj = PyInt_FromLong((long)result); | |
2726 | return resultobj; | |
2727 | fail: | |
2728 | return NULL; | |
2729 | } | |
2730 | ||
2731 | ||
2732 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject *resultobj; | |
2734 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2735 | SwigValueWrapper< wxImage > result; | |
2736 | PyObject * obj0 = 0 ; | |
2737 | char *kwnames[] = { | |
2738 | (char *) "self", NULL | |
2739 | }; | |
2740 | ||
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2743 | { | |
2744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2745 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2746 | ||
2747 | wxPyEndAllowThreads(__tstate); | |
2748 | if (PyErr_Occurred()) SWIG_fail; | |
2749 | } | |
2750 | { | |
2751 | wxImage * resultptr; | |
2752 | resultptr = new wxImage((wxImage &) result); | |
2753 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2754 | } | |
2755 | return resultobj; | |
2756 | fail: | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
2761 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2762 | PyObject *resultobj; | |
2763 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2764 | wxMask *result; | |
2765 | PyObject * obj0 = 0 ; | |
2766 | char *kwnames[] = { | |
2767 | (char *) "self", NULL | |
2768 | }; | |
2769 | ||
2770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2772 | { | |
2773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2774 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2775 | ||
2776 | wxPyEndAllowThreads(__tstate); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
2779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2780 | return resultobj; | |
2781 | fail: | |
2782 | return NULL; | |
2783 | } | |
2784 | ||
2785 | ||
2786 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2787 | PyObject *resultobj; | |
2788 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2789 | wxMask *arg2 = (wxMask *) 0 ; | |
2790 | PyObject * obj0 = 0 ; | |
2791 | PyObject * obj1 = 0 ; | |
2792 | char *kwnames[] = { | |
2793 | (char *) "self",(char *) "mask", NULL | |
2794 | }; | |
2795 | ||
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2798 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | (arg1)->SetMask(arg2); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2816 | wxColour *arg2 = 0 ; | |
2817 | wxColour temp2 ; | |
2818 | PyObject * obj0 = 0 ; | |
2819 | PyObject * obj1 = 0 ; | |
2820 | char *kwnames[] = { | |
2821 | (char *) "self",(char *) "colour", NULL | |
2822 | }; | |
2823 | ||
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2826 | { | |
2827 | arg2 = &temp2; | |
2828 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | Py_INCREF(Py_None); resultobj = Py_None; | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
2844 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject *resultobj; | |
2846 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2847 | wxRect *arg2 = 0 ; | |
2848 | SwigValueWrapper< wxBitmap > result; | |
2849 | wxRect temp2 ; | |
2850 | PyObject * obj0 = 0 ; | |
2851 | PyObject * obj1 = 0 ; | |
2852 | char *kwnames[] = { | |
2853 | (char *) "self",(char *) "rect", NULL | |
2854 | }; | |
2855 | ||
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2858 | { | |
2859 | arg2 = &temp2; | |
2860 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2861 | } | |
2862 | { | |
2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2864 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2865 | ||
2866 | wxPyEndAllowThreads(__tstate); | |
2867 | if (PyErr_Occurred()) SWIG_fail; | |
2868 | } | |
2869 | { | |
2870 | wxBitmap * resultptr; | |
2871 | resultptr = new wxBitmap((wxBitmap &) result); | |
2872 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2873 | } | |
2874 | return resultobj; | |
2875 | fail: | |
2876 | return NULL; | |
2877 | } | |
2878 | ||
2879 | ||
2880 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2881 | PyObject *resultobj; | |
2882 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2883 | wxString *arg2 = 0 ; | |
2884 | int arg3 ; | |
2885 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2886 | bool result; | |
423f194a | 2887 | bool temp2 = False ; |
d14a1e28 RD |
2888 | PyObject * obj0 = 0 ; |
2889 | PyObject * obj1 = 0 ; | |
2890 | PyObject * obj3 = 0 ; | |
2891 | char *kwnames[] = { | |
2892 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2893 | }; | |
2894 | ||
2895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2897 | { | |
2898 | arg2 = wxString_in_helper(obj1); | |
2899 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2900 | temp2 = True; |
d14a1e28 RD |
2901 | } |
2902 | if (obj3) { | |
2903 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2904 | } | |
2905 | { | |
2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2907 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2908 | ||
2909 | wxPyEndAllowThreads(__tstate); | |
2910 | if (PyErr_Occurred()) SWIG_fail; | |
2911 | } | |
2912 | resultobj = PyInt_FromLong((long)result); | |
2913 | { | |
2914 | if (temp2) | |
2915 | delete arg2; | |
2916 | } | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | { | |
2920 | if (temp2) | |
2921 | delete arg2; | |
2922 | } | |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
2927 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject *resultobj; | |
2929 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2930 | wxString *arg2 = 0 ; | |
2931 | int arg3 ; | |
2932 | bool result; | |
423f194a | 2933 | bool temp2 = False ; |
d14a1e28 RD |
2934 | PyObject * obj0 = 0 ; |
2935 | PyObject * obj1 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2942 | { | |
2943 | arg2 = wxString_in_helper(obj1); | |
2944 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2945 | temp2 = True; |
d14a1e28 RD |
2946 | } |
2947 | { | |
2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2949 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2950 | ||
2951 | wxPyEndAllowThreads(__tstate); | |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | } | |
2954 | resultobj = PyInt_FromLong((long)result); | |
2955 | { | |
2956 | if (temp2) | |
2957 | delete arg2; | |
2958 | } | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | { | |
2962 | if (temp2) | |
2963 | delete arg2; | |
2964 | } | |
2965 | return NULL; | |
2966 | } | |
2967 | ||
2968 | ||
2969 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2970 | PyObject *resultobj; | |
2971 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2972 | wxIcon *arg2 = 0 ; | |
2973 | bool result; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | PyObject * obj1 = 0 ; | |
2976 | char *kwnames[] = { | |
2977 | (char *) "self",(char *) "icon", NULL | |
2978 | }; | |
2979 | ||
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2983 | if (arg2 == NULL) { | |
2984 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2985 | } | |
2986 | { | |
2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2988 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2989 | ||
2990 | wxPyEndAllowThreads(__tstate); | |
2991 | if (PyErr_Occurred()) SWIG_fail; | |
2992 | } | |
2993 | resultobj = PyInt_FromLong((long)result); | |
2994 | return resultobj; | |
2995 | fail: | |
2996 | return NULL; | |
2997 | } | |
2998 | ||
2999 | ||
3000 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3001 | PyObject *resultobj; | |
3002 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3003 | int arg2 ; | |
3004 | PyObject * obj0 = 0 ; | |
3005 | char *kwnames[] = { | |
3006 | (char *) "self",(char *) "height", NULL | |
3007 | }; | |
3008 | ||
3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3011 | { | |
3012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3013 | (arg1)->SetHeight(arg2); | |
3014 | ||
3015 | wxPyEndAllowThreads(__tstate); | |
3016 | if (PyErr_Occurred()) SWIG_fail; | |
3017 | } | |
3018 | Py_INCREF(Py_None); resultobj = Py_None; | |
3019 | return resultobj; | |
3020 | fail: | |
3021 | return NULL; | |
3022 | } | |
3023 | ||
3024 | ||
3025 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject *resultobj; | |
3027 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3028 | int arg2 ; | |
3029 | PyObject * obj0 = 0 ; | |
3030 | char *kwnames[] = { | |
3031 | (char *) "self",(char *) "width", NULL | |
3032 | }; | |
3033 | ||
3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | (arg1)->SetWidth(arg2); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) SWIG_fail; | |
3042 | } | |
3043 | Py_INCREF(Py_None); resultobj = Py_None; | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
3050 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3051 | PyObject *resultobj; | |
3052 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3053 | int arg2 ; | |
3054 | PyObject * obj0 = 0 ; | |
3055 | char *kwnames[] = { | |
3056 | (char *) "self",(char *) "depth", NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3061 | { | |
3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3063 | (arg1)->SetDepth(arg2); | |
3064 | ||
3065 | wxPyEndAllowThreads(__tstate); | |
3066 | if (PyErr_Occurred()) SWIG_fail; | |
3067 | } | |
3068 | Py_INCREF(Py_None); resultobj = Py_None; | |
3069 | return resultobj; | |
3070 | fail: | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
3075 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3078 | wxCursor *arg2 = 0 ; | |
3079 | bool result; | |
3080 | PyObject * obj0 = 0 ; | |
3081 | PyObject * obj1 = 0 ; | |
3082 | char *kwnames[] = { | |
3083 | (char *) "self",(char *) "cursor", NULL | |
3084 | }; | |
3085 | ||
3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3089 | if (arg2 == NULL) { | |
3090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3091 | } | |
3092 | { | |
3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3094 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3095 | ||
3096 | wxPyEndAllowThreads(__tstate); | |
3097 | if (PyErr_Occurred()) SWIG_fail; | |
3098 | } | |
3099 | resultobj = PyInt_FromLong((long)result); | |
3100 | return resultobj; | |
3101 | fail: | |
3102 | return NULL; | |
3103 | } | |
3104 | ||
3105 | ||
3106 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject *resultobj; | |
3108 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3109 | int result; | |
3110 | PyObject * obj0 = 0 ; | |
3111 | char *kwnames[] = { | |
3112 | (char *) "self", NULL | |
3113 | }; | |
3114 | ||
3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3117 | { | |
3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3119 | result = (int)(arg1)->GetQuality(); | |
3120 | ||
3121 | wxPyEndAllowThreads(__tstate); | |
3122 | if (PyErr_Occurred()) SWIG_fail; | |
3123 | } | |
3124 | resultobj = PyInt_FromLong((long)result); | |
3125 | return resultobj; | |
3126 | fail: | |
3127 | return NULL; | |
3128 | } | |
3129 | ||
3130 | ||
3131 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject *resultobj; | |
3133 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3134 | int arg2 ; | |
3135 | PyObject * obj0 = 0 ; | |
3136 | char *kwnames[] = { | |
3137 | (char *) "self",(char *) "q", NULL | |
3138 | }; | |
3139 | ||
3140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail; | |
3141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3142 | { | |
3143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3144 | (arg1)->SetQuality(arg2); | |
3145 | ||
3146 | wxPyEndAllowThreads(__tstate); | |
3147 | if (PyErr_Occurred()) SWIG_fail; | |
3148 | } | |
3149 | Py_INCREF(Py_None); resultobj = Py_None; | |
3150 | return resultobj; | |
3151 | fail: | |
3152 | return NULL; | |
3153 | } | |
3154 | ||
3155 | ||
3156 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3157 | PyObject *obj; | |
3158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3159 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3160 | Py_INCREF(obj); | |
3161 | return Py_BuildValue((char *)""); | |
3162 | } | |
3163 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject *resultobj; | |
3165 | wxBitmap *arg1 = 0 ; | |
3166 | wxMask *result; | |
3167 | PyObject * obj0 = 0 ; | |
3168 | char *kwnames[] = { | |
3169 | (char *) "bitmap", NULL | |
3170 | }; | |
3171 | ||
3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
3173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3174 | if (arg1 == NULL) { | |
3175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3176 | } | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxBitmap *arg1 = 0 ; | |
3194 | wxColour *arg2 = 0 ; | |
3195 | wxMask *result; | |
3196 | wxColour temp2 ; | |
3197 | PyObject * obj0 = 0 ; | |
3198 | PyObject * obj1 = 0 ; | |
3199 | char *kwnames[] = { | |
3200 | (char *) "bitmap",(char *) "colour", NULL | |
3201 | }; | |
3202 | ||
3203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3205 | if (arg1 == NULL) { | |
3206 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3207 | } | |
3208 | { | |
3209 | arg2 = &temp2; | |
3210 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3211 | } | |
3212 | { | |
3213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3214 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3215 | ||
3216 | wxPyEndAllowThreads(__tstate); | |
3217 | if (PyErr_Occurred()) SWIG_fail; | |
3218 | } | |
3219 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3220 | return resultobj; | |
3221 | fail: | |
3222 | return NULL; | |
3223 | } | |
3224 | ||
3225 | ||
3226 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3227 | PyObject *obj; | |
3228 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3229 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3230 | Py_INCREF(obj); | |
3231 | return Py_BuildValue((char *)""); | |
3232 | } | |
3233 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3234 | PyObject *resultobj; | |
3235 | wxString *arg1 = 0 ; | |
eb9b6107 | 3236 | int arg2 ; |
d14a1e28 RD |
3237 | int arg3 = (int) -1 ; |
3238 | int arg4 = (int) -1 ; | |
3239 | wxIcon *result; | |
423f194a | 3240 | bool temp1 = False ; |
d14a1e28 RD |
3241 | PyObject * obj0 = 0 ; |
3242 | char *kwnames[] = { | |
eb9b6107 | 3243 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3244 | }; |
3245 | ||
eb9b6107 | 3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
3247 | { |
3248 | arg1 = wxString_in_helper(obj0); | |
3249 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3250 | temp1 = True; |
d14a1e28 RD |
3251 | } |
3252 | { | |
3253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3254 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
3255 | |
3256 | wxPyEndAllowThreads(__tstate); | |
3257 | if (PyErr_Occurred()) SWIG_fail; | |
3258 | } | |
3259 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3260 | { | |
3261 | if (temp1) | |
3262 | delete arg1; | |
3263 | } | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | { | |
3267 | if (temp1) | |
3268 | delete arg1; | |
3269 | } | |
3270 | return NULL; | |
3271 | } | |
3272 | ||
3273 | ||
3274 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject *resultobj; | |
3276 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3277 | PyObject * obj0 = 0 ; | |
3278 | char *kwnames[] = { | |
3279 | (char *) "self", NULL | |
3280 | }; | |
3281 | ||
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | delete arg1; | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | Py_INCREF(Py_None); resultobj = Py_None; | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
3298 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3299 | PyObject *resultobj; | |
3300 | wxIcon *result; | |
3301 | char *kwnames[] = { | |
3302 | NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3306 | { | |
3307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3308 | result = (wxIcon *)new wxIcon(); | |
3309 | ||
3310 | wxPyEndAllowThreads(__tstate); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3314 | return resultobj; | |
3315 | fail: | |
3316 | return NULL; | |
3317 | } | |
3318 | ||
3319 | ||
3320 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3321 | PyObject *resultobj; | |
3322 | wxIconLocation *arg1 = 0 ; | |
3323 | wxIcon *result; | |
3324 | PyObject * obj0 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "loc", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3331 | if (arg1 == NULL) { | |
3332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3333 | } | |
3334 | { | |
3335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3336 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3337 | ||
3338 | wxPyEndAllowThreads(__tstate); | |
3339 | if (PyErr_Occurred()) SWIG_fail; | |
3340 | } | |
3341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3342 | return resultobj; | |
3343 | fail: | |
3344 | return NULL; | |
3345 | } | |
3346 | ||
3347 | ||
3348 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3349 | PyObject *resultobj; | |
3350 | wxBitmap *arg1 = 0 ; | |
3351 | wxIcon *result; | |
3352 | PyObject * obj0 = 0 ; | |
3353 | char *kwnames[] = { | |
3354 | (char *) "bmp", NULL | |
3355 | }; | |
3356 | ||
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3359 | if (arg1 == NULL) { | |
3360 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3361 | } | |
3362 | { | |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
3369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3370 | return resultobj; | |
3371 | fail: | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
3376 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject *resultobj; | |
3378 | PyObject *arg1 = (PyObject *) 0 ; | |
3379 | wxIcon *result; | |
3380 | PyObject * obj0 = 0 ; | |
3381 | char *kwnames[] = { | |
3382 | (char *) "listOfStrings", NULL | |
3383 | }; | |
3384 | ||
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3386 | arg1 = obj0; | |
3387 | { | |
3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3389 | result = (wxIcon *)new_wxIcon(arg1); | |
3390 | ||
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj; | |
3403 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3404 | wxString *arg2 = 0 ; | |
eb9b6107 | 3405 | int arg3 ; |
d14a1e28 | 3406 | bool result; |
423f194a | 3407 | bool temp2 = False ; |
d14a1e28 RD |
3408 | PyObject * obj0 = 0 ; |
3409 | PyObject * obj1 = 0 ; | |
3410 | char *kwnames[] = { | |
eb9b6107 | 3411 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3412 | }; |
3413 | ||
eb9b6107 | 3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; |
d14a1e28 RD |
3415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3416 | { | |
3417 | arg2 = wxString_in_helper(obj1); | |
3418 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3419 | temp2 = True; |
d14a1e28 RD |
3420 | } |
3421 | { | |
3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3423 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3424 | |
3425 | wxPyEndAllowThreads(__tstate); | |
3426 | if (PyErr_Occurred()) SWIG_fail; | |
3427 | } | |
3428 | resultobj = PyInt_FromLong((long)result); | |
3429 | { | |
3430 | if (temp2) | |
3431 | delete arg2; | |
3432 | } | |
3433 | return resultobj; | |
3434 | fail: | |
3435 | { | |
3436 | if (temp2) | |
3437 | delete arg2; | |
3438 | } | |
3439 | return NULL; | |
3440 | } | |
3441 | ||
3442 | ||
3443 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject *resultobj; | |
3445 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3446 | long result; | |
3447 | PyObject * obj0 = 0 ; | |
3448 | char *kwnames[] = { | |
3449 | (char *) "self", NULL | |
3450 | }; | |
3451 | ||
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3454 | { | |
3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3456 | result = (long)(arg1)->GetHandle(); | |
3457 | ||
3458 | wxPyEndAllowThreads(__tstate); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | } | |
3461 | resultobj = PyInt_FromLong((long)result); | |
3462 | return resultobj; | |
3463 | fail: | |
3464 | return NULL; | |
3465 | } | |
3466 | ||
3467 | ||
3468 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3469 | PyObject *resultobj; | |
3470 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3471 | long arg2 ; | |
3472 | PyObject * obj0 = 0 ; | |
3473 | char *kwnames[] = { | |
3474 | (char *) "self",(char *) "handle", NULL | |
3475 | }; | |
3476 | ||
3477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
3478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3479 | { | |
3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3481 | (arg1)->SetHandle(arg2); | |
3482 | ||
3483 | wxPyEndAllowThreads(__tstate); | |
3484 | if (PyErr_Occurred()) SWIG_fail; | |
3485 | } | |
3486 | Py_INCREF(Py_None); resultobj = Py_None; | |
3487 | return resultobj; | |
3488 | fail: | |
3489 | return NULL; | |
3490 | } | |
3491 | ||
3492 | ||
3493 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3494 | PyObject *resultobj; | |
3495 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3496 | bool result; | |
3497 | PyObject * obj0 = 0 ; | |
3498 | char *kwnames[] = { | |
3499 | (char *) "self", NULL | |
3500 | }; | |
3501 | ||
3502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3504 | { | |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | result = (bool)(arg1)->Ok(); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | resultobj = PyInt_FromLong((long)result); | |
3512 | return resultobj; | |
3513 | fail: | |
3514 | return NULL; | |
3515 | } | |
3516 | ||
3517 | ||
3518 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3519 | PyObject *resultobj; | |
3520 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3521 | int result; | |
3522 | PyObject * obj0 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "self", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3529 | { | |
3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3531 | result = (int)(arg1)->GetWidth(); | |
3532 | ||
3533 | wxPyEndAllowThreads(__tstate); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
3536 | resultobj = PyInt_FromLong((long)result); | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | return NULL; | |
3540 | } | |
3541 | ||
3542 | ||
3543 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject *resultobj; | |
3545 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3546 | int result; | |
3547 | PyObject * obj0 = 0 ; | |
3548 | char *kwnames[] = { | |
3549 | (char *) "self", NULL | |
3550 | }; | |
3551 | ||
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | result = (int)(arg1)->GetHeight(); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
3561 | resultobj = PyInt_FromLong((long)result); | |
3562 | return resultobj; | |
3563 | fail: | |
3564 | return NULL; | |
3565 | } | |
3566 | ||
3567 | ||
3568 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject *resultobj; | |
3570 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3571 | int result; | |
3572 | PyObject * obj0 = 0 ; | |
3573 | char *kwnames[] = { | |
3574 | (char *) "self", NULL | |
3575 | }; | |
3576 | ||
3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3579 | { | |
3580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3581 | result = (int)(arg1)->GetDepth(); | |
3582 | ||
3583 | wxPyEndAllowThreads(__tstate); | |
3584 | if (PyErr_Occurred()) SWIG_fail; | |
3585 | } | |
3586 | resultobj = PyInt_FromLong((long)result); | |
3587 | return resultobj; | |
3588 | fail: | |
3589 | return NULL; | |
3590 | } | |
3591 | ||
3592 | ||
3593 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3594 | PyObject *resultobj; | |
3595 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3596 | int arg2 ; | |
3597 | PyObject * obj0 = 0 ; | |
3598 | char *kwnames[] = { | |
3599 | (char *) "self",(char *) "w", NULL | |
3600 | }; | |
3601 | ||
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3604 | { | |
3605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3606 | (arg1)->SetWidth(arg2); | |
3607 | ||
3608 | wxPyEndAllowThreads(__tstate); | |
3609 | if (PyErr_Occurred()) SWIG_fail; | |
3610 | } | |
3611 | Py_INCREF(Py_None); resultobj = Py_None; | |
3612 | return resultobj; | |
3613 | fail: | |
3614 | return NULL; | |
3615 | } | |
3616 | ||
3617 | ||
3618 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3619 | PyObject *resultobj; | |
3620 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3621 | int arg2 ; | |
3622 | PyObject * obj0 = 0 ; | |
3623 | char *kwnames[] = { | |
3624 | (char *) "self",(char *) "h", NULL | |
3625 | }; | |
3626 | ||
3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3629 | { | |
3630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3631 | (arg1)->SetHeight(arg2); | |
3632 | ||
3633 | wxPyEndAllowThreads(__tstate); | |
3634 | if (PyErr_Occurred()) SWIG_fail; | |
3635 | } | |
3636 | Py_INCREF(Py_None); resultobj = Py_None; | |
3637 | return resultobj; | |
3638 | fail: | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3646 | int arg2 ; | |
3647 | PyObject * obj0 = 0 ; | |
3648 | char *kwnames[] = { | |
3649 | (char *) "self",(char *) "d", NULL | |
3650 | }; | |
3651 | ||
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3654 | { | |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | (arg1)->SetDepth(arg2); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | Py_INCREF(Py_None); resultobj = Py_None; | |
3662 | return resultobj; | |
3663 | fail: | |
3664 | return NULL; | |
3665 | } | |
3666 | ||
3667 | ||
3668 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3669 | PyObject *resultobj; | |
3670 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3671 | wxSize *arg2 = 0 ; | |
3672 | wxSize temp2 ; | |
3673 | PyObject * obj0 = 0 ; | |
3674 | PyObject * obj1 = 0 ; | |
3675 | char *kwnames[] = { | |
3676 | (char *) "self",(char *) "size", NULL | |
3677 | }; | |
3678 | ||
3679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3681 | { | |
3682 | arg2 = &temp2; | |
3683 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3684 | } | |
3685 | { | |
3686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3687 | (arg1)->SetSize((wxSize const &)*arg2); | |
3688 | ||
3689 | wxPyEndAllowThreads(__tstate); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | } | |
3692 | Py_INCREF(Py_None); resultobj = Py_None; | |
3693 | return resultobj; | |
3694 | fail: | |
3695 | return NULL; | |
3696 | } | |
3697 | ||
3698 | ||
3699 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject *resultobj; | |
3701 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3702 | wxBitmap *arg2 = 0 ; | |
3703 | PyObject * obj0 = 0 ; | |
3704 | PyObject * obj1 = 0 ; | |
3705 | char *kwnames[] = { | |
3706 | (char *) "self",(char *) "bmp", NULL | |
3707 | }; | |
3708 | ||
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3712 | if (arg2 == NULL) { | |
3713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3714 | } | |
3715 | { | |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
3722 | Py_INCREF(Py_None); resultobj = Py_None; | |
3723 | return resultobj; | |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3730 | PyObject *obj; | |
3731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3732 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3733 | Py_INCREF(obj); | |
3734 | return Py_BuildValue((char *)""); | |
3735 | } | |
3736 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject *resultobj; | |
3738 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3739 | int arg2 = (int) 0 ; | |
3740 | wxIconLocation *result; | |
f775c30d | 3741 | bool temp1 = False ; |
d14a1e28 RD |
3742 | PyObject * obj0 = 0 ; |
3743 | char *kwnames[] = { | |
3744 | (char *) "filename",(char *) "num", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3748 | if (obj0) { | |
f775c30d RD |
3749 | { |
3750 | arg1 = wxString_in_helper(obj0); | |
3751 | if (arg1 == NULL) SWIG_fail; | |
3752 | temp1 = True; | |
3753 | } | |
d14a1e28 RD |
3754 | } |
3755 | { | |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
3762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
f775c30d RD |
3763 | { |
3764 | if (temp1) | |
3765 | delete arg1; | |
3766 | } | |
d14a1e28 RD |
3767 | return resultobj; |
3768 | fail: | |
f775c30d RD |
3769 | { |
3770 | if (temp1) | |
3771 | delete arg1; | |
3772 | } | |
d14a1e28 RD |
3773 | return NULL; |
3774 | } | |
3775 | ||
3776 | ||
3777 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3778 | PyObject *resultobj; | |
3779 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3780 | PyObject * obj0 = 0 ; | |
3781 | char *kwnames[] = { | |
3782 | (char *) "self", NULL | |
3783 | }; | |
3784 | ||
3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3787 | { | |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | delete arg1; | |
3790 | ||
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | Py_INCREF(Py_None); resultobj = Py_None; | |
3795 | return resultobj; | |
3796 | fail: | |
3797 | return NULL; | |
3798 | } | |
3799 | ||
3800 | ||
3801 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject *resultobj; | |
3803 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3804 | bool result; | |
3805 | PyObject * obj0 = 0 ; | |
3806 | char *kwnames[] = { | |
3807 | (char *) "self", NULL | |
3808 | }; | |
3809 | ||
3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | resultobj = PyInt_FromLong((long)result); | |
3820 | return resultobj; | |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
3826 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3827 | PyObject *resultobj; | |
3828 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3829 | wxString *arg2 = 0 ; | |
423f194a | 3830 | bool temp2 = False ; |
d14a1e28 RD |
3831 | PyObject * obj0 = 0 ; |
3832 | PyObject * obj1 = 0 ; | |
3833 | char *kwnames[] = { | |
3834 | (char *) "self",(char *) "filename", NULL | |
3835 | }; | |
3836 | ||
3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3839 | { | |
3840 | arg2 = wxString_in_helper(obj1); | |
3841 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3842 | temp2 = True; |
d14a1e28 RD |
3843 | } |
3844 | { | |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | (arg1)->SetFileName((wxString const &)*arg2); | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
3851 | Py_INCREF(Py_None); resultobj = Py_None; | |
3852 | { | |
3853 | if (temp2) | |
3854 | delete arg2; | |
3855 | } | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | { | |
3859 | if (temp2) | |
3860 | delete arg2; | |
3861 | } | |
3862 | return NULL; | |
3863 | } | |
3864 | ||
3865 | ||
3866 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3867 | PyObject *resultobj; | |
3868 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3869 | wxString *result; | |
3870 | PyObject * obj0 = 0 ; | |
3871 | char *kwnames[] = { | |
3872 | (char *) "self", NULL | |
3873 | }; | |
3874 | ||
3875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | { | |
3880 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3881 | result = (wxString *) &_result_ref; | |
3882 | } | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
3886 | } | |
f0983263 RD |
3887 | { |
3888 | #if wxUSE_UNICODE | |
3889 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3890 | #else | |
3891 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3892 | #endif | |
3893 | } | |
d14a1e28 RD |
3894 | return resultobj; |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3903 | int arg2 ; | |
3904 | PyObject * obj0 = 0 ; | |
3905 | char *kwnames[] = { | |
3906 | (char *) "self",(char *) "num", NULL | |
3907 | }; | |
3908 | ||
3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3911 | { | |
3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3913 | wxIconLocation_SetIndex(arg1,arg2); | |
3914 | ||
3915 | wxPyEndAllowThreads(__tstate); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
3917 | } | |
3918 | Py_INCREF(Py_None); resultobj = Py_None; | |
3919 | return resultobj; | |
3920 | fail: | |
3921 | return NULL; | |
3922 | } | |
3923 | ||
3924 | ||
3925 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject *resultobj; | |
3927 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3928 | int result; | |
3929 | PyObject * obj0 = 0 ; | |
3930 | char *kwnames[] = { | |
3931 | (char *) "self", NULL | |
3932 | }; | |
3933 | ||
3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3936 | { | |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3938 | result = (int)wxIconLocation_GetIndex(arg1); | |
3939 | ||
3940 | wxPyEndAllowThreads(__tstate); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | } | |
3943 | resultobj = PyInt_FromLong((long)result); | |
3944 | return resultobj; | |
3945 | fail: | |
3946 | return NULL; | |
3947 | } | |
3948 | ||
3949 | ||
3950 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3951 | PyObject *obj; | |
3952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3953 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3954 | Py_INCREF(obj); | |
3955 | return Py_BuildValue((char *)""); | |
3956 | } | |
3957 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject *resultobj; | |
3959 | wxIconBundle *result; | |
3960 | char *kwnames[] = { | |
3961 | NULL | |
3962 | }; | |
3963 | ||
3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3965 | { | |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | result = (wxIconBundle *)new wxIconBundle(); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
3971 | } | |
3972 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3973 | return resultobj; | |
3974 | fail: | |
3975 | return NULL; | |
3976 | } | |
3977 | ||
3978 | ||
3979 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3980 | PyObject *resultobj; | |
3981 | wxString *arg1 = 0 ; | |
3982 | long arg2 ; | |
3983 | wxIconBundle *result; | |
423f194a | 3984 | bool temp1 = False ; |
d14a1e28 RD |
3985 | PyObject * obj0 = 0 ; |
3986 | char *kwnames[] = { | |
3987 | (char *) "file",(char *) "type", NULL | |
3988 | }; | |
3989 | ||
3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3991 | { | |
3992 | arg1 = wxString_in_helper(obj0); | |
3993 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3994 | temp1 = True; |
d14a1e28 RD |
3995 | } |
3996 | { | |
3997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3998 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3999 | ||
4000 | wxPyEndAllowThreads(__tstate); | |
4001 | if (PyErr_Occurred()) SWIG_fail; | |
4002 | } | |
4003 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4004 | { | |
4005 | if (temp1) | |
4006 | delete arg1; | |
4007 | } | |
4008 | return resultobj; | |
4009 | fail: | |
4010 | { | |
4011 | if (temp1) | |
4012 | delete arg1; | |
4013 | } | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
4018 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4019 | PyObject *resultobj; | |
4020 | wxIcon *arg1 = 0 ; | |
4021 | wxIconBundle *result; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "icon", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4029 | if (arg1 == NULL) { | |
4030 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject *resultobj; | |
4048 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "self", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4056 | { | |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4058 | delete arg1; | |
4059 | ||
4060 | wxPyEndAllowThreads(__tstate); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | } | |
4063 | Py_INCREF(Py_None); resultobj = Py_None; | |
4064 | return resultobj; | |
4065 | fail: | |
4066 | return NULL; | |
4067 | } | |
4068 | ||
4069 | ||
4070 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4071 | PyObject *resultobj; | |
4072 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4073 | wxIcon *arg2 = 0 ; | |
4074 | PyObject * obj0 = 0 ; | |
4075 | PyObject * obj1 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self",(char *) "icon", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4082 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4083 | if (arg2 == NULL) { | |
4084 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4085 | } | |
4086 | { | |
4087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4088 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4089 | ||
4090 | wxPyEndAllowThreads(__tstate); | |
4091 | if (PyErr_Occurred()) SWIG_fail; | |
4092 | } | |
4093 | Py_INCREF(Py_None); resultobj = Py_None; | |
4094 | return resultobj; | |
4095 | fail: | |
4096 | return NULL; | |
4097 | } | |
4098 | ||
4099 | ||
4100 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4101 | PyObject *resultobj; | |
4102 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4103 | wxString *arg2 = 0 ; | |
4104 | long arg3 ; | |
423f194a | 4105 | bool temp2 = False ; |
d14a1e28 RD |
4106 | PyObject * obj0 = 0 ; |
4107 | PyObject * obj1 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4114 | { | |
4115 | arg2 = wxString_in_helper(obj1); | |
4116 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4117 | temp2 = True; |
d14a1e28 RD |
4118 | } |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4126 | Py_INCREF(Py_None); resultobj = Py_None; | |
4127 | { | |
4128 | if (temp2) | |
4129 | delete arg2; | |
4130 | } | |
4131 | return resultobj; | |
4132 | fail: | |
4133 | { | |
4134 | if (temp2) | |
4135 | delete arg2; | |
4136 | } | |
4137 | return NULL; | |
4138 | } | |
4139 | ||
4140 | ||
4141 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4142 | PyObject *resultobj; | |
4143 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4144 | wxSize *arg2 = 0 ; | |
4145 | wxIcon *result; | |
4146 | wxSize temp2 ; | |
4147 | PyObject * obj0 = 0 ; | |
4148 | PyObject * obj1 = 0 ; | |
4149 | char *kwnames[] = { | |
4150 | (char *) "self",(char *) "size", NULL | |
4151 | }; | |
4152 | ||
4153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4155 | { | |
4156 | arg2 = &temp2; | |
4157 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4158 | } | |
4159 | { | |
4160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4161 | { | |
4162 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4163 | result = (wxIcon *) &_result_ref; | |
4164 | } | |
4165 | ||
4166 | wxPyEndAllowThreads(__tstate); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | } | |
4169 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4170 | return resultobj; | |
4171 | fail: | |
4172 | return NULL; | |
4173 | } | |
4174 | ||
4175 | ||
4176 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4177 | PyObject *obj; | |
4178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4179 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4180 | Py_INCREF(obj); | |
4181 | return Py_BuildValue((char *)""); | |
4182 | } | |
4183 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | wxString *arg1 = (wxString *) 0 ; | |
4186 | long arg2 ; | |
4187 | int arg3 = (int) 0 ; | |
4188 | int arg4 = (int) 0 ; | |
4189 | wxCursor *result; | |
f775c30d | 4190 | bool temp1 = False ; |
d14a1e28 RD |
4191 | PyObject * obj0 = 0 ; |
4192 | char *kwnames[] = { | |
4193 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4194 | }; | |
4195 | ||
4196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
f775c30d RD |
4197 | { |
4198 | arg1 = wxString_in_helper(obj0); | |
4199 | if (arg1 == NULL) SWIG_fail; | |
4200 | temp1 = True; | |
4201 | } | |
d14a1e28 RD |
4202 | { |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4204 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4205 | ||
4206 | wxPyEndAllowThreads(__tstate); | |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
4209 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
f775c30d RD |
4210 | { |
4211 | if (temp1) | |
4212 | delete arg1; | |
4213 | } | |
d14a1e28 RD |
4214 | return resultobj; |
4215 | fail: | |
f775c30d RD |
4216 | { |
4217 | if (temp1) | |
4218 | delete arg1; | |
4219 | } | |
d14a1e28 RD |
4220 | return NULL; |
4221 | } | |
4222 | ||
4223 | ||
4224 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4225 | PyObject *resultobj; | |
4226 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4227 | PyObject * obj0 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4234 | { | |
4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4236 | delete arg1; | |
4237 | ||
4238 | wxPyEndAllowThreads(__tstate); | |
4239 | if (PyErr_Occurred()) SWIG_fail; | |
4240 | } | |
4241 | Py_INCREF(Py_None); resultobj = Py_None; | |
4242 | return resultobj; | |
4243 | fail: | |
4244 | return NULL; | |
4245 | } | |
4246 | ||
4247 | ||
4248 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4249 | PyObject *resultobj; | |
4250 | int arg1 ; | |
4251 | wxCursor *result; | |
4252 | char *kwnames[] = { | |
4253 | (char *) "id", NULL | |
4254 | }; | |
4255 | ||
4256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
4257 | { | |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | result = (wxCursor *)new wxCursor(arg1); | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
4264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
4271 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject *resultobj; | |
4273 | wxImage *arg1 = 0 ; | |
4274 | wxCursor *result; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | char *kwnames[] = { | |
4277 | (char *) "image", NULL | |
4278 | }; | |
4279 | ||
4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4282 | if (arg1 == NULL) { | |
4283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4284 | } | |
4285 | { | |
4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4287 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4288 | ||
4289 | wxPyEndAllowThreads(__tstate); | |
4290 | if (PyErr_Occurred()) SWIG_fail; | |
4291 | } | |
4292 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4293 | return resultobj; | |
4294 | fail: | |
4295 | return NULL; | |
4296 | } | |
4297 | ||
4298 | ||
4299 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject *resultobj; | |
4301 | PyObject *arg1 = (PyObject *) 0 ; | |
4302 | int arg2 ; | |
4303 | int arg3 ; | |
4304 | int arg4 = (int) -1 ; | |
4305 | int arg5 = (int) -1 ; | |
4306 | PyObject *arg6 = (PyObject *) 0 ; | |
4307 | wxCursor *result; | |
4308 | PyObject * obj0 = 0 ; | |
4309 | PyObject * obj5 = 0 ; | |
4310 | char *kwnames[] = { | |
4311 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4312 | }; | |
4313 | ||
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
4315 | arg1 = obj0; | |
4316 | if (obj5) { | |
4317 | arg6 = obj5; | |
4318 | } | |
4319 | { | |
4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4321 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4322 | ||
4323 | wxPyEndAllowThreads(__tstate); | |
4324 | if (PyErr_Occurred()) SWIG_fail; | |
4325 | } | |
4326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4327 | return resultobj; | |
4328 | fail: | |
4329 | return NULL; | |
4330 | } | |
4331 | ||
4332 | ||
4333 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4334 | PyObject *resultobj; | |
4335 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4336 | long result; | |
4337 | PyObject * obj0 = 0 ; | |
4338 | char *kwnames[] = { | |
4339 | (char *) "self", NULL | |
4340 | }; | |
4341 | ||
4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4344 | { | |
4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4346 | result = (long)(arg1)->GetHandle(); | |
4347 | ||
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | resultobj = PyInt_FromLong((long)result); | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj; | |
4360 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4361 | long arg2 ; | |
4362 | PyObject * obj0 = 0 ; | |
4363 | char *kwnames[] = { | |
4364 | (char *) "self",(char *) "handle", NULL | |
4365 | }; | |
4366 | ||
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
4368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | (arg1)->SetHandle(arg2); | |
4372 | ||
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
4376 | Py_INCREF(Py_None); resultobj = Py_None; | |
4377 | return resultobj; | |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj; | |
4385 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4386 | bool result; | |
4387 | PyObject * obj0 = 0 ; | |
4388 | char *kwnames[] = { | |
4389 | (char *) "self", NULL | |
4390 | }; | |
4391 | ||
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4394 | { | |
4395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4396 | result = (bool)(arg1)->Ok(); | |
4397 | ||
4398 | wxPyEndAllowThreads(__tstate); | |
4399 | if (PyErr_Occurred()) SWIG_fail; | |
4400 | } | |
4401 | resultobj = PyInt_FromLong((long)result); | |
4402 | return resultobj; | |
4403 | fail: | |
4404 | return NULL; | |
4405 | } | |
4406 | ||
4407 | ||
4408 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4409 | PyObject *resultobj; | |
4410 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4411 | int result; | |
4412 | PyObject * obj0 = 0 ; | |
4413 | char *kwnames[] = { | |
4414 | (char *) "self", NULL | |
4415 | }; | |
4416 | ||
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4419 | { | |
4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4421 | result = (int)(arg1)->GetWidth(); | |
4422 | ||
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = PyInt_FromLong((long)result); | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj; | |
4435 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4436 | int result; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | char *kwnames[] = { | |
4439 | (char *) "self", NULL | |
4440 | }; | |
4441 | ||
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | result = (int)(arg1)->GetHeight(); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | resultobj = PyInt_FromLong((long)result); | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
4455 | } | |
4456 | ||
4457 | ||
4458 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject *resultobj; | |
4460 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4461 | int result; | |
4462 | PyObject * obj0 = 0 ; | |
4463 | char *kwnames[] = { | |
4464 | (char *) "self", NULL | |
4465 | }; | |
4466 | ||
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | result = (int)(arg1)->GetDepth(); | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
4475 | } | |
4476 | resultobj = PyInt_FromLong((long)result); | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4484 | PyObject *resultobj; | |
4485 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4486 | int arg2 ; | |
4487 | PyObject * obj0 = 0 ; | |
4488 | char *kwnames[] = { | |
4489 | (char *) "self",(char *) "w", NULL | |
4490 | }; | |
4491 | ||
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
4493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4494 | { | |
4495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4496 | (arg1)->SetWidth(arg2); | |
4497 | ||
4498 | wxPyEndAllowThreads(__tstate); | |
4499 | if (PyErr_Occurred()) SWIG_fail; | |
4500 | } | |
4501 | Py_INCREF(Py_None); resultobj = Py_None; | |
4502 | return resultobj; | |
4503 | fail: | |
4504 | return NULL; | |
4505 | } | |
4506 | ||
4507 | ||
4508 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject *resultobj; | |
4510 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4511 | int arg2 ; | |
4512 | PyObject * obj0 = 0 ; | |
4513 | char *kwnames[] = { | |
4514 | (char *) "self",(char *) "h", NULL | |
4515 | }; | |
4516 | ||
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
4518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | (arg1)->SetHeight(arg2); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | Py_INCREF(Py_None); resultobj = Py_None; | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
4533 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4534 | PyObject *resultobj; | |
4535 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4536 | int arg2 ; | |
4537 | PyObject * obj0 = 0 ; | |
4538 | char *kwnames[] = { | |
4539 | (char *) "self",(char *) "d", NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
4543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | (arg1)->SetDepth(arg2); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
4551 | Py_INCREF(Py_None); resultobj = Py_None; | |
4552 | return resultobj; | |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
4558 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject *resultobj; | |
4560 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4561 | wxSize *arg2 = 0 ; | |
4562 | wxSize temp2 ; | |
4563 | PyObject * obj0 = 0 ; | |
4564 | PyObject * obj1 = 0 ; | |
4565 | char *kwnames[] = { | |
4566 | (char *) "self",(char *) "size", NULL | |
4567 | }; | |
4568 | ||
4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4571 | { | |
4572 | arg2 = &temp2; | |
4573 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4574 | } | |
4575 | { | |
4576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4577 | (arg1)->SetSize((wxSize const &)*arg2); | |
4578 | ||
4579 | wxPyEndAllowThreads(__tstate); | |
4580 | if (PyErr_Occurred()) SWIG_fail; | |
4581 | } | |
4582 | Py_INCREF(Py_None); resultobj = Py_None; | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
4589 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4590 | PyObject *obj; | |
4591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4592 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4593 | Py_INCREF(obj); | |
4594 | return Py_BuildValue((char *)""); | |
4595 | } | |
4596 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
423f194a RD |
4598 | int arg1 = (int) 0 ; |
4599 | int arg2 = (int) 0 ; | |
4600 | int arg3 = (int) 0 ; | |
4601 | int arg4 = (int) 0 ; | |
d14a1e28 RD |
4602 | wxRegion *result; |
4603 | char *kwnames[] = { | |
4604 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
4608 | { | |
4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4610 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4611 | ||
4612 | wxPyEndAllowThreads(__tstate); | |
4613 | if (PyErr_Occurred()) SWIG_fail; | |
4614 | } | |
4615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4616 | return resultobj; | |
4617 | fail: | |
4618 | return NULL; | |
4619 | } | |
4620 | ||
4621 | ||
4622 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4623 | PyObject *resultobj; | |
4624 | wxBitmap *arg1 = 0 ; | |
4625 | wxColour const &arg2_defvalue = wxNullColour ; | |
4626 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4627 | int arg3 = (int) 0 ; | |
4628 | wxRegion *result; | |
4629 | wxColour temp2 ; | |
4630 | PyObject * obj0 = 0 ; | |
4631 | PyObject * obj1 = 0 ; | |
4632 | char *kwnames[] = { | |
4633 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4634 | }; | |
4635 | ||
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4638 | if (arg1 == NULL) { | |
4639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4640 | } | |
4641 | if (obj1) { | |
4642 | { | |
4643 | arg2 = &temp2; | |
4644 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4645 | } | |
4646 | } | |
4647 | { | |
4648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4649 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4650 | ||
4651 | wxPyEndAllowThreads(__tstate); | |
4652 | if (PyErr_Occurred()) SWIG_fail; | |
4653 | } | |
4654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4655 | return resultobj; | |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
4661 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject *resultobj; | |
4663 | int arg1 ; | |
4664 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4665 | int arg3 = (int) wxWINDING_RULE ; | |
4666 | wxRegion *result; | |
4667 | PyObject * obj0 = 0 ; | |
4668 | char *kwnames[] = { | |
4669 | (char *) "points",(char *) "fillStyle", NULL | |
4670 | }; | |
4671 | ||
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
4673 | { | |
4674 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4675 | if (arg2 == NULL) SWIG_fail; | |
4676 | } | |
4677 | { | |
4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4679 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4680 | ||
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
4684 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4685 | { | |
4686 | if (arg2) delete [] arg2; | |
4687 | } | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | { | |
4691 | if (arg2) delete [] arg2; | |
4692 | } | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
4697 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject *resultobj; | |
4699 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4700 | PyObject * obj0 = 0 ; | |
4701 | char *kwnames[] = { | |
4702 | (char *) "self", NULL | |
4703 | }; | |
4704 | ||
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4707 | { | |
4708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4709 | delete arg1; | |
4710 | ||
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | Py_INCREF(Py_None); resultobj = Py_None; | |
4715 | return resultobj; | |
4716 | fail: | |
4717 | return NULL; | |
4718 | } | |
4719 | ||
4720 | ||
4721 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4722 | PyObject *resultobj; | |
4723 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4724 | PyObject * obj0 = 0 ; | |
4725 | char *kwnames[] = { | |
4726 | (char *) "self", NULL | |
4727 | }; | |
4728 | ||
4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4731 | { | |
4732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4733 | (arg1)->Clear(); | |
4734 | ||
4735 | wxPyEndAllowThreads(__tstate); | |
4736 | if (PyErr_Occurred()) SWIG_fail; | |
4737 | } | |
4738 | Py_INCREF(Py_None); resultobj = Py_None; | |
4739 | return resultobj; | |
4740 | fail: | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
4745 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4746 | PyObject *resultobj; | |
4747 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4748 | int arg2 ; |
4749 | int arg3 ; | |
d14a1e28 RD |
4750 | bool result; |
4751 | PyObject * obj0 = 0 ; | |
4752 | char *kwnames[] = { | |
4753 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4754 | }; | |
4755 | ||
4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | resultobj = PyInt_FromLong((long)result); | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
4772 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj; | |
4774 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4775 | int arg2 ; |
4776 | int arg3 ; | |
d14a1e28 RD |
4777 | int result; |
4778 | PyObject * obj0 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4781 | }; | |
4782 | ||
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4785 | { | |
4786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4787 | result = (int)(arg1)->Contains(arg2,arg3); | |
4788 | ||
4789 | wxPyEndAllowThreads(__tstate); | |
4790 | if (PyErr_Occurred()) SWIG_fail; | |
4791 | } | |
4792 | resultobj = PyInt_FromLong((long)result); | |
4793 | return resultobj; | |
4794 | fail: | |
4795 | return NULL; | |
4796 | } | |
4797 | ||
4798 | ||
4799 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4800 | PyObject *resultobj; | |
4801 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4802 | wxPoint *arg2 = 0 ; | |
4803 | int result; | |
4804 | wxPoint temp2 ; | |
4805 | PyObject * obj0 = 0 ; | |
4806 | PyObject * obj1 = 0 ; | |
4807 | char *kwnames[] = { | |
4808 | (char *) "self",(char *) "pt", NULL | |
4809 | }; | |
4810 | ||
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4813 | { | |
4814 | arg2 = &temp2; | |
4815 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4816 | } | |
4817 | { | |
4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4819 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4820 | ||
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | resultobj = PyInt_FromLong((long)result); | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
4831 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject *resultobj; | |
4833 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4834 | wxRect *arg2 = 0 ; | |
4835 | int result; | |
4836 | wxRect temp2 ; | |
4837 | PyObject * obj0 = 0 ; | |
4838 | PyObject * obj1 = 0 ; | |
4839 | char *kwnames[] = { | |
4840 | (char *) "self",(char *) "rect", NULL | |
4841 | }; | |
4842 | ||
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4845 | { | |
4846 | arg2 = &temp2; | |
4847 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4848 | } | |
4849 | { | |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4852 | ||
4853 | wxPyEndAllowThreads(__tstate); | |
4854 | if (PyErr_Occurred()) SWIG_fail; | |
4855 | } | |
4856 | resultobj = PyInt_FromLong((long)result); | |
4857 | return resultobj; | |
4858 | fail: | |
4859 | return NULL; | |
4860 | } | |
4861 | ||
4862 | ||
4863 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject *resultobj; | |
4865 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4866 | int arg2 ; |
4867 | int arg3 ; | |
4868 | int arg4 ; | |
4869 | int arg5 ; | |
d14a1e28 RD |
4870 | int result; |
4871 | PyObject * obj0 = 0 ; | |
4872 | char *kwnames[] = { | |
4873 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4874 | }; | |
4875 | ||
4876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4878 | { | |
4879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4880 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4881 | ||
4882 | wxPyEndAllowThreads(__tstate); | |
4883 | if (PyErr_Occurred()) SWIG_fail; | |
4884 | } | |
4885 | resultobj = PyInt_FromLong((long)result); | |
4886 | return resultobj; | |
4887 | fail: | |
4888 | return NULL; | |
4889 | } | |
4890 | ||
4891 | ||
4892 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4893 | PyObject *resultobj; | |
4894 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4895 | wxRect result; | |
4896 | PyObject * obj0 = 0 ; | |
4897 | char *kwnames[] = { | |
4898 | (char *) "self", NULL | |
4899 | }; | |
4900 | ||
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | result = (arg1)->GetBox(); | |
4906 | ||
4907 | wxPyEndAllowThreads(__tstate); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
4910 | { | |
4911 | wxRect * resultptr; | |
4912 | resultptr = new wxRect((wxRect &) result); | |
4913 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4914 | } | |
4915 | return resultobj; | |
4916 | fail: | |
4917 | return NULL; | |
4918 | } | |
4919 | ||
4920 | ||
4921 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4922 | PyObject *resultobj; | |
4923 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4924 | int arg2 ; |
4925 | int arg3 ; | |
4926 | int arg4 ; | |
4927 | int arg5 ; | |
d14a1e28 RD |
4928 | bool result; |
4929 | PyObject * obj0 = 0 ; | |
4930 | char *kwnames[] = { | |
4931 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4932 | }; | |
4933 | ||
4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4936 | { | |
4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4938 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4939 | ||
4940 | wxPyEndAllowThreads(__tstate); | |
4941 | if (PyErr_Occurred()) SWIG_fail; | |
4942 | } | |
4943 | resultobj = PyInt_FromLong((long)result); | |
4944 | return resultobj; | |
4945 | fail: | |
4946 | return NULL; | |
4947 | } | |
4948 | ||
4949 | ||
4950 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject *resultobj; | |
4952 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4953 | wxRect *arg2 = 0 ; | |
4954 | bool result; | |
4955 | wxRect temp2 ; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | PyObject * obj1 = 0 ; | |
4958 | char *kwnames[] = { | |
4959 | (char *) "self",(char *) "rect", NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4964 | { | |
4965 | arg2 = &temp2; | |
4966 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4967 | } | |
4968 | { | |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
4975 | resultobj = PyInt_FromLong((long)result); | |
4976 | return resultobj; | |
4977 | fail: | |
4978 | return NULL; | |
4979 | } | |
4980 | ||
4981 | ||
4982 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4983 | PyObject *resultobj; | |
4984 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4985 | wxRegion *arg2 = 0 ; | |
4986 | bool result; | |
4987 | PyObject * obj0 = 0 ; | |
4988 | PyObject * obj1 = 0 ; | |
4989 | char *kwnames[] = { | |
4990 | (char *) "self",(char *) "region", NULL | |
4991 | }; | |
4992 | ||
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4995 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4996 | if (arg2 == NULL) { | |
4997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4998 | } | |
4999 | { | |
5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5001 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5002 | ||
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | resultobj = PyInt_FromLong((long)result); | |
5007 | return resultobj; | |
5008 | fail: | |
5009 | return NULL; | |
5010 | } | |
5011 | ||
5012 | ||
5013 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5014 | PyObject *resultobj; | |
5015 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5016 | bool result; | |
5017 | PyObject * obj0 = 0 ; | |
5018 | char *kwnames[] = { | |
5019 | (char *) "self", NULL | |
5020 | }; | |
5021 | ||
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5024 | { | |
5025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5026 | result = (bool)(arg1)->IsEmpty(); | |
5027 | ||
5028 | wxPyEndAllowThreads(__tstate); | |
5029 | if (PyErr_Occurred()) SWIG_fail; | |
5030 | } | |
5031 | resultobj = PyInt_FromLong((long)result); | |
5032 | return resultobj; | |
5033 | fail: | |
5034 | return NULL; | |
5035 | } | |
5036 | ||
5037 | ||
5038 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5039 | PyObject *resultobj; | |
5040 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5041 | int arg2 ; |
5042 | int arg3 ; | |
5043 | int arg4 ; | |
5044 | int arg5 ; | |
d14a1e28 RD |
5045 | bool result; |
5046 | PyObject * obj0 = 0 ; | |
5047 | char *kwnames[] = { | |
5048 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5049 | }; | |
5050 | ||
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
5052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5053 | { | |
5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5055 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5056 | ||
5057 | wxPyEndAllowThreads(__tstate); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
5060 | resultobj = PyInt_FromLong((long)result); | |
5061 | return resultobj; | |
5062 | fail: | |
5063 | return NULL; | |
5064 | } | |
5065 | ||
5066 | ||
5067 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject *resultobj; | |
5069 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5070 | wxRect *arg2 = 0 ; | |
5071 | bool result; | |
5072 | wxRect temp2 ; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | PyObject * obj1 = 0 ; | |
5075 | char *kwnames[] = { | |
5076 | (char *) "self",(char *) "rect", NULL | |
5077 | }; | |
5078 | ||
5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5081 | { | |
5082 | arg2 = &temp2; | |
5083 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5084 | } | |
5085 | { | |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | resultobj = PyInt_FromLong((long)result); | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5102 | wxRegion *arg2 = 0 ; | |
5103 | bool result; | |
5104 | PyObject * obj0 = 0 ; | |
5105 | PyObject * obj1 = 0 ; | |
5106 | char *kwnames[] = { | |
5107 | (char *) "self",(char *) "region", NULL | |
5108 | }; | |
5109 | ||
5110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5113 | if (arg2 == NULL) { | |
5114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5115 | } | |
5116 | { | |
5117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5118 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5119 | ||
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
5123 | resultobj = PyInt_FromLong((long)result); | |
5124 | return resultobj; | |
5125 | fail: | |
5126 | return NULL; | |
5127 | } | |
5128 | ||
5129 | ||
5130 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5131 | PyObject *resultobj; | |
5132 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5133 | int arg2 ; |
5134 | int arg3 ; | |
5135 | int arg4 ; | |
5136 | int arg5 ; | |
d14a1e28 RD |
5137 | bool result; |
5138 | PyObject * obj0 = 0 ; | |
5139 | char *kwnames[] = { | |
5140 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5141 | }; | |
5142 | ||
5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
5144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5145 | { | |
5146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5147 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5148 | ||
5149 | wxPyEndAllowThreads(__tstate); | |
5150 | if (PyErr_Occurred()) SWIG_fail; | |
5151 | } | |
5152 | resultobj = PyInt_FromLong((long)result); | |
5153 | return resultobj; | |
5154 | fail: | |
5155 | return NULL; | |
5156 | } | |
5157 | ||
5158 | ||
5159 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5160 | PyObject *resultobj; | |
5161 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5162 | wxRect *arg2 = 0 ; | |
5163 | bool result; | |
5164 | wxRect temp2 ; | |
5165 | PyObject * obj0 = 0 ; | |
5166 | PyObject * obj1 = 0 ; | |
5167 | char *kwnames[] = { | |
5168 | (char *) "self",(char *) "rect", NULL | |
5169 | }; | |
5170 | ||
5171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5173 | { | |
5174 | arg2 = &temp2; | |
5175 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5176 | } | |
5177 | { | |
5178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5179 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5180 | ||
5181 | wxPyEndAllowThreads(__tstate); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | resultobj = PyInt_FromLong((long)result); | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | return NULL; | |
5188 | } | |
5189 | ||
5190 | ||
5191 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject *resultobj; | |
5193 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5194 | wxRegion *arg2 = 0 ; | |
5195 | bool result; | |
5196 | PyObject * obj0 = 0 ; | |
5197 | PyObject * obj1 = 0 ; | |
5198 | char *kwnames[] = { | |
5199 | (char *) "self",(char *) "region", NULL | |
5200 | }; | |
5201 | ||
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5204 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5205 | if (arg2 == NULL) { | |
5206 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5207 | } | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
5215 | resultobj = PyInt_FromLong((long)result); | |
5216 | return resultobj; | |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5222 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5225 | int arg2 ; |
5226 | int arg3 ; | |
5227 | int arg4 ; | |
5228 | int arg5 ; | |
d14a1e28 RD |
5229 | bool result; |
5230 | PyObject * obj0 = 0 ; | |
5231 | char *kwnames[] = { | |
5232 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5233 | }; | |
5234 | ||
5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
5236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5237 | { | |
5238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5239 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | resultobj = PyInt_FromLong((long)result); | |
5245 | return resultobj; | |
5246 | fail: | |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject *resultobj; | |
5253 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5254 | wxRect *arg2 = 0 ; | |
5255 | bool result; | |
5256 | wxRect temp2 ; | |
5257 | PyObject * obj0 = 0 ; | |
5258 | PyObject * obj1 = 0 ; | |
5259 | char *kwnames[] = { | |
5260 | (char *) "self",(char *) "rect", NULL | |
5261 | }; | |
5262 | ||
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5265 | { | |
5266 | arg2 = &temp2; | |
5267 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5268 | } | |
5269 | { | |
5270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5271 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5272 | ||
5273 | wxPyEndAllowThreads(__tstate); | |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
5275 | } | |
5276 | resultobj = PyInt_FromLong((long)result); | |
5277 | return resultobj; | |
5278 | fail: | |
5279 | return NULL; | |
5280 | } | |
5281 | ||
5282 | ||
5283 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject *resultobj; | |
5285 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5286 | wxRegion *arg2 = 0 ; | |
5287 | bool result; | |
5288 | PyObject * obj0 = 0 ; | |
5289 | PyObject * obj1 = 0 ; | |
5290 | char *kwnames[] = { | |
5291 | (char *) "self",(char *) "region", NULL | |
5292 | }; | |
5293 | ||
5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5296 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5297 | if (arg2 == NULL) { | |
5298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5299 | } | |
5300 | { | |
5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5302 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5303 | ||
5304 | wxPyEndAllowThreads(__tstate); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | } | |
5307 | resultobj = PyInt_FromLong((long)result); | |
5308 | return resultobj; | |
5309 | fail: | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
5314 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject *resultobj; | |
5316 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5317 | SwigValueWrapper< wxBitmap > result; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | char *kwnames[] = { | |
5320 | (char *) "self", NULL | |
5321 | }; | |
5322 | ||
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5325 | { | |
5326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5327 | result = (arg1)->ConvertToBitmap(); | |
5328 | ||
5329 | wxPyEndAllowThreads(__tstate); | |
5330 | if (PyErr_Occurred()) SWIG_fail; | |
5331 | } | |
5332 | { | |
5333 | wxBitmap * resultptr; | |
5334 | resultptr = new wxBitmap((wxBitmap &) result); | |
5335 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5336 | } | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
5340 | } | |
5341 | ||
5342 | ||
5343 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj; | |
5345 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5346 | wxBitmap *arg2 = 0 ; | |
5347 | wxColour const &arg3_defvalue = wxNullColour ; | |
5348 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5349 | int arg4 = (int) 0 ; | |
5350 | bool result; | |
5351 | wxColour temp3 ; | |
5352 | PyObject * obj0 = 0 ; | |
5353 | PyObject * obj1 = 0 ; | |
5354 | PyObject * obj2 = 0 ; | |
5355 | char *kwnames[] = { | |
5356 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5357 | }; | |
5358 | ||
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5361 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5362 | if (arg2 == NULL) { | |
5363 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5364 | } | |
5365 | if (obj2) { | |
5366 | { | |
5367 | arg3 = &temp3; | |
5368 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5369 | } | |
5370 | } | |
5371 | { | |
5372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5373 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5374 | ||
5375 | wxPyEndAllowThreads(__tstate); | |
5376 | if (PyErr_Occurred()) SWIG_fail; | |
5377 | } | |
5378 | resultobj = PyInt_FromLong((long)result); | |
5379 | return resultobj; | |
5380 | fail: | |
5381 | return NULL; | |
5382 | } | |
5383 | ||
5384 | ||
5385 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5386 | PyObject *obj; | |
5387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5388 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5389 | Py_INCREF(obj); | |
5390 | return Py_BuildValue((char *)""); | |
5391 | } | |
5392 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5393 | PyObject *resultobj; | |
5394 | wxRegion *arg1 = 0 ; | |
5395 | wxRegionIterator *result; | |
5396 | PyObject * obj0 = 0 ; | |
5397 | char *kwnames[] = { | |
5398 | (char *) "region", NULL | |
5399 | }; | |
5400 | ||
5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5403 | if (arg1 == NULL) { | |
5404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5405 | } | |
5406 | { | |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5409 | ||
5410 | wxPyEndAllowThreads(__tstate); | |
5411 | if (PyErr_Occurred()) SWIG_fail; | |
5412 | } | |
5413 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5414 | return resultobj; | |
5415 | fail: | |
5416 | return NULL; | |
5417 | } | |
5418 | ||
5419 | ||
5420 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5421 | PyObject *resultobj; | |
5422 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | char *kwnames[] = { | |
5425 | (char *) "self", NULL | |
5426 | }; | |
5427 | ||
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5430 | { | |
5431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5432 | delete arg1; | |
5433 | ||
5434 | wxPyEndAllowThreads(__tstate); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | } | |
5437 | Py_INCREF(Py_None); resultobj = Py_None; | |
5438 | return resultobj; | |
5439 | fail: | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
5444 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject *resultobj; | |
5446 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5447 | int result; |
d14a1e28 RD |
5448 | PyObject * obj0 = 0 ; |
5449 | char *kwnames[] = { | |
5450 | (char *) "self", NULL | |
5451 | }; | |
5452 | ||
5453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5457 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5458 | |
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
5462 | resultobj = PyInt_FromLong((long)result); | |
5463 | return resultobj; | |
5464 | fail: | |
5465 | return NULL; | |
5466 | } | |
5467 | ||
5468 | ||
5469 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5470 | PyObject *resultobj; | |
5471 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5472 | int result; |
d14a1e28 RD |
5473 | PyObject * obj0 = 0 ; |
5474 | char *kwnames[] = { | |
5475 | (char *) "self", NULL | |
5476 | }; | |
5477 | ||
5478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5480 | { | |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5482 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5483 | |
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | resultobj = PyInt_FromLong((long)result); | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5497 | int result; |
d14a1e28 RD |
5498 | PyObject * obj0 = 0 ; |
5499 | char *kwnames[] = { | |
5500 | (char *) "self", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5507 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5508 | |
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | resultobj = PyInt_FromLong((long)result); | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5522 | int result; |
d14a1e28 RD |
5523 | PyObject * obj0 = 0 ; |
5524 | char *kwnames[] = { | |
5525 | (char *) "self", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5530 | { | |
5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5532 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5533 | |
5534 | wxPyEndAllowThreads(__tstate); | |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
5536 | } | |
5537 | resultobj = PyInt_FromLong((long)result); | |
5538 | return resultobj; | |
5539 | fail: | |
5540 | return NULL; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5545 | PyObject *resultobj; | |
5546 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5547 | int result; |
d14a1e28 RD |
5548 | PyObject * obj0 = 0 ; |
5549 | char *kwnames[] = { | |
5550 | (char *) "self", NULL | |
5551 | }; | |
5552 | ||
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5555 | { | |
5556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5557 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5558 | |
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
5562 | resultobj = PyInt_FromLong((long)result); | |
5563 | return resultobj; | |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
5569 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj; | |
5571 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5572 | int result; |
d14a1e28 RD |
5573 | PyObject * obj0 = 0 ; |
5574 | char *kwnames[] = { | |
5575 | (char *) "self", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5582 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5583 | |
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
5587 | resultobj = PyInt_FromLong((long)result); | |
5588 | return resultobj; | |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
5594 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5597 | wxRect result; | |
5598 | PyObject * obj0 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5605 | { | |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | result = (arg1)->GetRect(); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | { | |
5613 | wxRect * resultptr; | |
5614 | resultptr = new wxRect((wxRect &) result); | |
5615 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5616 | } | |
5617 | return resultobj; | |
5618 | fail: | |
5619 | return NULL; | |
5620 | } | |
5621 | ||
5622 | ||
5623 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5624 | PyObject *resultobj; | |
5625 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5626 | bool result; | |
5627 | PyObject * obj0 = 0 ; | |
5628 | char *kwnames[] = { | |
5629 | (char *) "self", NULL | |
5630 | }; | |
5631 | ||
5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | result = (bool)(arg1)->HaveRects(); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | resultobj = PyInt_FromLong((long)result); | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj; | |
5650 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5651 | PyObject * obj0 = 0 ; | |
5652 | char *kwnames[] = { | |
5653 | (char *) "self", NULL | |
5654 | }; | |
5655 | ||
5656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5658 | { | |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5660 | (arg1)->Reset(); | |
5661 | ||
5662 | wxPyEndAllowThreads(__tstate); | |
5663 | if (PyErr_Occurred()) SWIG_fail; | |
5664 | } | |
5665 | Py_INCREF(Py_None); resultobj = Py_None; | |
5666 | return resultobj; | |
5667 | fail: | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
5672 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject *resultobj; | |
5674 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5675 | PyObject * obj0 = 0 ; | |
5676 | char *kwnames[] = { | |
5677 | (char *) "self", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | { | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | wxRegionIterator_Next(arg1); | |
5685 | ||
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
5689 | Py_INCREF(Py_None); resultobj = Py_None; | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5699 | bool result; | |
5700 | PyObject * obj0 = 0 ; | |
5701 | char *kwnames[] = { | |
5702 | (char *) "self", NULL | |
5703 | }; | |
5704 | ||
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | resultobj = PyInt_FromLong((long)result); | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5722 | PyObject *obj; | |
5723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5724 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5725 | Py_INCREF(obj); | |
5726 | return Py_BuildValue((char *)""); | |
5727 | } | |
5728 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxNativeFontInfo *result; | |
5731 | char *kwnames[] = { | |
5732 | NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5736 | { | |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5739 | ||
5740 | wxPyEndAllowThreads(__tstate); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
5743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj; | |
5752 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5753 | PyObject * obj0 = 0 ; | |
5754 | char *kwnames[] = { | |
5755 | (char *) "self", NULL | |
5756 | }; | |
5757 | ||
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5760 | { | |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5762 | delete arg1; | |
5763 | ||
5764 | wxPyEndAllowThreads(__tstate); | |
5765 | if (PyErr_Occurred()) SWIG_fail; | |
5766 | } | |
5767 | Py_INCREF(Py_None); resultobj = Py_None; | |
5768 | return resultobj; | |
5769 | fail: | |
5770 | return NULL; | |
5771 | } | |
5772 | ||
5773 | ||
5774 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5775 | PyObject *resultobj; | |
5776 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5777 | PyObject * obj0 = 0 ; | |
5778 | char *kwnames[] = { | |
5779 | (char *) "self", NULL | |
5780 | }; | |
5781 | ||
5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | (arg1)->Init(); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
5791 | Py_INCREF(Py_None); resultobj = Py_None; | |
5792 | return resultobj; | |
5793 | fail: | |
5794 | return NULL; | |
5795 | } | |
5796 | ||
5797 | ||
5798 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5799 | PyObject *resultobj; | |
5800 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5801 | wxFont *arg2 = 0 ; | |
5802 | PyObject * obj0 = 0 ; | |
5803 | PyObject * obj1 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "self",(char *) "font", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5811 | if (arg2 == NULL) { | |
5812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5813 | } | |
5814 | { | |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5817 | ||
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
5821 | Py_INCREF(Py_None); resultobj = Py_None; | |
5822 | return resultobj; | |
5823 | fail: | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj; | |
5830 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5831 | int result; | |
5832 | PyObject * obj0 = 0 ; | |
5833 | char *kwnames[] = { | |
5834 | (char *) "self", NULL | |
5835 | }; | |
5836 | ||
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5839 | { | |
5840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5841 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5842 | ||
5843 | wxPyEndAllowThreads(__tstate); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | resultobj = PyInt_FromLong((long)result); | |
5847 | return resultobj; | |
5848 | fail: | |
5849 | return NULL; | |
5850 | } | |
5851 | ||
5852 | ||
5853 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5854 | PyObject *resultobj; | |
5855 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5856 | int result; | |
5857 | PyObject * obj0 = 0 ; | |
5858 | char *kwnames[] = { | |
5859 | (char *) "self", NULL | |
5860 | }; | |
5861 | ||
5862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5864 | { | |
5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5866 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5867 | ||
5868 | wxPyEndAllowThreads(__tstate); | |
5869 | if (PyErr_Occurred()) SWIG_fail; | |
5870 | } | |
5871 | resultobj = PyInt_FromLong((long)result); | |
5872 | return resultobj; | |
5873 | fail: | |
5874 | return NULL; | |
5875 | } | |
5876 | ||
5877 | ||
5878 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5879 | PyObject *resultobj; | |
5880 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5881 | int result; | |
5882 | PyObject * obj0 = 0 ; | |
5883 | char *kwnames[] = { | |
5884 | (char *) "self", NULL | |
5885 | }; | |
5886 | ||
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
5896 | resultobj = PyInt_FromLong((long)result); | |
5897 | return resultobj; | |
5898 | fail: | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
5903 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5904 | PyObject *resultobj; | |
5905 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5906 | bool result; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self", NULL | |
5910 | }; | |
5911 | ||
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | resultobj = PyInt_FromLong((long)result); | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
5928 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5929 | PyObject *resultobj; | |
5930 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5931 | wxString result; | |
5932 | PyObject * obj0 = 0 ; | |
5933 | char *kwnames[] = { | |
5934 | (char *) "self", NULL | |
5935 | }; | |
5936 | ||
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5939 | { | |
5940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5941 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5942 | ||
5943 | wxPyEndAllowThreads(__tstate); | |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
5945 | } | |
5946 | { | |
5947 | #if wxUSE_UNICODE | |
5948 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5949 | #else | |
5950 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5951 | #endif | |
5952 | } | |
5953 | return resultobj; | |
5954 | fail: | |
5955 | return NULL; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject *resultobj; | |
5961 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5962 | int result; | |
5963 | PyObject * obj0 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5970 | { | |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5973 | ||
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
5977 | resultobj = PyInt_FromLong((long)result); | |
5978 | return resultobj; | |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
5984 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5985 | PyObject *resultobj; | |
5986 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5987 | int result; | |
5988 | PyObject * obj0 = 0 ; | |
5989 | char *kwnames[] = { | |
5990 | (char *) "self", NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5995 | { | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | resultobj = PyInt_FromLong((long)result); | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj; | |
6011 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6012 | int arg2 ; | |
6013 | PyObject * obj0 = 0 ; | |
6014 | char *kwnames[] = { | |
6015 | (char *) "self",(char *) "pointsize", NULL | |
6016 | }; | |
6017 | ||
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
6019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | (arg1)->SetPointSize(arg2); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | Py_INCREF(Py_None); resultobj = Py_None; | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6037 | int arg2 ; | |
6038 | PyObject * obj0 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self",(char *) "style", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
6044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6062 | int arg2 ; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self",(char *) "weight", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6070 | { | |
6071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6072 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
6076 | } | |
6077 | Py_INCREF(Py_None); resultobj = Py_None; | |
6078 | return resultobj; | |
6079 | fail: | |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
6084 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6087 | bool arg2 ; | |
6088 | PyObject * obj0 = 0 ; | |
6089 | PyObject * obj1 = 0 ; | |
6090 | char *kwnames[] = { | |
6091 | (char *) "self",(char *) "underlined", NULL | |
6092 | }; | |
6093 | ||
6094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
6096 | { |
6097 | arg2 = (bool) SPyObj_AsBool(obj1); | |
6098 | if (PyErr_Occurred()) SWIG_fail; | |
6099 | } | |
d14a1e28 RD |
6100 | { |
6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6102 | (arg1)->SetUnderlined(arg2); | |
6103 | ||
6104 | wxPyEndAllowThreads(__tstate); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
6107 | Py_INCREF(Py_None); resultobj = Py_None; | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject *resultobj; | |
6116 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6117 | wxString arg2 ; | |
d14a1e28 RD |
6118 | PyObject * obj0 = 0 ; |
6119 | PyObject * obj1 = 0 ; | |
6120 | char *kwnames[] = { | |
6121 | (char *) "self",(char *) "facename", NULL | |
6122 | }; | |
6123 | ||
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
6126 | { |
6127 | wxString* sptr = wxString_in_helper(obj1); | |
6128 | if (sptr == NULL) SWIG_fail; | |
6129 | arg2 = *sptr; | |
6130 | delete sptr; | |
6131 | } | |
d14a1e28 RD |
6132 | { |
6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6134 | (arg1)->SetFaceName(arg2); | |
6135 | ||
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | Py_INCREF(Py_None); resultobj = Py_None; | |
6140 | return resultobj; | |
6141 | fail: | |
6142 | return NULL; | |
6143 | } | |
6144 | ||
6145 | ||
6146 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject *resultobj; | |
6148 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6149 | int arg2 ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | char *kwnames[] = { | |
6152 | (char *) "self",(char *) "family", NULL | |
6153 | }; | |
6154 | ||
6155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
6156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6157 | { | |
6158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6159 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6160 | ||
6161 | wxPyEndAllowThreads(__tstate); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | } | |
6164 | Py_INCREF(Py_None); resultobj = Py_None; | |
6165 | return resultobj; | |
6166 | fail: | |
6167 | return NULL; | |
6168 | } | |
6169 | ||
6170 | ||
6171 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6172 | PyObject *resultobj; | |
6173 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6174 | int arg2 ; | |
6175 | PyObject * obj0 = 0 ; | |
6176 | char *kwnames[] = { | |
6177 | (char *) "self",(char *) "encoding", NULL | |
6178 | }; | |
6179 | ||
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
6181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6184 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6185 | ||
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
6189 | Py_INCREF(Py_None); resultobj = Py_None; | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
6193 | } | |
6194 | ||
6195 | ||
6196 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj; | |
6198 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6199 | wxString *arg2 = 0 ; | |
6200 | bool result; | |
423f194a | 6201 | bool temp2 = False ; |
d14a1e28 RD |
6202 | PyObject * obj0 = 0 ; |
6203 | PyObject * obj1 = 0 ; | |
6204 | char *kwnames[] = { | |
6205 | (char *) "self",(char *) "s", NULL | |
6206 | }; | |
6207 | ||
6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6210 | { | |
6211 | arg2 = wxString_in_helper(obj1); | |
6212 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6213 | temp2 = True; |
d14a1e28 RD |
6214 | } |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | resultobj = PyInt_FromLong((long)result); | |
6223 | { | |
6224 | if (temp2) | |
6225 | delete arg2; | |
6226 | } | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | { | |
6230 | if (temp2) | |
6231 | delete arg2; | |
6232 | } | |
6233 | return NULL; | |
6234 | } | |
6235 | ||
6236 | ||
6237 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject *resultobj; | |
6239 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6240 | wxString result; | |
6241 | PyObject * obj0 = 0 ; | |
6242 | char *kwnames[] = { | |
6243 | (char *) "self", NULL | |
6244 | }; | |
6245 | ||
6246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6248 | { | |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6251 | ||
6252 | wxPyEndAllowThreads(__tstate); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | } | |
6255 | { | |
6256 | #if wxUSE_UNICODE | |
6257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6258 | #else | |
6259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6260 | #endif | |
6261 | } | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
6268 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6269 | PyObject *resultobj; | |
6270 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6271 | wxString result; | |
6272 | PyObject * obj0 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = wxNativeFontInfo___str__(arg1); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
6286 | { | |
6287 | #if wxUSE_UNICODE | |
6288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6289 | #else | |
6290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6291 | #endif | |
6292 | } | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject *resultobj; | |
6301 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6302 | wxString *arg2 = 0 ; | |
6303 | bool result; | |
423f194a | 6304 | bool temp2 = False ; |
d14a1e28 RD |
6305 | PyObject * obj0 = 0 ; |
6306 | PyObject * obj1 = 0 ; | |
6307 | char *kwnames[] = { | |
6308 | (char *) "self",(char *) "s", NULL | |
6309 | }; | |
6310 | ||
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6313 | { | |
6314 | arg2 = wxString_in_helper(obj1); | |
6315 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6316 | temp2 = True; |
d14a1e28 RD |
6317 | } |
6318 | { | |
6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6320 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6321 | ||
6322 | wxPyEndAllowThreads(__tstate); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | } | |
6325 | resultobj = PyInt_FromLong((long)result); | |
6326 | { | |
6327 | if (temp2) | |
6328 | delete arg2; | |
6329 | } | |
6330 | return resultobj; | |
6331 | fail: | |
6332 | { | |
6333 | if (temp2) | |
6334 | delete arg2; | |
6335 | } | |
6336 | return NULL; | |
6337 | } | |
6338 | ||
6339 | ||
6340 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6341 | PyObject *resultobj; | |
6342 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6343 | wxString result; | |
6344 | PyObject * obj0 = 0 ; | |
6345 | char *kwnames[] = { | |
6346 | (char *) "self", NULL | |
6347 | }; | |
6348 | ||
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | { | |
6359 | #if wxUSE_UNICODE | |
6360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6361 | #else | |
6362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6363 | #endif | |
6364 | } | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | return NULL; | |
6368 | } | |
6369 | ||
6370 | ||
6371 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6372 | PyObject *obj; | |
6373 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6374 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6375 | Py_INCREF(obj); | |
6376 | return Py_BuildValue((char *)""); | |
6377 | } | |
6378 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6379 | PyObject *resultobj; | |
6380 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 6381 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 6382 | bool temp2 = False ; |
d14a1e28 RD |
6383 | PyObject * obj0 = 0 ; |
6384 | PyObject * obj1 = 0 ; | |
6385 | char *kwnames[] = { | |
6386 | (char *) "self",(char *) "facename", NULL | |
6387 | }; | |
6388 | ||
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
6391 | { |
6392 | arg2 = wxString_in_helper(obj1); | |
6393 | if (arg2 == NULL) SWIG_fail; | |
6394 | temp2 = True; | |
6395 | } | |
d03fd34d | 6396 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6397 | |
6398 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
6399 | { |
6400 | if (temp2) | |
6401 | delete arg2; | |
6402 | } | |
d14a1e28 RD |
6403 | return resultobj; |
6404 | fail: | |
f775c30d RD |
6405 | { |
6406 | if (temp2) | |
6407 | delete arg2; | |
6408 | } | |
d14a1e28 RD |
6409 | return NULL; |
6410 | } | |
6411 | ||
6412 | ||
6413 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6414 | PyObject *resultobj; | |
6415 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 6416 | wxString *result; |
d14a1e28 RD |
6417 | PyObject * obj0 = 0 ; |
6418 | char *kwnames[] = { | |
6419 | (char *) "self", NULL | |
6420 | }; | |
6421 | ||
6422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 6424 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6425 | |
6426 | { | |
6427 | #if wxUSE_UNICODE | |
d03fd34d | 6428 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6429 | #else |
d03fd34d | 6430 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6431 | #endif |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj; | |
6441 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6442 | int arg2 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "self",(char *) "encoding", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
6449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6450 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6451 | ||
6452 | Py_INCREF(Py_None); resultobj = Py_None; | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
6459 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject *resultobj; | |
6461 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6462 | int result; | |
6463 | PyObject * obj0 = 0 ; | |
6464 | char *kwnames[] = { | |
6465 | (char *) "self", NULL | |
6466 | }; | |
6467 | ||
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6470 | result = (int) ((arg1)->encoding); | |
6471 | ||
6472 | resultobj = PyInt_FromLong((long)result); | |
6473 | return resultobj; | |
6474 | fail: | |
6475 | return NULL; | |
6476 | } | |
6477 | ||
6478 | ||
6479 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6480 | PyObject *resultobj; | |
6481 | wxNativeEncodingInfo *result; | |
6482 | char *kwnames[] = { | |
6483 | NULL | |
6484 | }; | |
6485 | ||
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6487 | { | |
6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6489 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6490 | ||
6491 | wxPyEndAllowThreads(__tstate); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6495 | return resultobj; | |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
6501 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6502 | PyObject *resultobj; | |
6503 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6504 | PyObject * obj0 = 0 ; | |
6505 | char *kwnames[] = { | |
6506 | (char *) "self", NULL | |
6507 | }; | |
6508 | ||
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6511 | { | |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | delete arg1; | |
6514 | ||
6515 | wxPyEndAllowThreads(__tstate); | |
6516 | if (PyErr_Occurred()) SWIG_fail; | |
6517 | } | |
6518 | Py_INCREF(Py_None); resultobj = Py_None; | |
6519 | return resultobj; | |
6520 | fail: | |
6521 | return NULL; | |
6522 | } | |
6523 | ||
6524 | ||
6525 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6526 | PyObject *resultobj; | |
6527 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6528 | wxString *arg2 = 0 ; | |
6529 | bool result; | |
423f194a | 6530 | bool temp2 = False ; |
d14a1e28 RD |
6531 | PyObject * obj0 = 0 ; |
6532 | PyObject * obj1 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "self",(char *) "s", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6539 | { | |
6540 | arg2 = wxString_in_helper(obj1); | |
6541 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6542 | temp2 = True; |
d14a1e28 RD |
6543 | } |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = PyInt_FromLong((long)result); | |
6552 | { | |
6553 | if (temp2) | |
6554 | delete arg2; | |
6555 | } | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | { | |
6559 | if (temp2) | |
6560 | delete arg2; | |
6561 | } | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
6566 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject *resultobj; | |
6568 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6569 | wxString result; | |
6570 | PyObject * obj0 = 0 ; | |
6571 | char *kwnames[] = { | |
6572 | (char *) "self", NULL | |
6573 | }; | |
6574 | ||
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | { | |
6585 | #if wxUSE_UNICODE | |
6586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6587 | #else | |
6588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6589 | #endif | |
6590 | } | |
6591 | return resultobj; | |
6592 | fail: | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
6597 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6598 | PyObject *obj; | |
6599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6600 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6601 | Py_INCREF(obj); | |
6602 | return Py_BuildValue((char *)""); | |
6603 | } | |
6604 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | int arg1 ; | |
6607 | wxNativeEncodingInfo *result; | |
6608 | char *kwnames[] = { | |
6609 | (char *) "encoding", NULL | |
6610 | }; | |
6611 | ||
6612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
6613 | { | |
6614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6615 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6616 | ||
6617 | wxPyEndAllowThreads(__tstate); | |
6618 | if (PyErr_Occurred()) SWIG_fail; | |
6619 | } | |
6620 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6621 | return resultobj; | |
6622 | fail: | |
6623 | return NULL; | |
6624 | } | |
6625 | ||
6626 | ||
6627 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6628 | PyObject *resultobj; | |
6629 | wxNativeEncodingInfo *arg1 = 0 ; | |
6630 | bool result; | |
6631 | PyObject * obj0 = 0 ; | |
6632 | char *kwnames[] = { | |
6633 | (char *) "info", NULL | |
6634 | }; | |
6635 | ||
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6638 | if (arg1 == NULL) { | |
6639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6640 | } | |
6641 | { | |
6642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6643 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6644 | ||
6645 | wxPyEndAllowThreads(__tstate); | |
6646 | if (PyErr_Occurred()) SWIG_fail; | |
6647 | } | |
6648 | resultobj = PyInt_FromLong((long)result); | |
6649 | return resultobj; | |
6650 | fail: | |
6651 | return NULL; | |
6652 | } | |
6653 | ||
6654 | ||
6655 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6656 | PyObject *resultobj; | |
6657 | wxFontMapper *result; | |
6658 | char *kwnames[] = { | |
6659 | NULL | |
6660 | }; | |
6661 | ||
6662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (wxFontMapper *)new wxFontMapper(); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
6670 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6680 | PyObject * obj0 = 0 ; | |
6681 | char *kwnames[] = { | |
6682 | (char *) "self", NULL | |
6683 | }; | |
6684 | ||
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6687 | { | |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | delete arg1; | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | Py_INCREF(Py_None); resultobj = Py_None; | |
6695 | return resultobj; | |
6696 | fail: | |
6697 | return NULL; | |
6698 | } | |
6699 | ||
6700 | ||
6701 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6702 | PyObject *resultobj; | |
6703 | wxFontMapper *result; | |
6704 | char *kwnames[] = { | |
6705 | NULL | |
6706 | }; | |
6707 | ||
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6717 | return resultobj; | |
6718 | fail: | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
6723 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6724 | PyObject *resultobj; | |
6725 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6726 | wxFontMapper *result; | |
6727 | PyObject * obj0 = 0 ; | |
6728 | char *kwnames[] = { | |
6729 | (char *) "mapper", NULL | |
6730 | }; | |
6731 | ||
6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6734 | { | |
6735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6736 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6737 | ||
6738 | wxPyEndAllowThreads(__tstate); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
6740 | } | |
6741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6742 | return resultobj; | |
6743 | fail: | |
6744 | return NULL; | |
6745 | } | |
6746 | ||
6747 | ||
6748 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6749 | PyObject *resultobj; | |
6750 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6751 | wxString *arg2 = 0 ; | |
423f194a | 6752 | bool arg3 = (bool) True ; |
d14a1e28 | 6753 | int result; |
423f194a | 6754 | bool temp2 = False ; |
d14a1e28 RD |
6755 | PyObject * obj0 = 0 ; |
6756 | PyObject * obj1 = 0 ; | |
6757 | PyObject * obj2 = 0 ; | |
6758 | char *kwnames[] = { | |
6759 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6760 | }; | |
6761 | ||
6762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6764 | { | |
6765 | arg2 = wxString_in_helper(obj1); | |
6766 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6767 | temp2 = True; |
d14a1e28 RD |
6768 | } |
6769 | if (obj2) { | |
83448d71 RD |
6770 | { |
6771 | arg3 = (bool) SPyObj_AsBool(obj2); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
d14a1e28 RD |
6774 | } |
6775 | { | |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | resultobj = PyInt_FromLong((long)result); | |
6783 | { | |
6784 | if (temp2) | |
6785 | delete arg2; | |
6786 | } | |
6787 | return resultobj; | |
6788 | fail: | |
6789 | { | |
6790 | if (temp2) | |
6791 | delete arg2; | |
6792 | } | |
6793 | return NULL; | |
6794 | } | |
6795 | ||
6796 | ||
6797 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject *resultobj; | |
6799 | size_t result; | |
6800 | char *kwnames[] = { | |
6801 | NULL | |
6802 | }; | |
6803 | ||
6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6805 | { | |
6806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6807 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6808 | ||
6809 | wxPyEndAllowThreads(__tstate); | |
6810 | if (PyErr_Occurred()) SWIG_fail; | |
6811 | } | |
83448d71 | 6812 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6813 | return resultobj; |
6814 | fail: | |
6815 | return NULL; | |
6816 | } | |
6817 | ||
6818 | ||
6819 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject *resultobj; | |
6821 | size_t arg1 ; | |
6822 | int result; | |
6823 | PyObject * obj0 = 0 ; | |
6824 | char *kwnames[] = { | |
6825 | (char *) "n", NULL | |
6826 | }; | |
6827 | ||
6828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
83448d71 RD |
6829 | { |
6830 | arg1 = (size_t) SPyObj_AsUnsignedLong(obj0); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
d14a1e28 RD |
6833 | { |
6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6835 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6836 | ||
6837 | wxPyEndAllowThreads(__tstate); | |
6838 | if (PyErr_Occurred()) SWIG_fail; | |
6839 | } | |
6840 | resultobj = PyInt_FromLong((long)result); | |
6841 | return resultobj; | |
6842 | fail: | |
6843 | return NULL; | |
6844 | } | |
6845 | ||
6846 | ||
6847 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject *resultobj; | |
6849 | int arg1 ; | |
6850 | wxString result; | |
6851 | char *kwnames[] = { | |
6852 | (char *) "encoding", NULL | |
6853 | }; | |
6854 | ||
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6856 | { | |
6857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6858 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6859 | ||
6860 | wxPyEndAllowThreads(__tstate); | |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
6862 | } | |
6863 | { | |
6864 | #if wxUSE_UNICODE | |
6865 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6866 | #else | |
6867 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6868 | #endif | |
6869 | } | |
6870 | return resultobj; | |
6871 | fail: | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | int arg1 ; | |
6879 | wxString result; | |
6880 | char *kwnames[] = { | |
6881 | (char *) "encoding", NULL | |
6882 | }; | |
6883 | ||
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6885 | { | |
6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6887 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6888 | ||
6889 | wxPyEndAllowThreads(__tstate); | |
6890 | if (PyErr_Occurred()) SWIG_fail; | |
6891 | } | |
6892 | { | |
6893 | #if wxUSE_UNICODE | |
6894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6895 | #else | |
6896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6897 | #endif | |
6898 | } | |
6899 | return resultobj; | |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
6905 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6906 | PyObject *resultobj; | |
6907 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6908 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6909 | PyObject * obj0 = 0 ; | |
6910 | PyObject * obj1 = 0 ; | |
6911 | char *kwnames[] = { | |
6912 | (char *) "self",(char *) "config", NULL | |
6913 | }; | |
6914 | ||
6915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6918 | { | |
6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6920 | (arg1)->SetConfig(arg2); | |
6921 | ||
6922 | wxPyEndAllowThreads(__tstate); | |
6923 | if (PyErr_Occurred()) SWIG_fail; | |
6924 | } | |
6925 | Py_INCREF(Py_None); resultobj = Py_None; | |
6926 | return resultobj; | |
6927 | fail: | |
6928 | return NULL; | |
6929 | } | |
6930 | ||
6931 | ||
6932 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6933 | PyObject *resultobj; | |
6934 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6935 | wxString *arg2 = 0 ; | |
423f194a | 6936 | bool temp2 = False ; |
d14a1e28 RD |
6937 | PyObject * obj0 = 0 ; |
6938 | PyObject * obj1 = 0 ; | |
6939 | char *kwnames[] = { | |
6940 | (char *) "self",(char *) "prefix", NULL | |
6941 | }; | |
6942 | ||
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6945 | { | |
6946 | arg2 = wxString_in_helper(obj1); | |
6947 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6948 | temp2 = True; |
d14a1e28 RD |
6949 | } |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | Py_INCREF(Py_None); resultobj = Py_None; | |
6958 | { | |
6959 | if (temp2) | |
6960 | delete arg2; | |
6961 | } | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | { | |
6965 | if (temp2) | |
6966 | delete arg2; | |
6967 | } | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | wxString result; | |
6975 | char *kwnames[] = { | |
6976 | NULL | |
6977 | }; | |
6978 | ||
6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6980 | { | |
6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6982 | result = wxFontMapper::GetDefaultConfigPath(); | |
6983 | ||
6984 | wxPyEndAllowThreads(__tstate); | |
6985 | if (PyErr_Occurred()) SWIG_fail; | |
6986 | } | |
6987 | { | |
6988 | #if wxUSE_UNICODE | |
6989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6990 | #else | |
6991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6992 | #endif | |
6993 | } | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
7000 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7001 | PyObject *resultobj; | |
7002 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7003 | int arg2 ; | |
7004 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7005 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 7006 | bool arg4 = (bool) True ; |
d14a1e28 | 7007 | PyObject *result; |
423f194a | 7008 | bool temp3 = False ; |
d14a1e28 RD |
7009 | PyObject * obj0 = 0 ; |
7010 | PyObject * obj2 = 0 ; | |
7011 | PyObject * obj3 = 0 ; | |
7012 | char *kwnames[] = { | |
7013 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
7017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7018 | if (obj2) { | |
7019 | { | |
7020 | arg3 = wxString_in_helper(obj2); | |
7021 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7022 | temp3 = True; |
d14a1e28 RD |
7023 | } |
7024 | } | |
7025 | if (obj3) { | |
83448d71 RD |
7026 | { |
7027 | arg4 = (bool) SPyObj_AsBool(obj3); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
d14a1e28 RD |
7030 | } |
7031 | { | |
7032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7033 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7034 | ||
7035 | wxPyEndAllowThreads(__tstate); | |
7036 | if (PyErr_Occurred()) SWIG_fail; | |
7037 | } | |
7038 | resultobj = result; | |
7039 | { | |
7040 | if (temp3) | |
7041 | delete arg3; | |
7042 | } | |
7043 | return resultobj; | |
7044 | fail: | |
7045 | { | |
7046 | if (temp3) | |
7047 | delete arg3; | |
7048 | } | |
7049 | return NULL; | |
7050 | } | |
7051 | ||
7052 | ||
7053 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj; | |
7055 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7056 | int arg2 ; | |
7057 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7058 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7059 | bool result; | |
423f194a | 7060 | bool temp3 = False ; |
d14a1e28 RD |
7061 | PyObject * obj0 = 0 ; |
7062 | PyObject * obj2 = 0 ; | |
7063 | char *kwnames[] = { | |
7064 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7069 | if (obj2) { | |
7070 | { | |
7071 | arg3 = wxString_in_helper(obj2); | |
7072 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7073 | temp3 = True; |
d14a1e28 RD |
7074 | } |
7075 | } | |
7076 | { | |
7077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7078 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7079 | ||
7080 | wxPyEndAllowThreads(__tstate); | |
7081 | if (PyErr_Occurred()) SWIG_fail; | |
7082 | } | |
7083 | resultobj = PyInt_FromLong((long)result); | |
7084 | { | |
7085 | if (temp3) | |
7086 | delete arg3; | |
7087 | } | |
7088 | return resultobj; | |
7089 | fail: | |
7090 | { | |
7091 | if (temp3) | |
7092 | delete arg3; | |
7093 | } | |
7094 | return NULL; | |
7095 | } | |
7096 | ||
7097 | ||
7098 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject *resultobj; | |
7100 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7101 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7102 | PyObject * obj0 = 0 ; | |
7103 | PyObject * obj1 = 0 ; | |
7104 | char *kwnames[] = { | |
7105 | (char *) "self",(char *) "parent", NULL | |
7106 | }; | |
7107 | ||
7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7110 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7111 | { | |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | (arg1)->SetDialogParent(arg2); | |
7114 | ||
7115 | wxPyEndAllowThreads(__tstate); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | } | |
7118 | Py_INCREF(Py_None); resultobj = Py_None; | |
7119 | return resultobj; | |
7120 | fail: | |
7121 | return NULL; | |
7122 | } | |
7123 | ||
7124 | ||
7125 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7126 | PyObject *resultobj; | |
7127 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7128 | wxString *arg2 = 0 ; | |
423f194a | 7129 | bool temp2 = False ; |
d14a1e28 RD |
7130 | PyObject * obj0 = 0 ; |
7131 | PyObject * obj1 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self",(char *) "title", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7138 | { | |
7139 | arg2 = wxString_in_helper(obj1); | |
7140 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7141 | temp2 = True; |
d14a1e28 RD |
7142 | } |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | Py_INCREF(Py_None); resultobj = Py_None; | |
7151 | { | |
7152 | if (temp2) | |
7153 | delete arg2; | |
7154 | } | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | { | |
7158 | if (temp2) | |
7159 | delete arg2; | |
7160 | } | |
7161 | return NULL; | |
7162 | } | |
7163 | ||
7164 | ||
7165 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7166 | PyObject *obj; | |
7167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7168 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7169 | Py_INCREF(obj); | |
7170 | return Py_BuildValue((char *)""); | |
7171 | } | |
7172 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | int arg1 ; | |
7175 | int arg2 ; | |
7176 | int arg3 ; | |
7177 | int arg4 ; | |
423f194a | 7178 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7179 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7180 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7181 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7182 | wxFont *result; | |
423f194a | 7183 | bool temp6 = False ; |
d14a1e28 RD |
7184 | PyObject * obj4 = 0 ; |
7185 | PyObject * obj5 = 0 ; | |
7186 | char *kwnames[] = { | |
7187 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
7191 | if (obj4) { | |
83448d71 RD |
7192 | { |
7193 | arg5 = (bool) SPyObj_AsBool(obj4); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
d14a1e28 RD |
7196 | } |
7197 | if (obj5) { | |
7198 | { | |
7199 | arg6 = wxString_in_helper(obj5); | |
7200 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7201 | temp6 = True; |
d14a1e28 RD |
7202 | } |
7203 | } | |
7204 | { | |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7212 | { | |
7213 | if (temp6) | |
7214 | delete arg6; | |
7215 | } | |
7216 | return resultobj; | |
7217 | fail: | |
7218 | { | |
7219 | if (temp6) | |
7220 | delete arg6; | |
7221 | } | |
7222 | return NULL; | |
7223 | } | |
7224 | ||
7225 | ||
7226 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7227 | PyObject *resultobj; | |
7228 | wxFont *arg1 = (wxFont *) 0 ; | |
7229 | PyObject * obj0 = 0 ; | |
7230 | char *kwnames[] = { | |
7231 | (char *) "self", NULL | |
7232 | }; | |
7233 | ||
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | delete arg1; | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | Py_INCREF(Py_None); resultobj = Py_None; | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
7250 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject *resultobj; | |
7252 | wxNativeFontInfo *arg1 = 0 ; | |
7253 | wxFont *result; | |
7254 | PyObject * obj0 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "info", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7261 | if (arg1 == NULL) { | |
7262 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7263 | } | |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
7278 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject *resultobj; | |
7280 | wxString *arg1 = 0 ; | |
7281 | wxFont *result; | |
423f194a | 7282 | bool temp1 = False ; |
d14a1e28 RD |
7283 | PyObject * obj0 = 0 ; |
7284 | char *kwnames[] = { | |
7285 | (char *) "info", NULL | |
7286 | }; | |
7287 | ||
7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7289 | { | |
7290 | arg1 = wxString_in_helper(obj0); | |
7291 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7292 | temp1 = True; |
d14a1e28 RD |
7293 | } |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7302 | { | |
7303 | if (temp1) | |
7304 | delete arg1; | |
7305 | } | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | { | |
7309 | if (temp1) | |
7310 | delete arg1; | |
7311 | } | |
7312 | return NULL; | |
7313 | } | |
7314 | ||
7315 | ||
7316 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject *resultobj; | |
7318 | int arg1 ; | |
7319 | int arg2 ; | |
7320 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7321 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7322 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7323 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7324 | wxFont *result; | |
423f194a | 7325 | bool temp4 = False ; |
d14a1e28 RD |
7326 | PyObject * obj3 = 0 ; |
7327 | char *kwnames[] = { | |
7328 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7329 | }; | |
7330 | ||
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
7332 | if (obj3) { | |
7333 | { | |
7334 | arg4 = wxString_in_helper(obj3); | |
7335 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7336 | temp4 = True; |
d14a1e28 RD |
7337 | } |
7338 | } | |
7339 | { | |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
7346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7347 | { | |
7348 | if (temp4) | |
7349 | delete arg4; | |
7350 | } | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | { | |
7354 | if (temp4) | |
7355 | delete arg4; | |
7356 | } | |
7357 | return NULL; | |
7358 | } | |
7359 | ||
7360 | ||
7361 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7362 | PyObject *resultobj; | |
7363 | wxFont *arg1 = (wxFont *) 0 ; | |
7364 | bool result; | |
7365 | PyObject * obj0 = 0 ; | |
7366 | char *kwnames[] = { | |
7367 | (char *) "self", NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | resultobj = PyInt_FromLong((long)result); | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
7386 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject *resultobj; | |
7388 | wxFont *arg1 = (wxFont *) 0 ; | |
7389 | wxFont *arg2 = 0 ; | |
7390 | bool result; | |
7391 | PyObject * obj0 = 0 ; | |
7392 | PyObject * obj1 = 0 ; | |
7393 | char *kwnames[] = { | |
7394 | (char *) "self",(char *) "font", NULL | |
7395 | }; | |
7396 | ||
7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7399 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7400 | if (arg2 == NULL) { | |
7401 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7402 | } | |
7403 | { | |
7404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7405 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | resultobj = PyInt_FromLong((long)result); | |
7411 | return resultobj; | |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj; | |
7419 | wxFont *arg1 = (wxFont *) 0 ; | |
7420 | wxFont *arg2 = 0 ; | |
7421 | bool result; | |
7422 | PyObject * obj0 = 0 ; | |
7423 | PyObject * obj1 = 0 ; | |
7424 | char *kwnames[] = { | |
7425 | (char *) "self",(char *) "font", NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7430 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7431 | if (arg2 == NULL) { | |
7432 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7433 | } | |
7434 | { | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7437 | ||
7438 | wxPyEndAllowThreads(__tstate); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
7441 | resultobj = PyInt_FromLong((long)result); | |
7442 | return resultobj; | |
7443 | fail: | |
7444 | return NULL; | |
7445 | } | |
7446 | ||
7447 | ||
7448 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7449 | PyObject *resultobj; | |
7450 | wxFont *arg1 = (wxFont *) 0 ; | |
7451 | int result; | |
7452 | PyObject * obj0 = 0 ; | |
7453 | char *kwnames[] = { | |
7454 | (char *) "self", NULL | |
7455 | }; | |
7456 | ||
7457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7459 | { | |
7460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7461 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7462 | ||
7463 | wxPyEndAllowThreads(__tstate); | |
7464 | if (PyErr_Occurred()) SWIG_fail; | |
7465 | } | |
7466 | resultobj = PyInt_FromLong((long)result); | |
7467 | return resultobj; | |
7468 | fail: | |
7469 | return NULL; | |
7470 | } | |
7471 | ||
7472 | ||
7473 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7474 | PyObject *resultobj; | |
7475 | wxFont *arg1 = (wxFont *) 0 ; | |
7476 | int result; | |
7477 | PyObject * obj0 = 0 ; | |
7478 | char *kwnames[] = { | |
7479 | (char *) "self", NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7484 | { | |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
7491 | resultobj = PyInt_FromLong((long)result); | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
7498 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject *resultobj; | |
7500 | wxFont *arg1 = (wxFont *) 0 ; | |
7501 | int result; | |
7502 | PyObject * obj0 = 0 ; | |
7503 | char *kwnames[] = { | |
7504 | (char *) "self", NULL | |
7505 | }; | |
7506 | ||
7507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7509 | { | |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | resultobj = PyInt_FromLong((long)result); | |
7517 | return resultobj; | |
7518 | fail: | |
7519 | return NULL; | |
7520 | } | |
7521 | ||
7522 | ||
7523 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7524 | PyObject *resultobj; | |
7525 | wxFont *arg1 = (wxFont *) 0 ; | |
7526 | int result; | |
7527 | PyObject * obj0 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "self", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7534 | { | |
7535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7536 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7537 | ||
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | resultobj = PyInt_FromLong((long)result); | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | return NULL; | |
7545 | } | |
7546 | ||
7547 | ||
7548 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7549 | PyObject *resultobj; | |
7550 | wxFont *arg1 = (wxFont *) 0 ; | |
7551 | bool result; | |
7552 | PyObject * obj0 = 0 ; | |
7553 | char *kwnames[] = { | |
7554 | (char *) "self", NULL | |
7555 | }; | |
7556 | ||
7557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7559 | { | |
7560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7561 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7562 | ||
7563 | wxPyEndAllowThreads(__tstate); | |
7564 | if (PyErr_Occurred()) SWIG_fail; | |
7565 | } | |
7566 | resultobj = PyInt_FromLong((long)result); | |
7567 | return resultobj; | |
7568 | fail: | |
7569 | return NULL; | |
7570 | } | |
7571 | ||
7572 | ||
7573 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7574 | PyObject *resultobj; | |
7575 | wxFont *arg1 = (wxFont *) 0 ; | |
7576 | wxString result; | |
7577 | PyObject * obj0 = 0 ; | |
7578 | char *kwnames[] = { | |
7579 | (char *) "self", NULL | |
7580 | }; | |
7581 | ||
7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7584 | { | |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7586 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | { | |
7592 | #if wxUSE_UNICODE | |
7593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7594 | #else | |
7595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7596 | #endif | |
7597 | } | |
7598 | return resultobj; | |
7599 | fail: | |
7600 | return NULL; | |
7601 | } | |
7602 | ||
7603 | ||
7604 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7605 | PyObject *resultobj; | |
7606 | wxFont *arg1 = (wxFont *) 0 ; | |
7607 | int result; | |
7608 | PyObject * obj0 = 0 ; | |
7609 | char *kwnames[] = { | |
7610 | (char *) "self", NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7615 | { | |
7616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7617 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7618 | ||
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) SWIG_fail; | |
7621 | } | |
7622 | resultobj = PyInt_FromLong((long)result); | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxFont *arg1 = (wxFont *) 0 ; | |
7632 | wxNativeFontInfo *result; | |
7633 | PyObject * obj0 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7640 | { | |
7641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7642 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7643 | ||
7644 | wxPyEndAllowThreads(__tstate); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
7647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7648 | return resultobj; | |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxFont *arg1 = (wxFont *) 0 ; | |
7657 | bool result; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | resultobj = PyInt_FromLong((long)result); | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxFont *arg1 = (wxFont *) 0 ; | |
7682 | wxString result; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | { | |
7698 | #if wxUSE_UNICODE | |
7699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7700 | #else | |
7701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7702 | #endif | |
7703 | } | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
7707 | } | |
7708 | ||
7709 | ||
7710 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7711 | PyObject *resultobj; | |
7712 | wxFont *arg1 = (wxFont *) 0 ; | |
7713 | wxString result; | |
7714 | PyObject * obj0 = 0 ; | |
7715 | char *kwnames[] = { | |
7716 | (char *) "self", NULL | |
7717 | }; | |
7718 | ||
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7721 | { | |
7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7723 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7724 | ||
7725 | wxPyEndAllowThreads(__tstate); | |
7726 | if (PyErr_Occurred()) SWIG_fail; | |
7727 | } | |
7728 | { | |
7729 | #if wxUSE_UNICODE | |
7730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7731 | #else | |
7732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7733 | #endif | |
7734 | } | |
7735 | return resultobj; | |
7736 | fail: | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
7741 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | wxFont *arg1 = (wxFont *) 0 ; | |
7744 | int arg2 ; | |
7745 | PyObject * obj0 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "self",(char *) "pointSize", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
7751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7752 | { | |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | (arg1)->SetPointSize(arg2); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | Py_INCREF(Py_None); resultobj = Py_None; | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj; | |
7768 | wxFont *arg1 = (wxFont *) 0 ; | |
7769 | int arg2 ; | |
7770 | PyObject * obj0 = 0 ; | |
7771 | char *kwnames[] = { | |
7772 | (char *) "self",(char *) "family", NULL | |
7773 | }; | |
7774 | ||
7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
7776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7777 | { | |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | (arg1)->SetFamily(arg2); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
7784 | Py_INCREF(Py_None); resultobj = Py_None; | |
7785 | return resultobj; | |
7786 | fail: | |
7787 | return NULL; | |
7788 | } | |
7789 | ||
7790 | ||
7791 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7792 | PyObject *resultobj; | |
7793 | wxFont *arg1 = (wxFont *) 0 ; | |
7794 | int arg2 ; | |
7795 | PyObject * obj0 = 0 ; | |
7796 | char *kwnames[] = { | |
7797 | (char *) "self",(char *) "style", NULL | |
7798 | }; | |
7799 | ||
7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
7801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7802 | { | |
7803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7804 | (arg1)->SetStyle(arg2); | |
7805 | ||
7806 | wxPyEndAllowThreads(__tstate); | |
7807 | if (PyErr_Occurred()) SWIG_fail; | |
7808 | } | |
7809 | Py_INCREF(Py_None); resultobj = Py_None; | |
7810 | return resultobj; | |
7811 | fail: | |
7812 | return NULL; | |
7813 | } | |
7814 | ||
7815 | ||
7816 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7817 | PyObject *resultobj; | |
7818 | wxFont *arg1 = (wxFont *) 0 ; | |
7819 | int arg2 ; | |
7820 | PyObject * obj0 = 0 ; | |
7821 | char *kwnames[] = { | |
7822 | (char *) "self",(char *) "weight", NULL | |
7823 | }; | |
7824 | ||
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
7826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | (arg1)->SetWeight(arg2); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | Py_INCREF(Py_None); resultobj = Py_None; | |
7835 | return resultobj; | |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxFont *arg1 = (wxFont *) 0 ; | |
7844 | wxString *arg2 = 0 ; | |
423f194a | 7845 | bool temp2 = False ; |
d14a1e28 RD |
7846 | PyObject * obj0 = 0 ; |
7847 | PyObject * obj1 = 0 ; | |
7848 | char *kwnames[] = { | |
7849 | (char *) "self",(char *) "faceName", NULL | |
7850 | }; | |
7851 | ||
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7854 | { | |
7855 | arg2 = wxString_in_helper(obj1); | |
7856 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7857 | temp2 = True; |
d14a1e28 RD |
7858 | } |
7859 | { | |
7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7861 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7862 | ||
7863 | wxPyEndAllowThreads(__tstate); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
7866 | Py_INCREF(Py_None); resultobj = Py_None; | |
7867 | { | |
7868 | if (temp2) | |
7869 | delete arg2; | |
7870 | } | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | { | |
7874 | if (temp2) | |
7875 | delete arg2; | |
7876 | } | |
7877 | return NULL; | |
7878 | } | |
7879 | ||
7880 | ||
7881 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject *resultobj; | |
7883 | wxFont *arg1 = (wxFont *) 0 ; | |
7884 | bool arg2 ; | |
7885 | PyObject * obj0 = 0 ; | |
7886 | PyObject * obj1 = 0 ; | |
7887 | char *kwnames[] = { | |
7888 | (char *) "self",(char *) "underlined", NULL | |
7889 | }; | |
7890 | ||
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
7893 | { |
7894 | arg2 = (bool) SPyObj_AsBool(obj1); | |
7895 | if (PyErr_Occurred()) SWIG_fail; | |
7896 | } | |
d14a1e28 RD |
7897 | { |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | (arg1)->SetUnderlined(arg2); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | Py_INCREF(Py_None); resultobj = Py_None; | |
7905 | return resultobj; | |
7906 | fail: | |
7907 | return NULL; | |
7908 | } | |
7909 | ||
7910 | ||
7911 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject *resultobj; | |
7913 | wxFont *arg1 = (wxFont *) 0 ; | |
7914 | int arg2 ; | |
7915 | PyObject * obj0 = 0 ; | |
7916 | char *kwnames[] = { | |
7917 | (char *) "self",(char *) "encoding", NULL | |
7918 | }; | |
7919 | ||
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7922 | { | |
7923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7924 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7925 | ||
7926 | wxPyEndAllowThreads(__tstate); | |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
7928 | } | |
7929 | Py_INCREF(Py_None); resultobj = Py_None; | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
7936 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject *resultobj; | |
7938 | wxFont *arg1 = (wxFont *) 0 ; | |
7939 | wxNativeFontInfo *arg2 = 0 ; | |
7940 | PyObject * obj0 = 0 ; | |
7941 | PyObject * obj1 = 0 ; | |
7942 | char *kwnames[] = { | |
7943 | (char *) "self",(char *) "info", NULL | |
7944 | }; | |
7945 | ||
7946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7949 | if (arg2 == NULL) { | |
7950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7951 | } | |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7955 | ||
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | Py_INCREF(Py_None); resultobj = Py_None; | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
7966 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7967 | PyObject *resultobj; | |
7968 | wxFont *arg1 = (wxFont *) 0 ; | |
7969 | wxString *arg2 = 0 ; | |
423f194a | 7970 | bool temp2 = False ; |
d14a1e28 RD |
7971 | PyObject * obj0 = 0 ; |
7972 | PyObject * obj1 = 0 ; | |
7973 | char *kwnames[] = { | |
7974 | (char *) "self",(char *) "info", NULL | |
7975 | }; | |
7976 | ||
7977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7979 | { | |
7980 | arg2 = wxString_in_helper(obj1); | |
7981 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7982 | temp2 = True; |
d14a1e28 RD |
7983 | } |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | Py_INCREF(Py_None); resultobj = Py_None; | |
7992 | { | |
7993 | if (temp2) | |
7994 | delete arg2; | |
7995 | } | |
7996 | return resultobj; | |
7997 | fail: | |
7998 | { | |
7999 | if (temp2) | |
8000 | delete arg2; | |
8001 | } | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject *resultobj; | |
8008 | wxFont *arg1 = (wxFont *) 0 ; | |
8009 | wxString *arg2 = 0 ; | |
423f194a | 8010 | bool temp2 = False ; |
d14a1e28 RD |
8011 | PyObject * obj0 = 0 ; |
8012 | PyObject * obj1 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self",(char *) "info", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8019 | { | |
8020 | arg2 = wxString_in_helper(obj1); | |
8021 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8022 | temp2 = True; |
d14a1e28 RD |
8023 | } |
8024 | { | |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
8031 | Py_INCREF(Py_None); resultobj = Py_None; | |
8032 | { | |
8033 | if (temp2) | |
8034 | delete arg2; | |
8035 | } | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | { | |
8039 | if (temp2) | |
8040 | delete arg2; | |
8041 | } | |
8042 | return NULL; | |
8043 | } | |
8044 | ||
8045 | ||
8046 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8047 | PyObject *resultobj; | |
8048 | wxFont *arg1 = (wxFont *) 0 ; | |
8049 | wxString result; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | char *kwnames[] = { | |
8052 | (char *) "self", NULL | |
8053 | }; | |
8054 | ||
8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | { | |
8065 | #if wxUSE_UNICODE | |
8066 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8067 | #else | |
8068 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8069 | #endif | |
8070 | } | |
8071 | return resultobj; | |
8072 | fail: | |
8073 | return NULL; | |
8074 | } | |
8075 | ||
8076 | ||
8077 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8078 | PyObject *resultobj; | |
8079 | wxFont *arg1 = (wxFont *) 0 ; | |
8080 | wxString result; | |
8081 | PyObject * obj0 = 0 ; | |
8082 | char *kwnames[] = { | |
8083 | (char *) "self", NULL | |
8084 | }; | |
8085 | ||
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8088 | { | |
8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8090 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8091 | ||
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | #if wxUSE_UNICODE | |
8097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8098 | #else | |
8099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8100 | #endif | |
8101 | } | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
8108 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8109 | PyObject *resultobj; | |
8110 | wxFont *arg1 = (wxFont *) 0 ; | |
8111 | wxString result; | |
8112 | PyObject * obj0 = 0 ; | |
8113 | char *kwnames[] = { | |
8114 | (char *) "self", NULL | |
8115 | }; | |
8116 | ||
8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8119 | { | |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | { | |
8127 | #if wxUSE_UNICODE | |
8128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8129 | #else | |
8130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8131 | #endif | |
8132 | } | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | return NULL; | |
8136 | } | |
8137 | ||
8138 | ||
8139 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8140 | PyObject *resultobj; | |
8141 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 8142 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8143 | PyObject * obj0 = 0 ; |
8144 | PyObject * obj1 = 0 ; | |
8145 | char *kwnames[] = { | |
8146 | (char *) "self",(char *) "no", NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8151 | if (obj1) { | |
83448d71 RD |
8152 | { |
8153 | arg2 = (bool) SPyObj_AsBool(obj1); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | } | |
d14a1e28 RD |
8156 | } |
8157 | { | |
8158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8159 | (arg1)->SetNoAntiAliasing(arg2); | |
8160 | ||
8161 | wxPyEndAllowThreads(__tstate); | |
8162 | if (PyErr_Occurred()) SWIG_fail; | |
8163 | } | |
8164 | Py_INCREF(Py_None); resultobj = Py_None; | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | return NULL; | |
8168 | } | |
8169 | ||
8170 | ||
8171 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8172 | PyObject *resultobj; | |
8173 | wxFont *arg1 = (wxFont *) 0 ; | |
8174 | bool result; | |
8175 | PyObject * obj0 = 0 ; | |
8176 | char *kwnames[] = { | |
8177 | (char *) "self", NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) SWIG_fail; | |
8188 | } | |
8189 | resultobj = PyInt_FromLong((long)result); | |
8190 | return resultobj; | |
8191 | fail: | |
8192 | return NULL; | |
8193 | } | |
8194 | ||
8195 | ||
8196 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8197 | PyObject *resultobj; | |
8198 | int result; | |
8199 | char *kwnames[] = { | |
8200 | NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | result = (int)wxFont::GetDefaultEncoding(); | |
8207 | ||
8208 | wxPyEndAllowThreads(__tstate); | |
8209 | if (PyErr_Occurred()) SWIG_fail; | |
8210 | } | |
8211 | resultobj = PyInt_FromLong((long)result); | |
8212 | return resultobj; | |
8213 | fail: | |
8214 | return NULL; | |
8215 | } | |
8216 | ||
8217 | ||
8218 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8219 | PyObject *resultobj; | |
8220 | int arg1 ; | |
8221 | char *kwnames[] = { | |
8222 | (char *) "encoding", NULL | |
8223 | }; | |
8224 | ||
8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
8226 | { | |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8229 | ||
8230 | wxPyEndAllowThreads(__tstate); | |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
8232 | } | |
8233 | Py_INCREF(Py_None); resultobj = Py_None; | |
8234 | return resultobj; | |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
8240 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8241 | PyObject *obj; | |
8242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8243 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8244 | Py_INCREF(obj); | |
8245 | return Py_BuildValue((char *)""); | |
8246 | } | |
8247 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8248 | PyObject *resultobj; | |
8249 | wxPyFontEnumerator *result; | |
8250 | char *kwnames[] = { | |
8251 | NULL | |
8252 | }; | |
8253 | ||
8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8255 | { | |
8256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8257 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8258 | ||
8259 | wxPyEndAllowThreads(__tstate); | |
8260 | if (PyErr_Occurred()) SWIG_fail; | |
8261 | } | |
8262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | return NULL; | |
8266 | } | |
8267 | ||
8268 | ||
8269 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8270 | PyObject *resultobj; | |
8271 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8272 | PyObject * obj0 = 0 ; | |
8273 | char *kwnames[] = { | |
8274 | (char *) "self", NULL | |
8275 | }; | |
8276 | ||
8277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8279 | { | |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | delete arg1; | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | Py_INCREF(Py_None); resultobj = Py_None; | |
8287 | return resultobj; | |
8288 | fail: | |
8289 | return NULL; | |
8290 | } | |
8291 | ||
8292 | ||
8293 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8294 | PyObject *resultobj; | |
8295 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8296 | PyObject *arg2 = (PyObject *) 0 ; | |
8297 | PyObject *arg3 = (PyObject *) 0 ; | |
8298 | bool arg4 ; | |
8299 | PyObject * obj0 = 0 ; | |
8300 | PyObject * obj1 = 0 ; | |
8301 | PyObject * obj2 = 0 ; | |
8302 | PyObject * obj3 = 0 ; | |
8303 | char *kwnames[] = { | |
8304 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8305 | }; | |
8306 | ||
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8309 | arg2 = obj1; | |
8310 | arg3 = obj2; | |
83448d71 RD |
8311 | { |
8312 | arg4 = (bool) SPyObj_AsBool(obj3); | |
8313 | if (PyErr_Occurred()) SWIG_fail; | |
8314 | } | |
d14a1e28 RD |
8315 | { |
8316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8317 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8318 | ||
8319 | wxPyEndAllowThreads(__tstate); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
8322 | Py_INCREF(Py_None); resultobj = Py_None; | |
8323 | return resultobj; | |
8324 | fail: | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
8329 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8330 | PyObject *resultobj; | |
8331 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8332 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 8333 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8334 | bool result; |
8335 | PyObject * obj0 = 0 ; | |
8336 | PyObject * obj2 = 0 ; | |
8337 | char *kwnames[] = { | |
8338 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8339 | }; | |
8340 | ||
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8343 | if (obj2) { | |
83448d71 RD |
8344 | { |
8345 | arg3 = (bool) SPyObj_AsBool(obj2); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
d14a1e28 RD |
8348 | } |
8349 | { | |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
8356 | resultobj = PyInt_FromLong((long)result); | |
8357 | return resultobj; | |
8358 | fail: | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8366 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8367 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8368 | bool result; | |
423f194a | 8369 | bool temp2 = False ; |
d14a1e28 RD |
8370 | PyObject * obj0 = 0 ; |
8371 | PyObject * obj1 = 0 ; | |
8372 | char *kwnames[] = { | |
8373 | (char *) "self",(char *) "facename", NULL | |
8374 | }; | |
8375 | ||
8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8378 | if (obj1) { | |
8379 | { | |
8380 | arg2 = wxString_in_helper(obj1); | |
8381 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8382 | temp2 = True; |
d14a1e28 RD |
8383 | } |
8384 | } | |
8385 | { | |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
8392 | resultobj = PyInt_FromLong((long)result); | |
8393 | { | |
8394 | if (temp2) | |
8395 | delete arg2; | |
8396 | } | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | { | |
8400 | if (temp2) | |
8401 | delete arg2; | |
8402 | } | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8410 | PyObject *result; | |
8411 | PyObject * obj0 = 0 ; | |
8412 | char *kwnames[] = { | |
8413 | (char *) "self", NULL | |
8414 | }; | |
8415 | ||
8416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8418 | { | |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8421 | ||
8422 | wxPyEndAllowThreads(__tstate); | |
8423 | if (PyErr_Occurred()) SWIG_fail; | |
8424 | } | |
8425 | resultobj = result; | |
8426 | return resultobj; | |
8427 | fail: | |
8428 | return NULL; | |
8429 | } | |
8430 | ||
8431 | ||
8432 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8433 | PyObject *resultobj; | |
8434 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8435 | PyObject *result; | |
8436 | PyObject * obj0 = 0 ; | |
8437 | char *kwnames[] = { | |
8438 | (char *) "self", NULL | |
8439 | }; | |
8440 | ||
8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | resultobj = result; | |
8451 | return resultobj; | |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8458 | PyObject *obj; | |
8459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8460 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8461 | Py_INCREF(obj); | |
8462 | return Py_BuildValue((char *)""); | |
8463 | } | |
8464 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject *resultobj; | |
8466 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8467 | int arg2 ; | |
8468 | PyObject * obj0 = 0 ; | |
8469 | char *kwnames[] = { | |
8470 | (char *) "self",(char *) "Language", NULL | |
8471 | }; | |
8472 | ||
8473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
8474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8475 | if (arg1) (arg1)->Language = arg2; | |
8476 | ||
8477 | Py_INCREF(Py_None); resultobj = Py_None; | |
8478 | return resultobj; | |
8479 | fail: | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
8484 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8485 | PyObject *resultobj; | |
8486 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8487 | int result; | |
8488 | PyObject * obj0 = 0 ; | |
8489 | char *kwnames[] = { | |
8490 | (char *) "self", NULL | |
8491 | }; | |
8492 | ||
8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8495 | result = (int) ((arg1)->Language); | |
8496 | ||
8497 | resultobj = PyInt_FromLong((long)result); | |
8498 | return resultobj; | |
8499 | fail: | |
8500 | return NULL; | |
8501 | } | |
8502 | ||
8503 | ||
8504 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8505 | PyObject *resultobj; | |
8506 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8507 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 8508 | bool temp2 = False ; |
d14a1e28 RD |
8509 | PyObject * obj0 = 0 ; |
8510 | PyObject * obj1 = 0 ; | |
8511 | char *kwnames[] = { | |
8512 | (char *) "self",(char *) "CanonicalName", NULL | |
8513 | }; | |
8514 | ||
8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
8517 | { |
8518 | arg2 = wxString_in_helper(obj1); | |
8519 | if (arg2 == NULL) SWIG_fail; | |
8520 | temp2 = True; | |
8521 | } | |
d03fd34d | 8522 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8523 | |
8524 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
8525 | { |
8526 | if (temp2) | |
8527 | delete arg2; | |
8528 | } | |
d14a1e28 RD |
8529 | return resultobj; |
8530 | fail: | |
f775c30d RD |
8531 | { |
8532 | if (temp2) | |
8533 | delete arg2; | |
8534 | } | |
d14a1e28 RD |
8535 | return NULL; |
8536 | } | |
8537 | ||
8538 | ||
8539 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8540 | PyObject *resultobj; | |
8541 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8542 | wxString *result; |
d14a1e28 RD |
8543 | PyObject * obj0 = 0 ; |
8544 | char *kwnames[] = { | |
8545 | (char *) "self", NULL | |
8546 | }; | |
8547 | ||
8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 8550 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8551 | |
8552 | { | |
8553 | #if wxUSE_UNICODE | |
d03fd34d | 8554 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8555 | #else |
d03fd34d | 8556 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8557 | #endif |
8558 | } | |
8559 | return resultobj; | |
8560 | fail: | |
8561 | return NULL; | |
8562 | } | |
8563 | ||
8564 | ||
8565 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8566 | PyObject *resultobj; | |
8567 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8568 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 8569 | bool temp2 = False ; |
d14a1e28 RD |
8570 | PyObject * obj0 = 0 ; |
8571 | PyObject * obj1 = 0 ; | |
8572 | char *kwnames[] = { | |
8573 | (char *) "self",(char *) "Description", NULL | |
8574 | }; | |
8575 | ||
8576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
8578 | { |
8579 | arg2 = wxString_in_helper(obj1); | |
8580 | if (arg2 == NULL) SWIG_fail; | |
8581 | temp2 = True; | |
8582 | } | |
d03fd34d | 8583 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8584 | |
8585 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
8586 | { |
8587 | if (temp2) | |
8588 | delete arg2; | |
8589 | } | |
d14a1e28 RD |
8590 | return resultobj; |
8591 | fail: | |
f775c30d RD |
8592 | { |
8593 | if (temp2) | |
8594 | delete arg2; | |
8595 | } | |
d14a1e28 RD |
8596 | return NULL; |
8597 | } | |
8598 | ||
8599 | ||
8600 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8601 | PyObject *resultobj; | |
8602 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8603 | wxString *result; |
d14a1e28 RD |
8604 | PyObject * obj0 = 0 ; |
8605 | char *kwnames[] = { | |
8606 | (char *) "self", NULL | |
8607 | }; | |
8608 | ||
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 8611 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8612 | |
8613 | { | |
8614 | #if wxUSE_UNICODE | |
d03fd34d | 8615 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8616 | #else |
d03fd34d | 8617 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8618 | #endif |
8619 | } | |
8620 | return resultobj; | |
8621 | fail: | |
8622 | return NULL; | |
8623 | } | |
8624 | ||
8625 | ||
8626 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8627 | PyObject *obj; | |
8628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8629 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8630 | Py_INCREF(obj); | |
8631 | return Py_BuildValue((char *)""); | |
8632 | } | |
8633 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8634 | PyObject *resultobj; | |
8635 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8636 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8637 | wxLocale *result; | |
8638 | char *kwnames[] = { | |
8639 | (char *) "language",(char *) "flags", NULL | |
8640 | }; | |
8641 | ||
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
8643 | { | |
8644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8645 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8646 | ||
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8651 | return resultobj; | |
8652 | fail: | |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
8657 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8658 | PyObject *resultobj; | |
8659 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8660 | PyObject * obj0 = 0 ; | |
8661 | char *kwnames[] = { | |
8662 | (char *) "self", NULL | |
8663 | }; | |
8664 | ||
8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8667 | { | |
8668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8669 | delete arg1; | |
8670 | ||
8671 | wxPyEndAllowThreads(__tstate); | |
8672 | if (PyErr_Occurred()) SWIG_fail; | |
8673 | } | |
8674 | Py_INCREF(Py_None); resultobj = Py_None; | |
8675 | return resultobj; | |
8676 | fail: | |
8677 | return NULL; | |
8678 | } | |
8679 | ||
8680 | ||
8681 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8682 | PyObject *resultobj; | |
8683 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8684 | wxString *arg2 = 0 ; | |
8685 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8686 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8687 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8688 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
8689 | bool arg5 = (bool) True ; |
8690 | bool arg6 = (bool) False ; | |
d14a1e28 | 8691 | bool result; |
423f194a RD |
8692 | bool temp2 = False ; |
8693 | bool temp3 = False ; | |
8694 | bool temp4 = False ; | |
d14a1e28 RD |
8695 | PyObject * obj0 = 0 ; |
8696 | PyObject * obj1 = 0 ; | |
8697 | PyObject * obj2 = 0 ; | |
8698 | PyObject * obj3 = 0 ; | |
8699 | PyObject * obj4 = 0 ; | |
8700 | PyObject * obj5 = 0 ; | |
8701 | char *kwnames[] = { | |
8702 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8703 | }; | |
8704 | ||
8705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8707 | { | |
8708 | arg2 = wxString_in_helper(obj1); | |
8709 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8710 | temp2 = True; |
d14a1e28 RD |
8711 | } |
8712 | if (obj2) { | |
8713 | { | |
8714 | arg3 = wxString_in_helper(obj2); | |
8715 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8716 | temp3 = True; |
d14a1e28 RD |
8717 | } |
8718 | } | |
8719 | if (obj3) { | |
8720 | { | |
8721 | arg4 = wxString_in_helper(obj3); | |
8722 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8723 | temp4 = True; |
d14a1e28 RD |
8724 | } |
8725 | } | |
8726 | if (obj4) { | |
83448d71 RD |
8727 | { |
8728 | arg5 = (bool) SPyObj_AsBool(obj4); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
d14a1e28 RD |
8731 | } |
8732 | if (obj5) { | |
83448d71 RD |
8733 | { |
8734 | arg6 = (bool) SPyObj_AsBool(obj5); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
d14a1e28 RD |
8737 | } |
8738 | { | |
8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8740 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8741 | ||
8742 | wxPyEndAllowThreads(__tstate); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | resultobj = PyInt_FromLong((long)result); | |
8746 | { | |
8747 | if (temp2) | |
8748 | delete arg2; | |
8749 | } | |
8750 | { | |
8751 | if (temp3) | |
8752 | delete arg3; | |
8753 | } | |
8754 | { | |
8755 | if (temp4) | |
8756 | delete arg4; | |
8757 | } | |
8758 | return resultobj; | |
8759 | fail: | |
8760 | { | |
8761 | if (temp2) | |
8762 | delete arg2; | |
8763 | } | |
8764 | { | |
8765 | if (temp3) | |
8766 | delete arg3; | |
8767 | } | |
8768 | { | |
8769 | if (temp4) | |
8770 | delete arg4; | |
8771 | } | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
8776 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8777 | PyObject *resultobj; | |
8778 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8779 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8780 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8781 | bool result; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | result = (bool)(arg1)->Init(arg2,arg3); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | resultobj = PyInt_FromLong((long)result); | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
8803 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8804 | PyObject *resultobj; | |
8805 | int result; | |
8806 | char *kwnames[] = { | |
8807 | NULL | |
8808 | }; | |
8809 | ||
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8811 | { | |
8812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8813 | result = (int)wxLocale::GetSystemLanguage(); | |
8814 | ||
8815 | wxPyEndAllowThreads(__tstate); | |
8816 | if (PyErr_Occurred()) SWIG_fail; | |
8817 | } | |
8818 | resultobj = PyInt_FromLong((long)result); | |
8819 | return resultobj; | |
8820 | fail: | |
8821 | return NULL; | |
8822 | } | |
8823 | ||
8824 | ||
8825 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8826 | PyObject *resultobj; | |
8827 | int result; | |
8828 | char *kwnames[] = { | |
8829 | NULL | |
8830 | }; | |
8831 | ||
8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8833 | { | |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | result = (int)wxLocale::GetSystemEncoding(); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | resultobj = PyInt_FromLong((long)result); | |
8841 | return resultobj; | |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
8847 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8848 | PyObject *resultobj; | |
8849 | wxString result; | |
8850 | char *kwnames[] = { | |
8851 | NULL | |
8852 | }; | |
8853 | ||
8854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8855 | { | |
8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8857 | result = wxLocale::GetSystemEncodingName(); | |
8858 | ||
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | { | |
8863 | #if wxUSE_UNICODE | |
8864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8865 | #else | |
8866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8867 | #endif | |
8868 | } | |
8869 | return resultobj; | |
8870 | fail: | |
8871 | return NULL; | |
8872 | } | |
8873 | ||
8874 | ||
8875 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8876 | PyObject *resultobj; | |
8877 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8878 | bool result; | |
8879 | PyObject * obj0 = 0 ; | |
8880 | char *kwnames[] = { | |
8881 | (char *) "self", NULL | |
8882 | }; | |
8883 | ||
8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8886 | { | |
8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8888 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8889 | ||
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | resultobj = PyInt_FromLong((long)result); | |
8894 | return resultobj; | |
8895 | fail: | |
8896 | return NULL; | |
8897 | } | |
8898 | ||
8899 | ||
8900 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8901 | PyObject *resultobj; | |
8902 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8903 | wxString result; | |
8904 | PyObject * obj0 = 0 ; | |
8905 | char *kwnames[] = { | |
8906 | (char *) "self", NULL | |
8907 | }; | |
8908 | ||
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8911 | { | |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8913 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8914 | ||
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
8918 | { | |
8919 | #if wxUSE_UNICODE | |
8920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8921 | #else | |
8922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8923 | #endif | |
8924 | } | |
8925 | return resultobj; | |
8926 | fail: | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
8931 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject *resultobj; | |
8933 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8934 | int result; | |
8935 | PyObject * obj0 = 0 ; | |
8936 | char *kwnames[] = { | |
8937 | (char *) "self", NULL | |
8938 | }; | |
8939 | ||
8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8942 | { | |
8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8944 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8945 | ||
8946 | wxPyEndAllowThreads(__tstate); | |
8947 | if (PyErr_Occurred()) SWIG_fail; | |
8948 | } | |
8949 | resultobj = PyInt_FromLong((long)result); | |
8950 | return resultobj; | |
8951 | fail: | |
8952 | return NULL; | |
8953 | } | |
8954 | ||
8955 | ||
8956 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8957 | PyObject *resultobj; | |
8958 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8959 | wxString result; | |
8960 | PyObject * obj0 = 0 ; | |
8961 | char *kwnames[] = { | |
8962 | (char *) "self", NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8967 | { | |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8969 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | { | |
8975 | #if wxUSE_UNICODE | |
8976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8977 | #else | |
8978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8979 | #endif | |
8980 | } | |
8981 | return resultobj; | |
8982 | fail: | |
8983 | return NULL; | |
8984 | } | |
8985 | ||
8986 | ||
8987 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8988 | PyObject *resultobj; | |
8989 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8990 | wxString result; | |
8991 | PyObject * obj0 = 0 ; | |
8992 | char *kwnames[] = { | |
8993 | (char *) "self", NULL | |
8994 | }; | |
8995 | ||
8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | { | |
9006 | #if wxUSE_UNICODE | |
9007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9008 | #else | |
9009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9010 | #endif | |
9011 | } | |
9012 | return resultobj; | |
9013 | fail: | |
9014 | return NULL; | |
9015 | } | |
9016 | ||
9017 | ||
9018 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9019 | PyObject *resultobj; | |
9020 | wxString *arg1 = 0 ; | |
423f194a | 9021 | bool temp1 = False ; |
d14a1e28 RD |
9022 | PyObject * obj0 = 0 ; |
9023 | char *kwnames[] = { | |
9024 | (char *) "prefix", NULL | |
9025 | }; | |
9026 | ||
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9028 | { | |
9029 | arg1 = wxString_in_helper(obj0); | |
9030 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9031 | temp1 = True; |
d14a1e28 RD |
9032 | } |
9033 | { | |
9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9035 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9036 | ||
9037 | wxPyEndAllowThreads(__tstate); | |
9038 | if (PyErr_Occurred()) SWIG_fail; | |
9039 | } | |
9040 | Py_INCREF(Py_None); resultobj = Py_None; | |
9041 | { | |
9042 | if (temp1) | |
9043 | delete arg1; | |
9044 | } | |
9045 | return resultobj; | |
9046 | fail: | |
9047 | { | |
9048 | if (temp1) | |
9049 | delete arg1; | |
9050 | } | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
9055 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject *resultobj; | |
9057 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9058 | wxString *arg2 = 0 ; | |
9059 | bool result; | |
423f194a | 9060 | bool temp2 = False ; |
d14a1e28 RD |
9061 | PyObject * obj0 = 0 ; |
9062 | PyObject * obj1 = 0 ; | |
9063 | char *kwnames[] = { | |
9064 | (char *) "self",(char *) "szDomain", NULL | |
9065 | }; | |
9066 | ||
9067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9069 | { | |
9070 | arg2 = wxString_in_helper(obj1); | |
9071 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9072 | temp2 = True; |
d14a1e28 RD |
9073 | } |
9074 | { | |
9075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9076 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9077 | ||
9078 | wxPyEndAllowThreads(__tstate); | |
9079 | if (PyErr_Occurred()) SWIG_fail; | |
9080 | } | |
9081 | resultobj = PyInt_FromLong((long)result); | |
9082 | { | |
9083 | if (temp2) | |
9084 | delete arg2; | |
9085 | } | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | { | |
9089 | if (temp2) | |
9090 | delete arg2; | |
9091 | } | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject *resultobj; | |
9098 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9099 | wxString *arg2 = 0 ; | |
9100 | bool result; | |
423f194a | 9101 | bool temp2 = False ; |
d14a1e28 RD |
9102 | PyObject * obj0 = 0 ; |
9103 | PyObject * obj1 = 0 ; | |
9104 | char *kwnames[] = { | |
9105 | (char *) "self",(char *) "szDomain", NULL | |
9106 | }; | |
9107 | ||
9108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9110 | { | |
9111 | arg2 = wxString_in_helper(obj1); | |
9112 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9113 | temp2 = True; |
d14a1e28 RD |
9114 | } |
9115 | { | |
9116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9117 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9118 | ||
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
9122 | resultobj = PyInt_FromLong((long)result); | |
9123 | { | |
9124 | if (temp2) | |
9125 | delete arg2; | |
9126 | } | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | { | |
9130 | if (temp2) | |
9131 | delete arg2; | |
9132 | } | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
9137 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9138 | PyObject *resultobj; | |
9139 | int arg1 ; | |
9140 | wxLanguageInfo *result; | |
9141 | char *kwnames[] = { | |
9142 | (char *) "lang", NULL | |
9143 | }; | |
9144 | ||
9145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
9146 | { | |
9147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9148 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9149 | ||
9150 | wxPyEndAllowThreads(__tstate); | |
9151 | if (PyErr_Occurred()) SWIG_fail; | |
9152 | } | |
9153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9154 | return resultobj; | |
9155 | fail: | |
9156 | return NULL; | |
9157 | } | |
9158 | ||
9159 | ||
9160 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9161 | PyObject *resultobj; | |
9162 | int arg1 ; | |
9163 | wxString result; | |
9164 | char *kwnames[] = { | |
9165 | (char *) "lang", NULL | |
9166 | }; | |
9167 | ||
9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
9169 | { | |
9170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9171 | result = wxLocale::GetLanguageName(arg1); | |
9172 | ||
9173 | wxPyEndAllowThreads(__tstate); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | { | |
9177 | #if wxUSE_UNICODE | |
9178 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9179 | #else | |
9180 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9181 | #endif | |
9182 | } | |
9183 | return resultobj; | |
9184 | fail: | |
9185 | return NULL; | |
9186 | } | |
9187 | ||
9188 | ||
9189 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9190 | PyObject *resultobj; | |
9191 | wxString *arg1 = 0 ; | |
9192 | wxLanguageInfo *result; | |
423f194a | 9193 | bool temp1 = False ; |
d14a1e28 RD |
9194 | PyObject * obj0 = 0 ; |
9195 | char *kwnames[] = { | |
9196 | (char *) "locale", NULL | |
9197 | }; | |
9198 | ||
9199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9200 | { | |
9201 | arg1 = wxString_in_helper(obj0); | |
9202 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9203 | temp1 = True; |
d14a1e28 RD |
9204 | } |
9205 | { | |
9206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9207 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9208 | ||
9209 | wxPyEndAllowThreads(__tstate); | |
9210 | if (PyErr_Occurred()) SWIG_fail; | |
9211 | } | |
9212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9213 | { | |
9214 | if (temp1) | |
9215 | delete arg1; | |
9216 | } | |
9217 | return resultobj; | |
9218 | fail: | |
9219 | { | |
9220 | if (temp1) | |
9221 | delete arg1; | |
9222 | } | |
9223 | return NULL; | |
9224 | } | |
9225 | ||
9226 | ||
9227 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject *resultobj; | |
9229 | wxLanguageInfo *arg1 = 0 ; | |
9230 | PyObject * obj0 = 0 ; | |
9231 | char *kwnames[] = { | |
9232 | (char *) "info", NULL | |
9233 | }; | |
9234 | ||
9235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9237 | if (arg1 == NULL) { | |
9238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9239 | } | |
9240 | { | |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | Py_INCREF(Py_None); resultobj = Py_None; | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
9254 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9255 | PyObject *resultobj; | |
9256 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9257 | wxString *arg2 = 0 ; | |
9258 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9259 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9260 | wxString result; | |
423f194a RD |
9261 | bool temp2 = False ; |
9262 | bool temp3 = False ; | |
d14a1e28 RD |
9263 | PyObject * obj0 = 0 ; |
9264 | PyObject * obj1 = 0 ; | |
9265 | PyObject * obj2 = 0 ; | |
9266 | char *kwnames[] = { | |
9267 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | { | |
9273 | arg2 = wxString_in_helper(obj1); | |
9274 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9275 | temp2 = True; |
d14a1e28 RD |
9276 | } |
9277 | if (obj2) { | |
9278 | { | |
9279 | arg3 = wxString_in_helper(obj2); | |
9280 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9281 | temp3 = True; |
d14a1e28 RD |
9282 | } |
9283 | } | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | { | |
9292 | #if wxUSE_UNICODE | |
9293 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9294 | #else | |
9295 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9296 | #endif | |
9297 | } | |
9298 | { | |
9299 | if (temp2) | |
9300 | delete arg2; | |
9301 | } | |
9302 | { | |
9303 | if (temp3) | |
9304 | delete arg3; | |
9305 | } | |
9306 | return resultobj; | |
9307 | fail: | |
9308 | { | |
9309 | if (temp2) | |
9310 | delete arg2; | |
9311 | } | |
9312 | { | |
9313 | if (temp3) | |
9314 | delete arg3; | |
9315 | } | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
9320 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject *resultobj; | |
9322 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9323 | wxString *result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | { | |
9334 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9335 | result = (wxString *) &_result_ref; | |
9336 | } | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
f0983263 RD |
9341 | { |
9342 | #if wxUSE_UNICODE | |
9343 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9344 | #else | |
9345 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9346 | #endif | |
9347 | } | |
d14a1e28 RD |
9348 | return resultobj; |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9355 | PyObject *obj; | |
9356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9357 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9358 | Py_INCREF(obj); | |
9359 | return Py_BuildValue((char *)""); | |
9360 | } | |
9361 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxLocale *result; | |
9364 | char *kwnames[] = { | |
9365 | NULL | |
9366 | }; | |
9367 | ||
9368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9369 | { | |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | result = (wxLocale *)wxGetLocale(); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9377 | return resultobj; | |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9384 | PyObject *resultobj; | |
9385 | wxString *arg1 = 0 ; | |
9386 | wxString result; | |
423f194a | 9387 | bool temp1 = False ; |
d14a1e28 RD |
9388 | PyObject * obj0 = 0 ; |
9389 | ||
9390 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9391 | { | |
9392 | arg1 = wxString_in_helper(obj0); | |
9393 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9394 | temp1 = True; |
d14a1e28 RD |
9395 | } |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | result = wxGetTranslation((wxString const &)*arg1); | |
9399 | ||
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
9403 | { | |
9404 | #if wxUSE_UNICODE | |
9405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9406 | #else | |
9407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9408 | #endif | |
9409 | } | |
9410 | { | |
9411 | if (temp1) | |
9412 | delete arg1; | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | { | |
9417 | if (temp1) | |
9418 | delete arg1; | |
9419 | } | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
9424 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9425 | PyObject *resultobj; | |
9426 | wxString *arg1 = 0 ; | |
9427 | wxString *arg2 = 0 ; | |
9428 | size_t arg3 ; | |
9429 | wxString result; | |
423f194a RD |
9430 | bool temp1 = False ; |
9431 | bool temp2 = False ; | |
d14a1e28 RD |
9432 | PyObject * obj0 = 0 ; |
9433 | PyObject * obj1 = 0 ; | |
9434 | PyObject * obj2 = 0 ; | |
9435 | ||
9436 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9437 | { | |
9438 | arg1 = wxString_in_helper(obj0); | |
9439 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9440 | temp1 = True; |
d14a1e28 RD |
9441 | } |
9442 | { | |
9443 | arg2 = wxString_in_helper(obj1); | |
9444 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9445 | temp2 = True; |
d14a1e28 | 9446 | } |
83448d71 RD |
9447 | { |
9448 | arg3 = (size_t) SPyObj_AsUnsignedLong(obj2); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
d14a1e28 RD |
9451 | { |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | { | |
9459 | #if wxUSE_UNICODE | |
9460 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9461 | #else | |
9462 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9463 | #endif | |
9464 | } | |
9465 | { | |
9466 | if (temp1) | |
9467 | delete arg1; | |
9468 | } | |
9469 | { | |
9470 | if (temp2) | |
9471 | delete arg2; | |
9472 | } | |
9473 | return resultobj; | |
9474 | fail: | |
9475 | { | |
9476 | if (temp1) | |
9477 | delete arg1; | |
9478 | } | |
9479 | { | |
9480 | if (temp2) | |
9481 | delete arg2; | |
9482 | } | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9488 | int argc; | |
9489 | PyObject *argv[4]; | |
9490 | int ii; | |
9491 | ||
9492 | argc = PyObject_Length(args); | |
9493 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9494 | argv[ii] = PyTuple_GetItem(args,ii); | |
9495 | } | |
9496 | if (argc == 1) { | |
9497 | int _v; | |
9498 | { | |
9499 | void *ptr; | |
9500 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9501 | _v = 0; | |
9502 | PyErr_Clear(); | |
9503 | } else { | |
9504 | _v = 1; | |
9505 | } | |
9506 | } | |
9507 | if (_v) { | |
9508 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9509 | } | |
9510 | } | |
9511 | if (argc == 3) { | |
9512 | int _v; | |
9513 | { | |
9514 | void *ptr; | |
9515 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9516 | _v = 0; | |
9517 | PyErr_Clear(); | |
9518 | } else { | |
9519 | _v = 1; | |
9520 | } | |
9521 | } | |
9522 | if (_v) { | |
9523 | { | |
9524 | void *ptr; | |
9525 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9526 | _v = 0; | |
9527 | PyErr_Clear(); | |
9528 | } else { | |
9529 | _v = 1; | |
9530 | } | |
9531 | } | |
9532 | if (_v) { | |
9533 | { | |
83448d71 RD |
9534 | SPyObj_AsUnsignedInt(argv[2]); |
9535 | if (PyErr_Occurred()) { | |
9536 | _v = 0; | |
9537 | PyErr_Clear(); | |
9538 | } else { | |
9539 | _v = 1; | |
9540 | } | |
d14a1e28 RD |
9541 | } |
9542 | if (_v) { | |
9543 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9544 | } | |
9545 | } | |
9546 | } | |
9547 | } | |
9548 | ||
9549 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9550 | return NULL; | |
9551 | } | |
9552 | ||
9553 | ||
9554 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject *resultobj; | |
9556 | wxEncodingConverter *result; | |
9557 | char *kwnames[] = { | |
9558 | NULL | |
9559 | }; | |
9560 | ||
9561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9570 | return resultobj; | |
9571 | fail: | |
9572 | return NULL; | |
9573 | } | |
9574 | ||
9575 | ||
9576 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject *resultobj; | |
9578 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9579 | PyObject * obj0 = 0 ; | |
9580 | char *kwnames[] = { | |
9581 | (char *) "self", NULL | |
9582 | }; | |
9583 | ||
9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9586 | { | |
9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9588 | delete arg1; | |
9589 | ||
9590 | wxPyEndAllowThreads(__tstate); | |
9591 | if (PyErr_Occurred()) SWIG_fail; | |
9592 | } | |
9593 | Py_INCREF(Py_None); resultobj = Py_None; | |
9594 | return resultobj; | |
9595 | fail: | |
9596 | return NULL; | |
9597 | } | |
9598 | ||
9599 | ||
9600 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9601 | PyObject *resultobj; | |
9602 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9603 | int arg2 ; | |
9604 | int arg3 ; | |
9605 | int arg4 = (int) wxCONVERT_STRICT ; | |
9606 | bool result; | |
9607 | PyObject * obj0 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9614 | { | |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
9621 | resultobj = PyInt_FromLong((long)result); | |
9622 | return resultobj; | |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9631 | wxString *arg2 = 0 ; | |
9632 | wxString result; | |
423f194a | 9633 | bool temp2 = False ; |
d14a1e28 RD |
9634 | PyObject * obj0 = 0 ; |
9635 | PyObject * obj1 = 0 ; | |
9636 | char *kwnames[] = { | |
9637 | (char *) "self",(char *) "input", NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9642 | { | |
9643 | arg2 = wxString_in_helper(obj1); | |
9644 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9645 | temp2 = True; |
d14a1e28 RD |
9646 | } |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (arg1)->Convert((wxString const &)*arg2); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | { | |
9655 | #if wxUSE_UNICODE | |
9656 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9657 | #else | |
9658 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9659 | #endif | |
9660 | } | |
9661 | { | |
9662 | if (temp2) | |
9663 | delete arg2; | |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | { | |
9668 | if (temp2) | |
9669 | delete arg2; | |
9670 | } | |
9671 | return NULL; | |
9672 | } | |
9673 | ||
9674 | ||
9675 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9676 | PyObject *resultobj; | |
9677 | int arg1 ; | |
9678 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9679 | wxFontEncodingArray result; | |
9680 | char *kwnames[] = { | |
9681 | (char *) "enc",(char *) "platform", NULL | |
9682 | }; | |
9683 | ||
9684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
9685 | { | |
9686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9687 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9688 | ||
9689 | wxPyEndAllowThreads(__tstate); | |
9690 | if (PyErr_Occurred()) SWIG_fail; | |
9691 | } | |
9692 | { | |
9693 | resultobj = PyList_New(0); | |
9694 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9695 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9696 | PyList_Append(resultobj, number); | |
9697 | Py_DECREF(number); | |
9698 | } | |
9699 | } | |
9700 | return resultobj; | |
9701 | fail: | |
9702 | return NULL; | |
9703 | } | |
9704 | ||
9705 | ||
9706 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject *resultobj; | |
9708 | int arg1 ; | |
9709 | wxFontEncodingArray result; | |
9710 | char *kwnames[] = { | |
9711 | (char *) "enc", NULL | |
9712 | }; | |
9713 | ||
9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
9715 | { | |
9716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9717 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9718 | ||
9719 | wxPyEndAllowThreads(__tstate); | |
9720 | if (PyErr_Occurred()) SWIG_fail; | |
9721 | } | |
9722 | { | |
9723 | resultobj = PyList_New(0); | |
9724 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9725 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9726 | PyList_Append(resultobj, number); | |
9727 | Py_DECREF(number); | |
9728 | } | |
9729 | } | |
9730 | return resultobj; | |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | int arg1 ; | |
9739 | int arg2 ; | |
9740 | bool result; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "encIn",(char *) "encOut", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
9746 | { | |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9748 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
9752 | } | |
9753 | resultobj = PyInt_FromLong((long)result); | |
9754 | return resultobj; | |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9761 | PyObject *obj; | |
9762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9763 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9764 | Py_INCREF(obj); | |
9765 | return Py_BuildValue((char *)""); | |
9766 | } | |
9767 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj; | |
9769 | wxDC *arg1 = (wxDC *) 0 ; | |
9770 | PyObject * obj0 = 0 ; | |
9771 | char *kwnames[] = { | |
9772 | (char *) "self", NULL | |
9773 | }; | |
9774 | ||
9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9777 | { | |
9778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9779 | delete arg1; | |
9780 | ||
9781 | wxPyEndAllowThreads(__tstate); | |
9782 | if (PyErr_Occurred()) SWIG_fail; | |
9783 | } | |
9784 | Py_INCREF(Py_None); resultobj = Py_None; | |
9785 | return resultobj; | |
9786 | fail: | |
9787 | return NULL; | |
9788 | } | |
9789 | ||
9790 | ||
9791 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9792 | PyObject *resultobj; | |
9793 | wxDC *arg1 = (wxDC *) 0 ; | |
9794 | PyObject * obj0 = 0 ; | |
9795 | char *kwnames[] = { | |
9796 | (char *) "self", NULL | |
9797 | }; | |
9798 | ||
9799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9801 | { | |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9803 | (arg1)->BeginDrawing(); | |
9804 | ||
9805 | wxPyEndAllowThreads(__tstate); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
9807 | } | |
9808 | Py_INCREF(Py_None); resultobj = Py_None; | |
9809 | return resultobj; | |
9810 | fail: | |
9811 | return NULL; | |
9812 | } | |
9813 | ||
9814 | ||
9815 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9816 | PyObject *resultobj; | |
9817 | wxDC *arg1 = (wxDC *) 0 ; | |
9818 | PyObject * obj0 = 0 ; | |
9819 | char *kwnames[] = { | |
9820 | (char *) "self", NULL | |
9821 | }; | |
9822 | ||
9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9825 | { | |
9826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9827 | (arg1)->EndDrawing(); | |
9828 | ||
9829 | wxPyEndAllowThreads(__tstate); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | Py_INCREF(Py_None); resultobj = Py_None; | |
9833 | return resultobj; | |
9834 | fail: | |
9835 | return NULL; | |
9836 | } | |
9837 | ||
9838 | ||
9839 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9840 | PyObject *resultobj; | |
9841 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9842 | int arg2 ; |
9843 | int arg3 ; | |
d14a1e28 RD |
9844 | wxColour *arg4 = 0 ; |
9845 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9846 | bool result; | |
9847 | wxColour temp4 ; | |
9848 | PyObject * obj0 = 0 ; | |
9849 | PyObject * obj3 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
9855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9856 | { | |
9857 | arg4 = &temp4; | |
9858 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9859 | } | |
9860 | { | |
9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9862 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9863 | ||
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
9867 | resultobj = PyInt_FromLong((long)result); | |
9868 | return resultobj; | |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
9874 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9875 | PyObject *resultobj; | |
9876 | wxDC *arg1 = (wxDC *) 0 ; | |
9877 | wxPoint *arg2 = 0 ; | |
9878 | wxColour *arg3 = 0 ; | |
9879 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9880 | bool result; | |
9881 | wxPoint temp2 ; | |
9882 | wxColour temp3 ; | |
9883 | PyObject * obj0 = 0 ; | |
9884 | PyObject * obj1 = 0 ; | |
9885 | PyObject * obj2 = 0 ; | |
9886 | char *kwnames[] = { | |
9887 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9888 | }; | |
9889 | ||
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9892 | { | |
9893 | arg2 = &temp2; | |
9894 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9895 | } | |
9896 | { | |
9897 | arg3 = &temp3; | |
9898 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9899 | } | |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | resultobj = PyInt_FromLong((long)result); | |
9908 | return resultobj; | |
9909 | fail: | |
9910 | return NULL; | |
9911 | } | |
9912 | ||
9913 | ||
9914 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9915 | PyObject *resultobj; | |
9916 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9917 | int arg2 ; |
9918 | int arg3 ; | |
d14a1e28 RD |
9919 | wxColour result; |
9920 | PyObject * obj0 = 0 ; | |
9921 | char *kwnames[] = { | |
9922 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9923 | }; | |
9924 | ||
9925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9927 | { | |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9930 | ||
9931 | wxPyEndAllowThreads(__tstate); | |
9932 | if (PyErr_Occurred()) SWIG_fail; | |
9933 | } | |
9934 | { | |
9935 | wxColour * resultptr; | |
9936 | resultptr = new wxColour((wxColour &) result); | |
9937 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9938 | } | |
9939 | return resultobj; | |
9940 | fail: | |
9941 | return NULL; | |
9942 | } | |
9943 | ||
9944 | ||
9945 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9946 | PyObject *resultobj; | |
9947 | wxDC *arg1 = (wxDC *) 0 ; | |
9948 | wxPoint *arg2 = 0 ; | |
9949 | wxColour result; | |
9950 | wxPoint temp2 ; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | PyObject * obj1 = 0 ; | |
9953 | char *kwnames[] = { | |
9954 | (char *) "self",(char *) "pt", NULL | |
9955 | }; | |
9956 | ||
9957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9959 | { | |
9960 | arg2 = &temp2; | |
9961 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9962 | } | |
9963 | { | |
9964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9965 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9966 | ||
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) SWIG_fail; | |
9969 | } | |
9970 | { | |
9971 | wxColour * resultptr; | |
9972 | resultptr = new wxColour((wxColour &) result); | |
9973 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9974 | } | |
9975 | return resultobj; | |
9976 | fail: | |
9977 | return NULL; | |
9978 | } | |
9979 | ||
9980 | ||
9981 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9982 | PyObject *resultobj; | |
9983 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9984 | int arg2 ; |
9985 | int arg3 ; | |
9986 | int arg4 ; | |
9987 | int arg5 ; | |
d14a1e28 RD |
9988 | PyObject * obj0 = 0 ; |
9989 | char *kwnames[] = { | |
9990 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9991 | }; | |
9992 | ||
9993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9995 | { | |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9998 | ||
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | } | |
10002 | Py_INCREF(Py_None); resultobj = Py_None; | |
10003 | return resultobj; | |
10004 | fail: | |
10005 | return NULL; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject *resultobj; | |
10011 | wxDC *arg1 = (wxDC *) 0 ; | |
10012 | wxPoint *arg2 = 0 ; | |
10013 | wxPoint *arg3 = 0 ; | |
10014 | wxPoint temp2 ; | |
10015 | wxPoint temp3 ; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | PyObject * obj1 = 0 ; | |
10018 | PyObject * obj2 = 0 ; | |
10019 | char *kwnames[] = { | |
10020 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10021 | }; | |
10022 | ||
10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10025 | { | |
10026 | arg2 = &temp2; | |
10027 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10028 | } | |
10029 | { | |
10030 | arg3 = &temp3; | |
10031 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10032 | } | |
10033 | { | |
10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10035 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10036 | ||
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | Py_INCREF(Py_None); resultobj = Py_None; | |
10041 | return resultobj; | |
10042 | fail: | |
10043 | return NULL; | |
10044 | } | |
10045 | ||
10046 | ||
10047 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10048 | PyObject *resultobj; | |
10049 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10050 | int arg2 ; |
10051 | int arg3 ; | |
d14a1e28 RD |
10052 | PyObject * obj0 = 0 ; |
10053 | char *kwnames[] = { | |
10054 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10055 | }; | |
10056 | ||
10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10059 | { | |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | (arg1)->CrossHair(arg2,arg3); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
10066 | Py_INCREF(Py_None); resultobj = Py_None; | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj; | |
10075 | wxDC *arg1 = (wxDC *) 0 ; | |
10076 | wxPoint *arg2 = 0 ; | |
10077 | wxPoint temp2 ; | |
10078 | PyObject * obj0 = 0 ; | |
10079 | PyObject * obj1 = 0 ; | |
10080 | char *kwnames[] = { | |
10081 | (char *) "self",(char *) "pt", NULL | |
10082 | }; | |
10083 | ||
10084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10086 | { | |
10087 | arg2 = &temp2; | |
10088 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10089 | } | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10092 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10093 | ||
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
10096 | } | |
10097 | Py_INCREF(Py_None); resultobj = Py_None; | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
10104 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject *resultobj; | |
10106 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10107 | int arg2 ; |
10108 | int arg3 ; | |
10109 | int arg4 ; | |
10110 | int arg5 ; | |
10111 | int arg6 ; | |
10112 | int arg7 ; | |
d14a1e28 RD |
10113 | PyObject * obj0 = 0 ; |
10114 | char *kwnames[] = { | |
10115 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
10119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
10127 | Py_INCREF(Py_None); resultobj = Py_None; | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxDC *arg1 = (wxDC *) 0 ; | |
10137 | wxPoint *arg2 = 0 ; | |
10138 | wxPoint *arg3 = 0 ; | |
10139 | wxPoint *arg4 = 0 ; | |
10140 | wxPoint temp2 ; | |
10141 | wxPoint temp3 ; | |
10142 | wxPoint temp4 ; | |
10143 | PyObject * obj0 = 0 ; | |
10144 | PyObject * obj1 = 0 ; | |
10145 | PyObject * obj2 = 0 ; | |
10146 | PyObject * obj3 = 0 ; | |
10147 | char *kwnames[] = { | |
10148 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10149 | }; | |
10150 | ||
10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10153 | { | |
10154 | arg2 = &temp2; | |
10155 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10156 | } | |
10157 | { | |
10158 | arg3 = &temp3; | |
10159 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10160 | } | |
10161 | { | |
10162 | arg4 = &temp4; | |
10163 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10164 | } | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
10172 | Py_INCREF(Py_None); resultobj = Py_None; | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10182 | int arg2 ; |
10183 | int arg3 ; | |
10184 | int arg4 ; | |
10185 | int arg5 ; | |
d14a1e28 RD |
10186 | PyObject * obj0 = 0 ; |
10187 | char *kwnames[] = { | |
10188 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10189 | }; | |
10190 | ||
10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10193 | { | |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10195 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10196 | ||
10197 | wxPyEndAllowThreads(__tstate); | |
10198 | if (PyErr_Occurred()) SWIG_fail; | |
10199 | } | |
10200 | Py_INCREF(Py_None); resultobj = Py_None; | |
10201 | return resultobj; | |
10202 | fail: | |
10203 | return NULL; | |
10204 | } | |
10205 | ||
10206 | ||
10207 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10208 | PyObject *resultobj; | |
10209 | wxDC *arg1 = (wxDC *) 0 ; | |
10210 | wxRect *arg2 = 0 ; | |
10211 | wxRect temp2 ; | |
10212 | PyObject * obj0 = 0 ; | |
10213 | PyObject * obj1 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self",(char *) "rect", NULL | |
10216 | }; | |
10217 | ||
10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10220 | { | |
10221 | arg2 = &temp2; | |
10222 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10223 | } | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | Py_INCREF(Py_None); resultobj = Py_None; | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10241 | int arg2 ; |
10242 | int arg3 ; | |
10243 | int arg4 ; | |
10244 | int arg5 ; | |
d14a1e28 RD |
10245 | double arg6 ; |
10246 | double arg7 ; | |
10247 | PyObject * obj0 = 0 ; | |
10248 | char *kwnames[] = { | |
10249 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10250 | }; | |
10251 | ||
10252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
10253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10254 | { | |
10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10256 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10257 | ||
10258 | wxPyEndAllowThreads(__tstate); | |
10259 | if (PyErr_Occurred()) SWIG_fail; | |
10260 | } | |
10261 | Py_INCREF(Py_None); resultobj = Py_None; | |
10262 | return resultobj; | |
10263 | fail: | |
10264 | return NULL; | |
10265 | } | |
10266 | ||
10267 | ||
10268 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10269 | PyObject *resultobj; | |
10270 | wxDC *arg1 = (wxDC *) 0 ; | |
10271 | wxPoint *arg2 = 0 ; | |
10272 | wxSize *arg3 = 0 ; | |
10273 | double arg4 ; | |
10274 | double arg5 ; | |
10275 | wxPoint temp2 ; | |
10276 | wxSize temp3 ; | |
10277 | PyObject * obj0 = 0 ; | |
10278 | PyObject * obj1 = 0 ; | |
10279 | PyObject * obj2 = 0 ; | |
10280 | char *kwnames[] = { | |
10281 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10282 | }; | |
10283 | ||
10284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10286 | { | |
10287 | arg2 = &temp2; | |
10288 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10289 | } | |
10290 | { | |
10291 | arg3 = &temp3; | |
10292 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10293 | } | |
10294 | { | |
10295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10296 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10297 | ||
10298 | wxPyEndAllowThreads(__tstate); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | Py_INCREF(Py_None); resultobj = Py_None; | |
10302 | return resultobj; | |
10303 | fail: | |
10304 | return NULL; | |
10305 | } | |
10306 | ||
10307 | ||
10308 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10309 | PyObject *resultobj; | |
10310 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10311 | int arg2 ; |
10312 | int arg3 ; | |
d14a1e28 RD |
10313 | PyObject * obj0 = 0 ; |
10314 | char *kwnames[] = { | |
10315 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10316 | }; | |
10317 | ||
10318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10320 | { | |
10321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10322 | (arg1)->DrawPoint(arg2,arg3); | |
10323 | ||
10324 | wxPyEndAllowThreads(__tstate); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | } | |
10327 | Py_INCREF(Py_None); resultobj = Py_None; | |
10328 | return resultobj; | |
10329 | fail: | |
10330 | return NULL; | |
10331 | } | |
10332 | ||
10333 | ||
10334 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10335 | PyObject *resultobj; | |
10336 | wxDC *arg1 = (wxDC *) 0 ; | |
10337 | wxPoint *arg2 = 0 ; | |
10338 | wxPoint temp2 ; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | PyObject * obj1 = 0 ; | |
10341 | char *kwnames[] = { | |
10342 | (char *) "self",(char *) "pt", NULL | |
10343 | }; | |
10344 | ||
10345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10347 | { | |
10348 | arg2 = &temp2; | |
10349 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10350 | } | |
10351 | { | |
10352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10353 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10354 | ||
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | Py_INCREF(Py_None); resultobj = Py_None; | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | return NULL; | |
10362 | } | |
10363 | ||
10364 | ||
10365 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10366 | PyObject *resultobj; | |
10367 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10368 | int arg2 ; |
10369 | int arg3 ; | |
10370 | int arg4 ; | |
10371 | int arg5 ; | |
d14a1e28 RD |
10372 | PyObject * obj0 = 0 ; |
10373 | char *kwnames[] = { | |
10374 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10381 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10382 | ||
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | Py_INCREF(Py_None); resultobj = Py_None; | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxDC *arg1 = (wxDC *) 0 ; | |
10396 | wxPoint *arg2 = 0 ; | |
10397 | wxSize *arg3 = 0 ; | |
10398 | wxPoint temp2 ; | |
10399 | wxSize temp3 ; | |
10400 | PyObject * obj0 = 0 ; | |
10401 | PyObject * obj1 = 0 ; | |
10402 | PyObject * obj2 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10409 | { | |
10410 | arg2 = &temp2; | |
10411 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10412 | } | |
10413 | { | |
10414 | arg3 = &temp3; | |
10415 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10416 | } | |
10417 | { | |
10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10419 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10420 | ||
10421 | wxPyEndAllowThreads(__tstate); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | } | |
10424 | Py_INCREF(Py_None); resultobj = Py_None; | |
10425 | return resultobj; | |
10426 | fail: | |
10427 | return NULL; | |
10428 | } | |
10429 | ||
10430 | ||
10431 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10432 | PyObject *resultobj; | |
10433 | wxDC *arg1 = (wxDC *) 0 ; | |
10434 | wxRect *arg2 = 0 ; | |
10435 | wxRect temp2 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self",(char *) "rect", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10444 | { | |
10445 | arg2 = &temp2; | |
10446 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10447 | } | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10451 | ||
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | } | |
10455 | Py_INCREF(Py_None); resultobj = Py_None; | |
10456 | return resultobj; | |
10457 | fail: | |
10458 | return NULL; | |
10459 | } | |
10460 | ||
10461 | ||
10462 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject *resultobj; | |
10464 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10465 | int arg2 ; |
10466 | int arg3 ; | |
10467 | int arg4 ; | |
10468 | int arg5 ; | |
d14a1e28 RD |
10469 | double arg6 ; |
10470 | PyObject * obj0 = 0 ; | |
10471 | char *kwnames[] = { | |
10472 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10473 | }; | |
10474 | ||
10475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10477 | { | |
10478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10479 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10480 | ||
10481 | wxPyEndAllowThreads(__tstate); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | } | |
10484 | Py_INCREF(Py_None); resultobj = Py_None; | |
10485 | return resultobj; | |
10486 | fail: | |
10487 | return NULL; | |
10488 | } | |
10489 | ||
10490 | ||
10491 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10492 | PyObject *resultobj; | |
10493 | wxDC *arg1 = (wxDC *) 0 ; | |
10494 | wxPoint *arg2 = 0 ; | |
10495 | wxSize *arg3 = 0 ; | |
10496 | double arg4 ; | |
10497 | wxPoint temp2 ; | |
10498 | wxSize temp3 ; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | PyObject * obj1 = 0 ; | |
10501 | PyObject * obj2 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10508 | { | |
10509 | arg2 = &temp2; | |
10510 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10511 | } | |
10512 | { | |
10513 | arg3 = &temp3; | |
10514 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10515 | } | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | Py_INCREF(Py_None); resultobj = Py_None; | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
10530 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject *resultobj; | |
10532 | wxDC *arg1 = (wxDC *) 0 ; | |
10533 | wxRect *arg2 = 0 ; | |
10534 | double arg3 ; | |
10535 | wxRect temp2 ; | |
10536 | PyObject * obj0 = 0 ; | |
10537 | PyObject * obj1 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10540 | }; | |
10541 | ||
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10544 | { | |
10545 | arg2 = &temp2; | |
10546 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10547 | } | |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | Py_INCREF(Py_None); resultobj = Py_None; | |
10556 | return resultobj; | |
10557 | fail: | |
10558 | return NULL; | |
10559 | } | |
10560 | ||
10561 | ||
10562 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject *resultobj; | |
10564 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10565 | int arg2 ; |
10566 | int arg3 ; | |
10567 | int arg4 ; | |
d14a1e28 RD |
10568 | PyObject * obj0 = 0 ; |
10569 | char *kwnames[] = { | |
10570 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10571 | }; | |
10572 | ||
10573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | Py_INCREF(Py_None); resultobj = Py_None; | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | return NULL; | |
10586 | } | |
10587 | ||
10588 | ||
10589 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10590 | PyObject *resultobj; | |
10591 | wxDC *arg1 = (wxDC *) 0 ; | |
10592 | wxPoint *arg2 = 0 ; | |
423f194a | 10593 | int arg3 ; |
d14a1e28 RD |
10594 | wxPoint temp2 ; |
10595 | PyObject * obj0 = 0 ; | |
10596 | PyObject * obj1 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10603 | { | |
10604 | arg2 = &temp2; | |
10605 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10606 | } | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10609 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10610 | ||
10611 | wxPyEndAllowThreads(__tstate); | |
10612 | if (PyErr_Occurred()) SWIG_fail; | |
10613 | } | |
10614 | Py_INCREF(Py_None); resultobj = Py_None; | |
10615 | return resultobj; | |
10616 | fail: | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
10621 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj; | |
10623 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10624 | int arg2 ; |
10625 | int arg3 ; | |
10626 | int arg4 ; | |
10627 | int arg5 ; | |
d14a1e28 RD |
10628 | PyObject * obj0 = 0 ; |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10631 | }; | |
10632 | ||
10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10635 | { | |
10636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10637 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10638 | ||
10639 | wxPyEndAllowThreads(__tstate); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | } | |
10642 | Py_INCREF(Py_None); resultobj = Py_None; | |
10643 | return resultobj; | |
10644 | fail: | |
10645 | return NULL; | |
10646 | } | |
10647 | ||
10648 | ||
10649 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10650 | PyObject *resultobj; | |
10651 | wxDC *arg1 = (wxDC *) 0 ; | |
10652 | wxPoint *arg2 = 0 ; | |
10653 | wxSize *arg3 = 0 ; | |
10654 | wxPoint temp2 ; | |
10655 | wxSize temp3 ; | |
10656 | PyObject * obj0 = 0 ; | |
10657 | PyObject * obj1 = 0 ; | |
10658 | PyObject * obj2 = 0 ; | |
10659 | char *kwnames[] = { | |
10660 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10661 | }; | |
10662 | ||
10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10665 | { | |
10666 | arg2 = &temp2; | |
10667 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10668 | } | |
10669 | { | |
10670 | arg3 = &temp3; | |
10671 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10676 | ||
10677 | wxPyEndAllowThreads(__tstate); | |
10678 | if (PyErr_Occurred()) SWIG_fail; | |
10679 | } | |
10680 | Py_INCREF(Py_None); resultobj = Py_None; | |
10681 | return resultobj; | |
10682 | fail: | |
10683 | return NULL; | |
10684 | } | |
10685 | ||
10686 | ||
10687 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10688 | PyObject *resultobj; | |
10689 | wxDC *arg1 = (wxDC *) 0 ; | |
10690 | wxRect *arg2 = 0 ; | |
10691 | wxRect temp2 ; | |
10692 | PyObject * obj0 = 0 ; | |
10693 | PyObject * obj1 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self",(char *) "rect", NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
10699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10700 | { | |
10701 | arg2 = &temp2; | |
10702 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10703 | } | |
10704 | { | |
10705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10706 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10707 | ||
10708 | wxPyEndAllowThreads(__tstate); | |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
10710 | } | |
10711 | Py_INCREF(Py_None); resultobj = Py_None; | |
10712 | return resultobj; | |
10713 | fail: | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj; | |
10720 | wxDC *arg1 = (wxDC *) 0 ; | |
10721 | wxIcon *arg2 = 0 ; | |
423f194a RD |
10722 | int arg3 ; |
10723 | int arg4 ; | |
d14a1e28 RD |
10724 | PyObject * obj0 = 0 ; |
10725 | PyObject * obj1 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10733 | if (arg2 == NULL) { | |
10734 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10735 | } | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | Py_INCREF(Py_None); resultobj = Py_None; | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj; | |
10752 | wxDC *arg1 = (wxDC *) 0 ; | |
10753 | wxIcon *arg2 = 0 ; | |
10754 | wxPoint *arg3 = 0 ; | |
10755 | wxPoint temp3 ; | |
10756 | PyObject * obj0 = 0 ; | |
10757 | PyObject * obj1 = 0 ; | |
10758 | PyObject * obj2 = 0 ; | |
10759 | char *kwnames[] = { | |
10760 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
10761 | }; | |
10762 | ||
10763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10765 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10766 | if (arg2 == NULL) { | |
10767 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10768 | } | |
10769 | { | |
10770 | arg3 = &temp3; | |
10771 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10772 | } | |
10773 | { | |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | Py_INCREF(Py_None); resultobj = Py_None; | |
10781 | return resultobj; | |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject *resultobj; | |
10789 | wxDC *arg1 = (wxDC *) 0 ; | |
10790 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
10791 | int arg3 ; |
10792 | int arg4 ; | |
10793 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
10794 | PyObject * obj0 = 0 ; |
10795 | PyObject * obj1 = 0 ; | |
10796 | PyObject * obj4 = 0 ; | |
10797 | char *kwnames[] = { | |
10798 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
10799 | }; | |
10800 | ||
10801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
10802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10804 | if (arg2 == NULL) { | |
10805 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10806 | } | |
10807 | if (obj4) { | |
83448d71 RD |
10808 | { |
10809 | arg5 = (bool) SPyObj_AsBool(obj4); | |
10810 | if (PyErr_Occurred()) SWIG_fail; | |
10811 | } | |
d14a1e28 RD |
10812 | } |
10813 | { | |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | Py_INCREF(Py_None); resultobj = Py_None; | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | return NULL; | |
10824 | } | |
10825 | ||
10826 | ||
10827 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10828 | PyObject *resultobj; | |
10829 | wxDC *arg1 = (wxDC *) 0 ; | |
10830 | wxBitmap *arg2 = 0 ; | |
10831 | wxPoint *arg3 = 0 ; | |
423f194a | 10832 | bool arg4 = (bool) False ; |
d14a1e28 RD |
10833 | wxPoint temp3 ; |
10834 | PyObject * obj0 = 0 ; | |
10835 | PyObject * obj1 = 0 ; | |
10836 | PyObject * obj2 = 0 ; | |
10837 | PyObject * obj3 = 0 ; | |
10838 | char *kwnames[] = { | |
10839 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
10840 | }; | |
10841 | ||
10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10844 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10845 | if (arg2 == NULL) { | |
10846 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10847 | } | |
10848 | { | |
10849 | arg3 = &temp3; | |
10850 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10851 | } | |
10852 | if (obj3) { | |
83448d71 RD |
10853 | { |
10854 | arg4 = (bool) SPyObj_AsBool(obj3); | |
10855 | if (PyErr_Occurred()) SWIG_fail; | |
10856 | } | |
d14a1e28 RD |
10857 | } |
10858 | { | |
10859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10860 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10861 | ||
10862 | wxPyEndAllowThreads(__tstate); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
10864 | } | |
10865 | Py_INCREF(Py_None); resultobj = Py_None; | |
10866 | return resultobj; | |
10867 | fail: | |
10868 | return NULL; | |
10869 | } | |
10870 | ||
10871 | ||
10872 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10873 | PyObject *resultobj; | |
10874 | wxDC *arg1 = (wxDC *) 0 ; | |
10875 | wxString *arg2 = 0 ; | |
423f194a RD |
10876 | int arg3 ; |
10877 | int arg4 ; | |
10878 | bool temp2 = False ; | |
d14a1e28 RD |
10879 | PyObject * obj0 = 0 ; |
10880 | PyObject * obj1 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10887 | { | |
10888 | arg2 = wxString_in_helper(obj1); | |
10889 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10890 | temp2 = True; |
d14a1e28 RD |
10891 | } |
10892 | { | |
10893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10894 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10895 | ||
10896 | wxPyEndAllowThreads(__tstate); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
10898 | } | |
10899 | Py_INCREF(Py_None); resultobj = Py_None; | |
10900 | { | |
10901 | if (temp2) | |
10902 | delete arg2; | |
10903 | } | |
10904 | return resultobj; | |
10905 | fail: | |
10906 | { | |
10907 | if (temp2) | |
10908 | delete arg2; | |
10909 | } | |
10910 | return NULL; | |
10911 | } | |
10912 | ||
10913 | ||
10914 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10915 | PyObject *resultobj; | |
10916 | wxDC *arg1 = (wxDC *) 0 ; | |
10917 | wxString *arg2 = 0 ; | |
10918 | wxPoint *arg3 = 0 ; | |
423f194a | 10919 | bool temp2 = False ; |
d14a1e28 RD |
10920 | wxPoint temp3 ; |
10921 | PyObject * obj0 = 0 ; | |
10922 | PyObject * obj1 = 0 ; | |
10923 | PyObject * obj2 = 0 ; | |
10924 | char *kwnames[] = { | |
10925 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10926 | }; | |
10927 | ||
10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10930 | { | |
10931 | arg2 = wxString_in_helper(obj1); | |
10932 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10933 | temp2 = True; |
d14a1e28 RD |
10934 | } |
10935 | { | |
10936 | arg3 = &temp3; | |
10937 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10938 | } | |
10939 | { | |
10940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10941 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10942 | ||
10943 | wxPyEndAllowThreads(__tstate); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | } | |
10946 | Py_INCREF(Py_None); resultobj = Py_None; | |
10947 | { | |
10948 | if (temp2) | |
10949 | delete arg2; | |
10950 | } | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | { | |
10954 | if (temp2) | |
10955 | delete arg2; | |
10956 | } | |
10957 | return NULL; | |
10958 | } | |
10959 | ||
10960 | ||
10961 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10962 | PyObject *resultobj; | |
10963 | wxDC *arg1 = (wxDC *) 0 ; | |
10964 | wxString *arg2 = 0 ; | |
423f194a RD |
10965 | int arg3 ; |
10966 | int arg4 ; | |
d14a1e28 | 10967 | double arg5 ; |
423f194a | 10968 | bool temp2 = False ; |
d14a1e28 RD |
10969 | PyObject * obj0 = 0 ; |
10970 | PyObject * obj1 = 0 ; | |
10971 | char *kwnames[] = { | |
10972 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10973 | }; | |
10974 | ||
10975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10977 | { | |
10978 | arg2 = wxString_in_helper(obj1); | |
10979 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10980 | temp2 = True; |
d14a1e28 RD |
10981 | } |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10985 | ||
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
10989 | Py_INCREF(Py_None); resultobj = Py_None; | |
10990 | { | |
10991 | if (temp2) | |
10992 | delete arg2; | |
10993 | } | |
10994 | return resultobj; | |
10995 | fail: | |
10996 | { | |
10997 | if (temp2) | |
10998 | delete arg2; | |
10999 | } | |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
11004 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11005 | PyObject *resultobj; | |
11006 | wxDC *arg1 = (wxDC *) 0 ; | |
11007 | wxString *arg2 = 0 ; | |
11008 | wxPoint *arg3 = 0 ; | |
11009 | double arg4 ; | |
423f194a | 11010 | bool temp2 = False ; |
d14a1e28 RD |
11011 | wxPoint temp3 ; |
11012 | PyObject * obj0 = 0 ; | |
11013 | PyObject * obj1 = 0 ; | |
11014 | PyObject * obj2 = 0 ; | |
11015 | char *kwnames[] = { | |
11016 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11017 | }; | |
11018 | ||
11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
11020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11021 | { | |
11022 | arg2 = wxString_in_helper(obj1); | |
11023 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11024 | temp2 = True; |
d14a1e28 RD |
11025 | } |
11026 | { | |
11027 | arg3 = &temp3; | |
11028 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11029 | } | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | Py_INCREF(Py_None); resultobj = Py_None; | |
11038 | { | |
11039 | if (temp2) | |
11040 | delete arg2; | |
11041 | } | |
11042 | return resultobj; | |
11043 | fail: | |
11044 | { | |
11045 | if (temp2) | |
11046 | delete arg2; | |
11047 | } | |
11048 | return NULL; | |
11049 | } | |
11050 | ||
11051 | ||
11052 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11053 | PyObject *resultobj; | |
11054 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11055 | int arg2 ; |
11056 | int arg3 ; | |
11057 | int arg4 ; | |
11058 | int arg5 ; | |
d14a1e28 | 11059 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
11060 | int arg7 ; |
11061 | int arg8 ; | |
d14a1e28 | 11062 | int arg9 = (int) wxCOPY ; |
423f194a RD |
11063 | bool arg10 = (bool) False ; |
11064 | int arg11 = (int) -1 ; | |
11065 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11066 | bool result; |
11067 | PyObject * obj0 = 0 ; | |
11068 | PyObject * obj5 = 0 ; | |
11069 | PyObject * obj9 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail; | |
11075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11076 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11077 | if (obj9) { | |
83448d71 RD |
11078 | { |
11079 | arg10 = (bool) SPyObj_AsBool(obj9); | |
11080 | if (PyErr_Occurred()) SWIG_fail; | |
11081 | } | |
d14a1e28 RD |
11082 | } |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | resultobj = PyInt_FromLong((long)result); | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11098 | PyObject *resultobj; | |
11099 | wxDC *arg1 = (wxDC *) 0 ; | |
11100 | wxPoint *arg2 = 0 ; | |
11101 | wxSize *arg3 = 0 ; | |
11102 | wxDC *arg4 = (wxDC *) 0 ; | |
11103 | wxPoint *arg5 = 0 ; | |
11104 | int arg6 = (int) wxCOPY ; | |
423f194a | 11105 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11106 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11107 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11108 | bool result; | |
11109 | wxPoint temp2 ; | |
11110 | wxSize temp3 ; | |
11111 | wxPoint temp5 ; | |
11112 | wxPoint temp8 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | PyObject * obj2 = 0 ; | |
11116 | PyObject * obj3 = 0 ; | |
11117 | PyObject * obj4 = 0 ; | |
11118 | PyObject * obj6 = 0 ; | |
11119 | PyObject * obj7 = 0 ; | |
11120 | char *kwnames[] = { | |
11121 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11122 | }; | |
11123 | ||
11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
11125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11126 | { | |
11127 | arg2 = &temp2; | |
11128 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | arg3 = &temp3; | |
11132 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11133 | } | |
11134 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11135 | { | |
11136 | arg5 = &temp5; | |
11137 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11138 | } | |
11139 | if (obj6) { | |
83448d71 RD |
11140 | { |
11141 | arg7 = (bool) SPyObj_AsBool(obj6); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
d14a1e28 RD |
11144 | } |
11145 | if (obj7) { | |
11146 | { | |
11147 | arg8 = &temp8; | |
11148 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11149 | } | |
11150 | } | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | resultobj = PyInt_FromLong((long)result); | |
11159 | return resultobj; | |
11160 | fail: | |
11161 | return NULL; | |
11162 | } | |
11163 | ||
11164 | ||
11165 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11166 | PyObject *resultobj; | |
11167 | wxDC *arg1 = (wxDC *) 0 ; | |
11168 | int arg2 ; | |
11169 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11170 | int arg4 = (int) 0 ; |
11171 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11172 | PyObject * obj0 = 0 ; |
11173 | PyObject * obj1 = 0 ; | |
11174 | char *kwnames[] = { | |
11175 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11176 | }; | |
11177 | ||
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
11179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11180 | { | |
11181 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11182 | if (arg3 == NULL) SWIG_fail; | |
11183 | } | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11186 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11187 | ||
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
11191 | Py_INCREF(Py_None); resultobj = Py_None; | |
11192 | { | |
11193 | if (arg3) delete [] arg3; | |
11194 | } | |
11195 | return resultobj; | |
11196 | fail: | |
11197 | { | |
11198 | if (arg3) delete [] arg3; | |
11199 | } | |
11200 | return NULL; | |
11201 | } | |
11202 | ||
11203 | ||
11204 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11205 | PyObject *resultobj; | |
11206 | wxDC *arg1 = (wxDC *) 0 ; | |
11207 | int arg2 ; | |
11208 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11209 | int arg4 = (int) 0 ; |
11210 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11211 | int arg6 = (int) wxODDEVEN_RULE ; |
11212 | PyObject * obj0 = 0 ; | |
11213 | PyObject * obj1 = 0 ; | |
11214 | char *kwnames[] = { | |
11215 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11216 | }; | |
11217 | ||
11218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
11219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11220 | { | |
11221 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11222 | if (arg3 == NULL) SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11226 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11227 | ||
11228 | wxPyEndAllowThreads(__tstate); | |
11229 | if (PyErr_Occurred()) SWIG_fail; | |
11230 | } | |
11231 | Py_INCREF(Py_None); resultobj = Py_None; | |
11232 | { | |
11233 | if (arg3) delete [] arg3; | |
11234 | } | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | { | |
11238 | if (arg3) delete [] arg3; | |
11239 | } | |
11240 | return NULL; | |
11241 | } | |
11242 | ||
11243 | ||
11244 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11245 | PyObject *resultobj; | |
11246 | wxDC *arg1 = (wxDC *) 0 ; | |
11247 | wxString *arg2 = 0 ; | |
11248 | wxRect *arg3 = 0 ; | |
11249 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11250 | int arg5 = (int) -1 ; | |
423f194a | 11251 | bool temp2 = False ; |
d14a1e28 RD |
11252 | wxRect temp3 ; |
11253 | PyObject * obj0 = 0 ; | |
11254 | PyObject * obj1 = 0 ; | |
11255 | PyObject * obj2 = 0 ; | |
11256 | char *kwnames[] = { | |
11257 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11258 | }; | |
11259 | ||
11260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
11261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11262 | { | |
11263 | arg2 = wxString_in_helper(obj1); | |
11264 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11265 | temp2 = True; |
d14a1e28 RD |
11266 | } |
11267 | { | |
11268 | arg3 = &temp3; | |
11269 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11270 | } | |
11271 | { | |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | Py_INCREF(Py_None); resultobj = Py_None; | |
11279 | { | |
11280 | if (temp2) | |
11281 | delete arg2; | |
11282 | } | |
11283 | return resultobj; | |
11284 | fail: | |
11285 | { | |
11286 | if (temp2) | |
11287 | delete arg2; | |
11288 | } | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
11293 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj; | |
11295 | wxDC *arg1 = (wxDC *) 0 ; | |
11296 | wxString *arg2 = 0 ; | |
11297 | wxBitmap *arg3 = 0 ; | |
11298 | wxRect *arg4 = 0 ; | |
11299 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11300 | int arg6 = (int) -1 ; | |
11301 | wxRect result; | |
423f194a | 11302 | bool temp2 = False ; |
d14a1e28 RD |
11303 | wxRect temp4 ; |
11304 | PyObject * obj0 = 0 ; | |
11305 | PyObject * obj1 = 0 ; | |
11306 | PyObject * obj2 = 0 ; | |
11307 | PyObject * obj3 = 0 ; | |
11308 | char *kwnames[] = { | |
11309 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11310 | }; | |
11311 | ||
11312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
11313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11314 | { | |
11315 | arg2 = wxString_in_helper(obj1); | |
11316 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11317 | temp2 = True; |
d14a1e28 RD |
11318 | } |
11319 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11320 | if (arg3 == NULL) { | |
11321 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | arg4 = &temp4; | |
11325 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11326 | } | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | { | |
11335 | wxRect * resultptr; | |
11336 | resultptr = new wxRect((wxRect &) result); | |
11337 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11338 | } | |
11339 | { | |
11340 | if (temp2) | |
11341 | delete arg2; | |
11342 | } | |
11343 | return resultobj; | |
11344 | fail: | |
11345 | { | |
11346 | if (temp2) | |
11347 | delete arg2; | |
11348 | } | |
11349 | return NULL; | |
11350 | } | |
11351 | ||
11352 | ||
11353 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11354 | PyObject *resultobj; | |
11355 | wxDC *arg1 = (wxDC *) 0 ; | |
11356 | int arg2 ; | |
11357 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11358 | PyObject * obj0 = 0 ; | |
11359 | PyObject * obj1 = 0 ; | |
11360 | char *kwnames[] = { | |
11361 | (char *) "self",(char *) "points", NULL | |
11362 | }; | |
11363 | ||
11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11366 | { | |
11367 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11368 | if (arg3 == NULL) SWIG_fail; | |
11369 | } | |
11370 | { | |
11371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11372 | (arg1)->DrawSpline(arg2,arg3); | |
11373 | ||
11374 | wxPyEndAllowThreads(__tstate); | |
11375 | if (PyErr_Occurred()) SWIG_fail; | |
11376 | } | |
11377 | Py_INCREF(Py_None); resultobj = Py_None; | |
11378 | { | |
11379 | if (arg3) delete [] arg3; | |
11380 | } | |
11381 | return resultobj; | |
11382 | fail: | |
11383 | { | |
11384 | if (arg3) delete [] arg3; | |
11385 | } | |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxDC *arg1 = (wxDC *) 0 ; | |
11393 | PyObject * obj0 = 0 ; | |
11394 | char *kwnames[] = { | |
11395 | (char *) "self", NULL | |
11396 | }; | |
11397 | ||
11398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11400 | { | |
11401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11402 | (arg1)->Clear(); | |
11403 | ||
11404 | wxPyEndAllowThreads(__tstate); | |
11405 | if (PyErr_Occurred()) SWIG_fail; | |
11406 | } | |
11407 | Py_INCREF(Py_None); resultobj = Py_None; | |
11408 | return resultobj; | |
11409 | fail: | |
11410 | return NULL; | |
11411 | } | |
11412 | ||
11413 | ||
11414 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11415 | PyObject *resultobj; | |
11416 | wxDC *arg1 = (wxDC *) 0 ; | |
11417 | wxString *arg2 = 0 ; | |
11418 | bool result; | |
423f194a | 11419 | bool temp2 = False ; |
d14a1e28 RD |
11420 | PyObject * obj0 = 0 ; |
11421 | PyObject * obj1 = 0 ; | |
11422 | char *kwnames[] = { | |
11423 | (char *) "self",(char *) "message", NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11428 | { | |
11429 | arg2 = wxString_in_helper(obj1); | |
11430 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11431 | temp2 = True; |
d14a1e28 RD |
11432 | } |
11433 | { | |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11436 | ||
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | resultobj = PyInt_FromLong((long)result); | |
11441 | { | |
11442 | if (temp2) | |
11443 | delete arg2; | |
11444 | } | |
11445 | return resultobj; | |
11446 | fail: | |
11447 | { | |
11448 | if (temp2) | |
11449 | delete arg2; | |
11450 | } | |
11451 | return NULL; | |
11452 | } | |
11453 | ||
11454 | ||
11455 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11456 | PyObject *resultobj; | |
11457 | wxDC *arg1 = (wxDC *) 0 ; | |
11458 | PyObject * obj0 = 0 ; | |
11459 | char *kwnames[] = { | |
11460 | (char *) "self", NULL | |
11461 | }; | |
11462 | ||
11463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11465 | { | |
11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11467 | (arg1)->EndDoc(); | |
11468 | ||
11469 | wxPyEndAllowThreads(__tstate); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
11472 | Py_INCREF(Py_None); resultobj = Py_None; | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | return NULL; | |
11476 | } | |
11477 | ||
11478 | ||
11479 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11480 | PyObject *resultobj; | |
11481 | wxDC *arg1 = (wxDC *) 0 ; | |
11482 | PyObject * obj0 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "self", NULL | |
11485 | }; | |
11486 | ||
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
11488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11489 | { | |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | (arg1)->StartPage(); | |
11492 | ||
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
11496 | Py_INCREF(Py_None); resultobj = Py_None; | |
11497 | return resultobj; | |
11498 | fail: | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
11503 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11504 | PyObject *resultobj; | |
11505 | wxDC *arg1 = (wxDC *) 0 ; | |
11506 | PyObject * obj0 = 0 ; | |
11507 | char *kwnames[] = { | |
11508 | (char *) "self", NULL | |
11509 | }; | |
11510 | ||
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
11512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11513 | { | |
11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11515 | (arg1)->EndPage(); | |
11516 | ||
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | Py_INCREF(Py_None); resultobj = Py_None; | |
11521 | return resultobj; | |
11522 | fail: | |
11523 | return NULL; | |
11524 | } | |
11525 | ||
11526 | ||
11527 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11528 | PyObject *resultobj; | |
11529 | wxDC *arg1 = (wxDC *) 0 ; | |
11530 | wxFont *arg2 = 0 ; | |
11531 | PyObject * obj0 = 0 ; | |
11532 | PyObject * obj1 = 0 ; | |
11533 | char *kwnames[] = { | |
11534 | (char *) "self",(char *) "font", NULL | |
11535 | }; | |
11536 | ||
11537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
11538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11539 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11540 | if (arg2 == NULL) { | |
11541 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11542 | } | |
11543 | { | |
11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11545 | (arg1)->SetFont((wxFont const &)*arg2); | |
11546 | ||
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | Py_INCREF(Py_None); resultobj = Py_None; | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11558 | PyObject *resultobj; | |
11559 | wxDC *arg1 = (wxDC *) 0 ; | |
11560 | wxPen *arg2 = 0 ; | |
11561 | PyObject * obj0 = 0 ; | |
11562 | PyObject * obj1 = 0 ; | |
11563 | char *kwnames[] = { | |
11564 | (char *) "self",(char *) "pen", NULL | |
11565 | }; | |
11566 | ||
11567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
11568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11569 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11570 | if (arg2 == NULL) { | |
11571 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11572 | } | |
11573 | { | |
11574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11575 | (arg1)->SetPen((wxPen const &)*arg2); | |
11576 | ||
11577 | wxPyEndAllowThreads(__tstate); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | } | |
11580 | Py_INCREF(Py_None); resultobj = Py_None; | |
11581 | return resultobj; | |
11582 | fail: | |
11583 | return NULL; | |
11584 | } | |
11585 | ||
11586 | ||
11587 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11588 | PyObject *resultobj; | |
11589 | wxDC *arg1 = (wxDC *) 0 ; | |
11590 | wxBrush *arg2 = 0 ; | |
11591 | PyObject * obj0 = 0 ; | |
11592 | PyObject * obj1 = 0 ; | |
11593 | char *kwnames[] = { | |
11594 | (char *) "self",(char *) "brush", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
11598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11599 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11600 | if (arg2 == NULL) { | |
11601 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11602 | } | |
11603 | { | |
11604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11605 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
11606 | ||
11607 | wxPyEndAllowThreads(__tstate); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
11610 | Py_INCREF(Py_None); resultobj = Py_None; | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
11617 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11618 | PyObject *resultobj; | |
11619 | wxDC *arg1 = (wxDC *) 0 ; | |
11620 | wxBrush *arg2 = 0 ; | |
11621 | PyObject * obj0 = 0 ; | |
11622 | PyObject * obj1 = 0 ; | |
11623 | char *kwnames[] = { | |
11624 | (char *) "self",(char *) "brush", NULL | |
11625 | }; | |
11626 | ||
11627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
11628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11629 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11630 | if (arg2 == NULL) { | |
11631 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11632 | } | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
11636 | ||
11637 | wxPyEndAllowThreads(__tstate); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | } | |
11640 | Py_INCREF(Py_None); resultobj = Py_None; | |
11641 | return resultobj; | |
11642 | fail: | |
11643 | return NULL; | |
11644 | } | |
11645 | ||
11646 | ||
11647 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11648 | PyObject *resultobj; | |
11649 | wxDC *arg1 = (wxDC *) 0 ; | |
11650 | int arg2 ; | |
11651 | PyObject * obj0 = 0 ; | |
11652 | char *kwnames[] = { | |
11653 | (char *) "self",(char *) "mode", NULL | |
11654 | }; | |
11655 | ||
11656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
11657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11658 | { | |
11659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11660 | (arg1)->SetBackgroundMode(arg2); | |
11661 | ||
11662 | wxPyEndAllowThreads(__tstate); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | Py_INCREF(Py_None); resultobj = Py_None; | |
11666 | return resultobj; | |
11667 | fail: | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
11672 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject *resultobj; | |
11674 | wxDC *arg1 = (wxDC *) 0 ; | |
11675 | wxPalette *arg2 = 0 ; | |
11676 | PyObject * obj0 = 0 ; | |
11677 | PyObject * obj1 = 0 ; | |
11678 | char *kwnames[] = { | |
11679 | (char *) "self",(char *) "palette", NULL | |
11680 | }; | |
11681 | ||
11682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
11683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11685 | if (arg2 == NULL) { | |
11686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11687 | } | |
11688 | { | |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | Py_INCREF(Py_None); resultobj = Py_None; | |
11696 | return resultobj; | |
11697 | fail: | |
11698 | return NULL; | |
11699 | } | |
11700 | ||
11701 | ||
f0983263 | 11702 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11703 | PyObject *resultobj; |
11704 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11705 | int arg2 ; |
11706 | int arg3 ; | |
11707 | int arg4 ; | |
11708 | int arg5 ; | |
d14a1e28 RD |
11709 | PyObject * obj0 = 0 ; |
11710 | char *kwnames[] = { | |
11711 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11712 | }; | |
11713 | ||
f0983263 | 11714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 RD |
11715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11716 | { | |
11717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11718 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11719 | ||
11720 | wxPyEndAllowThreads(__tstate); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
11722 | } | |
11723 | Py_INCREF(Py_None); resultobj = Py_None; | |
11724 | return resultobj; | |
11725 | fail: | |
11726 | return NULL; | |
11727 | } | |
11728 | ||
11729 | ||
f0983263 RD |
11730 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
11731 | PyObject *resultobj; | |
11732 | wxDC *arg1 = (wxDC *) 0 ; | |
11733 | wxPoint *arg2 = 0 ; | |
11734 | wxSize *arg3 = 0 ; | |
11735 | wxPoint temp2 ; | |
11736 | wxSize temp3 ; | |
11737 | PyObject * obj0 = 0 ; | |
11738 | PyObject * obj1 = 0 ; | |
11739 | PyObject * obj2 = 0 ; | |
11740 | char *kwnames[] = { | |
11741 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11742 | }; | |
11743 | ||
11744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11746 | { | |
11747 | arg2 = &temp2; | |
11748 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11749 | } | |
11750 | { | |
11751 | arg3 = &temp3; | |
11752 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11753 | } | |
11754 | { | |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11756 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11757 | ||
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | Py_INCREF(Py_None); resultobj = Py_None; | |
11762 | return resultobj; | |
11763 | fail: | |
11764 | return NULL; | |
11765 | } | |
11766 | ||
11767 | ||
d14a1e28 RD |
11768 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
11769 | PyObject *resultobj; | |
11770 | wxDC *arg1 = (wxDC *) 0 ; | |
11771 | wxRect *arg2 = 0 ; | |
11772 | wxRect temp2 ; | |
11773 | PyObject * obj0 = 0 ; | |
11774 | PyObject * obj1 = 0 ; | |
11775 | char *kwnames[] = { | |
11776 | (char *) "self",(char *) "rect", NULL | |
11777 | }; | |
11778 | ||
11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11781 | { | |
11782 | arg2 = &temp2; | |
11783 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11784 | } | |
11785 | { | |
11786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11787 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
11788 | ||
11789 | wxPyEndAllowThreads(__tstate); | |
11790 | if (PyErr_Occurred()) SWIG_fail; | |
11791 | } | |
11792 | Py_INCREF(Py_None); resultobj = Py_None; | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | return NULL; | |
11796 | } | |
11797 | ||
11798 | ||
11799 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11800 | PyObject *resultobj; | |
11801 | wxDC *arg1 = (wxDC *) 0 ; | |
11802 | wxRegion *arg2 = 0 ; | |
11803 | PyObject * obj0 = 0 ; | |
11804 | PyObject * obj1 = 0 ; | |
11805 | char *kwnames[] = { | |
11806 | (char *) "self",(char *) "region", NULL | |
11807 | }; | |
11808 | ||
11809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11811 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11812 | if (arg2 == NULL) { | |
11813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11814 | } | |
11815 | { | |
11816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11817 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11818 | ||
11819 | wxPyEndAllowThreads(__tstate); | |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
11821 | } | |
11822 | Py_INCREF(Py_None); resultobj = Py_None; | |
11823 | return resultobj; | |
11824 | fail: | |
11825 | return NULL; | |
11826 | } | |
11827 | ||
11828 | ||
11829 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11830 | PyObject *resultobj; | |
11831 | wxDC *arg1 = (wxDC *) 0 ; | |
11832 | PyObject * obj0 = 0 ; | |
11833 | char *kwnames[] = { | |
11834 | (char *) "self", NULL | |
11835 | }; | |
11836 | ||
11837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
11838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11839 | { | |
11840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11841 | (arg1)->DestroyClippingRegion(); | |
11842 | ||
11843 | wxPyEndAllowThreads(__tstate); | |
11844 | if (PyErr_Occurred()) SWIG_fail; | |
11845 | } | |
11846 | Py_INCREF(Py_None); resultobj = Py_None; | |
11847 | return resultobj; | |
11848 | fail: | |
11849 | return NULL; | |
11850 | } | |
11851 | ||
11852 | ||
11853 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11854 | PyObject *resultobj; | |
11855 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11856 | int *arg2 = (int *) 0 ; |
11857 | int *arg3 = (int *) 0 ; | |
11858 | int *arg4 = (int *) 0 ; | |
11859 | int *arg5 = (int *) 0 ; | |
11860 | int temp2 ; | |
11861 | int temp3 ; | |
11862 | int temp4 ; | |
11863 | int temp5 ; | |
d14a1e28 RD |
11864 | PyObject * obj0 = 0 ; |
11865 | char *kwnames[] = { | |
11866 | (char *) "self", NULL | |
11867 | }; | |
11868 | ||
11869 | arg2 = &temp2; | |
11870 | arg3 = &temp3; | |
11871 | arg4 = &temp4; | |
11872 | arg5 = &temp5; | |
11873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
11874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11875 | { | |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11877 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
11878 | ||
11879 | wxPyEndAllowThreads(__tstate); | |
11880 | if (PyErr_Occurred()) SWIG_fail; | |
11881 | } | |
11882 | Py_INCREF(Py_None); resultobj = Py_None; | |
11883 | { | |
11884 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11885 | resultobj = t_output_helper(resultobj,o); | |
11886 | } | |
11887 | { | |
11888 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11889 | resultobj = t_output_helper(resultobj,o); | |
11890 | } | |
11891 | { | |
11892 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11893 | resultobj = t_output_helper(resultobj,o); | |
11894 | } | |
11895 | { | |
11896 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11897 | resultobj = t_output_helper(resultobj,o); | |
11898 | } | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxDC *arg1 = (wxDC *) 0 ; | |
11908 | wxRect result; | |
11909 | PyObject * obj0 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | result = wxDC_GetClippingRect(arg1); | |
11919 | ||
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | { | |
11924 | wxRect * resultptr; | |
11925 | resultptr = new wxRect((wxRect &) result); | |
11926 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11927 | } | |
11928 | return resultobj; | |
11929 | fail: | |
11930 | return NULL; | |
11931 | } | |
11932 | ||
11933 | ||
11934 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11935 | PyObject *resultobj; | |
11936 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11937 | int result; |
d14a1e28 RD |
11938 | PyObject * obj0 = 0 ; |
11939 | char *kwnames[] = { | |
11940 | (char *) "self", NULL | |
11941 | }; | |
11942 | ||
11943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11945 | { | |
11946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11947 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
11948 | |
11949 | wxPyEndAllowThreads(__tstate); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
11951 | } | |
11952 | resultobj = PyInt_FromLong((long)result); | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
11959 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11960 | PyObject *resultobj; | |
11961 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11962 | int result; |
d14a1e28 RD |
11963 | PyObject * obj0 = 0 ; |
11964 | char *kwnames[] = { | |
11965 | (char *) "self", NULL | |
11966 | }; | |
11967 | ||
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11970 | { | |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11972 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
11973 | |
11974 | wxPyEndAllowThreads(__tstate); | |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
11976 | } | |
11977 | resultobj = PyInt_FromLong((long)result); | |
11978 | return resultobj; | |
11979 | fail: | |
11980 | return NULL; | |
11981 | } | |
11982 | ||
11983 | ||
11984 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11985 | PyObject *resultobj; | |
11986 | wxDC *arg1 = (wxDC *) 0 ; | |
11987 | wxString *arg2 = 0 ; | |
423f194a RD |
11988 | int *arg3 = (int *) 0 ; |
11989 | int *arg4 = (int *) 0 ; | |
11990 | bool temp2 = False ; | |
11991 | int temp3 ; | |
11992 | int temp4 ; | |
d14a1e28 RD |
11993 | PyObject * obj0 = 0 ; |
11994 | PyObject * obj1 = 0 ; | |
11995 | char *kwnames[] = { | |
11996 | (char *) "self",(char *) "string", NULL | |
11997 | }; | |
11998 | ||
11999 | arg3 = &temp3; | |
12000 | arg4 = &temp4; | |
12001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12003 | { | |
12004 | arg2 = wxString_in_helper(obj1); | |
12005 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12006 | temp2 = True; |
d14a1e28 RD |
12007 | } |
12008 | { | |
12009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12010 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12011 | ||
12012 | wxPyEndAllowThreads(__tstate); | |
12013 | if (PyErr_Occurred()) SWIG_fail; | |
12014 | } | |
12015 | Py_INCREF(Py_None); resultobj = Py_None; | |
12016 | { | |
12017 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12018 | resultobj = t_output_helper(resultobj,o); | |
12019 | } | |
12020 | { | |
12021 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12022 | resultobj = t_output_helper(resultobj,o); | |
12023 | } | |
12024 | { | |
12025 | if (temp2) | |
12026 | delete arg2; | |
12027 | } | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | { | |
12031 | if (temp2) | |
12032 | delete arg2; | |
12033 | } | |
12034 | return NULL; | |
12035 | } | |
12036 | ||
12037 | ||
12038 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12039 | PyObject *resultobj; | |
12040 | wxDC *arg1 = (wxDC *) 0 ; | |
12041 | wxString *arg2 = 0 ; | |
423f194a RD |
12042 | int *arg3 = (int *) 0 ; |
12043 | int *arg4 = (int *) 0 ; | |
12044 | int *arg5 = (int *) 0 ; | |
12045 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12046 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
12047 | bool temp2 = False ; |
12048 | int temp3 ; | |
12049 | int temp4 ; | |
12050 | int temp5 ; | |
12051 | int temp6 ; | |
d14a1e28 RD |
12052 | PyObject * obj0 = 0 ; |
12053 | PyObject * obj1 = 0 ; | |
12054 | PyObject * obj2 = 0 ; | |
12055 | char *kwnames[] = { | |
12056 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12057 | }; | |
12058 | ||
12059 | arg3 = &temp3; | |
12060 | arg4 = &temp4; | |
12061 | arg5 = &temp5; | |
12062 | arg6 = &temp6; | |
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12065 | { | |
12066 | arg2 = wxString_in_helper(obj1); | |
12067 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12068 | temp2 = True; |
d14a1e28 RD |
12069 | } |
12070 | if (obj2) { | |
12071 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12072 | } | |
12073 | { | |
12074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12075 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12076 | ||
12077 | wxPyEndAllowThreads(__tstate); | |
12078 | if (PyErr_Occurred()) SWIG_fail; | |
12079 | } | |
12080 | Py_INCREF(Py_None); resultobj = Py_None; | |
12081 | { | |
12082 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12083 | resultobj = t_output_helper(resultobj,o); | |
12084 | } | |
12085 | { | |
12086 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12087 | resultobj = t_output_helper(resultobj,o); | |
12088 | } | |
12089 | { | |
12090 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12091 | resultobj = t_output_helper(resultobj,o); | |
12092 | } | |
12093 | { | |
12094 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12095 | resultobj = t_output_helper(resultobj,o); | |
12096 | } | |
12097 | { | |
12098 | if (temp2) | |
12099 | delete arg2; | |
12100 | } | |
12101 | return resultobj; | |
12102 | fail: | |
12103 | { | |
12104 | if (temp2) | |
12105 | delete arg2; | |
12106 | } | |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12112 | PyObject *resultobj; | |
12113 | wxDC *arg1 = (wxDC *) 0 ; | |
12114 | wxString *arg2 = 0 ; | |
423f194a RD |
12115 | int *arg3 = (int *) 0 ; |
12116 | int *arg4 = (int *) 0 ; | |
12117 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12118 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
12119 | bool temp2 = False ; |
12120 | int temp3 ; | |
12121 | int temp4 ; | |
12122 | int temp5 ; | |
d14a1e28 RD |
12123 | PyObject * obj0 = 0 ; |
12124 | PyObject * obj1 = 0 ; | |
12125 | PyObject * obj2 = 0 ; | |
12126 | char *kwnames[] = { | |
12127 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12128 | }; | |
12129 | ||
12130 | arg3 = &temp3; | |
12131 | arg4 = &temp4; | |
12132 | arg5 = &temp5; | |
12133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12135 | { | |
12136 | arg2 = wxString_in_helper(obj1); | |
12137 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12138 | temp2 = True; |
d14a1e28 RD |
12139 | } |
12140 | if (obj2) { | |
12141 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12142 | } | |
12143 | { | |
12144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12145 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12146 | ||
12147 | wxPyEndAllowThreads(__tstate); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | Py_INCREF(Py_None); resultobj = Py_None; | |
12151 | { | |
12152 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12153 | resultobj = t_output_helper(resultobj,o); | |
12154 | } | |
12155 | { | |
12156 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12157 | resultobj = t_output_helper(resultobj,o); | |
12158 | } | |
12159 | { | |
12160 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12161 | resultobj = t_output_helper(resultobj,o); | |
12162 | } | |
12163 | { | |
12164 | if (temp2) | |
12165 | delete arg2; | |
12166 | } | |
12167 | return resultobj; | |
12168 | fail: | |
12169 | { | |
12170 | if (temp2) | |
12171 | delete arg2; | |
12172 | } | |
12173 | return NULL; | |
12174 | } | |
12175 | ||
12176 | ||
44127b65 RD |
12177 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12178 | PyObject *resultobj; | |
12179 | wxDC *arg1 = (wxDC *) 0 ; | |
12180 | wxSize result; | |
12181 | PyObject * obj0 = 0 ; | |
12182 | char *kwnames[] = { | |
12183 | (char *) "self", NULL | |
12184 | }; | |
12185 | ||
12186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12188 | { | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | result = (arg1)->GetSize(); | |
12191 | ||
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | { | |
12196 | wxSize * resultptr; | |
12197 | resultptr = new wxSize((wxSize &) result); | |
12198 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12199 | } | |
12200 | return resultobj; | |
12201 | fail: | |
12202 | return NULL; | |
12203 | } | |
12204 | ||
12205 | ||
d14a1e28 RD |
12206 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12207 | PyObject *resultobj; | |
12208 | wxDC *arg1 = (wxDC *) 0 ; | |
12209 | int *arg2 = (int *) 0 ; | |
12210 | int *arg3 = (int *) 0 ; | |
12211 | int temp2 ; | |
12212 | int temp3 ; | |
12213 | PyObject * obj0 = 0 ; | |
12214 | char *kwnames[] = { | |
12215 | (char *) "self", NULL | |
12216 | }; | |
12217 | ||
12218 | arg2 = &temp2; | |
12219 | arg3 = &temp3; | |
12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12222 | { | |
12223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12224 | (arg1)->GetSize(arg2,arg3); | |
12225 | ||
12226 | wxPyEndAllowThreads(__tstate); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
12229 | Py_INCREF(Py_None); resultobj = Py_None; | |
12230 | { | |
12231 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12232 | resultobj = t_output_helper(resultobj,o); | |
12233 | } | |
12234 | { | |
12235 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12236 | resultobj = t_output_helper(resultobj,o); | |
12237 | } | |
12238 | return resultobj; | |
12239 | fail: | |
12240 | return NULL; | |
12241 | } | |
12242 | ||
12243 | ||
44127b65 | 12244 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12245 | PyObject *resultobj; |
12246 | wxDC *arg1 = (wxDC *) 0 ; | |
12247 | wxSize result; | |
12248 | PyObject * obj0 = 0 ; | |
12249 | char *kwnames[] = { | |
12250 | (char *) "self", NULL | |
12251 | }; | |
12252 | ||
44127b65 | 12253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12255 | { | |
12256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12257 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12258 | |
12259 | wxPyEndAllowThreads(__tstate); | |
12260 | if (PyErr_Occurred()) SWIG_fail; | |
12261 | } | |
12262 | { | |
12263 | wxSize * resultptr; | |
12264 | resultptr = new wxSize((wxSize &) result); | |
12265 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12266 | } | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
44127b65 | 12273 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12274 | PyObject *resultobj; |
12275 | wxDC *arg1 = (wxDC *) 0 ; | |
12276 | int *arg2 = (int *) 0 ; | |
12277 | int *arg3 = (int *) 0 ; | |
12278 | int temp2 ; | |
12279 | int temp3 ; | |
12280 | PyObject * obj0 = 0 ; | |
12281 | char *kwnames[] = { | |
12282 | (char *) "self", NULL | |
12283 | }; | |
12284 | ||
12285 | arg2 = &temp2; | |
12286 | arg3 = &temp3; | |
44127b65 | 12287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
12292 | ||
12293 | wxPyEndAllowThreads(__tstate); | |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
12296 | Py_INCREF(Py_None); resultobj = Py_None; | |
12297 | { | |
12298 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12299 | resultobj = t_output_helper(resultobj,o); | |
12300 | } | |
12301 | { | |
12302 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12303 | resultobj = t_output_helper(resultobj,o); | |
12304 | } | |
12305 | return resultobj; | |
12306 | fail: | |
12307 | return NULL; | |
12308 | } | |
12309 | ||
12310 | ||
d14a1e28 RD |
12311 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
12312 | PyObject *resultobj; | |
12313 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12314 | int arg2 ; |
12315 | int result; | |
d14a1e28 RD |
12316 | PyObject * obj0 = 0 ; |
12317 | char *kwnames[] = { | |
12318 | (char *) "self",(char *) "x", NULL | |
12319 | }; | |
12320 | ||
12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
12322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12323 | { | |
12324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12325 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
12326 | |
12327 | wxPyEndAllowThreads(__tstate); | |
12328 | if (PyErr_Occurred()) SWIG_fail; | |
12329 | } | |
12330 | resultobj = PyInt_FromLong((long)result); | |
12331 | return resultobj; | |
12332 | fail: | |
12333 | return NULL; | |
12334 | } | |
12335 | ||
12336 | ||
12337 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12338 | PyObject *resultobj; | |
12339 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12340 | int arg2 ; |
12341 | int result; | |
d14a1e28 RD |
12342 | PyObject * obj0 = 0 ; |
12343 | char *kwnames[] = { | |
12344 | (char *) "self",(char *) "y", NULL | |
12345 | }; | |
12346 | ||
12347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
12348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12349 | { | |
12350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12351 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12352 | |
12353 | wxPyEndAllowThreads(__tstate); | |
12354 | if (PyErr_Occurred()) SWIG_fail; | |
12355 | } | |
12356 | resultobj = PyInt_FromLong((long)result); | |
12357 | return resultobj; | |
12358 | fail: | |
12359 | return NULL; | |
12360 | } | |
12361 | ||
12362 | ||
12363 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12364 | PyObject *resultobj; | |
12365 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12366 | int arg2 ; |
12367 | int result; | |
d14a1e28 RD |
12368 | PyObject * obj0 = 0 ; |
12369 | char *kwnames[] = { | |
12370 | (char *) "self",(char *) "x", NULL | |
12371 | }; | |
12372 | ||
12373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
12374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12375 | { | |
12376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12377 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
12378 | |
12379 | wxPyEndAllowThreads(__tstate); | |
12380 | if (PyErr_Occurred()) SWIG_fail; | |
12381 | } | |
12382 | resultobj = PyInt_FromLong((long)result); | |
12383 | return resultobj; | |
12384 | fail: | |
12385 | return NULL; | |
12386 | } | |
12387 | ||
12388 | ||
12389 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12390 | PyObject *resultobj; | |
12391 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12392 | int arg2 ; |
12393 | int result; | |
d14a1e28 RD |
12394 | PyObject * obj0 = 0 ; |
12395 | char *kwnames[] = { | |
12396 | (char *) "self",(char *) "y", NULL | |
12397 | }; | |
12398 | ||
12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
12400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12401 | { | |
12402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12403 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
12404 | |
12405 | wxPyEndAllowThreads(__tstate); | |
12406 | if (PyErr_Occurred()) SWIG_fail; | |
12407 | } | |
12408 | resultobj = PyInt_FromLong((long)result); | |
12409 | return resultobj; | |
12410 | fail: | |
12411 | return NULL; | |
12412 | } | |
12413 | ||
12414 | ||
12415 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12416 | PyObject *resultobj; | |
12417 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12418 | int arg2 ; |
12419 | int result; | |
d14a1e28 RD |
12420 | PyObject * obj0 = 0 ; |
12421 | char *kwnames[] = { | |
12422 | (char *) "self",(char *) "x", NULL | |
12423 | }; | |
12424 | ||
12425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail; | |
12426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12427 | { | |
12428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12429 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
12430 | |
12431 | wxPyEndAllowThreads(__tstate); | |
12432 | if (PyErr_Occurred()) SWIG_fail; | |
12433 | } | |
12434 | resultobj = PyInt_FromLong((long)result); | |
12435 | return resultobj; | |
12436 | fail: | |
12437 | return NULL; | |
12438 | } | |
12439 | ||
12440 | ||
12441 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12442 | PyObject *resultobj; | |
12443 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12444 | int arg2 ; |
12445 | int result; | |
d14a1e28 RD |
12446 | PyObject * obj0 = 0 ; |
12447 | char *kwnames[] = { | |
12448 | (char *) "self",(char *) "y", NULL | |
12449 | }; | |
12450 | ||
12451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
12452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12453 | { | |
12454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12455 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
12456 | |
12457 | wxPyEndAllowThreads(__tstate); | |
12458 | if (PyErr_Occurred()) SWIG_fail; | |
12459 | } | |
12460 | resultobj = PyInt_FromLong((long)result); | |
12461 | return resultobj; | |
12462 | fail: | |
12463 | return NULL; | |
12464 | } | |
12465 | ||
12466 | ||
12467 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12468 | PyObject *resultobj; | |
12469 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12470 | int arg2 ; |
12471 | int result; | |
d14a1e28 RD |
12472 | PyObject * obj0 = 0 ; |
12473 | char *kwnames[] = { | |
12474 | (char *) "self",(char *) "x", NULL | |
12475 | }; | |
12476 | ||
12477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
12478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12479 | { | |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12481 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
12482 | |
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | resultobj = PyInt_FromLong((long)result); | |
12487 | return resultobj; | |
12488 | fail: | |
12489 | return NULL; | |
12490 | } | |
12491 | ||
12492 | ||
12493 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12494 | PyObject *resultobj; | |
12495 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12496 | int arg2 ; |
12497 | int result; | |
d14a1e28 RD |
12498 | PyObject * obj0 = 0 ; |
12499 | char *kwnames[] = { | |
12500 | (char *) "self",(char *) "y", NULL | |
12501 | }; | |
12502 | ||
12503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
12504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12505 | { | |
12506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12507 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
12508 | |
12509 | wxPyEndAllowThreads(__tstate); | |
12510 | if (PyErr_Occurred()) SWIG_fail; | |
12511 | } | |
12512 | resultobj = PyInt_FromLong((long)result); | |
12513 | return resultobj; | |
12514 | fail: | |
12515 | return NULL; | |
12516 | } | |
12517 | ||
12518 | ||
12519 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12520 | PyObject *resultobj; | |
12521 | wxDC *arg1 = (wxDC *) 0 ; | |
12522 | bool result; | |
12523 | PyObject * obj0 = 0 ; | |
12524 | char *kwnames[] = { | |
12525 | (char *) "self", NULL | |
12526 | }; | |
12527 | ||
12528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
12529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12530 | { | |
12531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12532 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
12533 | ||
12534 | wxPyEndAllowThreads(__tstate); | |
12535 | if (PyErr_Occurred()) SWIG_fail; | |
12536 | } | |
12537 | resultobj = PyInt_FromLong((long)result); | |
12538 | return resultobj; | |
12539 | fail: | |
12540 | return NULL; | |
12541 | } | |
12542 | ||
12543 | ||
12544 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12545 | PyObject *resultobj; | |
12546 | wxDC *arg1 = (wxDC *) 0 ; | |
12547 | bool result; | |
12548 | PyObject * obj0 = 0 ; | |
12549 | char *kwnames[] = { | |
12550 | (char *) "self", NULL | |
12551 | }; | |
12552 | ||
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12555 | { | |
12556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12557 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
12558 | ||
12559 | wxPyEndAllowThreads(__tstate); | |
12560 | if (PyErr_Occurred()) SWIG_fail; | |
12561 | } | |
12562 | resultobj = PyInt_FromLong((long)result); | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12570 | PyObject *resultobj; | |
12571 | wxDC *arg1 = (wxDC *) 0 ; | |
12572 | int result; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12580 | { | |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
12587 | resultobj = PyInt_FromLong((long)result); | |
12588 | return resultobj; | |
12589 | fail: | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12595 | PyObject *resultobj; | |
12596 | wxDC *arg1 = (wxDC *) 0 ; | |
12597 | wxSize result; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
12604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12605 | { | |
12606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12607 | result = ((wxDC const *)arg1)->GetPPI(); | |
12608 | ||
12609 | wxPyEndAllowThreads(__tstate); | |
12610 | if (PyErr_Occurred()) SWIG_fail; | |
12611 | } | |
12612 | { | |
12613 | wxSize * resultptr; | |
12614 | resultptr = new wxSize((wxSize &) result); | |
12615 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12616 | } | |
12617 | return resultobj; | |
12618 | fail: | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
12623 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12624 | PyObject *resultobj; | |
12625 | wxDC *arg1 = (wxDC *) 0 ; | |
12626 | bool result; | |
12627 | PyObject * obj0 = 0 ; | |
12628 | char *kwnames[] = { | |
12629 | (char *) "self", NULL | |
12630 | }; | |
12631 | ||
12632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
12633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12634 | { | |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | result = (bool)((wxDC const *)arg1)->Ok(); | |
12637 | ||
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
12641 | resultobj = PyInt_FromLong((long)result); | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12649 | PyObject *resultobj; | |
12650 | wxDC *arg1 = (wxDC *) 0 ; | |
12651 | int result; | |
12652 | PyObject * obj0 = 0 ; | |
12653 | char *kwnames[] = { | |
12654 | (char *) "self", NULL | |
12655 | }; | |
12656 | ||
12657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
12658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12659 | { | |
12660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12661 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
12662 | ||
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
12666 | resultobj = PyInt_FromLong((long)result); | |
12667 | return resultobj; | |
12668 | fail: | |
12669 | return NULL; | |
12670 | } | |
12671 | ||
12672 | ||
12673 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12674 | PyObject *resultobj; | |
12675 | wxDC *arg1 = (wxDC *) 0 ; | |
12676 | wxBrush *result; | |
12677 | PyObject * obj0 = 0 ; | |
12678 | char *kwnames[] = { | |
12679 | (char *) "self", NULL | |
12680 | }; | |
12681 | ||
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
12683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12684 | { | |
12685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12686 | { | |
12687 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
12688 | result = (wxBrush *) &_result_ref; | |
12689 | } | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12695 | return resultobj; | |
12696 | fail: | |
12697 | return NULL; | |
12698 | } | |
12699 | ||
12700 | ||
12701 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12702 | PyObject *resultobj; | |
12703 | wxDC *arg1 = (wxDC *) 0 ; | |
12704 | wxBrush *result; | |
12705 | PyObject * obj0 = 0 ; | |
12706 | char *kwnames[] = { | |
12707 | (char *) "self", NULL | |
12708 | }; | |
12709 | ||
12710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
12711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | { | |
12715 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
12716 | result = (wxBrush *) &_result_ref; | |
12717 | } | |
12718 | ||
12719 | wxPyEndAllowThreads(__tstate); | |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
12721 | } | |
12722 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
12729 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxDC *arg1 = (wxDC *) 0 ; | |
12732 | wxFont *result; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "self", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
12739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | { | |
12743 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
12744 | result = (wxFont *) &_result_ref; | |
12745 | } | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
12751 | return resultobj; | |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
12757 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12758 | PyObject *resultobj; | |
12759 | wxDC *arg1 = (wxDC *) 0 ; | |
12760 | wxPen *result; | |
12761 | PyObject * obj0 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
12767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | { | |
12771 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
12772 | result = (wxPen *) &_result_ref; | |
12773 | } | |
12774 | ||
12775 | wxPyEndAllowThreads(__tstate); | |
12776 | if (PyErr_Occurred()) SWIG_fail; | |
12777 | } | |
12778 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
12779 | return resultobj; | |
12780 | fail: | |
12781 | return NULL; | |
12782 | } | |
12783 | ||
12784 | ||
12785 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12786 | PyObject *resultobj; | |
12787 | wxDC *arg1 = (wxDC *) 0 ; | |
12788 | wxColour *result; | |
12789 | PyObject * obj0 = 0 ; | |
12790 | char *kwnames[] = { | |
12791 | (char *) "self", NULL | |
12792 | }; | |
12793 | ||
12794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
12795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12796 | { | |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | { | |
12799 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
12800 | result = (wxColour *) &_result_ref; | |
12801 | } | |
12802 | ||
12803 | wxPyEndAllowThreads(__tstate); | |
12804 | if (PyErr_Occurred()) SWIG_fail; | |
12805 | } | |
12806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12807 | return resultobj; | |
12808 | fail: | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj; | |
12815 | wxDC *arg1 = (wxDC *) 0 ; | |
12816 | wxColour *result; | |
12817 | PyObject * obj0 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self", NULL | |
12820 | }; | |
12821 | ||
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
12823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12824 | { | |
12825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12826 | { | |
12827 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
12828 | result = (wxColour *) &_result_ref; | |
12829 | } | |
12830 | ||
12831 | wxPyEndAllowThreads(__tstate); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | } | |
12834 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
12841 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject *resultobj; | |
12843 | wxDC *arg1 = (wxDC *) 0 ; | |
12844 | wxColour *arg2 = 0 ; | |
12845 | wxColour temp2 ; | |
12846 | PyObject * obj0 = 0 ; | |
12847 | PyObject * obj1 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self",(char *) "colour", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
12853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12854 | { | |
12855 | arg2 = &temp2; | |
12856 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12857 | } | |
12858 | { | |
12859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12860 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
12861 | ||
12862 | wxPyEndAllowThreads(__tstate); | |
12863 | if (PyErr_Occurred()) SWIG_fail; | |
12864 | } | |
12865 | Py_INCREF(Py_None); resultobj = Py_None; | |
12866 | return resultobj; | |
12867 | fail: | |
12868 | return NULL; | |
12869 | } | |
12870 | ||
12871 | ||
12872 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12873 | PyObject *resultobj; | |
12874 | wxDC *arg1 = (wxDC *) 0 ; | |
12875 | wxColour *arg2 = 0 ; | |
12876 | wxColour temp2 ; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | PyObject * obj1 = 0 ; | |
12879 | char *kwnames[] = { | |
12880 | (char *) "self",(char *) "colour", NULL | |
12881 | }; | |
12882 | ||
12883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12885 | { | |
12886 | arg2 = &temp2; | |
12887 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12888 | } | |
12889 | { | |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
12894 | if (PyErr_Occurred()) SWIG_fail; | |
12895 | } | |
12896 | Py_INCREF(Py_None); resultobj = Py_None; | |
12897 | return resultobj; | |
12898 | fail: | |
12899 | return NULL; | |
12900 | } | |
12901 | ||
12902 | ||
12903 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12904 | PyObject *resultobj; | |
12905 | wxDC *arg1 = (wxDC *) 0 ; | |
12906 | int result; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | char *kwnames[] = { | |
12909 | (char *) "self", NULL | |
12910 | }; | |
12911 | ||
12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12914 | { | |
12915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12916 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12917 | ||
12918 | wxPyEndAllowThreads(__tstate); | |
12919 | if (PyErr_Occurred()) SWIG_fail; | |
12920 | } | |
12921 | resultobj = PyInt_FromLong((long)result); | |
12922 | return resultobj; | |
12923 | fail: | |
12924 | return NULL; | |
12925 | } | |
12926 | ||
12927 | ||
12928 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12929 | PyObject *resultobj; | |
12930 | wxDC *arg1 = (wxDC *) 0 ; | |
12931 | int arg2 ; | |
12932 | PyObject * obj0 = 0 ; | |
12933 | char *kwnames[] = { | |
12934 | (char *) "self",(char *) "mode", NULL | |
12935 | }; | |
12936 | ||
12937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12939 | { | |
12940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12941 | (arg1)->SetMapMode(arg2); | |
12942 | ||
12943 | wxPyEndAllowThreads(__tstate); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
12946 | Py_INCREF(Py_None); resultobj = Py_None; | |
12947 | return resultobj; | |
12948 | fail: | |
12949 | return NULL; | |
12950 | } | |
12951 | ||
12952 | ||
12953 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12954 | PyObject *resultobj; | |
12955 | wxDC *arg1 = (wxDC *) 0 ; | |
12956 | double *arg2 = (double *) 0 ; | |
12957 | double *arg3 = (double *) 0 ; | |
12958 | double temp2 ; | |
12959 | double temp3 ; | |
12960 | PyObject * obj0 = 0 ; | |
12961 | char *kwnames[] = { | |
12962 | (char *) "self", NULL | |
12963 | }; | |
12964 | ||
12965 | arg2 = &temp2; | |
12966 | arg3 = &temp3; | |
12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12969 | { | |
12970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12971 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12972 | ||
12973 | wxPyEndAllowThreads(__tstate); | |
12974 | if (PyErr_Occurred()) SWIG_fail; | |
12975 | } | |
12976 | Py_INCREF(Py_None); resultobj = Py_None; | |
12977 | { | |
12978 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12979 | resultobj = t_output_helper(resultobj,o); | |
12980 | } | |
12981 | { | |
12982 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12983 | resultobj = t_output_helper(resultobj,o); | |
12984 | } | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxDC *arg1 = (wxDC *) 0 ; | |
12994 | double arg2 ; | |
12995 | double arg3 ; | |
12996 | PyObject * obj0 = 0 ; | |
12997 | char *kwnames[] = { | |
12998 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12999 | }; | |
13000 | ||
13001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | (arg1)->SetUserScale(arg2,arg3); | |
13006 | ||
13007 | wxPyEndAllowThreads(__tstate); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
13010 | Py_INCREF(Py_None); resultobj = Py_None; | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | return NULL; | |
13014 | } | |
13015 | ||
13016 | ||
13017 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13018 | PyObject *resultobj; | |
13019 | wxDC *arg1 = (wxDC *) 0 ; | |
13020 | double *arg2 = (double *) 0 ; | |
13021 | double *arg3 = (double *) 0 ; | |
13022 | double temp2 ; | |
13023 | double temp3 ; | |
13024 | PyObject * obj0 = 0 ; | |
13025 | char *kwnames[] = { | |
13026 | (char *) "self", NULL | |
13027 | }; | |
13028 | ||
13029 | arg2 = &temp2; | |
13030 | arg3 = &temp3; | |
13031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13033 | { | |
13034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13035 | (arg1)->GetLogicalScale(arg2,arg3); | |
13036 | ||
13037 | wxPyEndAllowThreads(__tstate); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
13040 | Py_INCREF(Py_None); resultobj = Py_None; | |
13041 | { | |
13042 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13043 | resultobj = t_output_helper(resultobj,o); | |
13044 | } | |
13045 | { | |
13046 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13047 | resultobj = t_output_helper(resultobj,o); | |
13048 | } | |
13049 | return resultobj; | |
13050 | fail: | |
13051 | return NULL; | |
13052 | } | |
13053 | ||
13054 | ||
13055 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13056 | PyObject *resultobj; | |
13057 | wxDC *arg1 = (wxDC *) 0 ; | |
13058 | double arg2 ; | |
13059 | double arg3 ; | |
13060 | PyObject * obj0 = 0 ; | |
13061 | char *kwnames[] = { | |
13062 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13063 | }; | |
13064 | ||
13065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13067 | { | |
13068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13069 | (arg1)->SetLogicalScale(arg2,arg3); | |
13070 | ||
13071 | wxPyEndAllowThreads(__tstate); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | } | |
13074 | Py_INCREF(Py_None); resultobj = Py_None; | |
13075 | return resultobj; | |
13076 | fail: | |
13077 | return NULL; | |
13078 | } | |
13079 | ||
13080 | ||
44127b65 | 13081 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13082 | PyObject *resultobj; |
13083 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13084 | wxPoint result; |
d14a1e28 RD |
13085 | PyObject * obj0 = 0 ; |
13086 | char *kwnames[] = { | |
13087 | (char *) "self", NULL | |
13088 | }; | |
13089 | ||
44127b65 | 13090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13092 | { | |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13094 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13095 | |
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
d14a1e28 | 13099 | { |
44127b65 RD |
13100 | wxPoint * resultptr; |
13101 | resultptr = new wxPoint((wxPoint &) result); | |
13102 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13103 | } |
13104 | return resultobj; | |
13105 | fail: | |
13106 | return NULL; | |
13107 | } | |
13108 | ||
13109 | ||
44127b65 | 13110 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13111 | PyObject *resultobj; |
13112 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
13113 | int *arg2 = (int *) 0 ; |
13114 | int *arg3 = (int *) 0 ; | |
13115 | int temp2 ; | |
13116 | int temp3 ; | |
d14a1e28 RD |
13117 | PyObject * obj0 = 0 ; |
13118 | char *kwnames[] = { | |
13119 | (char *) "self", NULL | |
13120 | }; | |
13121 | ||
44127b65 RD |
13122 | arg2 = &temp2; |
13123 | arg3 = &temp3; | |
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13126 | { | |
13127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13128 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13129 | |
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
44127b65 | 13133 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13134 | { |
44127b65 RD |
13135 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13136 | resultobj = t_output_helper(resultobj,o); | |
13137 | } | |
13138 | { | |
13139 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13140 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13141 | } |
13142 | return resultobj; | |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj; | |
13150 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13151 | int arg2 ; |
13152 | int arg3 ; | |
d14a1e28 RD |
13153 | PyObject * obj0 = 0 ; |
13154 | char *kwnames[] = { | |
13155 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13156 | }; | |
13157 | ||
13158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13160 | { | |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13163 | ||
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | Py_INCREF(Py_None); resultobj = Py_None; | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
44127b65 | 13174 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13175 | PyObject *resultobj; |
13176 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13177 | wxPoint result; |
d14a1e28 RD |
13178 | PyObject * obj0 = 0 ; |
13179 | char *kwnames[] = { | |
13180 | (char *) "self", NULL | |
13181 | }; | |
13182 | ||
44127b65 | 13183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13185 | { | |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13187 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13188 | |
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
d14a1e28 | 13192 | { |
44127b65 RD |
13193 | wxPoint * resultptr; |
13194 | resultptr = new wxPoint((wxPoint &) result); | |
13195 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13196 | } |
13197 | return resultobj; | |
13198 | fail: | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
44127b65 | 13203 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13204 | PyObject *resultobj; |
13205 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
13206 | int *arg2 = (int *) 0 ; |
13207 | int *arg3 = (int *) 0 ; | |
13208 | int temp2 ; | |
13209 | int temp3 ; | |
d14a1e28 RD |
13210 | PyObject * obj0 = 0 ; |
13211 | char *kwnames[] = { | |
13212 | (char *) "self", NULL | |
13213 | }; | |
13214 | ||
44127b65 RD |
13215 | arg2 = &temp2; |
13216 | arg3 = &temp3; | |
13217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13219 | { | |
13220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13221 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
13222 | |
13223 | wxPyEndAllowThreads(__tstate); | |
13224 | if (PyErr_Occurred()) SWIG_fail; | |
13225 | } | |
44127b65 | 13226 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13227 | { |
44127b65 RD |
13228 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13229 | resultobj = t_output_helper(resultobj,o); | |
13230 | } | |
13231 | { | |
13232 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13233 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13234 | } |
13235 | return resultobj; | |
13236 | fail: | |
13237 | return NULL; | |
13238 | } | |
13239 | ||
13240 | ||
13241 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13242 | PyObject *resultobj; | |
13243 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13244 | int arg2 ; |
13245 | int arg3 ; | |
d14a1e28 RD |
13246 | PyObject * obj0 = 0 ; |
13247 | char *kwnames[] = { | |
13248 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13249 | }; | |
13250 | ||
13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13253 | { | |
13254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13255 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
13256 | ||
13257 | wxPyEndAllowThreads(__tstate); | |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
13259 | } | |
13260 | Py_INCREF(Py_None); resultobj = Py_None; | |
13261 | return resultobj; | |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13268 | PyObject *resultobj; | |
13269 | wxDC *arg1 = (wxDC *) 0 ; | |
13270 | bool arg2 ; | |
13271 | bool arg3 ; | |
13272 | PyObject * obj0 = 0 ; | |
13273 | PyObject * obj1 = 0 ; | |
13274 | PyObject * obj2 = 0 ; | |
13275 | char *kwnames[] = { | |
13276 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
13277 | }; | |
13278 | ||
13279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
13281 | { |
13282 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | } | |
13285 | { | |
13286 | arg3 = (bool) SPyObj_AsBool(obj2); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
d14a1e28 RD |
13289 | { |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | (arg1)->SetAxisOrientation(arg2,arg3); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
13296 | Py_INCREF(Py_None); resultobj = Py_None; | |
13297 | return resultobj; | |
13298 | fail: | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
13303 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13304 | PyObject *resultobj; | |
13305 | wxDC *arg1 = (wxDC *) 0 ; | |
13306 | int result; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
13313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13314 | { | |
13315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13316 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
13317 | ||
13318 | wxPyEndAllowThreads(__tstate); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | resultobj = PyInt_FromLong((long)result); | |
13322 | return resultobj; | |
13323 | fail: | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13329 | PyObject *resultobj; | |
13330 | wxDC *arg1 = (wxDC *) 0 ; | |
13331 | int arg2 ; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | char *kwnames[] = { | |
13334 | (char *) "self",(char *) "function", NULL | |
13335 | }; | |
13336 | ||
13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
13338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13339 | { | |
13340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13341 | (arg1)->SetLogicalFunction(arg2); | |
13342 | ||
13343 | wxPyEndAllowThreads(__tstate); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | } | |
13346 | Py_INCREF(Py_None); resultobj = Py_None; | |
13347 | return resultobj; | |
13348 | fail: | |
13349 | return NULL; | |
13350 | } | |
13351 | ||
13352 | ||
13353 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13354 | PyObject *resultobj; | |
13355 | wxDC *arg1 = (wxDC *) 0 ; | |
13356 | bool arg2 ; | |
13357 | PyObject * obj0 = 0 ; | |
13358 | PyObject * obj1 = 0 ; | |
13359 | char *kwnames[] = { | |
13360 | (char *) "self",(char *) "opt", NULL | |
13361 | }; | |
13362 | ||
13363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
13364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 RD |
13365 | { |
13366 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13367 | if (PyErr_Occurred()) SWIG_fail; | |
13368 | } | |
d14a1e28 RD |
13369 | { |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | (arg1)->SetOptimization(arg2); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | Py_INCREF(Py_None); resultobj = Py_None; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxDC *arg1 = (wxDC *) 0 ; | |
13386 | bool result; | |
13387 | PyObject * obj0 = 0 ; | |
13388 | char *kwnames[] = { | |
13389 | (char *) "self", NULL | |
13390 | }; | |
13391 | ||
13392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
13393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13394 | { | |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | result = (bool)(arg1)->GetOptimization(); | |
13397 | ||
13398 | wxPyEndAllowThreads(__tstate); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
13401 | resultobj = PyInt_FromLong((long)result); | |
13402 | return resultobj; | |
13403 | fail: | |
13404 | return NULL; | |
13405 | } | |
13406 | ||
13407 | ||
13408 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13409 | PyObject *resultobj; | |
13410 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13411 | int arg2 ; |
13412 | int arg3 ; | |
d14a1e28 RD |
13413 | PyObject * obj0 = 0 ; |
13414 | char *kwnames[] = { | |
13415 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13416 | }; | |
13417 | ||
13418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13420 | { | |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | (arg1)->CalcBoundingBox(arg2,arg3); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
13427 | Py_INCREF(Py_None); resultobj = Py_None; | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13435 | PyObject *resultobj; | |
13436 | wxDC *arg1 = (wxDC *) 0 ; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | char *kwnames[] = { | |
13439 | (char *) "self", NULL | |
13440 | }; | |
13441 | ||
13442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
13443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13444 | { | |
13445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13446 | (arg1)->ResetBoundingBox(); | |
13447 | ||
13448 | wxPyEndAllowThreads(__tstate); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
13450 | } | |
13451 | Py_INCREF(Py_None); resultobj = Py_None; | |
13452 | return resultobj; | |
13453 | fail: | |
13454 | return NULL; | |
13455 | } | |
13456 | ||
13457 | ||
13458 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13459 | PyObject *resultobj; | |
13460 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13461 | int result; |
d14a1e28 RD |
13462 | PyObject * obj0 = 0 ; |
13463 | char *kwnames[] = { | |
13464 | (char *) "self", NULL | |
13465 | }; | |
13466 | ||
13467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
13468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13469 | { | |
13470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13471 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
13472 | |
13473 | wxPyEndAllowThreads(__tstate); | |
13474 | if (PyErr_Occurred()) SWIG_fail; | |
13475 | } | |
13476 | resultobj = PyInt_FromLong((long)result); | |
13477 | return resultobj; | |
13478 | fail: | |
13479 | return NULL; | |
13480 | } | |
13481 | ||
13482 | ||
13483 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13484 | PyObject *resultobj; | |
13485 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13486 | int result; |
d14a1e28 RD |
13487 | PyObject * obj0 = 0 ; |
13488 | char *kwnames[] = { | |
13489 | (char *) "self", NULL | |
13490 | }; | |
13491 | ||
13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
13493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13494 | { | |
13495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13496 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
13497 | |
13498 | wxPyEndAllowThreads(__tstate); | |
13499 | if (PyErr_Occurred()) SWIG_fail; | |
13500 | } | |
13501 | resultobj = PyInt_FromLong((long)result); | |
13502 | return resultobj; | |
13503 | fail: | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
13508 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13509 | PyObject *resultobj; | |
13510 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13511 | int result; |
d14a1e28 RD |
13512 | PyObject * obj0 = 0 ; |
13513 | char *kwnames[] = { | |
13514 | (char *) "self", NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
13518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13519 | { | |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13521 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
13522 | |
13523 | wxPyEndAllowThreads(__tstate); | |
13524 | if (PyErr_Occurred()) SWIG_fail; | |
13525 | } | |
13526 | resultobj = PyInt_FromLong((long)result); | |
13527 | return resultobj; | |
13528 | fail: | |
13529 | return NULL; | |
13530 | } | |
13531 | ||
13532 | ||
13533 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13534 | PyObject *resultobj; | |
13535 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13536 | int result; |
d14a1e28 RD |
13537 | PyObject * obj0 = 0 ; |
13538 | char *kwnames[] = { | |
13539 | (char *) "self", NULL | |
13540 | }; | |
13541 | ||
13542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
13543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13544 | { | |
13545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13546 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
13547 | |
13548 | wxPyEndAllowThreads(__tstate); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | } | |
13551 | resultobj = PyInt_FromLong((long)result); | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
13558 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13559 | PyObject *resultobj; | |
13560 | wxDC *arg1 = (wxDC *) 0 ; | |
13561 | int *arg2 = (int *) 0 ; | |
13562 | int *arg3 = (int *) 0 ; | |
13563 | int *arg4 = (int *) 0 ; | |
13564 | int *arg5 = (int *) 0 ; | |
13565 | int temp2 ; | |
13566 | int temp3 ; | |
13567 | int temp4 ; | |
13568 | int temp5 ; | |
13569 | PyObject * obj0 = 0 ; | |
13570 | char *kwnames[] = { | |
13571 | (char *) "self", NULL | |
13572 | }; | |
13573 | ||
13574 | arg2 = &temp2; | |
13575 | arg3 = &temp3; | |
13576 | arg4 = &temp4; | |
13577 | arg5 = &temp5; | |
13578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
13579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13580 | { | |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
13583 | ||
13584 | wxPyEndAllowThreads(__tstate); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
13587 | Py_INCREF(Py_None); resultobj = Py_None; | |
13588 | { | |
13589 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13590 | resultobj = t_output_helper(resultobj,o); | |
13591 | } | |
13592 | { | |
13593 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13594 | resultobj = t_output_helper(resultobj,o); | |
13595 | } | |
13596 | { | |
13597 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13598 | resultobj = t_output_helper(resultobj,o); | |
13599 | } | |
13600 | { | |
13601 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13602 | resultobj = t_output_helper(resultobj,o); | |
13603 | } | |
13604 | return resultobj; | |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13611 | PyObject *resultobj; | |
13612 | wxDC *arg1 = (wxDC *) 0 ; | |
13613 | PyObject *arg2 = (PyObject *) 0 ; | |
13614 | PyObject *arg3 = (PyObject *) 0 ; | |
13615 | PyObject *arg4 = (PyObject *) 0 ; | |
13616 | PyObject *result; | |
13617 | PyObject * obj0 = 0 ; | |
13618 | PyObject * obj1 = 0 ; | |
13619 | PyObject * obj2 = 0 ; | |
13620 | PyObject * obj3 = 0 ; | |
13621 | char *kwnames[] = { | |
13622 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13623 | }; | |
13624 | ||
13625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13627 | arg2 = obj1; | |
13628 | arg3 = obj2; | |
13629 | arg4 = obj3; | |
13630 | { | |
13631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13632 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
13633 | ||
13634 | wxPyEndAllowThreads(__tstate); | |
13635 | if (PyErr_Occurred()) SWIG_fail; | |
13636 | } | |
13637 | resultobj = result; | |
13638 | return resultobj; | |
13639 | fail: | |
13640 | return NULL; | |
13641 | } | |
13642 | ||
13643 | ||
13644 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13645 | PyObject *resultobj; | |
13646 | wxDC *arg1 = (wxDC *) 0 ; | |
13647 | PyObject *arg2 = (PyObject *) 0 ; | |
13648 | PyObject *arg3 = (PyObject *) 0 ; | |
13649 | PyObject *arg4 = (PyObject *) 0 ; | |
13650 | PyObject *result; | |
13651 | PyObject * obj0 = 0 ; | |
13652 | PyObject * obj1 = 0 ; | |
13653 | PyObject * obj2 = 0 ; | |
13654 | PyObject * obj3 = 0 ; | |
13655 | char *kwnames[] = { | |
13656 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13657 | }; | |
13658 | ||
13659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13661 | arg2 = obj1; | |
13662 | arg3 = obj2; | |
13663 | arg4 = obj3; | |
13664 | { | |
13665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13666 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
13667 | ||
13668 | wxPyEndAllowThreads(__tstate); | |
13669 | if (PyErr_Occurred()) SWIG_fail; | |
13670 | } | |
13671 | resultobj = result; | |
13672 | return resultobj; | |
13673 | fail: | |
13674 | return NULL; | |
13675 | } | |
13676 | ||
13677 | ||
13678 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13679 | PyObject *resultobj; | |
13680 | wxDC *arg1 = (wxDC *) 0 ; | |
13681 | PyObject *arg2 = (PyObject *) 0 ; | |
13682 | PyObject *arg3 = (PyObject *) 0 ; | |
13683 | PyObject *arg4 = (PyObject *) 0 ; | |
13684 | PyObject *result; | |
13685 | PyObject * obj0 = 0 ; | |
13686 | PyObject * obj1 = 0 ; | |
13687 | PyObject * obj2 = 0 ; | |
13688 | PyObject * obj3 = 0 ; | |
13689 | char *kwnames[] = { | |
13690 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13691 | }; | |
13692 | ||
13693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13695 | arg2 = obj1; | |
13696 | arg3 = obj2; | |
13697 | arg4 = obj3; | |
13698 | { | |
13699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13700 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
13701 | ||
13702 | wxPyEndAllowThreads(__tstate); | |
13703 | if (PyErr_Occurred()) SWIG_fail; | |
13704 | } | |
13705 | resultobj = result; | |
13706 | return resultobj; | |
13707 | fail: | |
13708 | return NULL; | |
13709 | } | |
13710 | ||
13711 | ||
13712 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13713 | PyObject *resultobj; | |
13714 | wxDC *arg1 = (wxDC *) 0 ; | |
13715 | PyObject *arg2 = (PyObject *) 0 ; | |
13716 | PyObject *arg3 = (PyObject *) 0 ; | |
13717 | PyObject *arg4 = (PyObject *) 0 ; | |
13718 | PyObject *result; | |
13719 | PyObject * obj0 = 0 ; | |
13720 | PyObject * obj1 = 0 ; | |
13721 | PyObject * obj2 = 0 ; | |
13722 | PyObject * obj3 = 0 ; | |
13723 | char *kwnames[] = { | |
13724 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13725 | }; | |
13726 | ||
13727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13729 | arg2 = obj1; | |
13730 | arg3 = obj2; | |
13731 | arg4 = obj3; | |
13732 | { | |
13733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13734 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
13735 | ||
13736 | wxPyEndAllowThreads(__tstate); | |
13737 | if (PyErr_Occurred()) SWIG_fail; | |
13738 | } | |
13739 | resultobj = result; | |
13740 | return resultobj; | |
13741 | fail: | |
13742 | return NULL; | |
13743 | } | |
13744 | ||
13745 | ||
13746 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13747 | PyObject *resultobj; | |
13748 | wxDC *arg1 = (wxDC *) 0 ; | |
13749 | PyObject *arg2 = (PyObject *) 0 ; | |
13750 | PyObject *arg3 = (PyObject *) 0 ; | |
13751 | PyObject *arg4 = (PyObject *) 0 ; | |
13752 | PyObject *result; | |
13753 | PyObject * obj0 = 0 ; | |
13754 | PyObject * obj1 = 0 ; | |
13755 | PyObject * obj2 = 0 ; | |
13756 | PyObject * obj3 = 0 ; | |
13757 | char *kwnames[] = { | |
13758 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13759 | }; | |
13760 | ||
13761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13763 | arg2 = obj1; | |
13764 | arg3 = obj2; | |
13765 | arg4 = obj3; | |
13766 | { | |
13767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13768 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
13769 | ||
13770 | wxPyEndAllowThreads(__tstate); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
13773 | resultobj = result; | |
13774 | return resultobj; | |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxDC *arg1 = (wxDC *) 0 ; | |
13783 | PyObject *arg2 = (PyObject *) 0 ; | |
13784 | PyObject *arg3 = (PyObject *) 0 ; | |
13785 | PyObject *arg4 = (PyObject *) 0 ; | |
13786 | PyObject *arg5 = (PyObject *) 0 ; | |
13787 | PyObject *result; | |
13788 | PyObject * obj0 = 0 ; | |
13789 | PyObject * obj1 = 0 ; | |
13790 | PyObject * obj2 = 0 ; | |
13791 | PyObject * obj3 = 0 ; | |
13792 | PyObject * obj4 = 0 ; | |
13793 | char *kwnames[] = { | |
13794 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
13795 | }; | |
13796 | ||
13797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13799 | arg2 = obj1; | |
13800 | arg3 = obj2; | |
13801 | arg4 = obj3; | |
13802 | arg5 = obj4; | |
13803 | { | |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
13806 | ||
13807 | wxPyEndAllowThreads(__tstate); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
13810 | resultobj = result; | |
13811 | return resultobj; | |
13812 | fail: | |
13813 | return NULL; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
13818 | PyObject *obj; | |
13819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13820 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
13821 | Py_INCREF(obj); | |
13822 | return Py_BuildValue((char *)""); | |
13823 | } | |
13824 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13825 | PyObject *resultobj; | |
13826 | wxMemoryDC *result; | |
13827 | char *kwnames[] = { | |
13828 | NULL | |
13829 | }; | |
13830 | ||
13831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
13832 | { | |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13834 | result = (wxMemoryDC *)new wxMemoryDC(); | |
13835 | ||
13836 | wxPyEndAllowThreads(__tstate); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
13839 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13840 | return resultobj; | |
13841 | fail: | |
13842 | return NULL; | |
13843 | } | |
13844 | ||
13845 | ||
13846 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13847 | PyObject *resultobj; | |
13848 | wxDC *arg1 = (wxDC *) 0 ; | |
13849 | wxMemoryDC *result; | |
13850 | PyObject * obj0 = 0 ; | |
13851 | char *kwnames[] = { | |
13852 | (char *) "oldDC", NULL | |
13853 | }; | |
13854 | ||
13855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
13856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13857 | { | |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
13860 | ||
13861 | wxPyEndAllowThreads(__tstate); | |
13862 | if (PyErr_Occurred()) SWIG_fail; | |
13863 | } | |
13864 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13865 | return resultobj; | |
13866 | fail: | |
13867 | return NULL; | |
13868 | } | |
13869 | ||
13870 | ||
13871 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13872 | PyObject *resultobj; | |
13873 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
13874 | wxBitmap *arg2 = 0 ; | |
13875 | PyObject * obj0 = 0 ; | |
13876 | PyObject * obj1 = 0 ; | |
13877 | char *kwnames[] = { | |
13878 | (char *) "self",(char *) "bitmap", NULL | |
13879 | }; | |
13880 | ||
13881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
13882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13883 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13884 | if (arg2 == NULL) { | |
13885 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13886 | } | |
13887 | { | |
13888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13889 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13890 | ||
13891 | wxPyEndAllowThreads(__tstate); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
13894 | Py_INCREF(Py_None); resultobj = Py_None; | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13902 | PyObject *obj; | |
13903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13904 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13905 | Py_INCREF(obj); | |
13906 | return Py_BuildValue((char *)""); | |
13907 | } | |
13908 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxDC *arg1 = (wxDC *) 0 ; | |
13911 | wxBitmap *arg2 = 0 ; | |
13912 | wxBufferedDC *result; | |
13913 | PyObject * obj0 = 0 ; | |
13914 | PyObject * obj1 = 0 ; | |
13915 | char *kwnames[] = { | |
13916 | (char *) "dc",(char *) "buffer", NULL | |
13917 | }; | |
13918 | ||
13919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13921 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13922 | if (arg2 == NULL) { | |
13923 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13924 | } | |
13925 | { | |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13927 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
13936 | } | |
13937 | ||
13938 | ||
13939 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13940 | PyObject *resultobj; | |
13941 | wxDC *arg1 = (wxDC *) 0 ; | |
13942 | wxSize *arg2 = 0 ; | |
13943 | wxBufferedDC *result; | |
13944 | wxSize temp2 ; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | PyObject * obj1 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "dc",(char *) "area", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13953 | { | |
13954 | arg2 = &temp2; | |
13955 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13956 | } | |
13957 | { | |
13958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13959 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13960 | ||
13961 | wxPyEndAllowThreads(__tstate); | |
13962 | if (PyErr_Occurred()) SWIG_fail; | |
13963 | } | |
13964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13965 | return resultobj; | |
13966 | fail: | |
13967 | return NULL; | |
13968 | } | |
13969 | ||
13970 | ||
13971 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13972 | PyObject *resultobj; | |
13973 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13981 | { | |
13982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13983 | (arg1)->UnMask(); | |
13984 | ||
13985 | wxPyEndAllowThreads(__tstate); | |
13986 | if (PyErr_Occurred()) SWIG_fail; | |
13987 | } | |
13988 | Py_INCREF(Py_None); resultobj = Py_None; | |
13989 | return resultobj; | |
13990 | fail: | |
13991 | return NULL; | |
13992 | } | |
13993 | ||
13994 | ||
13995 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13996 | PyObject *obj; | |
13997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13998 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13999 | Py_INCREF(obj); | |
14000 | return Py_BuildValue((char *)""); | |
14001 | } | |
14002 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14003 | PyObject *resultobj; | |
14004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14005 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
14006 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
14007 | wxBufferedPaintDC *result; | |
14008 | PyObject * obj0 = 0 ; | |
14009 | PyObject * obj1 = 0 ; | |
14010 | char *kwnames[] = { | |
14011 | (char *) "window",(char *) "buffer", NULL | |
14012 | }; | |
14013 | ||
14014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
14015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14016 | if (obj1) { | |
14017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14018 | if (arg2 == NULL) { | |
14019 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14020 | } | |
14021 | } | |
14022 | { | |
14023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14024 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
14025 | ||
14026 | wxPyEndAllowThreads(__tstate); | |
14027 | if (PyErr_Occurred()) SWIG_fail; | |
14028 | } | |
14029 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14030 | return resultobj; | |
14031 | fail: | |
14032 | return NULL; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
14037 | PyObject *obj; | |
14038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14039 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14040 | Py_INCREF(obj); | |
14041 | return Py_BuildValue((char *)""); | |
14042 | } | |
14043 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14044 | PyObject *resultobj; | |
14045 | wxScreenDC *result; | |
14046 | char *kwnames[] = { | |
14047 | NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
14051 | { | |
14052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14053 | result = (wxScreenDC *)new wxScreenDC(); | |
14054 | ||
14055 | wxPyEndAllowThreads(__tstate); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
14058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | return NULL; | |
14062 | } | |
14063 | ||
14064 | ||
14065 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14066 | PyObject *resultobj; | |
14067 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14068 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14069 | bool result; | |
14070 | PyObject * obj0 = 0 ; | |
14071 | PyObject * obj1 = 0 ; | |
14072 | char *kwnames[] = { | |
14073 | (char *) "self",(char *) "window", NULL | |
14074 | }; | |
14075 | ||
14076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
14077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14078 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | resultobj = PyInt_FromLong((long)result); | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14096 | wxRect *arg2 = (wxRect *) NULL ; | |
14097 | bool result; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | PyObject * obj1 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self",(char *) "rect", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14106 | if (obj1) { | |
14107 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14108 | } | |
14109 | { | |
14110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14111 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14112 | ||
14113 | wxPyEndAllowThreads(__tstate); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
14115 | } | |
14116 | resultobj = PyInt_FromLong((long)result); | |
14117 | return resultobj; | |
14118 | fail: | |
14119 | return NULL; | |
14120 | } | |
14121 | ||
14122 | ||
14123 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14124 | PyObject *resultobj; | |
14125 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14126 | bool result; | |
14127 | PyObject * obj0 = 0 ; | |
14128 | char *kwnames[] = { | |
14129 | (char *) "self", NULL | |
14130 | }; | |
14131 | ||
14132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
14133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14134 | { | |
14135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14136 | result = (bool)(arg1)->EndDrawingOnTop(); | |
14137 | ||
14138 | wxPyEndAllowThreads(__tstate); | |
14139 | if (PyErr_Occurred()) SWIG_fail; | |
14140 | } | |
14141 | resultobj = PyInt_FromLong((long)result); | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
14148 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
14149 | PyObject *obj; | |
14150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14151 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
14152 | Py_INCREF(obj); | |
14153 | return Py_BuildValue((char *)""); | |
14154 | } | |
14155 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14156 | PyObject *resultobj; | |
14157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14158 | wxClientDC *result; | |
14159 | PyObject * obj0 = 0 ; | |
14160 | char *kwnames[] = { | |
14161 | (char *) "win", NULL | |
14162 | }; | |
14163 | ||
14164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
14165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14166 | { | |
14167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14168 | result = (wxClientDC *)new wxClientDC(arg1); | |
14169 | ||
14170 | wxPyEndAllowThreads(__tstate); | |
14171 | if (PyErr_Occurred()) SWIG_fail; | |
14172 | } | |
14173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
14174 | return resultobj; | |
14175 | fail: | |
14176 | return NULL; | |
14177 | } | |
14178 | ||
14179 | ||
14180 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
14181 | PyObject *obj; | |
14182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14183 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
14184 | Py_INCREF(obj); | |
14185 | return Py_BuildValue((char *)""); | |
14186 | } | |
14187 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14188 | PyObject *resultobj; | |
14189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14190 | wxPaintDC *result; | |
14191 | PyObject * obj0 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "win", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
14197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14198 | { | |
14199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14200 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
14201 | ||
14202 | wxPyEndAllowThreads(__tstate); | |
14203 | if (PyErr_Occurred()) SWIG_fail; | |
14204 | } | |
14205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
14206 | return resultobj; | |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
14212 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
14213 | PyObject *obj; | |
14214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14215 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
14216 | Py_INCREF(obj); | |
14217 | return Py_BuildValue((char *)""); | |
14218 | } | |
14219 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14220 | PyObject *resultobj; | |
14221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14222 | wxWindowDC *result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "win", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
14244 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
14245 | PyObject *obj; | |
14246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14247 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
14248 | Py_INCREF(obj); | |
14249 | return Py_BuildValue((char *)""); | |
14250 | } | |
14251 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14252 | PyObject *resultobj; | |
14253 | wxDC *arg1 = 0 ; | |
14254 | bool arg2 ; | |
14255 | wxMirrorDC *result; | |
14256 | PyObject * obj0 = 0 ; | |
14257 | PyObject * obj1 = 0 ; | |
14258 | char *kwnames[] = { | |
14259 | (char *) "dc",(char *) "mirror", NULL | |
14260 | }; | |
14261 | ||
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
14263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14264 | if (arg1 == NULL) { | |
14265 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14266 | } | |
83448d71 RD |
14267 | { |
14268 | arg2 = (bool) SPyObj_AsBool(obj1); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
d14a1e28 RD |
14271 | { |
14272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14273 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
14274 | ||
14275 | wxPyEndAllowThreads(__tstate); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
14278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
14279 | return resultobj; | |
14280 | fail: | |
14281 | return NULL; | |
14282 | } | |
14283 | ||
14284 | ||
14285 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
14286 | PyObject *obj; | |
14287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14288 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
14289 | Py_INCREF(obj); | |
14290 | return Py_BuildValue((char *)""); | |
14291 | } | |
14292 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxPrintData *arg1 = 0 ; | |
14295 | wxPostScriptDC *result; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "printData", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14303 | if (arg1 == NULL) { | |
14304 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14305 | } | |
14306 | { | |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
14313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
14320 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14321 | PyObject *resultobj; | |
14322 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
14323 | wxPrintData *result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
14330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14331 | { | |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | { | |
14334 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
14335 | result = (wxPrintData *) &_result_ref; | |
14336 | } | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
14351 | wxPrintData *arg2 = 0 ; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | PyObject * obj1 = 0 ; | |
14354 | char *kwnames[] = { | |
14355 | (char *) "self",(char *) "data", NULL | |
14356 | }; | |
14357 | ||
14358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
14359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14361 | if (arg2 == NULL) { | |
14362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14363 | } | |
14364 | { | |
14365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14366 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
14367 | ||
14368 | wxPyEndAllowThreads(__tstate); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | } | |
14371 | Py_INCREF(Py_None); resultobj = Py_None; | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14379 | PyObject *resultobj; | |
14380 | int arg1 ; | |
14381 | char *kwnames[] = { | |
14382 | (char *) "ppi", NULL | |
14383 | }; | |
14384 | ||
14385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
14386 | { | |
14387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14388 | wxPostScriptDC::SetResolution(arg1); | |
14389 | ||
14390 | wxPyEndAllowThreads(__tstate); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
14393 | Py_INCREF(Py_None); resultobj = Py_None; | |
14394 | return resultobj; | |
14395 | fail: | |
14396 | return NULL; | |
14397 | } | |
14398 | ||
14399 | ||
14400 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14401 | PyObject *resultobj; | |
14402 | int result; | |
14403 | char *kwnames[] = { | |
14404 | NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
14408 | { | |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14410 | result = (int)wxPostScriptDC::GetResolution(); | |
14411 | ||
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
14415 | resultobj = PyInt_FromLong((long)result); | |
14416 | return resultobj; | |
14417 | fail: | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
14422 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
14423 | PyObject *obj; | |
14424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14425 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
14426 | Py_INCREF(obj); | |
14427 | return Py_BuildValue((char *)""); | |
14428 | } | |
14429 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14430 | PyObject *resultobj; | |
14431 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14432 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14433 | wxMetaFile *result; | |
423f194a | 14434 | bool temp1 = False ; |
d14a1e28 RD |
14435 | PyObject * obj0 = 0 ; |
14436 | char *kwnames[] = { | |
14437 | (char *) "filename", NULL | |
14438 | }; | |
14439 | ||
14440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
14441 | if (obj0) { | |
14442 | { | |
14443 | arg1 = wxString_in_helper(obj0); | |
14444 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14445 | temp1 = True; |
d14a1e28 RD |
14446 | } |
14447 | } | |
14448 | { | |
14449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14450 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
14451 | ||
14452 | wxPyEndAllowThreads(__tstate); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
14456 | { | |
14457 | if (temp1) | |
14458 | delete arg1; | |
14459 | } | |
14460 | return resultobj; | |
14461 | fail: | |
14462 | { | |
14463 | if (temp1) | |
14464 | delete arg1; | |
14465 | } | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
14470 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14473 | PyObject * obj0 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | delete arg1; | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | Py_INCREF(Py_None); resultobj = Py_None; | |
14488 | return resultobj; | |
14489 | fail: | |
14490 | return NULL; | |
14491 | } | |
14492 | ||
14493 | ||
14494 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14495 | PyObject *resultobj; | |
14496 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14497 | bool result; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | char *kwnames[] = { | |
14500 | (char *) "self", NULL | |
14501 | }; | |
14502 | ||
14503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
14504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14505 | { | |
14506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14507 | result = (bool)(arg1)->Ok(); | |
14508 | ||
14509 | wxPyEndAllowThreads(__tstate); | |
14510 | if (PyErr_Occurred()) SWIG_fail; | |
14511 | } | |
14512 | resultobj = PyInt_FromLong((long)result); | |
14513 | return resultobj; | |
14514 | fail: | |
14515 | return NULL; | |
14516 | } | |
14517 | ||
14518 | ||
14519 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14520 | PyObject *resultobj; | |
14521 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14522 | int arg2 = (int) 0 ; | |
14523 | int arg3 = (int) 0 ; | |
14524 | bool result; | |
14525 | PyObject * obj0 = 0 ; | |
14526 | char *kwnames[] = { | |
14527 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14528 | }; | |
14529 | ||
14530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | resultobj = PyInt_FromLong((long)result); | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj; | |
14548 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14549 | wxSize result; | |
14550 | PyObject * obj0 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "self", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
14556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14557 | { | |
14558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14559 | result = (arg1)->GetSize(); | |
14560 | ||
14561 | wxPyEndAllowThreads(__tstate); | |
14562 | if (PyErr_Occurred()) SWIG_fail; | |
14563 | } | |
14564 | { | |
14565 | wxSize * resultptr; | |
14566 | resultptr = new wxSize((wxSize &) result); | |
14567 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14568 | } | |
14569 | return resultobj; | |
14570 | fail: | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14578 | int result; | |
14579 | PyObject * obj0 = 0 ; | |
14580 | char *kwnames[] = { | |
14581 | (char *) "self", NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
14585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14586 | { | |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = (int)(arg1)->GetWidth(); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | } | |
14593 | resultobj = PyInt_FromLong((long)result); | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14603 | int result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14611 | { | |
14612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14613 | result = (int)(arg1)->GetHeight(); | |
14614 | ||
14615 | wxPyEndAllowThreads(__tstate); | |
14616 | if (PyErr_Occurred()) SWIG_fail; | |
14617 | } | |
14618 | resultobj = PyInt_FromLong((long)result); | |
14619 | return resultobj; | |
14620 | fail: | |
14621 | return NULL; | |
14622 | } | |
14623 | ||
14624 | ||
14625 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14626 | PyObject *resultobj; | |
14627 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14628 | wxString *result; | |
14629 | PyObject * obj0 = 0 ; | |
14630 | char *kwnames[] = { | |
14631 | (char *) "self", NULL | |
14632 | }; | |
14633 | ||
14634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
14635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14636 | { | |
14637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14638 | { | |
14639 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
14640 | result = (wxString *) &_result_ref; | |
14641 | } | |
14642 | ||
14643 | wxPyEndAllowThreads(__tstate); | |
14644 | if (PyErr_Occurred()) SWIG_fail; | |
14645 | } | |
f0983263 RD |
14646 | { |
14647 | #if wxUSE_UNICODE | |
14648 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14649 | #else | |
14650 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14651 | #endif | |
14652 | } | |
d14a1e28 RD |
14653 | return resultobj; |
14654 | fail: | |
14655 | return NULL; | |
14656 | } | |
14657 | ||
14658 | ||
14659 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
14660 | PyObject *obj; | |
14661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14662 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
14663 | Py_INCREF(obj); | |
14664 | return Py_BuildValue((char *)""); | |
14665 | } | |
14666 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14669 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14670 | int arg2 = (int) 0 ; | |
14671 | int arg3 = (int) 0 ; | |
14672 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14673 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14674 | wxMetaFileDC *result; | |
423f194a RD |
14675 | bool temp1 = False ; |
14676 | bool temp4 = False ; | |
d14a1e28 RD |
14677 | PyObject * obj0 = 0 ; |
14678 | PyObject * obj3 = 0 ; | |
14679 | char *kwnames[] = { | |
14680 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
14681 | }; | |
14682 | ||
14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
14684 | if (obj0) { | |
14685 | { | |
14686 | arg1 = wxString_in_helper(obj0); | |
14687 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14688 | temp1 = True; |
d14a1e28 RD |
14689 | } |
14690 | } | |
14691 | if (obj3) { | |
14692 | { | |
14693 | arg4 = wxString_in_helper(obj3); | |
14694 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14695 | temp4 = True; |
d14a1e28 RD |
14696 | } |
14697 | } | |
14698 | { | |
14699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14700 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
14701 | ||
14702 | wxPyEndAllowThreads(__tstate); | |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
14704 | } | |
14705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
14706 | { | |
14707 | if (temp1) | |
14708 | delete arg1; | |
14709 | } | |
14710 | { | |
14711 | if (temp4) | |
14712 | delete arg4; | |
14713 | } | |
14714 | return resultobj; | |
14715 | fail: | |
14716 | { | |
14717 | if (temp1) | |
14718 | delete arg1; | |
14719 | } | |
14720 | { | |
14721 | if (temp4) | |
14722 | delete arg4; | |
14723 | } | |
14724 | return NULL; | |
14725 | } | |
14726 | ||
14727 | ||
14728 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14729 | PyObject *resultobj; | |
14730 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
14731 | wxMetaFile *result; | |
14732 | PyObject * obj0 = 0 ; | |
14733 | char *kwnames[] = { | |
14734 | (char *) "self", NULL | |
14735 | }; | |
14736 | ||
14737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
14738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14739 | { | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | result = (wxMetaFile *)(arg1)->Close(); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
14746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
14747 | return resultobj; | |
14748 | fail: | |
14749 | return NULL; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
14754 | PyObject *obj; | |
14755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14756 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
14757 | Py_INCREF(obj); | |
14758 | return Py_BuildValue((char *)""); | |
14759 | } | |
14760 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14761 | PyObject *resultobj; | |
14762 | wxPrintData *arg1 = 0 ; | |
14763 | wxPrinterDC *result; | |
14764 | PyObject * obj0 = 0 ; | |
14765 | char *kwnames[] = { | |
14766 | (char *) "printData", NULL | |
14767 | }; | |
14768 | ||
14769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
14770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14771 | if (arg1 == NULL) { | |
14772 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14773 | } | |
14774 | { | |
14775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14776 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
14777 | ||
14778 | wxPyEndAllowThreads(__tstate); | |
14779 | if (PyErr_Occurred()) SWIG_fail; | |
14780 | } | |
14781 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
14782 | return resultobj; | |
14783 | fail: | |
14784 | return NULL; | |
14785 | } | |
14786 | ||
14787 | ||
14788 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
14789 | PyObject *obj; | |
14790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14791 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
14792 | Py_INCREF(obj); | |
14793 | return Py_BuildValue((char *)""); | |
14794 | } | |
14795 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14796 | PyObject *resultobj; | |
14797 | int arg1 ; | |
14798 | int arg2 ; | |
423f194a | 14799 | int arg3 = (int) True ; |
d14a1e28 RD |
14800 | int arg4 = (int) 1 ; |
14801 | wxImageList *result; | |
14802 | char *kwnames[] = { | |
14803 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
14804 | }; | |
14805 | ||
14806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
14807 | { | |
14808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14809 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
14810 | ||
14811 | wxPyEndAllowThreads(__tstate); | |
14812 | if (PyErr_Occurred()) SWIG_fail; | |
14813 | } | |
14814 | { | |
14815 | resultobj = wxPyMake_wxObject(result); | |
14816 | } | |
14817 | return resultobj; | |
14818 | fail: | |
14819 | return NULL; | |
14820 | } | |
14821 | ||
14822 | ||
14823 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14824 | PyObject *resultobj; | |
14825 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14826 | PyObject * obj0 = 0 ; | |
14827 | char *kwnames[] = { | |
14828 | (char *) "self", NULL | |
14829 | }; | |
14830 | ||
14831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
14832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14833 | { | |
14834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14835 | delete arg1; | |
14836 | ||
14837 | wxPyEndAllowThreads(__tstate); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | } | |
14840 | Py_INCREF(Py_None); resultobj = Py_None; | |
14841 | return resultobj; | |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
14847 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14848 | PyObject *resultobj; | |
14849 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14850 | wxBitmap *arg2 = 0 ; | |
14851 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
14852 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
14853 | int result; | |
14854 | PyObject * obj0 = 0 ; | |
14855 | PyObject * obj1 = 0 ; | |
14856 | PyObject * obj2 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14864 | if (arg2 == NULL) { | |
14865 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14866 | } | |
14867 | if (obj2) { | |
14868 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14869 | if (arg3 == NULL) { | |
14870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14871 | } | |
14872 | } | |
14873 | { | |
14874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14875 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
14876 | ||
14877 | wxPyEndAllowThreads(__tstate); | |
14878 | if (PyErr_Occurred()) SWIG_fail; | |
14879 | } | |
14880 | resultobj = PyInt_FromLong((long)result); | |
14881 | return resultobj; | |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14890 | wxBitmap *arg2 = 0 ; | |
14891 | wxColour *arg3 = 0 ; | |
14892 | int result; | |
14893 | wxColour temp3 ; | |
14894 | PyObject * obj0 = 0 ; | |
14895 | PyObject * obj1 = 0 ; | |
14896 | PyObject * obj2 = 0 ; | |
14897 | char *kwnames[] = { | |
14898 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
14899 | }; | |
14900 | ||
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14904 | if (arg2 == NULL) { | |
14905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14906 | } | |
14907 | { | |
14908 | arg3 = &temp3; | |
14909 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14910 | } | |
14911 | { | |
14912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14913 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
14914 | ||
14915 | wxPyEndAllowThreads(__tstate); | |
14916 | if (PyErr_Occurred()) SWIG_fail; | |
14917 | } | |
14918 | resultobj = PyInt_FromLong((long)result); | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14926 | PyObject *resultobj; | |
14927 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14928 | wxIcon *arg2 = 0 ; | |
14929 | int result; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | PyObject * obj1 = 0 ; | |
14932 | char *kwnames[] = { | |
14933 | (char *) "self",(char *) "icon", NULL | |
14934 | }; | |
14935 | ||
14936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
14937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14939 | if (arg2 == NULL) { | |
14940 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14941 | } | |
14942 | { | |
14943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14944 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
14945 | ||
14946 | wxPyEndAllowThreads(__tstate); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
14948 | } | |
14949 | resultobj = PyInt_FromLong((long)result); | |
14950 | return resultobj; | |
14951 | fail: | |
14952 | return NULL; | |
14953 | } | |
14954 | ||
14955 | ||
14956 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14957 | PyObject *resultobj; | |
14958 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14959 | int arg2 ; | |
14960 | wxBitmap *arg3 = 0 ; | |
14961 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
14962 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
14963 | bool result; | |
14964 | PyObject * obj0 = 0 ; | |
14965 | PyObject * obj2 = 0 ; | |
14966 | PyObject * obj3 = 0 ; | |
14967 | char *kwnames[] = { | |
14968 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
14969 | }; | |
14970 | ||
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14973 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14974 | if (arg3 == NULL) { | |
14975 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14976 | } | |
14977 | if (obj3) { | |
14978 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14979 | if (arg4 == NULL) { | |
14980 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14981 | } | |
14982 | } | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
14990 | resultobj = PyInt_FromLong((long)result); | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
14997 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14998 | PyObject *resultobj; | |
14999 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15000 | int arg2 ; | |
15001 | wxDC *arg3 = 0 ; | |
15002 | int arg4 ; | |
15003 | int arg5 ; | |
15004 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 15005 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15006 | bool result; |
15007 | PyObject * obj0 = 0 ; | |
15008 | PyObject * obj2 = 0 ; | |
15009 | PyObject * obj6 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
15015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15016 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15017 | if (arg3 == NULL) { | |
15018 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15019 | } | |
15020 | if (obj6) { | |
83448d71 RD |
15021 | { |
15022 | arg7 = (bool const) SPyObj_AsBool(obj6); | |
15023 | if (PyErr_Occurred()) SWIG_fail; | |
15024 | } | |
d14a1e28 RD |
15025 | } |
15026 | { | |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15029 | ||
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
15033 | resultobj = PyInt_FromLong((long)result); | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
15040 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15041 | PyObject *resultobj; | |
15042 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15043 | int result; | |
15044 | PyObject * obj0 = 0 ; | |
15045 | char *kwnames[] = { | |
15046 | (char *) "self", NULL | |
15047 | }; | |
15048 | ||
15049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (int)(arg1)->GetImageCount(); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
15058 | resultobj = PyInt_FromLong((long)result); | |
15059 | return resultobj; | |
15060 | fail: | |
15061 | return NULL; | |
15062 | } | |
15063 | ||
15064 | ||
15065 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15066 | PyObject *resultobj; | |
15067 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15068 | int arg2 ; | |
15069 | bool result; | |
15070 | PyObject * obj0 = 0 ; | |
15071 | char *kwnames[] = { | |
15072 | (char *) "self",(char *) "index", NULL | |
15073 | }; | |
15074 | ||
15075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
15076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15077 | { | |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15079 | result = (bool)(arg1)->Remove(arg2); | |
15080 | ||
15081 | wxPyEndAllowThreads(__tstate); | |
15082 | if (PyErr_Occurred()) SWIG_fail; | |
15083 | } | |
15084 | resultobj = PyInt_FromLong((long)result); | |
15085 | return resultobj; | |
15086 | fail: | |
15087 | return NULL; | |
15088 | } | |
15089 | ||
15090 | ||
15091 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15092 | PyObject *resultobj; | |
15093 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15094 | bool result; | |
15095 | PyObject * obj0 = 0 ; | |
15096 | char *kwnames[] = { | |
15097 | (char *) "self", NULL | |
15098 | }; | |
15099 | ||
15100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15102 | { | |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15104 | result = (bool)(arg1)->RemoveAll(); | |
15105 | ||
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | resultobj = PyInt_FromLong((long)result); | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
15116 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15117 | PyObject *resultobj; | |
15118 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15119 | int arg2 ; | |
15120 | int *arg3 = 0 ; | |
15121 | int *arg4 = 0 ; | |
15122 | int temp3 ; | |
15123 | int temp4 ; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self",(char *) "index", NULL | |
15127 | }; | |
15128 | ||
15129 | arg3 = &temp3; | |
15130 | arg4 = &temp4; | |
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15133 | { | |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15136 | ||
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | Py_INCREF(Py_None); resultobj = Py_None; | |
15141 | { | |
15142 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15143 | resultobj = t_output_helper(resultobj,o); | |
15144 | } | |
15145 | { | |
15146 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15147 | resultobj = t_output_helper(resultobj,o); | |
15148 | } | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15156 | PyObject *obj; | |
15157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15158 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15159 | Py_INCREF(obj); | |
15160 | return Py_BuildValue((char *)""); | |
15161 | } | |
15162 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxPenList *arg1 = (wxPenList *) 0 ; | |
15165 | wxPen *arg2 = (wxPen *) 0 ; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | PyObject * obj1 = 0 ; | |
15168 | char *kwnames[] = { | |
15169 | (char *) "self",(char *) "pen", NULL | |
15170 | }; | |
15171 | ||
15172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
15173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15174 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15175 | { | |
15176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15177 | (arg1)->AddPen(arg2); | |
15178 | ||
15179 | wxPyEndAllowThreads(__tstate); | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
15182 | Py_INCREF(Py_None); resultobj = Py_None; | |
15183 | return resultobj; | |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxPenList *arg1 = (wxPenList *) 0 ; | |
15192 | wxColour *arg2 = 0 ; | |
15193 | int arg3 ; | |
15194 | int arg4 ; | |
15195 | wxPen *result; | |
15196 | wxColour temp2 ; | |
15197 | PyObject * obj0 = 0 ; | |
15198 | PyObject * obj1 = 0 ; | |
15199 | char *kwnames[] = { | |
15200 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
15201 | }; | |
15202 | ||
15203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
15204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15205 | { | |
15206 | arg2 = &temp2; | |
15207 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15208 | } | |
15209 | { | |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
15212 | ||
15213 | wxPyEndAllowThreads(__tstate); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
15216 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
15223 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15224 | PyObject *resultobj; | |
15225 | wxPenList *arg1 = (wxPenList *) 0 ; | |
15226 | wxPen *arg2 = (wxPen *) 0 ; | |
15227 | PyObject * obj0 = 0 ; | |
15228 | PyObject * obj1 = 0 ; | |
15229 | char *kwnames[] = { | |
15230 | (char *) "self",(char *) "pen", NULL | |
15231 | }; | |
15232 | ||
15233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
15234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15236 | { | |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | (arg1)->RemovePen(arg2); | |
15239 | ||
15240 | wxPyEndAllowThreads(__tstate); | |
15241 | if (PyErr_Occurred()) SWIG_fail; | |
15242 | } | |
15243 | Py_INCREF(Py_None); resultobj = Py_None; | |
15244 | return resultobj; | |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxPenList *arg1 = (wxPenList *) 0 ; | |
15253 | int result; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
15260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15261 | { | |
15262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15263 | result = (int)(arg1)->GetCount(); | |
15264 | ||
15265 | wxPyEndAllowThreads(__tstate); | |
15266 | if (PyErr_Occurred()) SWIG_fail; | |
15267 | } | |
15268 | resultobj = PyInt_FromLong((long)result); | |
15269 | return resultobj; | |
15270 | fail: | |
15271 | return NULL; | |
15272 | } | |
15273 | ||
15274 | ||
15275 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
15276 | PyObject *obj; | |
15277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15278 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
15279 | Py_INCREF(obj); | |
15280 | return Py_BuildValue((char *)""); | |
15281 | } | |
15282 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15285 | wxBrush *arg2 = (wxBrush *) 0 ; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | PyObject * obj1 = 0 ; | |
15288 | char *kwnames[] = { | |
15289 | (char *) "self",(char *) "brush", NULL | |
15290 | }; | |
15291 | ||
15292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
15293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15294 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15295 | { | |
15296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15297 | (arg1)->AddBrush(arg2); | |
15298 | ||
15299 | wxPyEndAllowThreads(__tstate); | |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
15301 | } | |
15302 | Py_INCREF(Py_None); resultobj = Py_None; | |
15303 | return resultobj; | |
15304 | fail: | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
15309 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15310 | PyObject *resultobj; | |
15311 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15312 | wxColour *arg2 = 0 ; | |
15313 | int arg3 ; | |
15314 | wxBrush *result; | |
15315 | wxColour temp2 ; | |
15316 | PyObject * obj0 = 0 ; | |
15317 | PyObject * obj1 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
15323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15324 | { | |
15325 | arg2 = &temp2; | |
15326 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15327 | } | |
15328 | { | |
15329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15330 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
15331 | ||
15332 | wxPyEndAllowThreads(__tstate); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | } | |
15335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
15336 | return resultobj; | |
15337 | fail: | |
15338 | return NULL; | |
15339 | } | |
15340 | ||
15341 | ||
15342 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15343 | PyObject *resultobj; | |
15344 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15345 | wxBrush *arg2 = (wxBrush *) 0 ; | |
15346 | PyObject * obj0 = 0 ; | |
15347 | PyObject * obj1 = 0 ; | |
15348 | char *kwnames[] = { | |
15349 | (char *) "self",(char *) "brush", NULL | |
15350 | }; | |
15351 | ||
15352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
15353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15355 | { | |
15356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15357 | (arg1)->RemoveBrush(arg2); | |
15358 | ||
15359 | wxPyEndAllowThreads(__tstate); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | Py_INCREF(Py_None); resultobj = Py_None; | |
15363 | return resultobj; | |
15364 | fail: | |
15365 | return NULL; | |
15366 | } | |
15367 | ||
15368 | ||
15369 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15370 | PyObject *resultobj; | |
15371 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15372 | int result; | |
15373 | PyObject * obj0 = 0 ; | |
15374 | char *kwnames[] = { | |
15375 | (char *) "self", NULL | |
15376 | }; | |
15377 | ||
15378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
15379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15380 | { | |
15381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15382 | result = (int)(arg1)->GetCount(); | |
15383 | ||
15384 | wxPyEndAllowThreads(__tstate); | |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
15386 | } | |
15387 | resultobj = PyInt_FromLong((long)result); | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
15394 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
15395 | PyObject *obj; | |
15396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15397 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
15398 | Py_INCREF(obj); | |
15399 | return Py_BuildValue((char *)""); | |
15400 | } | |
15401 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15402 | PyObject *resultobj; | |
15403 | wxColourDatabase *result; | |
15404 | char *kwnames[] = { | |
15405 | NULL | |
15406 | }; | |
15407 | ||
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
15409 | { | |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15411 | result = (wxColourDatabase *)new wxColourDatabase(); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
15414 | if (PyErr_Occurred()) SWIG_fail; | |
15415 | } | |
15416 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
15417 | return resultobj; | |
15418 | fail: | |
15419 | return NULL; | |
15420 | } | |
15421 | ||
15422 | ||
15423 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15424 | PyObject *resultobj; | |
15425 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | char *kwnames[] = { | |
15428 | (char *) "self", NULL | |
15429 | }; | |
15430 | ||
15431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
15432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15433 | { | |
15434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15435 | delete arg1; | |
15436 | ||
15437 | wxPyEndAllowThreads(__tstate); | |
15438 | if (PyErr_Occurred()) SWIG_fail; | |
15439 | } | |
15440 | Py_INCREF(Py_None); resultobj = Py_None; | |
15441 | return resultobj; | |
15442 | fail: | |
15443 | return NULL; | |
15444 | } | |
15445 | ||
15446 | ||
15447 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15448 | PyObject *resultobj; | |
15449 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15450 | wxString *arg2 = 0 ; | |
15451 | wxColour result; | |
423f194a | 15452 | bool temp2 = False ; |
d14a1e28 RD |
15453 | PyObject * obj0 = 0 ; |
15454 | PyObject * obj1 = 0 ; | |
15455 | char *kwnames[] = { | |
15456 | (char *) "self",(char *) "name", NULL | |
15457 | }; | |
15458 | ||
15459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15461 | { | |
15462 | arg2 = wxString_in_helper(obj1); | |
15463 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15464 | temp2 = True; |
d14a1e28 RD |
15465 | } |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | { | |
15474 | wxColour * resultptr; | |
15475 | resultptr = new wxColour((wxColour &) result); | |
15476 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15477 | } | |
15478 | { | |
15479 | if (temp2) | |
15480 | delete arg2; | |
15481 | } | |
15482 | return resultobj; | |
15483 | fail: | |
15484 | { | |
15485 | if (temp2) | |
15486 | delete arg2; | |
15487 | } | |
15488 | return NULL; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15493 | PyObject *resultobj; | |
15494 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15495 | wxColour *arg2 = 0 ; | |
15496 | wxString result; | |
15497 | wxColour temp2 ; | |
15498 | PyObject * obj0 = 0 ; | |
15499 | PyObject * obj1 = 0 ; | |
15500 | char *kwnames[] = { | |
15501 | (char *) "self",(char *) "colour", NULL | |
15502 | }; | |
15503 | ||
15504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
15505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15506 | { | |
15507 | arg2 = &temp2; | |
15508 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15509 | } | |
15510 | { | |
15511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15512 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
15513 | ||
15514 | wxPyEndAllowThreads(__tstate); | |
15515 | if (PyErr_Occurred()) SWIG_fail; | |
15516 | } | |
15517 | { | |
15518 | #if wxUSE_UNICODE | |
15519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15520 | #else | |
15521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15522 | #endif | |
15523 | } | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj; | |
15532 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15533 | wxString *arg2 = 0 ; | |
15534 | wxColour *arg3 = 0 ; | |
423f194a | 15535 | bool temp2 = False ; |
d14a1e28 RD |
15536 | wxColour temp3 ; |
15537 | PyObject * obj0 = 0 ; | |
15538 | PyObject * obj1 = 0 ; | |
15539 | PyObject * obj2 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15546 | { | |
15547 | arg2 = wxString_in_helper(obj1); | |
15548 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15549 | temp2 = True; |
d14a1e28 RD |
15550 | } |
15551 | { | |
15552 | arg3 = &temp3; | |
15553 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15554 | } | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | Py_INCREF(Py_None); resultobj = Py_None; | |
15563 | { | |
15564 | if (temp2) | |
15565 | delete arg2; | |
15566 | } | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | { | |
15570 | if (temp2) | |
15571 | delete arg2; | |
15572 | } | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15578 | PyObject *resultobj; | |
15579 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15580 | wxString *arg2 = 0 ; | |
15581 | int arg3 ; | |
15582 | int arg4 ; | |
15583 | int arg5 ; | |
423f194a | 15584 | bool temp2 = False ; |
d14a1e28 RD |
15585 | PyObject * obj0 = 0 ; |
15586 | PyObject * obj1 = 0 ; | |
15587 | char *kwnames[] = { | |
15588 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
15589 | }; | |
15590 | ||
15591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
15592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15593 | { | |
15594 | arg2 = wxString_in_helper(obj1); | |
15595 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15596 | temp2 = True; |
d14a1e28 RD |
15597 | } |
15598 | { | |
15599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15600 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
15601 | ||
15602 | wxPyEndAllowThreads(__tstate); | |
15603 | if (PyErr_Occurred()) SWIG_fail; | |
15604 | } | |
15605 | Py_INCREF(Py_None); resultobj = Py_None; | |
15606 | { | |
15607 | if (temp2) | |
15608 | delete arg2; | |
15609 | } | |
15610 | return resultobj; | |
15611 | fail: | |
15612 | { | |
15613 | if (temp2) | |
15614 | delete arg2; | |
15615 | } | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
15621 | PyObject *obj; | |
15622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15623 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
15624 | Py_INCREF(obj); | |
15625 | return Py_BuildValue((char *)""); | |
15626 | } | |
15627 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj; | |
15629 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15630 | wxFont *arg2 = (wxFont *) 0 ; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | PyObject * obj1 = 0 ; | |
15633 | char *kwnames[] = { | |
15634 | (char *) "self",(char *) "font", NULL | |
15635 | }; | |
15636 | ||
15637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
15638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | (arg1)->AddFont(arg2); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | Py_INCREF(Py_None); resultobj = Py_None; | |
15648 | return resultobj; | |
15649 | fail: | |
15650 | return NULL; | |
15651 | } | |
15652 | ||
15653 | ||
15654 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15655 | PyObject *resultobj; | |
15656 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15657 | int arg2 ; | |
15658 | int arg3 ; | |
15659 | int arg4 ; | |
15660 | int arg5 ; | |
423f194a | 15661 | bool arg6 = (bool) False ; |
d14a1e28 RD |
15662 | wxString const &arg7_defvalue = wxPyEmptyString ; |
15663 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15664 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
15665 | wxFont *result; | |
423f194a | 15666 | bool temp7 = False ; |
d14a1e28 RD |
15667 | PyObject * obj0 = 0 ; |
15668 | PyObject * obj5 = 0 ; | |
15669 | PyObject * obj6 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
15675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15676 | if (obj5) { | |
83448d71 RD |
15677 | { |
15678 | arg6 = (bool) SPyObj_AsBool(obj5); | |
15679 | if (PyErr_Occurred()) SWIG_fail; | |
15680 | } | |
d14a1e28 RD |
15681 | } |
15682 | if (obj6) { | |
15683 | { | |
15684 | arg7 = wxString_in_helper(obj6); | |
15685 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15686 | temp7 = True; |
d14a1e28 RD |
15687 | } |
15688 | } | |
15689 | { | |
15690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15691 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
15692 | ||
15693 | wxPyEndAllowThreads(__tstate); | |
15694 | if (PyErr_Occurred()) SWIG_fail; | |
15695 | } | |
15696 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
15697 | { | |
15698 | if (temp7) | |
15699 | delete arg7; | |
15700 | } | |
15701 | return resultobj; | |
15702 | fail: | |
15703 | { | |
15704 | if (temp7) | |
15705 | delete arg7; | |
15706 | } | |
15707 | return NULL; | |
15708 | } | |
15709 | ||
15710 | ||
15711 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15712 | PyObject *resultobj; | |
15713 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15714 | wxFont *arg2 = (wxFont *) 0 ; | |
15715 | PyObject * obj0 = 0 ; | |
15716 | PyObject * obj1 = 0 ; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "self",(char *) "font", NULL | |
15719 | }; | |
15720 | ||
15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
15722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15724 | { | |
15725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15726 | (arg1)->RemoveFont(arg2); | |
15727 | ||
15728 | wxPyEndAllowThreads(__tstate); | |
15729 | if (PyErr_Occurred()) SWIG_fail; | |
15730 | } | |
15731 | Py_INCREF(Py_None); resultobj = Py_None; | |
15732 | return resultobj; | |
15733 | fail: | |
15734 | return NULL; | |
15735 | } | |
15736 | ||
15737 | ||
15738 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15739 | PyObject *resultobj; | |
15740 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15741 | int result; | |
15742 | PyObject * obj0 = 0 ; | |
15743 | char *kwnames[] = { | |
15744 | (char *) "self", NULL | |
15745 | }; | |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
15748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15749 | { | |
15750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15751 | result = (int)(arg1)->GetCount(); | |
15752 | ||
15753 | wxPyEndAllowThreads(__tstate); | |
15754 | if (PyErr_Occurred()) SWIG_fail; | |
15755 | } | |
15756 | resultobj = PyInt_FromLong((long)result); | |
15757 | return resultobj; | |
15758 | fail: | |
15759 | return NULL; | |
15760 | } | |
15761 | ||
15762 | ||
15763 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
15764 | PyObject *obj; | |
15765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15766 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
15767 | Py_INCREF(obj); | |
15768 | return Py_BuildValue((char *)""); | |
15769 | } | |
15770 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
15771 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15772 | return 1; | |
15773 | } | |
15774 | ||
15775 | ||
15776 | static PyObject *_wrap_NORMAL_FONT_get() { | |
15777 | PyObject *pyobj; | |
15778 | ||
15779 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
15780 | return pyobj; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
15785 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15786 | return 1; | |
15787 | } | |
15788 | ||
15789 | ||
15790 | static PyObject *_wrap_SMALL_FONT_get() { | |
15791 | PyObject *pyobj; | |
15792 | ||
15793 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
15794 | return pyobj; | |
15795 | } | |
15796 | ||
15797 | ||
15798 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
15799 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15800 | return 1; | |
15801 | } | |
15802 | ||
15803 | ||
15804 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15805 | PyObject *pyobj; | |
15806 | ||
15807 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
15808 | return pyobj; | |
15809 | } | |
15810 | ||
15811 | ||
15812 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
15813 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15814 | return 1; | |
15815 | } | |
15816 | ||
15817 | ||
15818 | static PyObject *_wrap_SWISS_FONT_get() { | |
15819 | PyObject *pyobj; | |
15820 | ||
15821 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
15822 | return pyobj; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
15827 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15828 | return 1; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_RED_PEN_get() { | |
15833 | PyObject *pyobj; | |
15834 | ||
15835 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
15836 | return pyobj; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
15841 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15842 | return 1; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | static PyObject *_wrap_CYAN_PEN_get() { | |
15847 | PyObject *pyobj; | |
15848 | ||
15849 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
15850 | return pyobj; | |
15851 | } | |
15852 | ||
15853 | ||
15854 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
15855 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15856 | return 1; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_GREEN_PEN_get() { | |
15861 | PyObject *pyobj; | |
15862 | ||
15863 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
15864 | return pyobj; | |
15865 | } | |
15866 | ||
15867 | ||
15868 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
15869 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15870 | return 1; | |
15871 | } | |
15872 | ||
15873 | ||
15874 | static PyObject *_wrap_BLACK_PEN_get() { | |
15875 | PyObject *pyobj; | |
15876 | ||
15877 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
15878 | return pyobj; | |
15879 | } | |
15880 | ||
15881 | ||
15882 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
15883 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15884 | return 1; | |
15885 | } | |
15886 | ||
15887 | ||
15888 | static PyObject *_wrap_WHITE_PEN_get() { | |
15889 | PyObject *pyobj; | |
15890 | ||
15891 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
15892 | return pyobj; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
15897 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15898 | return 1; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
15903 | PyObject *pyobj; | |
15904 | ||
15905 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
15906 | return pyobj; | |
15907 | } | |
15908 | ||
15909 | ||
15910 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
15911 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15912 | return 1; | |
15913 | } | |
15914 | ||
15915 | ||
15916 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
15917 | PyObject *pyobj; | |
15918 | ||
15919 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
15920 | return pyobj; | |
15921 | } | |
15922 | ||
15923 | ||
15924 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
15925 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15926 | return 1; | |
15927 | } | |
15928 | ||
15929 | ||
15930 | static PyObject *_wrap_GREY_PEN_get() { | |
15931 | PyObject *pyobj; | |
15932 | ||
15933 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15934 | return pyobj; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15939 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
15940 | return 1; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
15945 | PyObject *pyobj; | |
15946 | ||
15947 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15948 | return pyobj; | |
15949 | } | |
15950 | ||
15951 | ||
15952 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
15953 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
15954 | return 1; | |
15955 | } | |
15956 | ||
15957 | ||
15958 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
15959 | PyObject *pyobj; | |
15960 | ||
15961 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15962 | return pyobj; | |
15963 | } | |
15964 | ||
15965 | ||
15966 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
15967 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
15968 | return 1; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
15973 | PyObject *pyobj; | |
15974 | ||
15975 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15976 | return pyobj; | |
15977 | } | |
15978 | ||
15979 | ||
15980 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
15981 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
15982 | return 1; | |
15983 | } | |
15984 | ||
15985 | ||
15986 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
15987 | PyObject *pyobj; | |
15988 | ||
15989 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15990 | return pyobj; | |
15991 | } | |
15992 | ||
15993 | ||
15994 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
15995 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
15996 | return 1; | |
15997 | } | |
15998 | ||
15999 | ||
16000 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
16001 | PyObject *pyobj; | |
16002 | ||
16003 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16004 | return pyobj; | |
16005 | } | |
16006 | ||
16007 | ||
16008 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
16009 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
16010 | return 1; | |
16011 | } | |
16012 | ||
16013 | ||
16014 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
16015 | PyObject *pyobj; | |
16016 | ||
16017 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16018 | return pyobj; | |
16019 | } | |
16020 | ||
16021 | ||
16022 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
16023 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
16024 | return 1; | |
16025 | } | |
16026 | ||
16027 | ||
16028 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
16029 | PyObject *pyobj; | |
16030 | ||
16031 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16032 | return pyobj; | |
16033 | } | |
16034 | ||
16035 | ||
16036 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
16037 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
16038 | return 1; | |
16039 | } | |
16040 | ||
16041 | ||
16042 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
16043 | PyObject *pyobj; | |
16044 | ||
16045 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16046 | return pyobj; | |
16047 | } | |
16048 | ||
16049 | ||
16050 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
16051 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
16052 | return 1; | |
16053 | } | |
16054 | ||
16055 | ||
16056 | static PyObject *_wrap_RED_BRUSH_get() { | |
16057 | PyObject *pyobj; | |
16058 | ||
16059 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16060 | return pyobj; | |
16061 | } | |
16062 | ||
16063 | ||
16064 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
16065 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
16066 | return 1; | |
16067 | } | |
16068 | ||
16069 | ||
16070 | static PyObject *_wrap_GREY_BRUSH_get() { | |
16071 | PyObject *pyobj; | |
16072 | ||
16073 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16074 | return pyobj; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
16079 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
16080 | return 1; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
16085 | PyObject *pyobj; | |
16086 | ||
16087 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16088 | return pyobj; | |
16089 | } | |
16090 | ||
16091 | ||
16092 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
16093 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
16094 | return 1; | |
16095 | } | |
16096 | ||
16097 | ||
16098 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
16099 | PyObject *pyobj; | |
16100 | ||
16101 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
16102 | return pyobj; | |
16103 | } | |
16104 | ||
16105 | ||
16106 | static int _wrap_BLACK_set(PyObject *_val) { | |
16107 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
16108 | return 1; | |
16109 | } | |
16110 | ||
16111 | ||
16112 | static PyObject *_wrap_BLACK_get() { | |
16113 | PyObject *pyobj; | |
16114 | ||
16115 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
16116 | return pyobj; | |
16117 | } | |
16118 | ||
16119 | ||
16120 | static int _wrap_WHITE_set(PyObject *_val) { | |
16121 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
16122 | return 1; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_WHITE_get() { | |
16127 | PyObject *pyobj; | |
16128 | ||
16129 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
16130 | return pyobj; | |
16131 | } | |
16132 | ||
16133 | ||
16134 | static int _wrap_RED_set(PyObject *_val) { | |
16135 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
16136 | return 1; | |
16137 | } | |
16138 | ||
16139 | ||
16140 | static PyObject *_wrap_RED_get() { | |
16141 | PyObject *pyobj; | |
16142 | ||
16143 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
16144 | return pyobj; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static int _wrap_BLUE_set(PyObject *_val) { | |
16149 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
16150 | return 1; | |
16151 | } | |
16152 | ||
16153 | ||
16154 | static PyObject *_wrap_BLUE_get() { | |
16155 | PyObject *pyobj; | |
16156 | ||
16157 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
16158 | return pyobj; | |
16159 | } | |
16160 | ||
16161 | ||
16162 | static int _wrap_GREEN_set(PyObject *_val) { | |
16163 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
16164 | return 1; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_GREEN_get() { | |
16169 | PyObject *pyobj; | |
16170 | ||
16171 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
16172 | return pyobj; | |
16173 | } | |
16174 | ||
16175 | ||
16176 | static int _wrap_CYAN_set(PyObject *_val) { | |
16177 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
16178 | return 1; | |
16179 | } | |
16180 | ||
16181 | ||
16182 | static PyObject *_wrap_CYAN_get() { | |
16183 | PyObject *pyobj; | |
16184 | ||
16185 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
16186 | return pyobj; | |
16187 | } | |
16188 | ||
16189 | ||
16190 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
16191 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
16192 | return 1; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | static PyObject *_wrap_LIGHT_GREY_get() { | |
16197 | PyObject *pyobj; | |
16198 | ||
16199 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
16200 | return pyobj; | |
16201 | } | |
16202 | ||
16203 | ||
16204 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
16205 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
16206 | return 1; | |
16207 | } | |
16208 | ||
16209 | ||
16210 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
16211 | PyObject *pyobj; | |
16212 | ||
16213 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
16214 | return pyobj; | |
16215 | } | |
16216 | ||
16217 | ||
16218 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
16219 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
16220 | return 1; | |
16221 | } | |
16222 | ||
16223 | ||
16224 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
16225 | PyObject *pyobj; | |
16226 | ||
16227 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
16228 | return pyobj; | |
16229 | } | |
16230 | ||
16231 | ||
16232 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
16233 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
16234 | return 1; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
16239 | PyObject *pyobj; | |
16240 | ||
16241 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
16242 | return pyobj; | |
16243 | } | |
16244 | ||
16245 | ||
16246 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
16247 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
16248 | return 1; | |
16249 | } | |
16250 | ||
16251 | ||
16252 | static PyObject *_wrap_NullBitmap_get() { | |
16253 | PyObject *pyobj; | |
16254 | ||
16255 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
16256 | return pyobj; | |
16257 | } | |
16258 | ||
16259 | ||
16260 | static int _wrap_NullIcon_set(PyObject *_val) { | |
16261 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
16262 | return 1; | |
16263 | } | |
16264 | ||
16265 | ||
16266 | static PyObject *_wrap_NullIcon_get() { | |
16267 | PyObject *pyobj; | |
16268 | ||
16269 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
16270 | return pyobj; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static int _wrap_NullCursor_set(PyObject *_val) { | |
16275 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
16276 | return 1; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject *_wrap_NullCursor_get() { | |
16281 | PyObject *pyobj; | |
16282 | ||
16283 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
16284 | return pyobj; | |
16285 | } | |
16286 | ||
16287 | ||
16288 | static int _wrap_NullPen_set(PyObject *_val) { | |
16289 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
16290 | return 1; | |
16291 | } | |
16292 | ||
16293 | ||
16294 | static PyObject *_wrap_NullPen_get() { | |
16295 | PyObject *pyobj; | |
16296 | ||
16297 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
16298 | return pyobj; | |
16299 | } | |
16300 | ||
16301 | ||
16302 | static int _wrap_NullBrush_set(PyObject *_val) { | |
16303 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
16304 | return 1; | |
16305 | } | |
16306 | ||
16307 | ||
16308 | static PyObject *_wrap_NullBrush_get() { | |
16309 | PyObject *pyobj; | |
16310 | ||
16311 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
16312 | return pyobj; | |
16313 | } | |
16314 | ||
16315 | ||
16316 | static int _wrap_NullPalette_set(PyObject *_val) { | |
16317 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
16318 | return 1; | |
16319 | } | |
16320 | ||
16321 | ||
16322 | static PyObject *_wrap_NullPalette_get() { | |
16323 | PyObject *pyobj; | |
16324 | ||
16325 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
16326 | return pyobj; | |
16327 | } | |
16328 | ||
16329 | ||
16330 | static int _wrap_NullFont_set(PyObject *_val) { | |
16331 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
16332 | return 1; | |
16333 | } | |
16334 | ||
16335 | ||
16336 | static PyObject *_wrap_NullFont_get() { | |
16337 | PyObject *pyobj; | |
16338 | ||
16339 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
16340 | return pyobj; | |
16341 | } | |
16342 | ||
16343 | ||
16344 | static int _wrap_NullColour_set(PyObject *_val) { | |
16345 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
16346 | return 1; | |
16347 | } | |
16348 | ||
16349 | ||
16350 | static PyObject *_wrap_NullColour_get() { | |
16351 | PyObject *pyobj; | |
16352 | ||
16353 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
16354 | return pyobj; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static int _wrap_TheFontList_set(PyObject *_val) { | |
16359 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
16360 | return 1; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_TheFontList_get() { | |
16365 | PyObject *pyobj; | |
16366 | ||
16367 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
16368 | return pyobj; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static int _wrap_ThePenList_set(PyObject *_val) { | |
16373 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
16374 | return 1; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | static PyObject *_wrap_ThePenList_get() { | |
16379 | PyObject *pyobj; | |
16380 | ||
16381 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
16382 | return pyobj; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
16387 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
16388 | return 1; | |
16389 | } | |
16390 | ||
16391 | ||
16392 | static PyObject *_wrap_TheBrushList_get() { | |
16393 | PyObject *pyobj; | |
16394 | ||
16395 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
16396 | return pyobj; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
16401 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
16402 | return 1; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_TheColourDatabase_get() { | |
16407 | PyObject *pyobj; | |
16408 | ||
16409 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
16410 | return pyobj; | |
16411 | } | |
16412 | ||
16413 | ||
423f194a | 16414 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16415 | PyObject *resultobj; |
423f194a | 16416 | wxEffects *result; |
d14a1e28 | 16417 | char *kwnames[] = { |
423f194a | 16418 | NULL |
d14a1e28 RD |
16419 | }; |
16420 | ||
423f194a | 16421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
16422 | { |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16424 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
16425 | |
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
423f194a | 16429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
16430 | return resultobj; |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
423f194a | 16436 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16437 | PyObject *resultobj; |
423f194a RD |
16438 | wxEffects *arg1 = (wxEffects *) 0 ; |
16439 | wxColour result; | |
d14a1e28 | 16440 | PyObject * obj0 = 0 ; |
d14a1e28 | 16441 | char *kwnames[] = { |
423f194a | 16442 | (char *) "self", NULL |
d14a1e28 RD |
16443 | }; |
16444 | ||
423f194a RD |
16445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
16446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16447 | { |
16448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16449 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
16450 | |
16451 | wxPyEndAllowThreads(__tstate); | |
16452 | if (PyErr_Occurred()) SWIG_fail; | |
16453 | } | |
423f194a RD |
16454 | { |
16455 | wxColour * resultptr; | |
16456 | resultptr = new wxColour((wxColour &) result); | |
16457 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16458 | } | |
d14a1e28 RD |
16459 | return resultobj; |
16460 | fail: | |
16461 | return NULL; | |
16462 | } | |
16463 | ||
16464 | ||
423f194a | 16465 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16466 | PyObject *resultobj; |
423f194a RD |
16467 | wxEffects *arg1 = (wxEffects *) 0 ; |
16468 | wxColour result; | |
d14a1e28 | 16469 | PyObject * obj0 = 0 ; |
d14a1e28 | 16470 | char *kwnames[] = { |
423f194a | 16471 | (char *) "self", NULL |
d14a1e28 RD |
16472 | }; |
16473 | ||
423f194a RD |
16474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
16475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16476 | { |
16477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16478 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
16479 | |
16480 | wxPyEndAllowThreads(__tstate); | |
16481 | if (PyErr_Occurred()) SWIG_fail; | |
16482 | } | |
d14a1e28 | 16483 | { |
423f194a RD |
16484 | wxColour * resultptr; |
16485 | resultptr = new wxColour((wxColour &) result); | |
16486 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
16487 | } |
16488 | return resultobj; | |
16489 | fail: | |
d14a1e28 RD |
16490 | return NULL; |
16491 | } | |
16492 | ||
16493 | ||
423f194a | 16494 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16495 | PyObject *resultobj; |
423f194a RD |
16496 | wxEffects *arg1 = (wxEffects *) 0 ; |
16497 | wxColour result; | |
d14a1e28 | 16498 | PyObject * obj0 = 0 ; |
d14a1e28 | 16499 | char *kwnames[] = { |
423f194a | 16500 | (char *) "self", NULL |
d14a1e28 RD |
16501 | }; |
16502 | ||
423f194a RD |
16503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
16504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16505 | { |
16506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16507 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
16508 | |
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
423f194a RD |
16512 | { |
16513 | wxColour * resultptr; | |
16514 | resultptr = new wxColour((wxColour &) result); | |
16515 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16516 | } | |
d14a1e28 RD |
16517 | return resultobj; |
16518 | fail: | |
16519 | return NULL; | |
16520 | } | |
16521 | ||
16522 | ||
423f194a | 16523 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16524 | PyObject *resultobj; |
423f194a RD |
16525 | wxEffects *arg1 = (wxEffects *) 0 ; |
16526 | wxColour result; | |
d14a1e28 RD |
16527 | PyObject * obj0 = 0 ; |
16528 | char *kwnames[] = { | |
16529 | (char *) "self", NULL | |
16530 | }; | |
16531 | ||
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
16533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16534 | { | |
16535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16536 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
16537 | ||
16538 | wxPyEndAllowThreads(__tstate); | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | } | |
16541 | { | |
16542 | wxColour * resultptr; | |
16543 | resultptr = new wxColour((wxColour &) result); | |
16544 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16545 | } | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
16552 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16553 | PyObject *resultobj; | |
16554 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16555 | wxColour result; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
16566 | ||
16567 | wxPyEndAllowThreads(__tstate); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | { | |
16571 | wxColour * resultptr; | |
16572 | resultptr = new wxColour((wxColour &) result); | |
16573 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16574 | } | |
16575 | return resultobj; | |
16576 | fail: | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16582 | PyObject *resultobj; | |
16583 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16584 | wxColour *arg2 = 0 ; | |
16585 | wxColour temp2 ; | |
16586 | PyObject * obj0 = 0 ; | |
16587 | PyObject * obj1 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "self",(char *) "c", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
16593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16594 | { | |
16595 | arg2 = &temp2; | |
16596 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16597 | } | |
16598 | { | |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | Py_INCREF(Py_None); resultobj = Py_None; | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16615 | wxColour *arg2 = 0 ; | |
16616 | wxColour temp2 ; | |
16617 | PyObject * obj0 = 0 ; | |
16618 | PyObject * obj1 = 0 ; | |
16619 | char *kwnames[] = { | |
16620 | (char *) "self",(char *) "c", NULL | |
16621 | }; | |
16622 | ||
16623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
16624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16625 | { | |
16626 | arg2 = &temp2; | |
16627 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16628 | } | |
16629 | { | |
16630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16631 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
16632 | ||
16633 | wxPyEndAllowThreads(__tstate); | |
16634 | if (PyErr_Occurred()) SWIG_fail; | |
16635 | } | |
16636 | Py_INCREF(Py_None); resultobj = Py_None; | |
16637 | return resultobj; | |
16638 | fail: | |
16639 | return NULL; | |
16640 | } | |
16641 | ||
16642 | ||
16643 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16644 | PyObject *resultobj; | |
16645 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16646 | wxColour *arg2 = 0 ; | |
16647 | wxColour temp2 ; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | PyObject * obj1 = 0 ; | |
16650 | char *kwnames[] = { | |
16651 | (char *) "self",(char *) "c", NULL | |
16652 | }; | |
16653 | ||
16654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
16655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16656 | { | |
16657 | arg2 = &temp2; | |
16658 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16659 | } | |
16660 | { | |
16661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16662 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
16663 | ||
16664 | wxPyEndAllowThreads(__tstate); | |
16665 | if (PyErr_Occurred()) SWIG_fail; | |
16666 | } | |
16667 | Py_INCREF(Py_None); resultobj = Py_None; | |
16668 | return resultobj; | |
16669 | fail: | |
16670 | return NULL; | |
16671 | } | |
16672 | ||
16673 | ||
16674 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16675 | PyObject *resultobj; | |
16676 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16677 | wxColour *arg2 = 0 ; | |
16678 | wxColour temp2 ; | |
16679 | PyObject * obj0 = 0 ; | |
16680 | PyObject * obj1 = 0 ; | |
16681 | char *kwnames[] = { | |
16682 | (char *) "self",(char *) "c", NULL | |
16683 | }; | |
16684 | ||
16685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
16686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16687 | { | |
16688 | arg2 = &temp2; | |
16689 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16690 | } | |
16691 | { | |
16692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16693 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
16694 | ||
16695 | wxPyEndAllowThreads(__tstate); | |
16696 | if (PyErr_Occurred()) SWIG_fail; | |
16697 | } | |
16698 | Py_INCREF(Py_None); resultobj = Py_None; | |
16699 | return resultobj; | |
16700 | fail: | |
16701 | return NULL; | |
16702 | } | |
16703 | ||
16704 | ||
16705 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16706 | PyObject *resultobj; | |
16707 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16708 | wxColour *arg2 = 0 ; | |
16709 | wxColour temp2 ; | |
16710 | PyObject * obj0 = 0 ; | |
16711 | PyObject * obj1 = 0 ; | |
16712 | char *kwnames[] = { | |
16713 | (char *) "self",(char *) "c", NULL | |
16714 | }; | |
16715 | ||
16716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
16717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16718 | { | |
16719 | arg2 = &temp2; | |
16720 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16721 | } | |
16722 | { | |
16723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16724 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
16725 | ||
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | Py_INCREF(Py_None); resultobj = Py_None; | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
16736 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16737 | PyObject *resultobj; | |
16738 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16739 | wxColour *arg2 = 0 ; | |
16740 | wxColour *arg3 = 0 ; | |
16741 | wxColour *arg4 = 0 ; | |
16742 | wxColour *arg5 = 0 ; | |
16743 | wxColour *arg6 = 0 ; | |
16744 | wxColour temp2 ; | |
16745 | wxColour temp3 ; | |
16746 | wxColour temp4 ; | |
16747 | wxColour temp5 ; | |
16748 | wxColour temp6 ; | |
16749 | PyObject * obj0 = 0 ; | |
16750 | PyObject * obj1 = 0 ; | |
16751 | PyObject * obj2 = 0 ; | |
16752 | PyObject * obj3 = 0 ; | |
16753 | PyObject * obj4 = 0 ; | |
16754 | PyObject * obj5 = 0 ; | |
16755 | char *kwnames[] = { | |
16756 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
16757 | }; | |
16758 | ||
16759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16761 | { | |
16762 | arg2 = &temp2; | |
16763 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16764 | } | |
16765 | { | |
16766 | arg3 = &temp3; | |
16767 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16768 | } | |
16769 | { | |
16770 | arg4 = &temp4; | |
16771 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
16772 | } | |
16773 | { | |
16774 | arg5 = &temp5; | |
16775 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
16776 | } | |
16777 | { | |
16778 | arg6 = &temp6; | |
16779 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
16780 | } | |
16781 | { | |
16782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16783 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
16784 | ||
16785 | wxPyEndAllowThreads(__tstate); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
16788 | Py_INCREF(Py_None); resultobj = Py_None; | |
16789 | return resultobj; | |
16790 | fail: | |
16791 | return NULL; | |
16792 | } | |
16793 | ||
16794 | ||
16795 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16796 | PyObject *resultobj; | |
16797 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16798 | wxDC *arg2 = 0 ; | |
16799 | wxRect *arg3 = 0 ; | |
16800 | int arg4 = (int) 1 ; | |
16801 | wxRect temp3 ; | |
16802 | PyObject * obj0 = 0 ; | |
16803 | PyObject * obj1 = 0 ; | |
16804 | PyObject * obj2 = 0 ; | |
16805 | char *kwnames[] = { | |
16806 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
16807 | }; | |
16808 | ||
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
16810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16811 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16812 | if (arg2 == NULL) { | |
16813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16814 | } | |
16815 | { | |
16816 | arg3 = &temp3; | |
16817 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
16818 | } | |
16819 | { | |
16820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16821 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
16822 | ||
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
16826 | Py_INCREF(Py_None); resultobj = Py_None; | |
16827 | return resultobj; | |
16828 | fail: | |
16829 | return NULL; | |
16830 | } | |
16831 | ||
16832 | ||
16833 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16834 | PyObject *resultobj; | |
16835 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16836 | wxRect *arg2 = 0 ; | |
16837 | wxDC *arg3 = 0 ; | |
16838 | wxBitmap *arg4 = 0 ; | |
16839 | bool result; | |
16840 | wxRect temp2 ; | |
16841 | PyObject * obj0 = 0 ; | |
16842 | PyObject * obj1 = 0 ; | |
16843 | PyObject * obj2 = 0 ; | |
16844 | PyObject * obj3 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16851 | { | |
16852 | arg2 = &temp2; | |
16853 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16854 | } | |
16855 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16856 | if (arg3 == NULL) { | |
16857 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16858 | } | |
16859 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16860 | if (arg4 == NULL) { | |
16861 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16862 | } | |
16863 | { | |
16864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16865 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
16866 | ||
16867 | wxPyEndAllowThreads(__tstate); | |
16868 | if (PyErr_Occurred()) SWIG_fail; | |
16869 | } | |
16870 | resultobj = PyInt_FromLong((long)result); | |
16871 | return resultobj; | |
16872 | fail: | |
16873 | return NULL; | |
16874 | } | |
16875 | ||
16876 | ||
16877 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
16878 | PyObject *obj; | |
16879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16880 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
16881 | Py_INCREF(obj); | |
16882 | return Py_BuildValue((char *)""); | |
16883 | } | |
16884 | static PyMethodDef SwigMethods[] = { | |
16885 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16886 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16887 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16888 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16889 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
16890 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
16891 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16892 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16893 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
16894 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
16895 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
16896 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
16897 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
16898 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16899 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16900 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16901 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
16902 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16903 | { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16904 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, |
16905 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
16906 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16907 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16908 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16909 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
16910 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16911 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
16912 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16913 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16914 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
16915 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16916 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16917 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16918 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16919 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16920 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
16921 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16922 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16923 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16924 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16925 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16926 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16927 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16928 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
16929 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16930 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
16931 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16932 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16933 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16934 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
16935 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16936 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16937 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16938 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16939 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16940 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16941 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16942 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16943 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16944 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
16945 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16946 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16947 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16948 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16949 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16950 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16951 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16952 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
16953 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16954 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16955 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16956 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16957 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16958 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16959 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
16960 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
16961 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
16962 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16963 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16964 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
16965 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16966 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16967 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16968 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16969 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16970 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
16971 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16972 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16973 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
16974 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
16975 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16976 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
16977 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16978 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16979 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
16980 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
16981 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16982 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16983 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16984 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16985 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16986 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16987 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16988 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16989 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16990 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16991 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16992 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16993 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16994 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16995 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
16996 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16997 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16998 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16999 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17000 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17001 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17002 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17003 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17004 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17005 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17006 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17007 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17008 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17009 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17010 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17011 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17012 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17013 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17014 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17015 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17016 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17017 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17018 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17019 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17020 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17021 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17022 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17023 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17024 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17025 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17026 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
17027 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17028 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17029 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17030 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17031 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17032 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17033 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17034 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17035 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17036 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17037 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17038 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17039 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17040 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17041 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17042 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17043 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17044 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17045 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17046 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17047 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17048 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17049 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17050 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17051 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17052 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17053 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17054 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17055 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17056 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17057 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17058 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17059 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17060 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17061 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17062 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17063 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17064 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17065 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17066 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17067 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17068 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17069 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17070 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17071 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17072 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17073 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17074 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17075 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17076 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17077 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17078 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17079 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17080 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17081 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17082 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17083 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17084 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17085 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17086 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17087 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17088 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17089 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17090 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17091 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17092 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17093 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17094 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17095 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17096 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17097 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17098 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17099 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17100 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17101 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17102 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17103 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17104 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17105 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17106 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17107 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17108 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17109 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17110 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17111 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17112 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17113 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17114 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17115 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17116 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17117 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17118 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17119 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17120 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17121 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17122 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17123 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17124 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17125 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17126 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17127 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17128 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17129 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17130 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17131 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17132 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17133 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17134 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17135 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17136 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17137 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17138 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17139 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17140 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17141 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17142 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17143 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17144 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17145 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17146 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17147 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17148 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17149 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17150 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17151 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17152 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17153 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17154 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17155 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17156 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17157 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17158 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17159 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17160 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17161 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17162 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17163 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17164 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17165 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17166 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17167 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17168 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17169 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17170 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17171 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17172 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17173 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17174 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17175 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
17176 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
17177 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17178 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17179 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17180 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17181 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17182 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17183 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
17184 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
17185 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
17186 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
17187 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
17188 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17189 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
17190 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17191 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17192 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
17193 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
17194 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
17195 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17196 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
17197 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17198 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17199 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
17200 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
17201 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17202 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17203 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
17204 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
17205 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
17206 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17207 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17208 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
17209 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
17210 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
17211 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17212 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
17213 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
17214 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
17215 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
17216 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17217 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
17218 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
17219 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
17220 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17221 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
17222 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
17223 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
17224 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17225 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17226 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17227 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17228 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17229 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17230 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
17231 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
17232 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
17233 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
17234 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
17235 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
17236 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
17237 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
17238 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17239 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17240 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
17241 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17242 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
17243 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
17244 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
17245 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
17246 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
17247 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
17248 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
17249 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
17250 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17251 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
17252 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
17253 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
17254 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
17255 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
17256 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
17257 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17258 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17259 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17260 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 17261 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17262 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
17263 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17264 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
17265 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
17266 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
17267 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17268 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
17269 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
17270 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17271 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17272 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 17273 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 17274 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17275 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 17276 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17277 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
17278 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
17279 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
17280 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
17281 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
17282 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
17283 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
17284 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
17285 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17286 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17287 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17288 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
17289 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17290 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17291 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17292 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17293 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
17294 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
17295 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17296 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17297 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17298 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17299 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17300 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17301 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17302 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17303 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
17304 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 17305 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 17306 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17307 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17308 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 17309 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17310 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
17311 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
17312 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17313 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17314 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17315 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17316 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17317 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17318 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
17319 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
17320 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
17321 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
17322 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17323 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
17324 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
17325 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
17326 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
17327 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
17328 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
17329 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
17330 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
17331 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
17332 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
17333 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
17334 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
17335 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
17336 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
17337 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
17338 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17339 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
17340 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
17341 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
17342 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17343 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17344 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
17345 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
17346 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
17347 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17348 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
17349 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
17350 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
17351 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
17352 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
17353 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
17354 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17355 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17356 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17357 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17358 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
17359 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17360 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17361 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17362 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
17363 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17364 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17365 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17366 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17367 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
17368 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17369 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
17370 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
17371 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
17372 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
17373 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17374 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17375 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
17376 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
17377 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17378 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
17379 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
17380 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
17381 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
17382 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
17383 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17384 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
17385 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
17386 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
17387 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
17388 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17389 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
17390 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
17391 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
17392 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
17393 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17394 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
17395 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17396 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17397 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
17398 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
17399 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
17400 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
17401 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
17402 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
17403 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
17404 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
17405 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17406 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
17407 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
17408 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17409 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17410 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17411 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17412 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17413 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17414 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17415 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17416 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17417 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17418 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17419 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17420 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17421 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17422 | { NULL, NULL } | |
17423 | }; | |
17424 | ||
17425 | ||
17426 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17427 | ||
423f194a RD |
17428 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
17429 | return (void *)((wxWindow *) ((wxControl *) x)); | |
17430 | } | |
17431 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
17432 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
17433 | } | |
17434 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
17435 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
17436 | } | |
d14a1e28 RD |
17437 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
17438 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17439 | } | |
17440 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17441 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17442 | } | |
d14a1e28 RD |
17443 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
17444 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17445 | } | |
17446 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17447 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17448 | } | |
17449 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17450 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17451 | } | |
17452 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17453 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17454 | } | |
17455 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
17456 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
17457 | } | |
17458 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
17459 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
17460 | } | |
17461 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
17462 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
17463 | } | |
17464 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
17465 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
17466 | } | |
17467 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
17468 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
17469 | } | |
17470 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
17471 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
17472 | } | |
17473 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
17474 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
17475 | } | |
17476 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
17477 | return (void *)((wxObject *) ((wxSizer *) x)); | |
17478 | } | |
17479 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
17480 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
17481 | } | |
17482 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
17483 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17484 | } | |
17485 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
17486 | return (void *)((wxObject *) ((wxPenList *) x)); | |
17487 | } | |
17488 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
17489 | return (void *)((wxObject *) ((wxEvent *) x)); | |
17490 | } | |
17491 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
17492 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
17493 | } | |
17494 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
17495 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
17496 | } | |
17497 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
17498 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
17499 | } | |
17500 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
17501 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
17502 | } | |
17503 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
17504 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
17505 | } | |
17506 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
17507 | return (void *)((wxObject *) ((wxDC *) x)); | |
17508 | } | |
17509 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
17510 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
17511 | } | |
17512 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
17513 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
17514 | } | |
17515 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
17516 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
17517 | } | |
17518 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
17519 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
17520 | } | |
17521 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
17522 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
17523 | } | |
17524 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
17525 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
17526 | } | |
17527 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
17528 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
17529 | } | |
17530 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
17531 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
17532 | } | |
17533 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
17534 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
17535 | } | |
17536 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
17537 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
17538 | } | |
17539 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
17540 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
17541 | } | |
17542 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
17543 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
17544 | } | |
17545 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
17546 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
17547 | } | |
17548 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
17549 | return (void *)((wxObject *) ((wxEffects *) x)); | |
17550 | } | |
17551 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
17552 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
17553 | } | |
17554 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
17555 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17556 | } | |
17557 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
17558 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
17559 | } | |
17560 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17561 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17562 | } | |
17563 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17564 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17565 | } | |
17566 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17567 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17568 | } | |
17569 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17570 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17571 | } | |
17572 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17573 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17574 | } | |
17575 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17576 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17577 | } | |
17578 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17579 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17580 | } | |
17581 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17582 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17583 | } | |
17584 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17585 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17586 | } | |
17587 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17588 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17589 | } | |
17590 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17591 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17592 | } | |
17593 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17594 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17595 | } | |
17596 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17597 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17598 | } | |
17599 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17600 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17601 | } | |
17602 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17603 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17604 | } | |
17605 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17606 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17607 | } | |
17608 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17609 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17610 | } | |
17611 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17612 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17613 | } | |
17614 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17615 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17616 | } | |
17617 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17618 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17619 | } | |
17620 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17621 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17622 | } | |
17623 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17624 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17625 | } | |
17626 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17627 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17628 | } | |
17629 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
17630 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17631 | } | |
17632 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
17633 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
17634 | } | |
17635 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
17636 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
17637 | } | |
17638 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
17639 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
17640 | } | |
41f1cec7 RD |
17641 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
17642 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
17643 | } | |
d14a1e28 RD |
17644 | static void *_p_wxImageTo_p_wxObject(void *x) { |
17645 | return (void *)((wxObject *) ((wxImage *) x)); | |
17646 | } | |
17647 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17648 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17649 | } | |
d14a1e28 RD |
17650 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
17651 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
17652 | } | |
17653 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
17654 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
17655 | } | |
17656 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
17657 | return (void *)((wxObject *) ((wxImageList *) x)); | |
17658 | } | |
17659 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
17660 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
17661 | } | |
17662 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
17663 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
17664 | } | |
17665 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
17666 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
17667 | } | |
17668 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17669 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17670 | } | |
17671 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17672 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17673 | } | |
17674 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17675 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17676 | } | |
17677 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
17678 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17679 | } | |
17680 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17681 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17682 | } | |
17683 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17684 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17685 | } | |
17686 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
17687 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
17688 | } | |
17689 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
17690 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
17691 | } | |
17692 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
17693 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
17694 | } | |
17695 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17696 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17697 | } | |
17698 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
17699 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
17700 | } | |
17701 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
17702 | return (void *)((wxObject *) ((wxMask *) x)); | |
17703 | } | |
17704 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17705 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17706 | } | |
17707 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17708 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17709 | } | |
17710 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17711 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17712 | } | |
17713 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17714 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17715 | } | |
17716 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17717 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17718 | } | |
17719 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17720 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17721 | } | |
17722 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17723 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17724 | } | |
17725 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17726 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17727 | } | |
17728 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17729 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17730 | } | |
17731 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
17732 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
17733 | } | |
17734 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
17735 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17736 | } | |
17737 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
17738 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
17739 | } | |
17740 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
17741 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
17742 | } | |
17743 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
17744 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
17745 | } | |
17746 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
17747 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17748 | } | |
17749 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
17750 | return (void *)((wxObject *) ((wxColour *) x)); | |
17751 | } | |
17752 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
17753 | return (void *)((wxObject *) ((wxFontList *) x)); | |
17754 | } | |
17755 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
17756 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
17757 | } | |
17758 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
17759 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
17760 | } | |
423f194a RD |
17761 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
17762 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 17763 | } |
423f194a RD |
17764 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
17765 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 17766 | } |
423f194a RD |
17767 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
17768 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
17769 | } | |
17770 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
17771 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
17772 | } | |
17773 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
17774 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
17775 | } | |
17776 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
17777 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
17778 | } | |
17779 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
17780 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
17781 | } | |
17782 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
17783 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17784 | } | |
17785 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
17786 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
17787 | } | |
17788 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
17789 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
17790 | } | |
17791 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
17792 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
17793 | } | |
17794 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
17795 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
17796 | } | |
17797 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
17798 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
17799 | } | |
17800 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
17801 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
17802 | } | |
17803 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
17804 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
17805 | } | |
17806 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
17807 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
17808 | } | |
17809 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
17810 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
17811 | } | |
17812 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
17813 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
17814 | } | |
17815 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
17816 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
17817 | } | |
17818 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
17819 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
17820 | } | |
17821 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
17822 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
17823 | } | |
17824 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
17825 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
17826 | } |
17827 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
17828 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
17829 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
17830 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC},{"_p_wxDC"},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC},{0}}; |
17831 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
17832 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17833 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
17834 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
17835 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
17836 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
17837 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
17838 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
17839 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
17840 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
17841 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
17842 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC},{"_p_wxMemoryDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC},{0}}; | |
17843 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
17844 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
17845 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
17846 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
17847 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 17848 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
17849 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
17850 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
17851 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
17852 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
17853 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
17854 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
17855 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
17856 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
17857 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
17858 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
17859 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
17860 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
17861 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17862 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject},{"_p_wxGDIObject"},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject},{0}}; | |
17863 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
17864 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
17865 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
17866 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
17867 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
17868 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
17869 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
17870 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
17871 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
17872 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
17873 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
17874 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
17875 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 17876 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 17877 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
17878 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
17879 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
17880 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
17881 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
17882 | ||
17883 | static swig_type_info *swig_types_initial[] = { | |
17884 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
17885 | _swigt__p_wxBrush, |
17886 | _swigt__p_wxColour, | |
d14a1e28 RD |
17887 | _swigt__p_wxDC, |
17888 | _swigt__p_wxMirrorDC, | |
17889 | _swigt__p_byte, | |
17890 | _swigt__p_wxPyFontEnumerator, | |
17891 | _swigt__p_wxIconLocation, | |
17892 | _swigt__p_wxImage, | |
17893 | _swigt__p_wxMetaFileDC, | |
17894 | _swigt__p_wxMask, | |
17895 | _swigt__p_wxFont, | |
17896 | _swigt__p_wxWindow, | |
17897 | _swigt__p_wxSize, | |
17898 | _swigt__p_double, | |
17899 | _swigt__p_wxMemoryDC, | |
17900 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
17901 | _swigt__p_wxEffects, |
17902 | _swigt__p_wxNativeEncodingInfo, | |
17903 | _swigt__p_wxPalette, | |
17904 | _swigt__p_wxBitmap, | |
17905 | _swigt__p_wxObject, | |
17906 | _swigt__p_wxRegionIterator, | |
17907 | _swigt__p_wxRect, | |
17908 | _swigt__p_wxString, | |
17909 | _swigt__p_wxPrinterDC, | |
17910 | _swigt__p_wxIconBundle, | |
17911 | _swigt__p_wxPoint, | |
17912 | _swigt__p_wxDash, | |
17913 | _swigt__p_wxScreenDC, | |
17914 | _swigt__p_wxCursor, | |
17915 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
17916 | _swigt__p_wxBufferedDC, |
17917 | _swigt__p_wxImageList, | |
17918 | _swigt__p_unsigned_char, | |
17919 | _swigt__p_wxGDIObject, | |
17920 | _swigt__p_wxLocale, | |
17921 | _swigt__p_wxIcon, | |
17922 | _swigt__p_wxRegion, | |
17923 | _swigt__p_wxLanguageInfo, | |
17924 | _swigt__p_wxConfigBase, | |
17925 | _swigt__p_wxWindowDC, | |
17926 | _swigt__p_wxPrintData, | |
17927 | _swigt__p_wxBrushList, | |
17928 | _swigt__p_wxFontList, | |
17929 | _swigt__p_wxPen, | |
17930 | _swigt__p_wxBufferedPaintDC, | |
17931 | _swigt__p_wxPaintDC, | |
17932 | _swigt__p_wxPenList, | |
d14a1e28 RD |
17933 | _swigt__p_wxPyPen, |
17934 | _swigt__p_int, | |
17935 | _swigt__p_wxMetaFile, | |
17936 | _swigt__p_wxNativeFontInfo, | |
17937 | _swigt__p_wxEncodingConverter, | |
17938 | _swigt__p_wxColourDatabase, | |
17939 | 0 | |
17940 | }; | |
17941 | ||
17942 | ||
17943 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17944 | ||
17945 | static swig_const_info swig_const_table[] = { | |
17946 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
17947 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
17948 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
17949 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
17950 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
17951 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
17952 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
17953 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
17954 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
17955 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
17956 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
17957 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
17958 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
17959 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
17960 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
17961 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
17962 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
17963 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
17964 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
17965 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
17966 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
17967 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
17968 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
17969 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
17970 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
17971 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
17972 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
17973 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
17974 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
17975 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
17976 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
17977 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
17978 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
17979 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
17980 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
17981 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
17982 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
17983 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
17984 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
17985 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
17986 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
17987 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
17988 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
17989 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
17990 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
17991 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
17992 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
17993 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
17994 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
17995 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
17996 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
17997 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
17998 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
17999 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
18000 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
18001 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
18002 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
18003 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
18004 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
18005 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
18006 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
18007 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
18008 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
18009 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
18010 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
18011 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
18012 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
18013 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
18014 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
18015 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
18016 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
18017 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
18018 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
18019 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
18020 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
18021 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
18022 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
83448d71 RD |
18023 | { SWIG_PY_INT, (char *)"FONTENCODING_MACROMAN", (long) wxFONTENCODING_MACROMAN, 0, 0, 0}, |
18024 | { SWIG_PY_INT, (char *)"FONTENCODING_MACJAPANESE", (long) wxFONTENCODING_MACJAPANESE, 0, 0, 0}, | |
18025 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESETRAD", (long) wxFONTENCODING_MACCHINESETRAD, 0, 0, 0}, | |
18026 | { SWIG_PY_INT, (char *)"FONTENCODING_MACKOREAN", (long) wxFONTENCODING_MACKOREAN, 0, 0, 0}, | |
18027 | { SWIG_PY_INT, (char *)"FONTENCODING_MACARABIC", (long) wxFONTENCODING_MACARABIC, 0, 0, 0}, | |
18028 | { SWIG_PY_INT, (char *)"FONTENCODING_MACHEBREW", (long) wxFONTENCODING_MACHEBREW, 0, 0, 0}, | |
18029 | { SWIG_PY_INT, (char *)"FONTENCODING_MACGREEK", (long) wxFONTENCODING_MACGREEK, 0, 0, 0}, | |
18030 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCYRILLIC", (long) wxFONTENCODING_MACCYRILLIC, 0, 0, 0}, | |
18031 | { SWIG_PY_INT, (char *)"FONTENCODING_MACDEVANAGARI", (long) wxFONTENCODING_MACDEVANAGARI, 0, 0, 0}, | |
18032 | { SWIG_PY_INT, (char *)"FONTENCODING_MACGURMUKHI", (long) wxFONTENCODING_MACGURMUKHI, 0, 0, 0}, | |
18033 | { SWIG_PY_INT, (char *)"FONTENCODING_MACGUJARATI", (long) wxFONTENCODING_MACGUJARATI, 0, 0, 0}, | |
18034 | { SWIG_PY_INT, (char *)"FONTENCODING_MACORIYA", (long) wxFONTENCODING_MACORIYA, 0, 0, 0}, | |
18035 | { SWIG_PY_INT, (char *)"FONTENCODING_MACBENGALI", (long) wxFONTENCODING_MACBENGALI, 0, 0, 0}, | |
18036 | { SWIG_PY_INT, (char *)"FONTENCODING_MACTAMIL", (long) wxFONTENCODING_MACTAMIL, 0, 0, 0}, | |
18037 | { SWIG_PY_INT, (char *)"FONTENCODING_MACTELUGU", (long) wxFONTENCODING_MACTELUGU, 0, 0, 0}, | |
18038 | { SWIG_PY_INT, (char *)"FONTENCODING_MACKANNADA", (long) wxFONTENCODING_MACKANNADA, 0, 0, 0}, | |
18039 | { SWIG_PY_INT, (char *)"FONTENCODING_MACMALAJALAM", (long) wxFONTENCODING_MACMALAJALAM, 0, 0, 0}, | |
18040 | { SWIG_PY_INT, (char *)"FONTENCODING_MACSINHALESE", (long) wxFONTENCODING_MACSINHALESE, 0, 0, 0}, | |
18041 | { SWIG_PY_INT, (char *)"FONTENCODING_MACBURMESE", (long) wxFONTENCODING_MACBURMESE, 0, 0, 0}, | |
18042 | { SWIG_PY_INT, (char *)"FONTENCODING_MACKHMER", (long) wxFONTENCODING_MACKHMER, 0, 0, 0}, | |
18043 | { SWIG_PY_INT, (char *)"FONTENCODING_MACTHAI", (long) wxFONTENCODING_MACTHAI, 0, 0, 0}, | |
18044 | { SWIG_PY_INT, (char *)"FONTENCODING_MACLAOTIAN", (long) wxFONTENCODING_MACLAOTIAN, 0, 0, 0}, | |
18045 | { SWIG_PY_INT, (char *)"FONTENCODING_MACGEORGIAN", (long) wxFONTENCODING_MACGEORGIAN, 0, 0, 0}, | |
18046 | { SWIG_PY_INT, (char *)"FONTENCODING_MACARMENIAN", (long) wxFONTENCODING_MACARMENIAN, 0, 0, 0}, | |
18047 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESESIMP", (long) wxFONTENCODING_MACCHINESESIMP, 0, 0, 0}, | |
18048 | { SWIG_PY_INT, (char *)"FONTENCODING_MACTIBETAN", (long) wxFONTENCODING_MACTIBETAN, 0, 0, 0}, | |
18049 | { SWIG_PY_INT, (char *)"FONTENCODING_MACMONGOLIAN", (long) wxFONTENCODING_MACMONGOLIAN, 0, 0, 0}, | |
18050 | { SWIG_PY_INT, (char *)"FONTENCODING_MACETHIOPIC", (long) wxFONTENCODING_MACETHIOPIC, 0, 0, 0}, | |
18051 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCENTRALEUR", (long) wxFONTENCODING_MACCENTRALEUR, 0, 0, 0}, | |
18052 | { SWIG_PY_INT, (char *)"FONTENCODING_MACVIATNAMESE", (long) wxFONTENCODING_MACVIATNAMESE, 0, 0, 0}, | |
18053 | { SWIG_PY_INT, (char *)"FONTENCODING_MACARABICEXT", (long) wxFONTENCODING_MACARABICEXT, 0, 0, 0}, | |
18054 | { SWIG_PY_INT, (char *)"FONTENCODING_MACSYMBOL", (long) wxFONTENCODING_MACSYMBOL, 0, 0, 0}, | |
18055 | { SWIG_PY_INT, (char *)"FONTENCODING_MACDINGBATS", (long) wxFONTENCODING_MACDINGBATS, 0, 0, 0}, | |
18056 | { SWIG_PY_INT, (char *)"FONTENCODING_MACTURKISH", (long) wxFONTENCODING_MACTURKISH, 0, 0, 0}, | |
18057 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCROATIAN", (long) wxFONTENCODING_MACCROATIAN, 0, 0, 0}, | |
18058 | { SWIG_PY_INT, (char *)"FONTENCODING_MACICELANDIC", (long) wxFONTENCODING_MACICELANDIC, 0, 0, 0}, | |
18059 | { SWIG_PY_INT, (char *)"FONTENCODING_MACROMANIAN", (long) wxFONTENCODING_MACROMANIAN, 0, 0, 0}, | |
18060 | { SWIG_PY_INT, (char *)"FONTENCODING_MACCELTIC", (long) wxFONTENCODING_MACCELTIC, 0, 0, 0}, | |
18061 | { SWIG_PY_INT, (char *)"FONTENCODING_MACGAELIC", (long) wxFONTENCODING_MACGAELIC, 0, 0, 0}, | |
18062 | { SWIG_PY_INT, (char *)"FONTENCODING_MACKEYBOARD", (long) wxFONTENCODING_MACKEYBOARD, 0, 0, 0}, | |
18063 | { SWIG_PY_INT, (char *)"FONTENCODING_MACMIN", (long) wxFONTENCODING_MACMIN, 0, 0, 0}, | |
18064 | { SWIG_PY_INT, (char *)"FONTENCODING_MACMAX", (long) wxFONTENCODING_MACMAX, 0, 0, 0}, | |
d14a1e28 RD |
18065 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, |
18066 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
18067 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
18068 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
18069 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
18070 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
18071 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
18072 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
18073 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
18074 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
18075 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
18076 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
18077 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
18078 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
18079 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
18080 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
18081 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
18082 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
18083 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
18084 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
18085 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
18086 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
18087 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
18088 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
18089 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
18090 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
18091 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
18092 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
18093 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
18094 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
18095 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
18096 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
18097 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
18098 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
18099 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
18100 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
18101 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
18102 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
18103 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
18104 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
18105 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
18106 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
18107 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
18108 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
18109 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
18110 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
18111 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
18112 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
18113 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
18114 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
18115 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
18116 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
18117 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
18118 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
18119 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
18120 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
18121 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
18122 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
18123 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
18124 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
18125 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
18126 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
18127 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
18128 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
18129 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
18130 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
18131 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
18132 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
18133 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
18134 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
18135 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
18136 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
18137 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
18138 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
18139 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
18140 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
18141 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
18142 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
18143 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
18144 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
18145 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
18146 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
18147 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
18148 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
18149 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
18150 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
18151 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
18152 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
18153 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
18154 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
18155 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
18156 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
18157 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
18158 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
18159 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
18160 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
18161 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
18162 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
18163 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
18164 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
18165 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
18166 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
18167 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
18168 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
18169 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
18170 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
18171 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
18172 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
18173 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
18174 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
18175 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
18176 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
18177 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
18178 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
18179 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
18180 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
18181 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
18182 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
18183 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
18184 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
18185 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
18186 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
18187 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
18188 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
18189 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
18190 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
18191 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
18192 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
18193 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
18194 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
18195 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
18196 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
18197 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
18198 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
18199 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
18200 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
18201 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
18202 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
18203 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
18204 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
18205 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
18206 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
18207 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
18208 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
18209 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
18210 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
18211 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
18212 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
18213 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
18214 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
18215 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
18216 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
18217 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
18218 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
18219 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
18220 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
18221 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
18222 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
18223 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
18224 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
18225 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
18226 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
18227 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
18228 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
18229 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
18230 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
18231 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
18232 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
18233 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
18234 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
18235 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
18236 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
18237 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
18238 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
18239 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
18240 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
18241 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
18242 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
18243 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
18244 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
18245 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
18246 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
18247 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
18248 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
18249 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
18250 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
18251 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
18252 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
18253 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
18254 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
18255 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
18256 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
18257 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
18258 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
18259 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
18260 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
18261 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
18262 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
18263 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
18264 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
18265 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
18266 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
18267 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
18268 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
18269 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
18270 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
18271 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
18272 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
18273 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
18274 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
18275 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
18276 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
18277 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
18278 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
18279 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
18280 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
18281 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
18282 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
18283 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
18284 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
18285 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
18286 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
18287 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
18288 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
18289 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
18290 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
18291 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
18292 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
18293 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
18294 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
18295 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
18296 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
18297 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
18298 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
18299 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
18300 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
18301 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
18302 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
18303 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
18304 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
18305 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
18306 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
18307 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
18308 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
18309 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
18310 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
18311 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
18312 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
18313 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
18314 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
18315 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
18316 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
18317 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
18318 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
18319 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
18320 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
18321 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
18322 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
18323 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
18324 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
18325 | {0}}; | |
18326 | ||
18327 | #ifdef __cplusplus | |
18328 | } | |
18329 | #endif | |
18330 | ||
18331 | #ifdef __cplusplus | |
18332 | extern "C" | |
18333 | #endif | |
18334 | SWIGEXPORT(void) SWIG_init(void) { | |
18335 | static PyObject *SWIG_globals = 0; | |
18336 | static int typeinit = 0; | |
18337 | PyObject *m, *d; | |
18338 | int i; | |
18339 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18340 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18341 | d = PyModule_GetDict(m); | |
18342 | ||
18343 | if (!typeinit) { | |
18344 | for (i = 0; swig_types_initial[i]; i++) { | |
18345 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18346 | } | |
18347 | typeinit = 1; | |
18348 | } | |
18349 | SWIG_InstallConstants(d,swig_const_table); | |
18350 | ||
18351 | ||
18352 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18353 | ||
18354 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
18355 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
18356 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
18357 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
18358 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
18359 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
18360 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
18361 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
18362 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
18363 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
18364 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
18365 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
18366 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
18367 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
18368 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
18369 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
18370 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
18371 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
18372 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
18373 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
18374 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
18375 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
18376 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
18377 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
18378 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
18379 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
18380 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
18381 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
18382 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
18383 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
18384 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
18385 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
18386 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
18387 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
18388 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
18389 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
18390 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
18391 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
18392 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
18393 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
18394 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
18395 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
18396 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
18397 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
18398 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
18399 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
18400 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
18401 | |
18402 | // Work around a chicken/egg problem in drawlist.cpp | |
18403 | wxPyDrawList_SetAPIPtr(); | |
18404 | ||
d14a1e28 RD |
18405 | } |
18406 |