]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
e811c8ce RD |
210 | #define SWIGTYPE_p_wxBrush swig_types[1] |
211 | #define SWIGTYPE_p_wxColour swig_types[2] | |
212 | #define SWIGTYPE_p_wxDC swig_types[3] | |
213 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
214 | #define SWIGTYPE_p_byte swig_types[5] | |
215 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
994141e6 RD |
216 | #define SWIGTYPE_p_char swig_types[7] |
217 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
218 | #define SWIGTYPE_p_wxImage swig_types[9] | |
219 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
220 | #define SWIGTYPE_p_wxMask swig_types[11] | |
221 | #define SWIGTYPE_p_wxFont swig_types[12] | |
222 | #define SWIGTYPE_p_wxWindow swig_types[13] | |
223 | #define SWIGTYPE_p_wxSize swig_types[14] | |
224 | #define SWIGTYPE_p_double swig_types[15] | |
225 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
226 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
227 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
228 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
229 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
230 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
231 | #define SWIGTYPE_p_wxObject swig_types[22] | |
232 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
233 | #define SWIGTYPE_p_wxRect swig_types[24] | |
234 | #define SWIGTYPE_p_wxString swig_types[25] | |
235 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
237 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
238 | #define SWIGTYPE_p_wxDash swig_types[29] | |
239 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
240 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
241 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
242 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
243 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
244 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
245 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
e811c8ce | 246 | #define SWIGTYPE_p_wxIcon swig_types[37] |
994141e6 RD |
247 | #define SWIGTYPE_p_wxLocale swig_types[38] |
248 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
249 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] | |
250 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
251 | #define SWIGTYPE_p_wxWindowDC swig_types[42] | |
252 | #define SWIGTYPE_p_wxPrintData swig_types[43] | |
253 | #define SWIGTYPE_p_wxBrushList swig_types[44] | |
254 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
255 | #define SWIGTYPE_p_wxPen swig_types[46] | |
256 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] | |
257 | #define SWIGTYPE_p_wxPaintDC swig_types[48] | |
258 | #define SWIGTYPE_p_wxPenList swig_types[49] | |
259 | #define SWIGTYPE_p_wxPyPen swig_types[50] | |
260 | #define SWIGTYPE_p_int swig_types[51] | |
261 | #define SWIGTYPE_p_wxMetaFile swig_types[52] | |
262 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[53] | |
263 | #define SWIGTYPE_p_wxEncodingConverter swig_types[54] | |
264 | #define SWIGTYPE_p_wxColourDatabase swig_types[55] | |
265 | static swig_type_info *swig_types[57]; | |
d14a1e28 RD |
266 | |
267 | /* -------- TYPES TABLE (END) -------- */ | |
268 | ||
269 | ||
270 | /*----------------------------------------------- | |
271 | @(target):= _gdi.so | |
272 | ------------------------------------------------*/ | |
273 | #define SWIG_init init_gdi | |
274 | ||
275 | #define SWIG_name "_gdi" | |
276 | ||
15afbcd0 | 277 | /* Auxiliar swig macros */ |
994141e6 | 278 | |
994141e6 | 279 | #ifdef __cplusplus |
15afbcd0 | 280 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 281 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
282 | #define swig_new_array(type, size) (new type[(size)]) |
283 | #define swig_delete_array(cptr) delete[] cptr | |
284 | #define swig_const_cast(type,a) const_cast<type>(a) | |
285 | #define swig_static_cast(type,a) static_cast<type>(a) | |
286 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 287 | |
994141e6 | 288 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 289 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 290 | #else |
15afbcd0 | 291 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
292 | #endif |
293 | ||
15afbcd0 RD |
294 | #else /* C case */ |
295 | ||
296 | #define SWIGSTATICINLINE(a) static a | |
297 | #define SWIGSTATIC(a) static a | |
298 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
299 | #define swig_delete_array(cptr) free((char*)cptr) | |
300 | #define swig_const_cast(type,a) (type)(a) | |
301 | #define swig_static_cast(type,a) (type)(a) | |
302 | #define swig_reinterpret_cast(type,a) (type)(a) | |
303 | #define swig_numeric_cast(type,a) (type)(a) | |
304 | ||
305 | #endif /* __cplusplus */ | |
994141e6 RD |
306 | |
307 | ||
15afbcd0 RD |
308 | #define SWIG_FromSignedChar PyInt_FromLong |
309 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
310 | #define SWIG_FromShort PyInt_FromLong | |
311 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
312 | #define SWIG_FromInt PyInt_FromLong | |
313 | #define SWIG_FromLong PyInt_FromLong | |
314 | #define SWIG_FromFloat PyFloat_FromDouble | |
315 | #define SWIG_FromDouble PyFloat_FromDouble | |
316 | #define SWIG_FromFloat PyFloat_FromDouble | |
317 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
318 | |
319 | ||
d14a1e28 RD |
320 | #include "wx/wxPython/wxPython.h" |
321 | #include "wx/wxPython/pyclasses.h" | |
322 | ||
d14a1e28 | 323 | |
b2dc1044 | 324 | static const wxString wxPyEmptyString(wxEmptyString); |
994141e6 | 325 | |
15afbcd0 RD |
326 | SWIGSTATICINLINE(bool) |
327 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
328 | { |
329 | return PyObject_IsTrue(obj) ? true : false; | |
330 | } | |
331 | ||
332 | ||
15afbcd0 RD |
333 | SWIGSTATICINLINE(int) |
334 | SWIG_CheckBool(PyObject* obj) | |
335 | { | |
336 | SWIG_AsBool(obj); | |
337 | if (PyErr_Occurred()) { | |
338 | PyErr_Clear(); | |
339 | return 0; | |
340 | } else { | |
341 | return 1; | |
342 | } | |
343 | } | |
344 | ||
345 | ||
346 | #include <limits.h> | |
347 | ||
348 | ||
349 | SWIGSTATICINLINE(unsigned long) | |
350 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
351 | unsigned long max_value) | |
352 | { | |
353 | if (!PyErr_Occurred()) { | |
354 | if (value > max_value) { | |
355 | PyObject *err = | |
356 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
357 | value, type, max_value); | |
358 | PyErr_SetObject(PyExc_OverflowError, err); | |
359 | Py_DECREF(err); | |
360 | } | |
361 | } | |
362 | return value; | |
363 | } | |
364 | ||
365 | ||
366 | SWIGSTATICINLINE(unsigned long) | |
367 | SWIG_AsUnsignedLong(PyObject * obj) | |
368 | { | |
369 | if (PyLong_Check(obj)) { | |
370 | return PyLong_AsUnsignedLong(obj); | |
371 | } else { | |
372 | long i = PyInt_AsLong(obj); | |
373 | if ( !PyErr_Occurred() && (i < 0)) { | |
374 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
375 | } | |
376 | return i; | |
377 | } | |
378 | } | |
379 | ||
380 | ||
381 | SWIGSTATICINLINE(unsigned char) | |
382 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 383 | { |
15afbcd0 RD |
384 | return swig_numeric_cast(unsigned char, |
385 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
386 | "unsigned char", UCHAR_MAX)); | |
387 | } | |
388 | ||
389 | ||
390 | SWIGSTATICINLINE(int) | |
391 | SWIG_CheckUnsignedChar(PyObject* obj) | |
392 | { | |
393 | SWIG_AsUnsignedChar(obj); | |
394 | if (PyErr_Occurred()) { | |
395 | PyErr_Clear(); | |
396 | return 0; | |
397 | } else { | |
398 | return 1; | |
399 | } | |
400 | } | |
401 | ||
402 | ||
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_CheckUnsignedLong(PyObject* obj) | |
405 | { | |
406 | SWIG_AsUnsignedLong(obj); | |
407 | if (PyErr_Occurred()) { | |
408 | PyErr_Clear(); | |
409 | return 0; | |
410 | } else { | |
411 | return 1; | |
412 | } | |
994141e6 RD |
413 | } |
414 | ||
d14a1e28 RD |
415 | PyObject *wxColour_Get(wxColour *self){ |
416 | PyObject* rv = PyTuple_New(3); | |
417 | int red = -1; | |
418 | int green = -1; | |
419 | int blue = -1; | |
420 | if (self->Ok()) { | |
421 | red = self->Red(); | |
422 | green = self->Green(); | |
423 | blue = self->Blue(); | |
424 | } | |
425 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
426 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
427 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
428 | return rv; | |
429 | } | |
b88bce5f RD |
430 | unsigned long wxColour_GetRGB(wxColour *self){ |
431 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
432 | } | |
433 | ||
15afbcd0 RD |
434 | SWIGSTATICINLINE(PyObject* ) |
435 | SWIG_FromUnsignedLong(unsigned long value) | |
436 | { | |
437 | return (value > LONG_MAX) ? | |
438 | PyLong_FromUnsignedLong(value) | |
439 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
440 | } | |
441 | ||
442 | ||
443 | SWIGSTATICINLINE(long) | |
444 | SWIG_CheckLongInRange(long value, const char* type, | |
445 | long min_value, long max_value) | |
446 | { | |
447 | if (!PyErr_Occurred()) { | |
448 | if (value < min_value) { | |
449 | PyObject *err = | |
450 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
451 | value, type, min_value); | |
452 | ||
453 | PyErr_SetObject(PyExc_OverflowError, err); | |
454 | Py_DECREF(err); | |
455 | } else if (value > max_value) { | |
456 | PyObject *err = | |
457 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
458 | value, type, max_value); | |
459 | PyErr_SetObject(PyExc_OverflowError, err); | |
460 | Py_DECREF(err); | |
461 | } | |
462 | } | |
463 | return value; | |
464 | } | |
465 | ||
466 | ||
467 | SWIGSTATICINLINE(long) | |
468 | SWIG_AsLong(PyObject * obj) | |
b88bce5f | 469 | { |
15afbcd0 | 470 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); |
b88bce5f RD |
471 | } |
472 | ||
d14a1e28 | 473 | |
15afbcd0 RD |
474 | #if INT_MAX != LONG_MAX |
475 | SWIGSTATICINLINE(int) | |
476 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 477 | { |
15afbcd0 RD |
478 | return swig_numeric_cast(int, |
479 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
480 | "int", INT_MIN, INT_MAX)); | |
481 | } | |
482 | #else | |
483 | #define SWIG_AsInt SWIG_AsLong | |
484 | #endif | |
485 | ||
486 | ||
487 | SWIGSTATICINLINE(int) | |
488 | SWIG_CheckInt(PyObject* obj) | |
489 | { | |
490 | SWIG_AsInt(obj); | |
491 | if (PyErr_Occurred()) { | |
492 | PyErr_Clear(); | |
493 | return 0; | |
494 | } else { | |
495 | return 1; | |
496 | } | |
994141e6 RD |
497 | } |
498 | ||
499 | ||
d14a1e28 RD |
500 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
501 | PyObject* o2; | |
502 | PyObject* o3; | |
503 | ||
504 | if (!target) { | |
505 | target = o; | |
506 | } else if (target == Py_None) { | |
507 | Py_DECREF(Py_None); | |
508 | target = o; | |
509 | } else { | |
510 | if (!PyTuple_Check(target)) { | |
511 | o2 = target; | |
512 | target = PyTuple_New(1); | |
513 | PyTuple_SetItem(target, 0, o2); | |
514 | } | |
515 | o3 = PyTuple_New(1); | |
516 | PyTuple_SetItem(o3, 0, o); | |
517 | ||
518 | o2 = target; | |
519 | target = PySequence_Concat(o2, o3); | |
520 | Py_DECREF(o2); | |
521 | Py_DECREF(o3); | |
522 | } | |
523 | return target; | |
524 | } | |
525 | ||
526 | PyObject *wxPen_GetDashes(wxPen *self){ | |
527 | wxDash* dashes; | |
528 | int count = self->GetDashes(&dashes); | |
529 | wxPyBeginBlockThreads(); | |
530 | PyObject* retval = PyList_New(0); | |
531 | for (int x=0; x<count; x++) | |
532 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
533 | wxPyEndBlockThreads(); | |
534 | return retval; | |
535 | } | |
22faec7d RD |
536 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
537 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
538 | |
539 | wxPyPen::~wxPyPen() | |
540 | { | |
541 | if (m_dash) | |
542 | delete [] m_dash; | |
543 | } | |
544 | ||
545 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
546 | { | |
547 | if (m_dash) | |
548 | delete [] m_dash; | |
549 | m_dash = new wxDash[nb_dashes]; | |
550 | for (int i=0; i<nb_dashes; i++) { | |
551 | m_dash[i] = dash[i]; | |
552 | } | |
553 | wxPen::SetDashes(nb_dashes, m_dash); | |
554 | } | |
555 | ||
556 | ||
557 | #include <wx/image.h> | |
558 | ||
559 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
560 | char** cArray = NULL; | |
561 | int count; | |
562 | ||
563 | if (!PyList_Check(listOfStrings)) { | |
564 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
565 | return NULL; | |
566 | } | |
567 | count = PyList_Size(listOfStrings); | |
568 | cArray = new char*[count]; | |
569 | ||
570 | for(int x=0; x<count; x++) { | |
571 | // TODO: Need some validation and error checking here | |
572 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
573 | } | |
574 | return cArray; | |
575 | } | |
576 | ||
577 | ||
578 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
579 | char** cArray = NULL; | |
580 | wxBitmap* bmp; | |
581 | ||
582 | cArray = ConvertListOfStrings(listOfStrings); | |
583 | if (! cArray) | |
584 | return NULL; | |
585 | bmp = new wxBitmap(cArray); | |
586 | delete [] cArray; | |
587 | return bmp; | |
588 | } | |
589 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
590 | char* buf; | |
591 | int length; | |
592 | PyString_AsStringAndSize(bits, &buf, &length); | |
593 | return new wxBitmap(buf, width, height, depth); | |
594 | } | |
595 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
596 | wxMask *mask = new wxMask(*self, colour); | |
597 | self->SetMask(mask); | |
598 | } | |
4276dc52 RD |
599 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } |
600 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } | |
0482c494 RD |
601 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
602 | if ( !colour.Ok() ) | |
603 | return new wxMask(bitmap, *wxBLACK); | |
604 | else | |
605 | return new wxMask(bitmap, colour); | |
606 | } | |
d14a1e28 RD |
607 | |
608 | #include <wx/iconbndl.h> | |
609 | ||
610 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
611 | wxIcon* icon = new wxIcon(); | |
612 | icon->CopyFromBitmap(bmp); | |
613 | return icon; | |
614 | } | |
615 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
616 | char** cArray = NULL; | |
617 | wxIcon* icon; | |
618 | ||
619 | cArray = ConvertListOfStrings(listOfStrings); | |
620 | if (! cArray) | |
621 | return NULL; | |
622 | icon = new wxIcon(cArray); | |
623 | delete [] cArray; | |
624 | return icon; | |
625 | } | |
626 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
627 | ||
628 | ||
629 | ||
630 | return new wxIconLocation(*filename); | |
631 | ||
632 | } | |
633 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
634 | ||
635 | ||
636 | ||
637 | // do nothing | |
638 | ||
639 | } | |
640 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
641 | ||
642 | ||
643 | ||
644 | return -1; | |
645 | ||
646 | } | |
994141e6 | 647 | |
15afbcd0 RD |
648 | SWIGSTATICINLINE(int) |
649 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 650 | { |
15afbcd0 RD |
651 | SWIG_AsLong(obj); |
652 | if (PyErr_Occurred()) { | |
653 | PyErr_Clear(); | |
654 | return 0; | |
655 | } else { | |
656 | return 1; | |
657 | } | |
994141e6 RD |
658 | } |
659 | ||
15afbcd0 RD |
660 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ |
661 | #ifdef __WXGTK__ | |
e811c8ce | 662 | wxCHECK_MSG(False, NULL, |
15afbcd0 RD |
663 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); |
664 | #else | |
665 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
666 | #endif | |
d14a1e28 RD |
667 | } |
668 | ||
669 | ||
670 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
671 | (*self) ++; | |
672 | } | |
673 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
674 | return self->operator bool(); | |
675 | } | |
676 | ||
677 | #include <wx/fontutil.h> | |
678 | #include <wx/fontmap.h> | |
679 | #include <wx/fontenum.h> | |
680 | ||
681 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
682 | return self->ToString(); | |
683 | } | |
684 | ||
685 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
686 | static wxNativeEncodingInfo info; | |
687 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
688 | return &info; | |
689 | else | |
690 | return NULL; | |
691 | } | |
692 | ||
693 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
694 | wxFontEncoding alt_enc; | |
695 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
696 | return PyInt_FromLong(alt_enc); | |
697 | else { | |
698 | Py_INCREF(Py_None); | |
699 | return Py_None; | |
700 | } | |
701 | } | |
702 | wxFont *new_wxFont(wxString const &info){ | |
703 | wxNativeFontInfo nfi; | |
704 | nfi.FromString(info); | |
705 | return new wxFont(nfi); | |
706 | } | |
707 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
708 | return wxFont::New(pointSize, family, flags, face, encoding); | |
709 | } | |
22faec7d RD |
710 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
711 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
712 | |
713 | class wxPyFontEnumerator : public wxFontEnumerator { | |
714 | public: | |
715 | wxPyFontEnumerator() {} | |
716 | ~wxPyFontEnumerator() {} | |
717 | ||
718 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
719 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
720 | ||
721 | PYPRIVATE; | |
722 | }; | |
723 | ||
724 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
725 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
726 | ||
727 | ||
728 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
729 | wxArrayString* arr = self->GetEncodings(); | |
730 | return wxArrayString2PyList_helper(*arr); | |
731 | } | |
732 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
733 | wxArrayString* arr = self->GetFacenames(); | |
734 | return wxArrayString2PyList_helper(*arr); | |
735 | } | |
736 | ||
737 | ||
738 | ||
739 | #include "wx/wxPython/pydrawxxx.h" | |
740 | ||
e811c8ce | 741 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
742 | wxColour col; |
743 | self->GetPixel(x, y, &col); | |
744 | return col; | |
745 | } | |
746 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
747 | wxColour col; | |
748 | self->GetPixel(pt, &col); | |
749 | return col; | |
750 | } | |
994141e6 | 751 | |
15afbcd0 RD |
752 | SWIGSTATICINLINE(double) |
753 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 754 | { |
15afbcd0 | 755 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : |
994141e6 | 756 | #if HAVE_LONG_LONG |
15afbcd0 | 757 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); |
994141e6 | 758 | #else |
15afbcd0 | 759 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); |
994141e6 RD |
760 | #endif |
761 | if (PyErr_Occurred()) { | |
762 | PyErr_Clear(); | |
763 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
764 | } | |
15afbcd0 RD |
765 | return val; |
766 | } | |
767 | ||
768 | ||
769 | SWIGSTATICINLINE(int) | |
770 | SWIG_CheckDouble(PyObject* obj) | |
771 | { | |
772 | SWIG_AsDouble(obj); | |
773 | if (PyErr_Occurred()) { | |
774 | PyErr_Clear(); | |
775 | return 0; | |
776 | } else { | |
777 | return 1; | |
778 | } | |
994141e6 RD |
779 | } |
780 | ||
d14a1e28 RD |
781 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
782 | wxRect rv; | |
783 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
784 | return rv; | |
785 | } | |
786 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
787 | wxRect rect; | |
788 | self->GetClippingBox(rect); | |
789 | return rect; | |
790 | } | |
db914595 RD |
791 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
792 | wxArrayInt widths; | |
793 | self->GetPartialTextExtents(text, widths); | |
794 | return widths; | |
795 | } | |
d14a1e28 RD |
796 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
797 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
798 | } | |
799 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
800 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
801 | } | |
802 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
803 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
804 | } | |
805 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
806 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
807 | } | |
808 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
809 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
810 | } | |
811 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
812 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
813 | } | |
814 | ||
815 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
816 | *x1 = dc->MinX(); | |
817 | *y1 = dc->MinY(); | |
818 | *x2 = dc->MaxX(); | |
819 | *y2 = dc->MaxY(); | |
820 | } | |
821 | ||
822 | ||
b88bce5f | 823 | //-=-=-=-=-=-=-=-=-=-=- |
15afbcd0 RD |
824 | |
825 | #if 1 | |
826 | // Use the standard wxBufferedDC | |
b88bce5f | 827 | #include <wx/dcbuffer.h> |
b88bce5f | 828 | |
15afbcd0 | 829 | #else |
b88bce5f | 830 | |
15afbcd0 | 831 | // Or, temporarily put a set of classes here similar to the old buffered DC |
b88bce5f RD |
832 | // classes until the real ones can be fixed to work "correctly" again. |
833 | ||
834 | class wxBufferedDC : public wxMemoryDC | |
835 | { | |
836 | private: | |
837 | wxDC *m_dc; | |
838 | wxBitmap m_buffer; | |
839 | ||
840 | public: | |
841 | ||
842 | wxBufferedDC() : m_dc( 0 ) {} | |
843 | ||
844 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
845 | : m_dc( dc ), m_buffer( buffer ) | |
846 | { | |
847 | SelectObject( m_buffer ); | |
848 | } | |
849 | ||
850 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
851 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
852 | { | |
853 | SelectObject( m_buffer ); | |
854 | } | |
855 | ||
856 | ~wxBufferedDC() { | |
857 | if( m_dc != 0 ) | |
858 | UnMask(); | |
859 | } | |
860 | ||
861 | ||
862 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
863 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
864 | _T("wxBufferedDC already initialised") ); | |
865 | m_dc = dc; | |
866 | m_buffer = buffer; | |
867 | SelectObject( m_buffer ); | |
868 | } | |
869 | ||
870 | void Init( wxDC *dc, const wxSize &area ) { | |
871 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
872 | _T("wxBufferedDC already initialised") ); | |
873 | m_dc = dc; | |
874 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
875 | SelectObject( m_buffer ); | |
876 | } | |
877 | ||
878 | void UnMask() { | |
879 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
880 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
881 | m_dc = 0; | |
882 | } | |
883 | }; | |
884 | ||
885 | ||
886 | class wxBufferedPaintDC : public wxBufferedDC | |
887 | { | |
888 | private: | |
889 | wxPaintDC m_paintdc; | |
890 | ||
891 | public: | |
892 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
893 | : m_paintdc( window ) | |
894 | { | |
895 | window->PrepareDC( m_paintdc ); | |
896 | ||
897 | if( buffer != wxNullBitmap ) | |
898 | Init( &m_paintdc, buffer ); | |
899 | else | |
900 | Init( &m_paintdc, window->GetClientSize() ); | |
901 | } | |
902 | ||
903 | ~wxBufferedPaintDC() { | |
904 | UnMask(); | |
905 | } | |
906 | }; | |
907 | ||
908 | #endif | |
909 | //-=-=-=-=-=-=-=-=-=-=- | |
910 | ||
911 | ||
d14a1e28 RD |
912 | #include <wx/dcps.h> |
913 | ||
914 | ||
915 | class wxMetaFile : public wxObject { | |
916 | public: | |
917 | wxMetaFile(const wxString&) | |
39f61e25 | 918 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
919 | }; |
920 | ||
921 | class wxMetaFileDC : public wxClientDC { | |
922 | public: | |
923 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 924 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
925 | }; |
926 | ||
927 | ||
928 | ||
929 | class wxPrinterDC : public wxClientDC { | |
930 | public: | |
931 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 932 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 933 | |
d14a1e28 | 934 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 935 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
936 | }; |
937 | ||
938 | ||
939 | ||
940 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
941 | self->AddColour(name, wxColour(red, green, blue)); | |
942 | } | |
943 | ||
d14a1e28 RD |
944 | #include <wx/effects.h> |
945 | ||
946 | #ifdef __cplusplus | |
947 | extern "C" { | |
948 | #endif | |
949 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
950 | PyObject *resultobj; | |
951 | wxGDIObject *result; | |
952 | char *kwnames[] = { | |
953 | NULL | |
954 | }; | |
955 | ||
956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
957 | { | |
958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
959 | result = (wxGDIObject *)new wxGDIObject(); | |
960 | ||
961 | wxPyEndAllowThreads(__tstate); | |
962 | if (PyErr_Occurred()) SWIG_fail; | |
963 | } | |
15afbcd0 | 964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
965 | return resultobj; |
966 | fail: | |
967 | return NULL; | |
968 | } | |
969 | ||
970 | ||
971 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
972 | PyObject *resultobj; | |
973 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
974 | PyObject * obj0 = 0 ; | |
975 | char *kwnames[] = { | |
976 | (char *) "self", NULL | |
977 | }; | |
978 | ||
979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
982 | { |
983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
984 | delete arg1; | |
985 | ||
986 | wxPyEndAllowThreads(__tstate); | |
987 | if (PyErr_Occurred()) SWIG_fail; | |
988 | } | |
989 | Py_INCREF(Py_None); resultobj = Py_None; | |
990 | return resultobj; | |
991 | fail: | |
992 | return NULL; | |
993 | } | |
994 | ||
995 | ||
996 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
997 | PyObject *resultobj; | |
998 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
999 | bool result; | |
1000 | PyObject * obj0 = 0 ; | |
1001 | char *kwnames[] = { | |
1002 | (char *) "self", NULL | |
1003 | }; | |
1004 | ||
1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1008 | { |
1009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1010 | result = (bool)(arg1)->GetVisible(); | |
1011 | ||
1012 | wxPyEndAllowThreads(__tstate); | |
1013 | if (PyErr_Occurred()) SWIG_fail; | |
1014 | } | |
4d5c3d91 | 1015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1016 | return resultobj; |
1017 | fail: | |
1018 | return NULL; | |
1019 | } | |
1020 | ||
1021 | ||
1022 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1023 | PyObject *resultobj; | |
1024 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1025 | bool arg2 ; | |
1026 | PyObject * obj0 = 0 ; | |
1027 | PyObject * obj1 = 0 ; | |
1028 | char *kwnames[] = { | |
1029 | (char *) "self",(char *) "visible", NULL | |
1030 | }; | |
1031 | ||
1032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1035 | arg2 = (bool) SWIG_AsBool(obj1); | |
1036 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1037 | { |
1038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1039 | (arg1)->SetVisible(arg2); | |
1040 | ||
1041 | wxPyEndAllowThreads(__tstate); | |
1042 | if (PyErr_Occurred()) SWIG_fail; | |
1043 | } | |
1044 | Py_INCREF(Py_None); resultobj = Py_None; | |
1045 | return resultobj; | |
1046 | fail: | |
1047 | return NULL; | |
1048 | } | |
1049 | ||
1050 | ||
1051 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1052 | PyObject *resultobj; | |
1053 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1054 | bool result; | |
1055 | PyObject * obj0 = 0 ; | |
1056 | char *kwnames[] = { | |
1057 | (char *) "self", NULL | |
1058 | }; | |
1059 | ||
1060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1063 | { |
1064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1065 | result = (bool)(arg1)->IsNull(); | |
1066 | ||
1067 | wxPyEndAllowThreads(__tstate); | |
1068 | if (PyErr_Occurred()) SWIG_fail; | |
1069 | } | |
4d5c3d91 | 1070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1071 | return resultobj; |
1072 | fail: | |
1073 | return NULL; | |
1074 | } | |
1075 | ||
1076 | ||
1077 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1078 | PyObject *obj; | |
1079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1080 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1081 | Py_INCREF(obj); | |
1082 | return Py_BuildValue((char *)""); | |
1083 | } | |
1084 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1085 | PyObject *resultobj; | |
1086 | unsigned char arg1 = (unsigned char) 0 ; | |
1087 | unsigned char arg2 = (unsigned char) 0 ; | |
1088 | unsigned char arg3 = (unsigned char) 0 ; | |
1089 | wxColour *result; | |
1090 | PyObject * obj0 = 0 ; | |
1091 | PyObject * obj1 = 0 ; | |
1092 | PyObject * obj2 = 0 ; | |
1093 | char *kwnames[] = { | |
1094 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1095 | }; | |
1096 | ||
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1098 | if (obj0) { | |
15afbcd0 RD |
1099 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
1100 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1101 | } |
1102 | if (obj1) { | |
15afbcd0 RD |
1103 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
1104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1105 | } |
1106 | if (obj2) { | |
15afbcd0 RD |
1107 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
1108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1109 | } |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) SWIG_fail; | |
1116 | } | |
15afbcd0 | 1117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1118 | return resultobj; |
1119 | fail: | |
1120 | return NULL; | |
1121 | } | |
1122 | ||
1123 | ||
d14a1e28 RD |
1124 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1125 | PyObject *resultobj; | |
1126 | wxString *arg1 = 0 ; | |
1127 | wxColour *result; | |
e811c8ce | 1128 | bool temp1 = False ; |
d14a1e28 RD |
1129 | PyObject * obj0 = 0 ; |
1130 | char *kwnames[] = { | |
1131 | (char *) "colorName", NULL | |
1132 | }; | |
1133 | ||
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1135 | { | |
1136 | arg1 = wxString_in_helper(obj0); | |
1137 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1138 | temp1 = True; |
d14a1e28 RD |
1139 | } |
1140 | { | |
1141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1142 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1143 | ||
1144 | wxPyEndAllowThreads(__tstate); | |
1145 | if (PyErr_Occurred()) SWIG_fail; | |
1146 | } | |
15afbcd0 | 1147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1148 | { |
1149 | if (temp1) | |
1150 | delete arg1; | |
1151 | } | |
1152 | return resultobj; | |
1153 | fail: | |
1154 | { | |
1155 | if (temp1) | |
1156 | delete arg1; | |
1157 | } | |
1158 | return NULL; | |
1159 | } | |
1160 | ||
1161 | ||
1162 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1163 | PyObject *resultobj; | |
1164 | unsigned long arg1 ; | |
1165 | wxColour *result; | |
1166 | PyObject * obj0 = 0 ; | |
1167 | char *kwnames[] = { | |
1168 | (char *) "colRGB", NULL | |
1169 | }; | |
1170 | ||
1171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1172 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
1173 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1174 | { |
1175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1176 | result = (wxColour *)new wxColour(arg1); | |
1177 | ||
1178 | wxPyEndAllowThreads(__tstate); | |
1179 | if (PyErr_Occurred()) SWIG_fail; | |
1180 | } | |
15afbcd0 | 1181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1182 | return resultobj; |
1183 | fail: | |
1184 | return NULL; | |
1185 | } | |
1186 | ||
1187 | ||
b88bce5f RD |
1188 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1189 | PyObject *resultobj; | |
1190 | wxColour *arg1 = (wxColour *) 0 ; | |
1191 | PyObject * obj0 = 0 ; | |
1192 | char *kwnames[] = { | |
1193 | (char *) "self", NULL | |
1194 | }; | |
1195 | ||
1196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1199 | { |
1200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1201 | delete arg1; | |
1202 | ||
1203 | wxPyEndAllowThreads(__tstate); | |
1204 | if (PyErr_Occurred()) SWIG_fail; | |
1205 | } | |
1206 | Py_INCREF(Py_None); resultobj = Py_None; | |
1207 | return resultobj; | |
1208 | fail: | |
1209 | return NULL; | |
1210 | } | |
1211 | ||
1212 | ||
d14a1e28 RD |
1213 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1214 | PyObject *resultobj; | |
1215 | wxColour *arg1 = (wxColour *) 0 ; | |
1216 | unsigned char result; | |
1217 | PyObject * obj0 = 0 ; | |
1218 | char *kwnames[] = { | |
1219 | (char *) "self", NULL | |
1220 | }; | |
1221 | ||
1222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1225 | { |
1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1227 | result = (unsigned char)(arg1)->Red(); | |
1228 | ||
1229 | wxPyEndAllowThreads(__tstate); | |
1230 | if (PyErr_Occurred()) SWIG_fail; | |
1231 | } | |
15afbcd0 | 1232 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1233 | return resultobj; |
1234 | fail: | |
1235 | return NULL; | |
1236 | } | |
1237 | ||
1238 | ||
1239 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1240 | PyObject *resultobj; | |
1241 | wxColour *arg1 = (wxColour *) 0 ; | |
1242 | unsigned char result; | |
1243 | PyObject * obj0 = 0 ; | |
1244 | char *kwnames[] = { | |
1245 | (char *) "self", NULL | |
1246 | }; | |
1247 | ||
1248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1251 | { |
1252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1253 | result = (unsigned char)(arg1)->Green(); | |
1254 | ||
1255 | wxPyEndAllowThreads(__tstate); | |
1256 | if (PyErr_Occurred()) SWIG_fail; | |
1257 | } | |
15afbcd0 | 1258 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1259 | return resultobj; |
1260 | fail: | |
1261 | return NULL; | |
1262 | } | |
1263 | ||
1264 | ||
1265 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject *resultobj; | |
1267 | wxColour *arg1 = (wxColour *) 0 ; | |
1268 | unsigned char result; | |
1269 | PyObject * obj0 = 0 ; | |
1270 | char *kwnames[] = { | |
1271 | (char *) "self", NULL | |
1272 | }; | |
1273 | ||
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1277 | { |
1278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1279 | result = (unsigned char)(arg1)->Blue(); | |
1280 | ||
1281 | wxPyEndAllowThreads(__tstate); | |
1282 | if (PyErr_Occurred()) SWIG_fail; | |
1283 | } | |
15afbcd0 | 1284 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1285 | return resultobj; |
1286 | fail: | |
1287 | return NULL; | |
1288 | } | |
1289 | ||
1290 | ||
1291 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1292 | PyObject *resultobj; | |
1293 | wxColour *arg1 = (wxColour *) 0 ; | |
1294 | bool result; | |
1295 | PyObject * obj0 = 0 ; | |
1296 | char *kwnames[] = { | |
1297 | (char *) "self", NULL | |
1298 | }; | |
1299 | ||
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1303 | { |
1304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1305 | result = (bool)(arg1)->Ok(); | |
1306 | ||
1307 | wxPyEndAllowThreads(__tstate); | |
1308 | if (PyErr_Occurred()) SWIG_fail; | |
1309 | } | |
4d5c3d91 | 1310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1311 | return resultobj; |
1312 | fail: | |
1313 | return NULL; | |
1314 | } | |
1315 | ||
1316 | ||
1317 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject *resultobj; | |
1319 | wxColour *arg1 = (wxColour *) 0 ; | |
1320 | unsigned char arg2 ; | |
1321 | unsigned char arg3 ; | |
1322 | unsigned char arg4 ; | |
1323 | PyObject * obj0 = 0 ; | |
1324 | PyObject * obj1 = 0 ; | |
1325 | PyObject * obj2 = 0 ; | |
1326 | PyObject * obj3 = 0 ; | |
1327 | char *kwnames[] = { | |
1328 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1329 | }; | |
1330 | ||
1331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1334 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
1335 | if (PyErr_Occurred()) SWIG_fail; | |
1336 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
1337 | if (PyErr_Occurred()) SWIG_fail; | |
1338 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
1339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1340 | { |
1341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1342 | (arg1)->Set(arg2,arg3,arg4); | |
1343 | ||
1344 | wxPyEndAllowThreads(__tstate); | |
1345 | if (PyErr_Occurred()) SWIG_fail; | |
1346 | } | |
1347 | Py_INCREF(Py_None); resultobj = Py_None; | |
1348 | return resultobj; | |
1349 | fail: | |
1350 | return NULL; | |
1351 | } | |
1352 | ||
1353 | ||
c9c7117a | 1354 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1355 | PyObject *resultobj; |
1356 | wxColour *arg1 = (wxColour *) 0 ; | |
1357 | unsigned long arg2 ; | |
1358 | PyObject * obj0 = 0 ; | |
1359 | PyObject * obj1 = 0 ; | |
1360 | char *kwnames[] = { | |
1361 | (char *) "self",(char *) "colRGB", NULL | |
1362 | }; | |
1363 | ||
c9c7117a | 1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1367 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1369 | { |
1370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1371 | (arg1)->Set(arg2); | |
1372 | ||
1373 | wxPyEndAllowThreads(__tstate); | |
1374 | if (PyErr_Occurred()) SWIG_fail; | |
1375 | } | |
1376 | Py_INCREF(Py_None); resultobj = Py_None; | |
1377 | return resultobj; | |
1378 | fail: | |
1379 | return NULL; | |
1380 | } | |
1381 | ||
1382 | ||
b88bce5f RD |
1383 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1384 | PyObject *resultobj; | |
1385 | wxColour *arg1 = (wxColour *) 0 ; | |
1386 | wxString *arg2 = 0 ; | |
1387 | bool temp2 = False ; | |
1388 | PyObject * obj0 = 0 ; | |
1389 | PyObject * obj1 = 0 ; | |
1390 | char *kwnames[] = { | |
1391 | (char *) "self",(char *) "colourName", NULL | |
1392 | }; | |
1393 | ||
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1397 | { |
1398 | arg2 = wxString_in_helper(obj1); | |
1399 | if (arg2 == NULL) SWIG_fail; | |
1400 | temp2 = True; | |
1401 | } | |
1402 | { | |
1403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1404 | (arg1)->InitFromName((wxString const &)*arg2); | |
1405 | ||
1406 | wxPyEndAllowThreads(__tstate); | |
1407 | if (PyErr_Occurred()) SWIG_fail; | |
1408 | } | |
1409 | Py_INCREF(Py_None); resultobj = Py_None; | |
1410 | { | |
1411 | if (temp2) | |
1412 | delete arg2; | |
1413 | } | |
1414 | return resultobj; | |
1415 | fail: | |
1416 | { | |
1417 | if (temp2) | |
1418 | delete arg2; | |
1419 | } | |
1420 | return NULL; | |
1421 | } | |
1422 | ||
1423 | ||
1424 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1425 | PyObject *resultobj; | |
1426 | wxColour *arg1 = (wxColour *) 0 ; | |
1427 | long result; | |
1428 | PyObject * obj0 = 0 ; | |
1429 | char *kwnames[] = { | |
1430 | (char *) "self", NULL | |
1431 | }; | |
1432 | ||
1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1436 | { |
1437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1438 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1439 | ||
1440 | wxPyEndAllowThreads(__tstate); | |
1441 | if (PyErr_Occurred()) SWIG_fail; | |
1442 | } | |
15afbcd0 | 1443 | resultobj = SWIG_FromLong((long)result); |
b88bce5f RD |
1444 | return resultobj; |
1445 | fail: | |
1446 | return NULL; | |
1447 | } | |
1448 | ||
1449 | ||
d14a1e28 RD |
1450 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1451 | PyObject *resultobj; | |
1452 | wxColour *arg1 = (wxColour *) 0 ; | |
1453 | wxColour *arg2 = 0 ; | |
1454 | bool result; | |
1455 | wxColour temp2 ; | |
1456 | PyObject * obj0 = 0 ; | |
1457 | PyObject * obj1 = 0 ; | |
1458 | char *kwnames[] = { | |
1459 | (char *) "self",(char *) "colour", NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1465 | { |
1466 | arg2 = &temp2; | |
1467 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1468 | } | |
1469 | { | |
1470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1471 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1472 | ||
1473 | wxPyEndAllowThreads(__tstate); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
4d5c3d91 | 1476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1477 | return resultobj; |
1478 | fail: | |
1479 | return NULL; | |
1480 | } | |
1481 | ||
1482 | ||
1483 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject *resultobj; | |
1485 | wxColour *arg1 = (wxColour *) 0 ; | |
1486 | wxColour *arg2 = 0 ; | |
1487 | bool result; | |
1488 | wxColour temp2 ; | |
1489 | PyObject * obj0 = 0 ; | |
1490 | PyObject * obj1 = 0 ; | |
1491 | char *kwnames[] = { | |
1492 | (char *) "self",(char *) "colour", NULL | |
1493 | }; | |
1494 | ||
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1498 | { |
1499 | arg2 = &temp2; | |
1500 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1501 | } | |
1502 | { | |
1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1504 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1505 | ||
1506 | wxPyEndAllowThreads(__tstate); | |
1507 | if (PyErr_Occurred()) SWIG_fail; | |
1508 | } | |
4d5c3d91 | 1509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1510 | return resultobj; |
1511 | fail: | |
1512 | return NULL; | |
1513 | } | |
1514 | ||
1515 | ||
b88bce5f | 1516 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
1517 | PyObject *resultobj; |
1518 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1519 | PyObject *result; |
c9c7117a | 1520 | PyObject * obj0 = 0 ; |
c9c7117a | 1521 | char *kwnames[] = { |
b88bce5f | 1522 | (char *) "self", NULL |
c9c7117a RD |
1523 | }; |
1524 | ||
b88bce5f | 1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
1528 | { |
1529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1530 | result = (PyObject *)wxColour_Get(arg1); |
c9c7117a RD |
1531 | |
1532 | wxPyEndAllowThreads(__tstate); | |
1533 | if (PyErr_Occurred()) SWIG_fail; | |
1534 | } | |
b88bce5f | 1535 | resultobj = result; |
c9c7117a RD |
1536 | return resultobj; |
1537 | fail: | |
c9c7117a RD |
1538 | return NULL; |
1539 | } | |
1540 | ||
1541 | ||
b88bce5f | 1542 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1543 | PyObject *resultobj; |
1544 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1545 | unsigned long result; |
d14a1e28 RD |
1546 | PyObject * obj0 = 0 ; |
1547 | char *kwnames[] = { | |
1548 | (char *) "self", NULL | |
1549 | }; | |
1550 | ||
b88bce5f | 1551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1554 | { |
1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1556 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1557 | |
1558 | wxPyEndAllowThreads(__tstate); | |
1559 | if (PyErr_Occurred()) SWIG_fail; | |
1560 | } | |
15afbcd0 | 1561 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1562 | return resultobj; |
1563 | fail: | |
1564 | return NULL; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1569 | PyObject *obj; | |
1570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1571 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1572 | Py_INCREF(obj); | |
1573 | return Py_BuildValue((char *)""); | |
1574 | } | |
1575 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1576 | PyObject *resultobj; | |
1577 | int arg1 ; | |
1578 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1579 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1580 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1581 | wxPalette *result; | |
994141e6 | 1582 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1583 | PyObject * obj1 = 0 ; |
1584 | PyObject * obj2 = 0 ; | |
1585 | PyObject * obj3 = 0 ; | |
1586 | char *kwnames[] = { | |
1587 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1588 | }; | |
1589 | ||
994141e6 | 1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
1591 | arg1 = (int) SWIG_AsInt(obj0); |
1592 | if (PyErr_Occurred()) SWIG_fail; | |
1593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1595 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1597 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1599 | { |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | } | |
15afbcd0 | 1606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1607 | return resultobj; |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject *resultobj; | |
1615 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1616 | PyObject * obj0 = 0 ; | |
1617 | char *kwnames[] = { | |
1618 | (char *) "self", NULL | |
1619 | }; | |
1620 | ||
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1624 | { |
1625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1626 | delete arg1; | |
1627 | ||
1628 | wxPyEndAllowThreads(__tstate); | |
1629 | if (PyErr_Occurred()) SWIG_fail; | |
1630 | } | |
1631 | Py_INCREF(Py_None); resultobj = Py_None; | |
1632 | return resultobj; | |
1633 | fail: | |
1634 | return NULL; | |
1635 | } | |
1636 | ||
1637 | ||
1638 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1639 | PyObject *resultobj; | |
1640 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1641 | byte arg2 ; | |
1642 | byte arg3 ; | |
1643 | byte arg4 ; | |
1644 | int result; | |
1645 | PyObject * obj0 = 0 ; | |
1646 | PyObject * obj1 = 0 ; | |
1647 | PyObject * obj2 = 0 ; | |
1648 | PyObject * obj3 = 0 ; | |
1649 | char *kwnames[] = { | |
1650 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1651 | }; | |
1652 | ||
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1656 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1657 | if (PyErr_Occurred()) SWIG_fail; | |
1658 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1659 | if (PyErr_Occurred()) SWIG_fail; | |
1660 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1661 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1662 | { |
1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1664 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1665 | ||
1666 | wxPyEndAllowThreads(__tstate); | |
1667 | if (PyErr_Occurred()) SWIG_fail; | |
1668 | } | |
15afbcd0 | 1669 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1670 | return resultobj; |
1671 | fail: | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1679 | int arg2 ; | |
1680 | byte *arg3 = (byte *) 0 ; | |
1681 | byte *arg4 = (byte *) 0 ; | |
1682 | byte *arg5 = (byte *) 0 ; | |
1683 | bool result; | |
1684 | byte temp3 ; | |
1685 | byte temp4 ; | |
1686 | byte temp5 ; | |
1687 | PyObject * obj0 = 0 ; | |
994141e6 | 1688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1689 | char *kwnames[] = { |
1690 | (char *) "self",(char *) "pixel", NULL | |
1691 | }; | |
1692 | ||
1693 | arg3 = &temp3; | |
1694 | arg4 = &temp4; | |
1695 | arg5 = &temp5; | |
994141e6 | 1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1699 | arg2 = (int) SWIG_AsInt(obj1); | |
1700 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1701 | { |
1702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1703 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1704 | ||
1705 | wxPyEndAllowThreads(__tstate); | |
1706 | if (PyErr_Occurred()) SWIG_fail; | |
1707 | } | |
4d5c3d91 | 1708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1709 | { |
1710 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1711 | resultobj = t_output_helper(resultobj,o); | |
1712 | } | |
1713 | { | |
1714 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1715 | resultobj = t_output_helper(resultobj,o); | |
1716 | } | |
1717 | { | |
1718 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1719 | resultobj = t_output_helper(resultobj,o); | |
1720 | } | |
1721 | return resultobj; | |
1722 | fail: | |
1723 | return NULL; | |
1724 | } | |
1725 | ||
1726 | ||
1727 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1728 | PyObject *resultobj; | |
1729 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1730 | bool result; | |
1731 | PyObject * obj0 = 0 ; | |
1732 | char *kwnames[] = { | |
1733 | (char *) "self", NULL | |
1734 | }; | |
1735 | ||
1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1739 | { |
1740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1741 | result = (bool)(arg1)->Ok(); | |
1742 | ||
1743 | wxPyEndAllowThreads(__tstate); | |
1744 | if (PyErr_Occurred()) SWIG_fail; | |
1745 | } | |
4d5c3d91 | 1746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1747 | return resultobj; |
1748 | fail: | |
1749 | return NULL; | |
1750 | } | |
1751 | ||
1752 | ||
1753 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1754 | PyObject *obj; | |
1755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1756 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1757 | Py_INCREF(obj); | |
1758 | return Py_BuildValue((char *)""); | |
1759 | } | |
1760 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1761 | PyObject *resultobj; | |
1762 | wxColour *arg1 = 0 ; | |
1763 | int arg2 = (int) 1 ; | |
1764 | int arg3 = (int) wxSOLID ; | |
1765 | wxPen *result; | |
1766 | wxColour temp1 ; | |
1767 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1768 | PyObject * obj1 = 0 ; |
1769 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1770 | char *kwnames[] = { |
1771 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1772 | }; | |
1773 | ||
994141e6 | 1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1775 | { |
1776 | arg1 = &temp1; | |
1777 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1778 | } | |
994141e6 | 1779 | if (obj1) { |
15afbcd0 RD |
1780 | arg2 = (int) SWIG_AsInt(obj1); |
1781 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
1782 | } |
1783 | if (obj2) { | |
15afbcd0 RD |
1784 | arg3 = (int) SWIG_AsInt(obj2); |
1785 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1786 | } |
d14a1e28 RD |
1787 | { |
1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1789 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1790 | ||
1791 | wxPyEndAllowThreads(__tstate); | |
1792 | if (PyErr_Occurred()) SWIG_fail; | |
1793 | } | |
15afbcd0 | 1794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1795 | return resultobj; |
1796 | fail: | |
1797 | return NULL; | |
1798 | } | |
1799 | ||
1800 | ||
1801 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1802 | PyObject *resultobj; | |
1803 | wxPen *arg1 = (wxPen *) 0 ; | |
1804 | PyObject * obj0 = 0 ; | |
1805 | char *kwnames[] = { | |
1806 | (char *) "self", NULL | |
1807 | }; | |
1808 | ||
1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1812 | { |
1813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1814 | delete arg1; | |
1815 | ||
1816 | wxPyEndAllowThreads(__tstate); | |
1817 | if (PyErr_Occurred()) SWIG_fail; | |
1818 | } | |
1819 | Py_INCREF(Py_None); resultobj = Py_None; | |
1820 | return resultobj; | |
1821 | fail: | |
1822 | return NULL; | |
1823 | } | |
1824 | ||
1825 | ||
1826 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1827 | PyObject *resultobj; | |
1828 | wxPen *arg1 = (wxPen *) 0 ; | |
1829 | int result; | |
1830 | PyObject * obj0 = 0 ; | |
1831 | char *kwnames[] = { | |
1832 | (char *) "self", NULL | |
1833 | }; | |
1834 | ||
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1838 | { |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | result = (int)(arg1)->GetCap(); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | } | |
15afbcd0 | 1845 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1846 | return resultobj; |
1847 | fail: | |
1848 | return NULL; | |
1849 | } | |
1850 | ||
1851 | ||
1852 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject *resultobj; | |
1854 | wxPen *arg1 = (wxPen *) 0 ; | |
1855 | wxColour result; | |
1856 | PyObject * obj0 = 0 ; | |
1857 | char *kwnames[] = { | |
1858 | (char *) "self", NULL | |
1859 | }; | |
1860 | ||
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1864 | { |
1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1866 | result = (arg1)->GetColour(); | |
1867 | ||
1868 | wxPyEndAllowThreads(__tstate); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
1870 | } | |
1871 | { | |
1872 | wxColour * resultptr; | |
1873 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1874 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1875 | } |
1876 | return resultobj; | |
1877 | fail: | |
1878 | return NULL; | |
1879 | } | |
1880 | ||
1881 | ||
1882 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject *resultobj; | |
1884 | wxPen *arg1 = (wxPen *) 0 ; | |
1885 | int result; | |
1886 | PyObject * obj0 = 0 ; | |
1887 | char *kwnames[] = { | |
1888 | (char *) "self", NULL | |
1889 | }; | |
1890 | ||
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1894 | { |
1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1896 | result = (int)(arg1)->GetJoin(); | |
1897 | ||
1898 | wxPyEndAllowThreads(__tstate); | |
1899 | if (PyErr_Occurred()) SWIG_fail; | |
1900 | } | |
15afbcd0 | 1901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1902 | return resultobj; |
1903 | fail: | |
1904 | return NULL; | |
1905 | } | |
1906 | ||
1907 | ||
1908 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject *resultobj; | |
1910 | wxPen *arg1 = (wxPen *) 0 ; | |
1911 | int result; | |
1912 | PyObject * obj0 = 0 ; | |
1913 | char *kwnames[] = { | |
1914 | (char *) "self", NULL | |
1915 | }; | |
1916 | ||
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1920 | { |
1921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1922 | result = (int)(arg1)->GetStyle(); | |
1923 | ||
1924 | wxPyEndAllowThreads(__tstate); | |
1925 | if (PyErr_Occurred()) SWIG_fail; | |
1926 | } | |
15afbcd0 | 1927 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1928 | return resultobj; |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject *resultobj; | |
1936 | wxPen *arg1 = (wxPen *) 0 ; | |
1937 | int result; | |
1938 | PyObject * obj0 = 0 ; | |
1939 | char *kwnames[] = { | |
1940 | (char *) "self", NULL | |
1941 | }; | |
1942 | ||
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1946 | { |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | result = (int)(arg1)->GetWidth(); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
15afbcd0 | 1953 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1954 | return resultobj; |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | wxPen *arg1 = (wxPen *) 0 ; | |
1963 | bool result; | |
1964 | PyObject * obj0 = 0 ; | |
1965 | char *kwnames[] = { | |
1966 | (char *) "self", NULL | |
1967 | }; | |
1968 | ||
1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1972 | { |
1973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1974 | result = (bool)(arg1)->Ok(); | |
1975 | ||
1976 | wxPyEndAllowThreads(__tstate); | |
1977 | if (PyErr_Occurred()) SWIG_fail; | |
1978 | } | |
4d5c3d91 | 1979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1980 | return resultobj; |
1981 | fail: | |
1982 | return NULL; | |
1983 | } | |
1984 | ||
1985 | ||
1986 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject *resultobj; | |
1988 | wxPen *arg1 = (wxPen *) 0 ; | |
1989 | int arg2 ; | |
1990 | PyObject * obj0 = 0 ; | |
994141e6 | 1991 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1992 | char *kwnames[] = { |
1993 | (char *) "self",(char *) "cap_style", NULL | |
1994 | }; | |
1995 | ||
994141e6 | 1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1999 | arg2 = (int) SWIG_AsInt(obj1); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2001 | { |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | (arg1)->SetCap(arg2); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | Py_INCREF(Py_None); resultobj = Py_None; | |
2009 | return resultobj; | |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | wxPen *arg1 = (wxPen *) 0 ; | |
2018 | wxColour *arg2 = 0 ; | |
2019 | wxColour temp2 ; | |
2020 | PyObject * obj0 = 0 ; | |
2021 | PyObject * obj1 = 0 ; | |
2022 | char *kwnames[] = { | |
2023 | (char *) "self",(char *) "colour", NULL | |
2024 | }; | |
2025 | ||
2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2029 | { |
2030 | arg2 = &temp2; | |
2031 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2032 | } | |
2033 | { | |
2034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2035 | (arg1)->SetColour(*arg2); | |
2036 | ||
2037 | wxPyEndAllowThreads(__tstate); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | } | |
2040 | Py_INCREF(Py_None); resultobj = Py_None; | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject *resultobj; | |
2049 | wxPen *arg1 = (wxPen *) 0 ; | |
2050 | int arg2 ; | |
2051 | PyObject * obj0 = 0 ; | |
994141e6 | 2052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2053 | char *kwnames[] = { |
2054 | (char *) "self",(char *) "join_style", NULL | |
2055 | }; | |
2056 | ||
994141e6 | 2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2060 | arg2 = (int) SWIG_AsInt(obj1); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2062 | { |
2063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2064 | (arg1)->SetJoin(arg2); | |
2065 | ||
2066 | wxPyEndAllowThreads(__tstate); | |
2067 | if (PyErr_Occurred()) SWIG_fail; | |
2068 | } | |
2069 | Py_INCREF(Py_None); resultobj = Py_None; | |
2070 | return resultobj; | |
2071 | fail: | |
2072 | return NULL; | |
2073 | } | |
2074 | ||
2075 | ||
2076 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | wxPen *arg1 = (wxPen *) 0 ; | |
2079 | int arg2 ; | |
2080 | PyObject * obj0 = 0 ; | |
994141e6 | 2081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2082 | char *kwnames[] = { |
2083 | (char *) "self",(char *) "style", NULL | |
2084 | }; | |
2085 | ||
994141e6 | 2086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2089 | arg2 = (int) SWIG_AsInt(obj1); | |
2090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2091 | { |
2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2093 | (arg1)->SetStyle(arg2); | |
2094 | ||
2095 | wxPyEndAllowThreads(__tstate); | |
2096 | if (PyErr_Occurred()) SWIG_fail; | |
2097 | } | |
2098 | Py_INCREF(Py_None); resultobj = Py_None; | |
2099 | return resultobj; | |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
2105 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | wxPen *arg1 = (wxPen *) 0 ; | |
2108 | int arg2 ; | |
2109 | PyObject * obj0 = 0 ; | |
994141e6 | 2110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2111 | char *kwnames[] = { |
2112 | (char *) "self",(char *) "width", NULL | |
2113 | }; | |
2114 | ||
994141e6 | 2115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2118 | arg2 = (int) SWIG_AsInt(obj1); | |
2119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2120 | { |
2121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2122 | (arg1)->SetWidth(arg2); | |
2123 | ||
2124 | wxPyEndAllowThreads(__tstate); | |
2125 | if (PyErr_Occurred()) SWIG_fail; | |
2126 | } | |
2127 | Py_INCREF(Py_None); resultobj = Py_None; | |
2128 | return resultobj; | |
2129 | fail: | |
2130 | return NULL; | |
2131 | } | |
2132 | ||
2133 | ||
2134 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2135 | PyObject *resultobj; | |
2136 | wxPen *arg1 = (wxPen *) 0 ; | |
2137 | int arg2 ; | |
2138 | wxDash *arg3 = (wxDash *) 0 ; | |
2139 | PyObject * obj0 = 0 ; | |
2140 | PyObject * obj1 = 0 ; | |
2141 | char *kwnames[] = { | |
2142 | (char *) "self",(char *) "dashes", NULL | |
2143 | }; | |
2144 | ||
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2148 | { |
2149 | arg2 = PyList_Size(obj1); | |
2150 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2151 | if (arg3 == NULL) SWIG_fail; | |
2152 | } | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | (arg1)->SetDashes(arg2,arg3); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
2160 | Py_INCREF(Py_None); resultobj = Py_None; | |
2161 | { | |
2162 | if (arg3) delete [] arg3; | |
2163 | } | |
2164 | return resultobj; | |
2165 | fail: | |
2166 | { | |
2167 | if (arg3) delete [] arg3; | |
2168 | } | |
2169 | return NULL; | |
2170 | } | |
2171 | ||
2172 | ||
2173 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2174 | PyObject *resultobj; | |
2175 | wxPen *arg1 = (wxPen *) 0 ; | |
2176 | PyObject *result; | |
2177 | PyObject * obj0 = 0 ; | |
2178 | char *kwnames[] = { | |
2179 | (char *) "self", NULL | |
2180 | }; | |
2181 | ||
2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2185 | { |
2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2187 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2188 | ||
2189 | wxPyEndAllowThreads(__tstate); | |
2190 | if (PyErr_Occurred()) SWIG_fail; | |
2191 | } | |
2192 | resultobj = result; | |
2193 | return resultobj; | |
2194 | fail: | |
2195 | return NULL; | |
2196 | } | |
2197 | ||
2198 | ||
3adfb63b RD |
2199 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
2200 | PyObject *resultobj; | |
2201 | wxPen *arg1 = (wxPen *) 0 ; | |
22faec7d | 2202 | wxPen *arg2 = (wxPen *) 0 ; |
3adfb63b RD |
2203 | bool result; |
2204 | PyObject * obj0 = 0 ; | |
2205 | PyObject * obj1 = 0 ; | |
2206 | char *kwnames[] = { | |
22faec7d | 2207 | (char *) "self",(char *) "other", NULL |
3adfb63b RD |
2208 | }; |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22faec7d RD |
2215 | { |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b | 2221 | } |
22faec7d RD |
2222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2223 | return resultobj; | |
2224 | fail: | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
2229 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject *resultobj; | |
2231 | wxPen *arg1 = (wxPen *) 0 ; | |
2232 | wxPen *arg2 = (wxPen *) 0 ; | |
2233 | bool result; | |
2234 | PyObject * obj0 = 0 ; | |
2235 | PyObject * obj1 = 0 ; | |
2236 | char *kwnames[] = { | |
2237 | (char *) "self",(char *) "other", NULL | |
2238 | }; | |
2239 | ||
2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
2245 | { |
2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 2247 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
3adfb63b RD |
2248 | |
2249 | wxPyEndAllowThreads(__tstate); | |
2250 | if (PyErr_Occurred()) SWIG_fail; | |
2251 | } | |
2252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
c9c7117a RD |
2259 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
2260 | PyObject *resultobj; | |
2261 | wxPen *arg1 = (wxPen *) 0 ; | |
2262 | int result; | |
2263 | PyObject * obj0 = 0 ; | |
2264 | char *kwnames[] = { | |
2265 | (char *) "self", NULL | |
2266 | }; | |
2267 | ||
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
2271 | { |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
15afbcd0 | 2278 | resultobj = SWIG_FromInt((int)result); |
c9c7117a RD |
2279 | return resultobj; |
2280 | fail: | |
2281 | return NULL; | |
2282 | } | |
2283 | ||
2284 | ||
d14a1e28 RD |
2285 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
2286 | PyObject *obj; | |
2287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2288 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2289 | Py_INCREF(obj); | |
2290 | return Py_BuildValue((char *)""); | |
2291 | } | |
2292 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2293 | PyObject *resultobj; | |
2294 | wxColour *arg1 = 0 ; | |
2295 | int arg2 = (int) 1 ; | |
2296 | int arg3 = (int) wxSOLID ; | |
2297 | wxPyPen *result; | |
2298 | wxColour temp1 ; | |
2299 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2300 | PyObject * obj1 = 0 ; |
2301 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2302 | char *kwnames[] = { |
2303 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2304 | }; | |
2305 | ||
994141e6 | 2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2307 | { |
2308 | arg1 = &temp1; | |
2309 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2310 | } | |
994141e6 | 2311 | if (obj1) { |
15afbcd0 RD |
2312 | arg2 = (int) SWIG_AsInt(obj1); |
2313 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2314 | } |
2315 | if (obj2) { | |
15afbcd0 RD |
2316 | arg3 = (int) SWIG_AsInt(obj2); |
2317 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2318 | } |
d14a1e28 RD |
2319 | { |
2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2321 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2322 | ||
2323 | wxPyEndAllowThreads(__tstate); | |
2324 | if (PyErr_Occurred()) SWIG_fail; | |
2325 | } | |
15afbcd0 | 2326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1); |
d14a1e28 RD |
2327 | return resultobj; |
2328 | fail: | |
2329 | return NULL; | |
2330 | } | |
2331 | ||
2332 | ||
2333 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2334 | PyObject *resultobj; | |
2335 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2336 | PyObject * obj0 = 0 ; | |
2337 | char *kwnames[] = { | |
2338 | (char *) "self", NULL | |
2339 | }; | |
2340 | ||
2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2344 | { |
2345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2346 | delete arg1; | |
2347 | ||
2348 | wxPyEndAllowThreads(__tstate); | |
2349 | if (PyErr_Occurred()) SWIG_fail; | |
2350 | } | |
2351 | Py_INCREF(Py_None); resultobj = Py_None; | |
2352 | return resultobj; | |
2353 | fail: | |
2354 | return NULL; | |
2355 | } | |
2356 | ||
2357 | ||
2358 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2359 | PyObject *resultobj; | |
2360 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2361 | int arg2 ; | |
2362 | wxDash *arg3 = (wxDash *) 0 ; | |
2363 | PyObject * obj0 = 0 ; | |
2364 | PyObject * obj1 = 0 ; | |
2365 | char *kwnames[] = { | |
2366 | (char *) "self",(char *) "dashes", NULL | |
2367 | }; | |
2368 | ||
2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2372 | { |
2373 | arg2 = PyList_Size(obj1); | |
2374 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2375 | if (arg3 == NULL) SWIG_fail; | |
2376 | } | |
2377 | { | |
2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2379 | (arg1)->SetDashes(arg2,arg3); | |
2380 | ||
2381 | wxPyEndAllowThreads(__tstate); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | } | |
2384 | Py_INCREF(Py_None); resultobj = Py_None; | |
2385 | { | |
2386 | if (arg3) delete [] arg3; | |
2387 | } | |
2388 | return resultobj; | |
2389 | fail: | |
2390 | { | |
2391 | if (arg3) delete [] arg3; | |
2392 | } | |
2393 | return NULL; | |
2394 | } | |
2395 | ||
2396 | ||
2397 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2398 | PyObject *obj; | |
2399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2400 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2401 | Py_INCREF(obj); | |
2402 | return Py_BuildValue((char *)""); | |
2403 | } | |
2404 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2405 | PyObject *resultobj; | |
2406 | wxColour *arg1 = 0 ; | |
2407 | int arg2 = (int) wxSOLID ; | |
2408 | wxBrush *result; | |
2409 | wxColour temp1 ; | |
2410 | PyObject * obj0 = 0 ; | |
994141e6 | 2411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2412 | char *kwnames[] = { |
2413 | (char *) "colour",(char *) "style", NULL | |
2414 | }; | |
2415 | ||
994141e6 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2417 | { |
2418 | arg1 = &temp1; | |
2419 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2420 | } | |
994141e6 | 2421 | if (obj1) { |
15afbcd0 RD |
2422 | arg2 = (int) SWIG_AsInt(obj1); |
2423 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2424 | } |
d14a1e28 RD |
2425 | { |
2426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2427 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2428 | ||
2429 | wxPyEndAllowThreads(__tstate); | |
2430 | if (PyErr_Occurred()) SWIG_fail; | |
2431 | } | |
15afbcd0 | 2432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2433 | return resultobj; |
2434 | fail: | |
2435 | return NULL; | |
2436 | } | |
2437 | ||
2438 | ||
2439 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2440 | PyObject *resultobj; | |
2441 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2442 | PyObject * obj0 = 0 ; | |
2443 | char *kwnames[] = { | |
2444 | (char *) "self", NULL | |
2445 | }; | |
2446 | ||
2447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2450 | { |
2451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2452 | delete arg1; | |
2453 | ||
2454 | wxPyEndAllowThreads(__tstate); | |
2455 | if (PyErr_Occurred()) SWIG_fail; | |
2456 | } | |
2457 | Py_INCREF(Py_None); resultobj = Py_None; | |
2458 | return resultobj; | |
2459 | fail: | |
2460 | return NULL; | |
2461 | } | |
2462 | ||
2463 | ||
2464 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject *resultobj; | |
2466 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2467 | wxColour *arg2 = 0 ; | |
2468 | wxColour temp2 ; | |
2469 | PyObject * obj0 = 0 ; | |
2470 | PyObject * obj1 = 0 ; | |
2471 | char *kwnames[] = { | |
2472 | (char *) "self",(char *) "col", NULL | |
2473 | }; | |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2478 | { |
2479 | arg2 = &temp2; | |
2480 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2481 | } | |
2482 | { | |
2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2484 | (arg1)->SetColour((wxColour const &)*arg2); | |
2485 | ||
2486 | wxPyEndAllowThreads(__tstate); | |
2487 | if (PyErr_Occurred()) SWIG_fail; | |
2488 | } | |
2489 | Py_INCREF(Py_None); resultobj = Py_None; | |
2490 | return resultobj; | |
2491 | fail: | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2496 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2497 | PyObject *resultobj; | |
2498 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2499 | int arg2 ; | |
2500 | PyObject * obj0 = 0 ; | |
994141e6 | 2501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2502 | char *kwnames[] = { |
2503 | (char *) "self",(char *) "style", NULL | |
2504 | }; | |
2505 | ||
994141e6 | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2509 | arg2 = (int) SWIG_AsInt(obj1); | |
2510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2511 | { |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | (arg1)->SetStyle(arg2); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | Py_INCREF(Py_None); resultobj = Py_None; | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2528 | wxBitmap *arg2 = 0 ; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | PyObject * obj1 = 0 ; | |
2531 | char *kwnames[] = { | |
2532 | (char *) "self",(char *) "stipple", NULL | |
2533 | }; | |
2534 | ||
2535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2540 | SWIG_fail; | |
d14a1e28 | 2541 | if (arg2 == NULL) { |
15afbcd0 RD |
2542 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2543 | SWIG_fail; | |
d14a1e28 RD |
2544 | } |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | } | |
2552 | Py_INCREF(Py_None); resultobj = Py_None; | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject *resultobj; | |
2561 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2562 | wxColour result; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | char *kwnames[] = { | |
2565 | (char *) "self", NULL | |
2566 | }; | |
2567 | ||
2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2571 | { |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2573 | result = ((wxBrush const *)arg1)->GetColour(); | |
2574 | ||
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) SWIG_fail; | |
2577 | } | |
2578 | { | |
2579 | wxColour * resultptr; | |
2580 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 2581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2582 | } |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
2589 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject *resultobj; | |
2591 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2592 | int result; | |
2593 | PyObject * obj0 = 0 ; | |
2594 | char *kwnames[] = { | |
2595 | (char *) "self", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2601 | { |
2602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2603 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2604 | ||
2605 | wxPyEndAllowThreads(__tstate); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
15afbcd0 | 2608 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2609 | return resultobj; |
2610 | fail: | |
2611 | return NULL; | |
2612 | } | |
2613 | ||
2614 | ||
2615 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2616 | PyObject *resultobj; | |
2617 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2618 | wxBitmap *result; | |
2619 | PyObject * obj0 = 0 ; | |
2620 | char *kwnames[] = { | |
2621 | (char *) "self", NULL | |
2622 | }; | |
2623 | ||
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2627 | { |
2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2629 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2630 | ||
2631 | wxPyEndAllowThreads(__tstate); | |
2632 | if (PyErr_Occurred()) SWIG_fail; | |
2633 | } | |
15afbcd0 | 2634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2635 | return resultobj; |
2636 | fail: | |
2637 | return NULL; | |
2638 | } | |
2639 | ||
2640 | ||
2641 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2642 | PyObject *resultobj; | |
2643 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2644 | bool result; | |
2645 | PyObject * obj0 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "self", NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2653 | { |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | result = (bool)(arg1)->Ok(); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) SWIG_fail; | |
2659 | } | |
4d5c3d91 | 2660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2661 | return resultobj; |
2662 | fail: | |
2663 | return NULL; | |
2664 | } | |
2665 | ||
2666 | ||
2667 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2668 | PyObject *obj; | |
2669 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2670 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2671 | Py_INCREF(obj); | |
2672 | return Py_BuildValue((char *)""); | |
2673 | } | |
2674 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2675 | PyObject *resultobj; | |
2676 | wxString *arg1 = 0 ; | |
2677 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2678 | wxBitmap *result; | |
e811c8ce | 2679 | bool temp1 = False ; |
d14a1e28 | 2680 | PyObject * obj0 = 0 ; |
994141e6 | 2681 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2682 | char *kwnames[] = { |
2683 | (char *) "name",(char *) "type", NULL | |
2684 | }; | |
2685 | ||
994141e6 | 2686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2687 | { |
2688 | arg1 = wxString_in_helper(obj0); | |
2689 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2690 | temp1 = True; |
d14a1e28 | 2691 | } |
994141e6 | 2692 | if (obj1) { |
15afbcd0 RD |
2693 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
2694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2695 | } |
d14a1e28 RD |
2696 | { |
2697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2698 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2699 | ||
2700 | wxPyEndAllowThreads(__tstate); | |
2701 | if (PyErr_Occurred()) SWIG_fail; | |
2702 | } | |
15afbcd0 | 2703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2704 | { |
2705 | if (temp1) | |
2706 | delete arg1; | |
2707 | } | |
2708 | return resultobj; | |
2709 | fail: | |
2710 | { | |
2711 | if (temp1) | |
2712 | delete arg1; | |
2713 | } | |
2714 | return NULL; | |
2715 | } | |
2716 | ||
2717 | ||
2718 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2719 | PyObject *resultobj; | |
2720 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2721 | PyObject * obj0 = 0 ; | |
2722 | char *kwnames[] = { | |
2723 | (char *) "self", NULL | |
2724 | }; | |
2725 | ||
2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2729 | { |
2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2731 | delete arg1; | |
2732 | ||
2733 | wxPyEndAllowThreads(__tstate); | |
2734 | if (PyErr_Occurred()) SWIG_fail; | |
2735 | } | |
2736 | Py_INCREF(Py_None); resultobj = Py_None; | |
2737 | return resultobj; | |
2738 | fail: | |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
2743 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2744 | PyObject *resultobj; | |
2745 | int arg1 ; | |
2746 | int arg2 ; | |
2747 | int arg3 = (int) -1 ; | |
2748 | wxBitmap *result; | |
994141e6 RD |
2749 | PyObject * obj0 = 0 ; |
2750 | PyObject * obj1 = 0 ; | |
2751 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2752 | char *kwnames[] = { |
2753 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2754 | }; | |
2755 | ||
994141e6 | 2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2757 | arg1 = (int) SWIG_AsInt(obj0); |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
2759 | arg2 = (int) SWIG_AsInt(obj1); | |
2760 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2761 | if (obj2) { |
15afbcd0 RD |
2762 | arg3 = (int) SWIG_AsInt(obj2); |
2763 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2764 | } |
d14a1e28 RD |
2765 | { |
2766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2767 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2768 | ||
2769 | wxPyEndAllowThreads(__tstate); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
2771 | } | |
15afbcd0 | 2772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2773 | return resultobj; |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
2779 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2780 | PyObject *resultobj; | |
2781 | wxIcon *arg1 = 0 ; | |
2782 | wxBitmap *result; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | char *kwnames[] = { | |
2785 | (char *) "icon", NULL | |
2786 | }; | |
2787 | ||
2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2791 | SWIG_fail; | |
d14a1e28 | 2792 | if (arg1 == NULL) { |
15afbcd0 RD |
2793 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2794 | SWIG_fail; | |
d14a1e28 RD |
2795 | } |
2796 | { | |
2797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2798 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2799 | ||
2800 | wxPyEndAllowThreads(__tstate); | |
2801 | if (PyErr_Occurred()) SWIG_fail; | |
2802 | } | |
15afbcd0 | 2803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2804 | return resultobj; |
2805 | fail: | |
2806 | return NULL; | |
2807 | } | |
2808 | ||
2809 | ||
2810 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject *resultobj; | |
2812 | wxImage *arg1 = 0 ; | |
2813 | int arg2 = (int) -1 ; | |
2814 | wxBitmap *result; | |
2815 | PyObject * obj0 = 0 ; | |
994141e6 | 2816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2817 | char *kwnames[] = { |
2818 | (char *) "image",(char *) "depth", NULL | |
2819 | }; | |
2820 | ||
994141e6 | 2821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2823 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2824 | SWIG_fail; | |
d14a1e28 | 2825 | if (arg1 == NULL) { |
15afbcd0 RD |
2826 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2827 | SWIG_fail; | |
d14a1e28 | 2828 | } |
994141e6 | 2829 | if (obj1) { |
15afbcd0 RD |
2830 | arg2 = (int) SWIG_AsInt(obj1); |
2831 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2832 | } |
d14a1e28 RD |
2833 | { |
2834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2835 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2836 | ||
2837 | wxPyEndAllowThreads(__tstate); | |
2838 | if (PyErr_Occurred()) SWIG_fail; | |
2839 | } | |
15afbcd0 | 2840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2841 | return resultobj; |
2842 | fail: | |
2843 | return NULL; | |
2844 | } | |
2845 | ||
2846 | ||
2847 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2848 | PyObject *resultobj; | |
2849 | PyObject *arg1 = (PyObject *) 0 ; | |
2850 | wxBitmap *result; | |
2851 | PyObject * obj0 = 0 ; | |
2852 | char *kwnames[] = { | |
2853 | (char *) "listOfStrings", NULL | |
2854 | }; | |
2855 | ||
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2857 | arg1 = obj0; | |
2858 | { | |
2859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2860 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2861 | ||
2862 | wxPyEndAllowThreads(__tstate); | |
2863 | if (PyErr_Occurred()) SWIG_fail; | |
2864 | } | |
15afbcd0 | 2865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2866 | return resultobj; |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
2872 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2873 | PyObject *resultobj; | |
2874 | PyObject *arg1 = (PyObject *) 0 ; | |
2875 | int arg2 ; | |
2876 | int arg3 ; | |
2877 | int arg4 = (int) 1 ; | |
2878 | wxBitmap *result; | |
2879 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2880 | PyObject * obj1 = 0 ; |
2881 | PyObject * obj2 = 0 ; | |
2882 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2883 | char *kwnames[] = { |
2884 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2885 | }; | |
2886 | ||
994141e6 | 2887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2888 | arg1 = obj0; |
15afbcd0 RD |
2889 | arg2 = (int) SWIG_AsInt(obj1); |
2890 | if (PyErr_Occurred()) SWIG_fail; | |
2891 | arg3 = (int) SWIG_AsInt(obj2); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2893 | if (obj3) { |
15afbcd0 RD |
2894 | arg4 = (int) SWIG_AsInt(obj3); |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2896 | } |
d14a1e28 RD |
2897 | { |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2899 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
2902 | if (PyErr_Occurred()) SWIG_fail; | |
2903 | } | |
15afbcd0 | 2904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2905 | return resultobj; |
2906 | fail: | |
2907 | return NULL; | |
2908 | } | |
2909 | ||
2910 | ||
2911 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2912 | PyObject *resultobj; | |
2913 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2914 | bool result; | |
2915 | PyObject * obj0 = 0 ; | |
2916 | char *kwnames[] = { | |
2917 | (char *) "self", NULL | |
2918 | }; | |
2919 | ||
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2923 | { |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | result = (bool)(arg1)->Ok(); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
4d5c3d91 | 2930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2931 | return resultobj; |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
2937 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject *resultobj; | |
2939 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2940 | int result; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "self", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2949 | { |
2950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2951 | result = (int)(arg1)->GetWidth(); | |
2952 | ||
2953 | wxPyEndAllowThreads(__tstate); | |
2954 | if (PyErr_Occurred()) SWIG_fail; | |
2955 | } | |
15afbcd0 | 2956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2957 | return resultobj; |
2958 | fail: | |
2959 | return NULL; | |
2960 | } | |
2961 | ||
2962 | ||
2963 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2964 | PyObject *resultobj; | |
2965 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2966 | int result; | |
2967 | PyObject * obj0 = 0 ; | |
2968 | char *kwnames[] = { | |
2969 | (char *) "self", NULL | |
2970 | }; | |
2971 | ||
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2975 | { |
2976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2977 | result = (int)(arg1)->GetHeight(); | |
2978 | ||
2979 | wxPyEndAllowThreads(__tstate); | |
2980 | if (PyErr_Occurred()) SWIG_fail; | |
2981 | } | |
15afbcd0 | 2982 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2983 | return resultobj; |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
2989 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject *resultobj; | |
2991 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2992 | int result; | |
2993 | PyObject * obj0 = 0 ; | |
2994 | char *kwnames[] = { | |
2995 | (char *) "self", NULL | |
2996 | }; | |
2997 | ||
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3001 | { |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3003 | result = (int)(arg1)->GetDepth(); | |
3004 | ||
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
15afbcd0 | 3008 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3009 | return resultobj; |
3010 | fail: | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
3015 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject *resultobj; | |
3017 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3018 | SwigValueWrapper< wxImage > result; | |
3019 | PyObject * obj0 = 0 ; | |
3020 | char *kwnames[] = { | |
3021 | (char *) "self", NULL | |
3022 | }; | |
3023 | ||
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3027 | { |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3029 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
3032 | if (PyErr_Occurred()) SWIG_fail; | |
3033 | } | |
3034 | { | |
3035 | wxImage * resultptr; | |
3036 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 3037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
3038 | } |
3039 | return resultobj; | |
3040 | fail: | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
3045 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject *resultobj; | |
3047 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3048 | wxMask *result; | |
3049 | PyObject * obj0 = 0 ; | |
3050 | char *kwnames[] = { | |
3051 | (char *) "self", NULL | |
3052 | }; | |
3053 | ||
3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3057 | { |
3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3059 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3060 | ||
3061 | wxPyEndAllowThreads(__tstate); | |
3062 | if (PyErr_Occurred()) SWIG_fail; | |
3063 | } | |
15afbcd0 | 3064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
3065 | return resultobj; |
3066 | fail: | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3074 | wxMask *arg2 = (wxMask *) 0 ; | |
3075 | PyObject * obj0 = 0 ; | |
3076 | PyObject * obj1 = 0 ; | |
3077 | char *kwnames[] = { | |
3078 | (char *) "self",(char *) "mask", NULL | |
3079 | }; | |
3080 | ||
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3086 | { |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | (arg1)->SetMask(arg2); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | Py_INCREF(Py_None); resultobj = Py_None; | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
3100 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3101 | PyObject *resultobj; | |
3102 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3103 | wxColour *arg2 = 0 ; | |
3104 | wxColour temp2 ; | |
3105 | PyObject * obj0 = 0 ; | |
3106 | PyObject * obj1 = 0 ; | |
3107 | char *kwnames[] = { | |
3108 | (char *) "self",(char *) "colour", NULL | |
3109 | }; | |
3110 | ||
3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3114 | { |
3115 | arg2 = &temp2; | |
3116 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3117 | } | |
3118 | { | |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
3125 | Py_INCREF(Py_None); resultobj = Py_None; | |
3126 | return resultobj; | |
3127 | fail: | |
3128 | return NULL; | |
3129 | } | |
3130 | ||
3131 | ||
3132 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3133 | PyObject *resultobj; | |
3134 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3135 | wxRect *arg2 = 0 ; | |
3136 | SwigValueWrapper< wxBitmap > result; | |
3137 | wxRect temp2 ; | |
3138 | PyObject * obj0 = 0 ; | |
3139 | PyObject * obj1 = 0 ; | |
3140 | char *kwnames[] = { | |
3141 | (char *) "self",(char *) "rect", NULL | |
3142 | }; | |
3143 | ||
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3147 | { |
3148 | arg2 = &temp2; | |
3149 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3150 | } | |
3151 | { | |
3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3153 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3154 | ||
3155 | wxPyEndAllowThreads(__tstate); | |
3156 | if (PyErr_Occurred()) SWIG_fail; | |
3157 | } | |
3158 | { | |
3159 | wxBitmap * resultptr; | |
3160 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 3161 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3162 | } |
3163 | return resultobj; | |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3172 | wxString *arg2 = 0 ; | |
3173 | int arg3 ; | |
3174 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3175 | bool result; | |
e811c8ce | 3176 | bool temp2 = False ; |
d14a1e28 RD |
3177 | PyObject * obj0 = 0 ; |
3178 | PyObject * obj1 = 0 ; | |
994141e6 | 3179 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3180 | PyObject * obj3 = 0 ; |
3181 | char *kwnames[] = { | |
3182 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3183 | }; | |
3184 | ||
994141e6 | 3185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3188 | { |
3189 | arg2 = wxString_in_helper(obj1); | |
3190 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3191 | temp2 = True; |
d14a1e28 | 3192 | } |
15afbcd0 RD |
3193 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3195 | if (obj3) { |
15afbcd0 RD |
3196 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3198 | } |
3199 | { | |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
4d5c3d91 | 3206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3207 | { |
3208 | if (temp2) | |
3209 | delete arg2; | |
3210 | } | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | { | |
3214 | if (temp2) | |
3215 | delete arg2; | |
3216 | } | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
3221 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject *resultobj; | |
3223 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3224 | wxString *arg2 = 0 ; | |
3225 | int arg3 ; | |
3226 | bool result; | |
e811c8ce | 3227 | bool temp2 = False ; |
d14a1e28 RD |
3228 | PyObject * obj0 = 0 ; |
3229 | PyObject * obj1 = 0 ; | |
994141e6 | 3230 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3231 | char *kwnames[] = { |
3232 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3233 | }; | |
3234 | ||
994141e6 | 3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3238 | { |
3239 | arg2 = wxString_in_helper(obj1); | |
3240 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3241 | temp2 = True; |
d14a1e28 | 3242 | } |
15afbcd0 RD |
3243 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3245 | { |
3246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3247 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3248 | ||
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
4d5c3d91 | 3252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3253 | { |
3254 | if (temp2) | |
3255 | delete arg2; | |
3256 | } | |
3257 | return resultobj; | |
3258 | fail: | |
3259 | { | |
3260 | if (temp2) | |
3261 | delete arg2; | |
3262 | } | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
3267 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject *resultobj; | |
3269 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3270 | wxIcon *arg2 = 0 ; | |
3271 | bool result; | |
3272 | PyObject * obj0 = 0 ; | |
3273 | PyObject * obj1 = 0 ; | |
3274 | char *kwnames[] = { | |
3275 | (char *) "self",(char *) "icon", NULL | |
3276 | }; | |
3277 | ||
3278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3282 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3283 | SWIG_fail; | |
d14a1e28 | 3284 | if (arg2 == NULL) { |
15afbcd0 RD |
3285 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3286 | SWIG_fail; | |
d14a1e28 RD |
3287 | } |
3288 | { | |
3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3290 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3291 | ||
3292 | wxPyEndAllowThreads(__tstate); | |
3293 | if (PyErr_Occurred()) SWIG_fail; | |
3294 | } | |
4d5c3d91 | 3295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3296 | return resultobj; |
3297 | fail: | |
3298 | return NULL; | |
3299 | } | |
3300 | ||
3301 | ||
3302 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3303 | PyObject *resultobj; | |
3304 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3305 | int arg2 ; | |
3306 | PyObject * obj0 = 0 ; | |
994141e6 | 3307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3308 | char *kwnames[] = { |
3309 | (char *) "self",(char *) "height", NULL | |
3310 | }; | |
3311 | ||
994141e6 | 3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3315 | arg2 = (int) SWIG_AsInt(obj1); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3317 | { |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | (arg1)->SetHeight(arg2); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | Py_INCREF(Py_None); resultobj = Py_None; | |
3325 | return resultobj; | |
3326 | fail: | |
3327 | return NULL; | |
3328 | } | |
3329 | ||
3330 | ||
3331 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject *resultobj; | |
3333 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3334 | int arg2 ; | |
3335 | PyObject * obj0 = 0 ; | |
994141e6 | 3336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3337 | char *kwnames[] = { |
3338 | (char *) "self",(char *) "width", NULL | |
3339 | }; | |
3340 | ||
994141e6 | 3341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3344 | arg2 = (int) SWIG_AsInt(obj1); | |
3345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3346 | { |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3348 | (arg1)->SetWidth(arg2); | |
3349 | ||
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
3353 | Py_INCREF(Py_None); resultobj = Py_None; | |
3354 | return resultobj; | |
3355 | fail: | |
3356 | return NULL; | |
3357 | } | |
3358 | ||
3359 | ||
3360 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject *resultobj; | |
3362 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3363 | int arg2 ; | |
3364 | PyObject * obj0 = 0 ; | |
994141e6 | 3365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3366 | char *kwnames[] = { |
3367 | (char *) "self",(char *) "depth", NULL | |
3368 | }; | |
3369 | ||
994141e6 | 3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3373 | arg2 = (int) SWIG_AsInt(obj1); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3375 | { |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | (arg1)->SetDepth(arg2); | |
3378 | ||
3379 | wxPyEndAllowThreads(__tstate); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | } | |
3382 | Py_INCREF(Py_None); resultobj = Py_None; | |
3383 | return resultobj; | |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
4276dc52 RD |
3389 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
3390 | PyObject *resultobj; | |
3391 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3392 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3393 | bool result; | |
3394 | PyObject * obj0 = 0 ; | |
3395 | PyObject * obj1 = 0 ; | |
3396 | char *kwnames[] = { | |
3397 | (char *) "self",(char *) "other", NULL | |
3398 | }; | |
3399 | ||
3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3405 | { | |
3406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3407 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3408 | ||
3409 | wxPyEndAllowThreads(__tstate); | |
3410 | if (PyErr_Occurred()) SWIG_fail; | |
3411 | } | |
3412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3413 | return resultobj; | |
3414 | fail: | |
3415 | return NULL; | |
3416 | } | |
3417 | ||
3418 | ||
3419 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3420 | PyObject *resultobj; | |
3421 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3422 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3423 | bool result; | |
3424 | PyObject * obj0 = 0 ; | |
3425 | PyObject * obj1 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "self",(char *) "other", NULL | |
3428 | }; | |
3429 | ||
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
d14a1e28 RD |
3449 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { |
3450 | PyObject *obj; | |
3451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3452 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3453 | Py_INCREF(obj); | |
3454 | return Py_BuildValue((char *)""); | |
3455 | } | |
3456 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3457 | PyObject *resultobj; | |
3458 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3459 | wxColour const &arg2_defvalue = wxNullColour ; |
3460 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3461 | wxMask *result; |
3462 | wxColour temp2 ; | |
3463 | PyObject * obj0 = 0 ; | |
3464 | PyObject * obj1 = 0 ; | |
3465 | char *kwnames[] = { | |
3466 | (char *) "bitmap",(char *) "colour", NULL | |
3467 | }; | |
3468 | ||
0482c494 | 3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3472 | SWIG_fail; | |
d14a1e28 | 3473 | if (arg1 == NULL) { |
15afbcd0 RD |
3474 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3475 | SWIG_fail; | |
d14a1e28 | 3476 | } |
0482c494 RD |
3477 | if (obj1) { |
3478 | { | |
3479 | arg2 = &temp2; | |
3480 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3481 | } | |
d14a1e28 RD |
3482 | } |
3483 | { | |
3484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0482c494 | 3485 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3486 | |
3487 | wxPyEndAllowThreads(__tstate); | |
3488 | if (PyErr_Occurred()) SWIG_fail; | |
3489 | } | |
15afbcd0 | 3490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3491 | return resultobj; |
3492 | fail: | |
3493 | return NULL; | |
3494 | } | |
3495 | ||
3496 | ||
3497 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3498 | PyObject *obj; | |
3499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3500 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3501 | Py_INCREF(obj); | |
3502 | return Py_BuildValue((char *)""); | |
3503 | } | |
3504 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3505 | PyObject *resultobj; | |
3506 | wxString *arg1 = 0 ; | |
f87da722 | 3507 | int arg2 ; |
d14a1e28 RD |
3508 | int arg3 = (int) -1 ; |
3509 | int arg4 = (int) -1 ; | |
3510 | wxIcon *result; | |
e811c8ce | 3511 | bool temp1 = False ; |
d14a1e28 | 3512 | PyObject * obj0 = 0 ; |
994141e6 RD |
3513 | PyObject * obj1 = 0 ; |
3514 | PyObject * obj2 = 0 ; | |
3515 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3516 | char *kwnames[] = { |
f87da722 | 3517 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3518 | }; |
3519 | ||
994141e6 | 3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3521 | { |
3522 | arg1 = wxString_in_helper(obj0); | |
3523 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3524 | temp1 = True; |
d14a1e28 | 3525 | } |
15afbcd0 RD |
3526 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3528 | if (obj2) { |
15afbcd0 RD |
3529 | arg3 = (int) SWIG_AsInt(obj2); |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3531 | } |
3532 | if (obj3) { | |
15afbcd0 RD |
3533 | arg4 = (int) SWIG_AsInt(obj3); |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3535 | } |
3536 | { | |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3541 | if (PyErr_Occurred()) SWIG_fail; |
3542 | } | |
15afbcd0 | 3543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3544 | { |
3545 | if (temp1) | |
3546 | delete arg1; | |
3547 | } | |
3548 | return resultobj; | |
3549 | fail: | |
3550 | { | |
3551 | if (temp1) | |
3552 | delete arg1; | |
3553 | } | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3561 | PyObject * obj0 = 0 ; | |
3562 | char *kwnames[] = { | |
3563 | (char *) "self", NULL | |
3564 | }; | |
3565 | ||
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3569 | { |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | delete arg1; | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | Py_INCREF(Py_None); resultobj = Py_None; | |
3577 | return resultobj; | |
3578 | fail: | |
3579 | return NULL; | |
3580 | } | |
3581 | ||
3582 | ||
3583 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject *resultobj; | |
3585 | wxIcon *result; | |
3586 | char *kwnames[] = { | |
3587 | NULL | |
3588 | }; | |
3589 | ||
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | result = (wxIcon *)new wxIcon(); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
15afbcd0 | 3598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3599 | return resultobj; |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxIconLocation *arg1 = 0 ; | |
3608 | wxIcon *result; | |
3609 | PyObject * obj0 = 0 ; | |
3610 | char *kwnames[] = { | |
3611 | (char *) "loc", NULL | |
3612 | }; | |
3613 | ||
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3617 | SWIG_fail; | |
d14a1e28 | 3618 | if (arg1 == NULL) { |
15afbcd0 RD |
3619 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3620 | SWIG_fail; | |
d14a1e28 RD |
3621 | } |
3622 | { | |
3623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3624 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3625 | ||
3626 | wxPyEndAllowThreads(__tstate); | |
3627 | if (PyErr_Occurred()) SWIG_fail; | |
3628 | } | |
15afbcd0 | 3629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3630 | return resultobj; |
3631 | fail: | |
3632 | return NULL; | |
3633 | } | |
3634 | ||
3635 | ||
3636 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3637 | PyObject *resultobj; | |
3638 | wxBitmap *arg1 = 0 ; | |
3639 | wxIcon *result; | |
3640 | PyObject * obj0 = 0 ; | |
3641 | char *kwnames[] = { | |
3642 | (char *) "bmp", NULL | |
3643 | }; | |
3644 | ||
3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3647 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3648 | SWIG_fail; | |
d14a1e28 | 3649 | if (arg1 == NULL) { |
15afbcd0 RD |
3650 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3651 | SWIG_fail; | |
d14a1e28 RD |
3652 | } |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
15afbcd0 | 3660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3661 | return resultobj; |
3662 | fail: | |
3663 | return NULL; | |
3664 | } | |
3665 | ||
3666 | ||
3667 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject *resultobj; | |
3669 | PyObject *arg1 = (PyObject *) 0 ; | |
3670 | wxIcon *result; | |
3671 | PyObject * obj0 = 0 ; | |
3672 | char *kwnames[] = { | |
3673 | (char *) "listOfStrings", NULL | |
3674 | }; | |
3675 | ||
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3677 | arg1 = obj0; | |
3678 | { | |
3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3680 | result = (wxIcon *)new_wxIcon(arg1); | |
3681 | ||
3682 | wxPyEndAllowThreads(__tstate); | |
3683 | if (PyErr_Occurred()) SWIG_fail; | |
3684 | } | |
15afbcd0 | 3685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3686 | return resultobj; |
3687 | fail: | |
3688 | return NULL; | |
3689 | } | |
3690 | ||
3691 | ||
3692 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject *resultobj; | |
3694 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3695 | wxString *arg2 = 0 ; | |
f87da722 | 3696 | int arg3 ; |
d14a1e28 | 3697 | bool result; |
e811c8ce | 3698 | bool temp2 = False ; |
d14a1e28 RD |
3699 | PyObject * obj0 = 0 ; |
3700 | PyObject * obj1 = 0 ; | |
994141e6 | 3701 | PyObject * obj2 = 0 ; |
d14a1e28 | 3702 | char *kwnames[] = { |
f87da722 | 3703 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3704 | }; |
3705 | ||
994141e6 | 3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3709 | { |
3710 | arg2 = wxString_in_helper(obj1); | |
3711 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3712 | temp2 = True; |
d14a1e28 | 3713 | } |
15afbcd0 RD |
3714 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3716 | { |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3718 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3719 | |
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
4d5c3d91 | 3723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3724 | { |
3725 | if (temp2) | |
3726 | delete arg2; | |
3727 | } | |
3728 | return resultobj; | |
3729 | fail: | |
3730 | { | |
3731 | if (temp2) | |
3732 | delete arg2; | |
3733 | } | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
3738 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3739 | PyObject *resultobj; | |
3740 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3741 | bool result; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "self", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3750 | { |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3752 | result = (bool)(arg1)->Ok(); | |
3753 | ||
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
4d5c3d91 | 3757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3758 | return resultobj; |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
3764 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject *resultobj; | |
3766 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3767 | int result; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "self", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3776 | { |
3777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3778 | result = (int)(arg1)->GetWidth(); | |
3779 | ||
3780 | wxPyEndAllowThreads(__tstate); | |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
3782 | } | |
15afbcd0 | 3783 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3784 | return resultobj; |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject *resultobj; | |
3792 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3793 | int result; | |
3794 | PyObject * obj0 = 0 ; | |
3795 | char *kwnames[] = { | |
3796 | (char *) "self", NULL | |
3797 | }; | |
3798 | ||
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3802 | { |
3803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3804 | result = (int)(arg1)->GetHeight(); | |
3805 | ||
3806 | wxPyEndAllowThreads(__tstate); | |
3807 | if (PyErr_Occurred()) SWIG_fail; | |
3808 | } | |
15afbcd0 | 3809 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3810 | return resultobj; |
3811 | fail: | |
3812 | return NULL; | |
3813 | } | |
3814 | ||
3815 | ||
3816 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3817 | PyObject *resultobj; | |
3818 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3819 | int result; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3828 | { |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | result = (int)(arg1)->GetDepth(); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
15afbcd0 | 3835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3836 | return resultobj; |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3843 | PyObject *resultobj; | |
3844 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3845 | int arg2 ; | |
3846 | PyObject * obj0 = 0 ; | |
994141e6 | 3847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3848 | char *kwnames[] = { |
3849 | (char *) "self",(char *) "w", NULL | |
3850 | }; | |
3851 | ||
994141e6 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3855 | arg2 = (int) SWIG_AsInt(obj1); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3857 | { |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3859 | (arg1)->SetWidth(arg2); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | Py_INCREF(Py_None); resultobj = Py_None; | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3874 | int arg2 ; | |
3875 | PyObject * obj0 = 0 ; | |
994141e6 | 3876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3877 | char *kwnames[] = { |
3878 | (char *) "self",(char *) "h", NULL | |
3879 | }; | |
3880 | ||
994141e6 | 3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3884 | arg2 = (int) SWIG_AsInt(obj1); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3886 | { |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | (arg1)->SetHeight(arg2); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | Py_INCREF(Py_None); resultobj = Py_None; | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3903 | int arg2 ; | |
3904 | PyObject * obj0 = 0 ; | |
994141e6 | 3905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3906 | char *kwnames[] = { |
3907 | (char *) "self",(char *) "d", NULL | |
3908 | }; | |
3909 | ||
994141e6 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | arg2 = (int) SWIG_AsInt(obj1); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3915 | { |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3917 | (arg1)->SetDepth(arg2); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | Py_INCREF(Py_None); resultobj = Py_None; | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | return NULL; | |
3926 | } | |
3927 | ||
3928 | ||
3929 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject *resultobj; | |
3931 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3932 | wxBitmap *arg2 = 0 ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | PyObject * obj1 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self",(char *) "bmp", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3943 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3944 | SWIG_fail; | |
d14a1e28 | 3945 | if (arg2 == NULL) { |
15afbcd0 RD |
3946 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3947 | SWIG_fail; | |
d14a1e28 RD |
3948 | } |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | Py_INCREF(Py_None); resultobj = Py_None; | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3964 | PyObject *obj; | |
3965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3966 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3967 | Py_INCREF(obj); | |
3968 | return Py_BuildValue((char *)""); | |
3969 | } | |
3970 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject *resultobj; | |
3972 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3973 | int arg2 = (int) 0 ; | |
3974 | wxIconLocation *result; | |
7eae615b | 3975 | bool temp1 = False ; |
d14a1e28 | 3976 | PyObject * obj0 = 0 ; |
994141e6 | 3977 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3978 | char *kwnames[] = { |
3979 | (char *) "filename",(char *) "num", NULL | |
3980 | }; | |
3981 | ||
994141e6 | 3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3983 | if (obj0) { |
7eae615b RD |
3984 | { |
3985 | arg1 = wxString_in_helper(obj0); | |
3986 | if (arg1 == NULL) SWIG_fail; | |
3987 | temp1 = True; | |
3988 | } | |
d14a1e28 | 3989 | } |
994141e6 | 3990 | if (obj1) { |
15afbcd0 RD |
3991 | arg2 = (int) SWIG_AsInt(obj1); |
3992 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3993 | } |
d14a1e28 RD |
3994 | { |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3996 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
15afbcd0 | 4001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
4002 | { |
4003 | if (temp1) | |
4004 | delete arg1; | |
4005 | } | |
d14a1e28 RD |
4006 | return resultobj; |
4007 | fail: | |
7eae615b RD |
4008 | { |
4009 | if (temp1) | |
4010 | delete arg1; | |
4011 | } | |
d14a1e28 RD |
4012 | return NULL; |
4013 | } | |
4014 | ||
4015 | ||
4016 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4017 | PyObject *resultobj; | |
4018 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4019 | PyObject * obj0 = 0 ; | |
4020 | char *kwnames[] = { | |
4021 | (char *) "self", NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4027 | { |
4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4029 | delete arg1; | |
4030 | ||
4031 | wxPyEndAllowThreads(__tstate); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | Py_INCREF(Py_None); resultobj = Py_None; | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | return NULL; | |
4038 | } | |
4039 | ||
4040 | ||
4041 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4042 | PyObject *resultobj; | |
4043 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4044 | bool result; | |
4045 | PyObject * obj0 = 0 ; | |
4046 | char *kwnames[] = { | |
4047 | (char *) "self", NULL | |
4048 | }; | |
4049 | ||
4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4053 | { |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4d5c3d91 | 4060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4061 | return resultobj; |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
4067 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject *resultobj; | |
4069 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4070 | wxString *arg2 = 0 ; | |
e811c8ce | 4071 | bool temp2 = False ; |
d14a1e28 RD |
4072 | PyObject * obj0 = 0 ; |
4073 | PyObject * obj1 = 0 ; | |
4074 | char *kwnames[] = { | |
4075 | (char *) "self",(char *) "filename", NULL | |
4076 | }; | |
4077 | ||
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4081 | { |
4082 | arg2 = wxString_in_helper(obj1); | |
4083 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4084 | temp2 = True; |
d14a1e28 RD |
4085 | } |
4086 | { | |
4087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4088 | (arg1)->SetFileName((wxString const &)*arg2); | |
4089 | ||
4090 | wxPyEndAllowThreads(__tstate); | |
4091 | if (PyErr_Occurred()) SWIG_fail; | |
4092 | } | |
4093 | Py_INCREF(Py_None); resultobj = Py_None; | |
4094 | { | |
4095 | if (temp2) | |
4096 | delete arg2; | |
4097 | } | |
4098 | return resultobj; | |
4099 | fail: | |
4100 | { | |
4101 | if (temp2) | |
4102 | delete arg2; | |
4103 | } | |
4104 | return NULL; | |
4105 | } | |
4106 | ||
4107 | ||
4108 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4109 | PyObject *resultobj; | |
4110 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4111 | wxString *result; | |
4112 | PyObject * obj0 = 0 ; | |
4113 | char *kwnames[] = { | |
4114 | (char *) "self", NULL | |
4115 | }; | |
4116 | ||
4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4120 | { |
4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4122 | { | |
4123 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4124 | result = (wxString *) &_result_ref; | |
4125 | } | |
4126 | ||
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
cc6dd355 RD |
4130 | { |
4131 | #if wxUSE_UNICODE | |
4132 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4133 | #else | |
4134 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4135 | #endif | |
4136 | } | |
d14a1e28 RD |
4137 | return resultobj; |
4138 | fail: | |
4139 | return NULL; | |
4140 | } | |
4141 | ||
4142 | ||
4143 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4144 | PyObject *resultobj; | |
4145 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4146 | int arg2 ; | |
4147 | PyObject * obj0 = 0 ; | |
994141e6 | 4148 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4149 | char *kwnames[] = { |
4150 | (char *) "self",(char *) "num", NULL | |
4151 | }; | |
4152 | ||
994141e6 | 4153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4156 | arg2 = (int) SWIG_AsInt(obj1); | |
4157 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4158 | { |
4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4160 | wxIconLocation_SetIndex(arg1,arg2); | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | Py_INCREF(Py_None); resultobj = Py_None; | |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
4172 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4175 | int result; | |
4176 | PyObject * obj0 = 0 ; | |
4177 | char *kwnames[] = { | |
4178 | (char *) "self", NULL | |
4179 | }; | |
4180 | ||
4181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4184 | { |
4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4186 | result = (int)wxIconLocation_GetIndex(arg1); | |
4187 | ||
4188 | wxPyEndAllowThreads(__tstate); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
15afbcd0 | 4191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4192 | return resultobj; |
4193 | fail: | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4199 | PyObject *obj; | |
4200 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4201 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4202 | Py_INCREF(obj); | |
4203 | return Py_BuildValue((char *)""); | |
4204 | } | |
4205 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4206 | PyObject *resultobj; | |
4207 | wxIconBundle *result; | |
4208 | char *kwnames[] = { | |
4209 | NULL | |
4210 | }; | |
4211 | ||
4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4213 | { | |
4214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4215 | result = (wxIconBundle *)new wxIconBundle(); | |
4216 | ||
4217 | wxPyEndAllowThreads(__tstate); | |
4218 | if (PyErr_Occurred()) SWIG_fail; | |
4219 | } | |
15afbcd0 | 4220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4221 | return resultobj; |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
4227 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4228 | PyObject *resultobj; | |
4229 | wxString *arg1 = 0 ; | |
4230 | long arg2 ; | |
4231 | wxIconBundle *result; | |
e811c8ce | 4232 | bool temp1 = False ; |
d14a1e28 | 4233 | PyObject * obj0 = 0 ; |
994141e6 | 4234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4235 | char *kwnames[] = { |
4236 | (char *) "file",(char *) "type", NULL | |
4237 | }; | |
4238 | ||
994141e6 | 4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4240 | { |
4241 | arg1 = wxString_in_helper(obj0); | |
4242 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4243 | temp1 = True; |
d14a1e28 | 4244 | } |
15afbcd0 RD |
4245 | arg2 = (long) SWIG_AsLong(obj1); |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4247 | { |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
15afbcd0 | 4254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4255 | { |
4256 | if (temp1) | |
4257 | delete arg1; | |
4258 | } | |
4259 | return resultobj; | |
4260 | fail: | |
4261 | { | |
4262 | if (temp1) | |
4263 | delete arg1; | |
4264 | } | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxIcon *arg1 = 0 ; | |
4272 | wxIconBundle *result; | |
4273 | PyObject * obj0 = 0 ; | |
4274 | char *kwnames[] = { | |
4275 | (char *) "icon", NULL | |
4276 | }; | |
4277 | ||
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4281 | SWIG_fail; | |
d14a1e28 | 4282 | if (arg1 == NULL) { |
15afbcd0 RD |
4283 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4284 | SWIG_fail; | |
d14a1e28 RD |
4285 | } |
4286 | { | |
4287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4288 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4289 | ||
4290 | wxPyEndAllowThreads(__tstate); | |
4291 | if (PyErr_Occurred()) SWIG_fail; | |
4292 | } | |
15afbcd0 | 4293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4294 | return resultobj; |
4295 | fail: | |
4296 | return NULL; | |
4297 | } | |
4298 | ||
4299 | ||
4300 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4301 | PyObject *resultobj; | |
4302 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4303 | PyObject * obj0 = 0 ; | |
4304 | char *kwnames[] = { | |
4305 | (char *) "self", NULL | |
4306 | }; | |
4307 | ||
4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4311 | { |
4312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4313 | delete arg1; | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | Py_INCREF(Py_None); resultobj = Py_None; | |
4319 | return resultobj; | |
4320 | fail: | |
4321 | return NULL; | |
4322 | } | |
4323 | ||
4324 | ||
4325 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4326 | PyObject *resultobj; | |
4327 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4328 | wxIcon *arg2 = 0 ; | |
4329 | PyObject * obj0 = 0 ; | |
4330 | PyObject * obj1 = 0 ; | |
4331 | char *kwnames[] = { | |
4332 | (char *) "self",(char *) "icon", NULL | |
4333 | }; | |
4334 | ||
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4339 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4340 | SWIG_fail; | |
d14a1e28 | 4341 | if (arg2 == NULL) { |
15afbcd0 RD |
4342 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4343 | SWIG_fail; | |
d14a1e28 RD |
4344 | } |
4345 | { | |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4347 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | Py_INCREF(Py_None); resultobj = Py_None; | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | return NULL; | |
4356 | } | |
4357 | ||
4358 | ||
4359 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4360 | PyObject *resultobj; | |
4361 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4362 | wxString *arg2 = 0 ; | |
4363 | long arg3 ; | |
e811c8ce | 4364 | bool temp2 = False ; |
d14a1e28 RD |
4365 | PyObject * obj0 = 0 ; |
4366 | PyObject * obj1 = 0 ; | |
994141e6 | 4367 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4368 | char *kwnames[] = { |
4369 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4370 | }; | |
4371 | ||
994141e6 | 4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4375 | { |
4376 | arg2 = wxString_in_helper(obj1); | |
4377 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4378 | temp2 = True; |
d14a1e28 | 4379 | } |
15afbcd0 RD |
4380 | arg3 = (long) SWIG_AsLong(obj2); |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4382 | { |
4383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4384 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4385 | ||
4386 | wxPyEndAllowThreads(__tstate); | |
4387 | if (PyErr_Occurred()) SWIG_fail; | |
4388 | } | |
4389 | Py_INCREF(Py_None); resultobj = Py_None; | |
4390 | { | |
4391 | if (temp2) | |
4392 | delete arg2; | |
4393 | } | |
4394 | return resultobj; | |
4395 | fail: | |
4396 | { | |
4397 | if (temp2) | |
4398 | delete arg2; | |
4399 | } | |
4400 | return NULL; | |
4401 | } | |
4402 | ||
4403 | ||
4404 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4405 | PyObject *resultobj; | |
4406 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4407 | wxSize *arg2 = 0 ; | |
4408 | wxIcon *result; | |
4409 | wxSize temp2 ; | |
4410 | PyObject * obj0 = 0 ; | |
4411 | PyObject * obj1 = 0 ; | |
4412 | char *kwnames[] = { | |
4413 | (char *) "self",(char *) "size", NULL | |
4414 | }; | |
4415 | ||
4416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4419 | { |
4420 | arg2 = &temp2; | |
4421 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4422 | } | |
4423 | { | |
4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4425 | { | |
4426 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4427 | result = (wxIcon *) &_result_ref; | |
4428 | } | |
4429 | ||
4430 | wxPyEndAllowThreads(__tstate); | |
4431 | if (PyErr_Occurred()) SWIG_fail; | |
4432 | } | |
4276dc52 RD |
4433 | { |
4434 | wxIcon* resultptr = new wxIcon(*result); | |
4435 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4436 | } | |
d14a1e28 RD |
4437 | return resultobj; |
4438 | fail: | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
4443 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4444 | PyObject *obj; | |
4445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4446 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4447 | Py_INCREF(obj); | |
4448 | return Py_BuildValue((char *)""); | |
4449 | } | |
4450 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject *resultobj; | |
4452 | wxString *arg1 = (wxString *) 0 ; | |
4453 | long arg2 ; | |
4454 | int arg3 = (int) 0 ; | |
4455 | int arg4 = (int) 0 ; | |
4456 | wxCursor *result; | |
7eae615b | 4457 | bool temp1 = False ; |
d14a1e28 | 4458 | PyObject * obj0 = 0 ; |
994141e6 RD |
4459 | PyObject * obj1 = 0 ; |
4460 | PyObject * obj2 = 0 ; | |
4461 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4462 | char *kwnames[] = { |
15afbcd0 | 4463 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4464 | }; |
4465 | ||
994141e6 | 4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4467 | { |
4468 | arg1 = wxString_in_helper(obj0); | |
4469 | if (arg1 == NULL) SWIG_fail; | |
4470 | temp1 = True; | |
4471 | } | |
15afbcd0 RD |
4472 | arg2 = (long) SWIG_AsLong(obj1); |
4473 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4474 | if (obj2) { |
15afbcd0 RD |
4475 | arg3 = (int) SWIG_AsInt(obj2); |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4477 | } |
4478 | if (obj3) { | |
15afbcd0 RD |
4479 | arg4 = (int) SWIG_AsInt(obj3); |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4481 | } |
d14a1e28 RD |
4482 | { |
4483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4484 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4485 | ||
4486 | wxPyEndAllowThreads(__tstate); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
15afbcd0 | 4489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
7eae615b RD |
4490 | { |
4491 | if (temp1) | |
4492 | delete arg1; | |
4493 | } | |
d14a1e28 RD |
4494 | return resultobj; |
4495 | fail: | |
7eae615b RD |
4496 | { |
4497 | if (temp1) | |
4498 | delete arg1; | |
4499 | } | |
d14a1e28 RD |
4500 | return NULL; |
4501 | } | |
4502 | ||
4503 | ||
4504 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject *resultobj; | |
4506 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4507 | PyObject * obj0 = 0 ; | |
4508 | char *kwnames[] = { | |
4509 | (char *) "self", NULL | |
4510 | }; | |
4511 | ||
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4515 | { |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | delete arg1; | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | Py_INCREF(Py_None); resultobj = Py_None; | |
4523 | return resultobj; | |
4524 | fail: | |
4525 | return NULL; | |
4526 | } | |
4527 | ||
4528 | ||
4529 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4530 | PyObject *resultobj; | |
4531 | int arg1 ; | |
4532 | wxCursor *result; | |
994141e6 | 4533 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4534 | char *kwnames[] = { |
4535 | (char *) "id", NULL | |
4536 | }; | |
4537 | ||
994141e6 | 4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4539 | arg1 = (int) SWIG_AsInt(obj0); |
4540 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4541 | { |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4543 | result = (wxCursor *)new wxCursor(arg1); | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
15afbcd0 | 4548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4549 | return resultobj; |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject *resultobj; | |
4557 | wxImage *arg1 = 0 ; | |
4558 | wxCursor *result; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | char *kwnames[] = { | |
4561 | (char *) "image", NULL | |
4562 | }; | |
4563 | ||
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4567 | SWIG_fail; | |
d14a1e28 | 4568 | if (arg1 == NULL) { |
15afbcd0 RD |
4569 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4570 | SWIG_fail; | |
d14a1e28 RD |
4571 | } |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
15afbcd0 | 4579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4580 | return resultobj; |
4581 | fail: | |
4582 | return NULL; | |
4583 | } | |
4584 | ||
4585 | ||
15afbcd0 | 4586 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4587 | PyObject *resultobj; |
4588 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4589 | bool result; | |
4590 | PyObject * obj0 = 0 ; | |
4591 | char *kwnames[] = { | |
4592 | (char *) "self", NULL | |
4593 | }; | |
4594 | ||
4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4598 | { |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | result = (bool)(arg1)->Ok(); | |
4601 | ||
4602 | wxPyEndAllowThreads(__tstate); | |
4603 | if (PyErr_Occurred()) SWIG_fail; | |
4604 | } | |
4d5c3d91 | 4605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4606 | return resultobj; |
4607 | fail: | |
4608 | return NULL; | |
4609 | } | |
4610 | ||
4611 | ||
4612 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4613 | PyObject *obj; | |
4614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4615 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4616 | Py_INCREF(obj); | |
4617 | return Py_BuildValue((char *)""); | |
4618 | } | |
4619 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
e811c8ce RD |
4621 | int arg1 = (int) 0 ; |
4622 | int arg2 = (int) 0 ; | |
4623 | int arg3 = (int) 0 ; | |
4624 | int arg4 = (int) 0 ; | |
d14a1e28 | 4625 | wxRegion *result; |
994141e6 RD |
4626 | PyObject * obj0 = 0 ; |
4627 | PyObject * obj1 = 0 ; | |
4628 | PyObject * obj2 = 0 ; | |
4629 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4630 | char *kwnames[] = { |
4631 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4632 | }; | |
4633 | ||
994141e6 RD |
4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4635 | if (obj0) { | |
15afbcd0 RD |
4636 | arg1 = (int) SWIG_AsInt(obj0); |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4638 | } |
4639 | if (obj1) { | |
15afbcd0 RD |
4640 | arg2 = (int) SWIG_AsInt(obj1); |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4642 | } |
4643 | if (obj2) { | |
15afbcd0 RD |
4644 | arg3 = (int) SWIG_AsInt(obj2); |
4645 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4646 | } |
4647 | if (obj3) { | |
15afbcd0 RD |
4648 | arg4 = (int) SWIG_AsInt(obj3); |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4650 | } |
d14a1e28 RD |
4651 | { |
4652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4653 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4654 | ||
4655 | wxPyEndAllowThreads(__tstate); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
15afbcd0 | 4658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4659 | return resultobj; |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject *resultobj; | |
4667 | wxBitmap *arg1 = 0 ; | |
4668 | wxColour const &arg2_defvalue = wxNullColour ; | |
4669 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4670 | int arg3 = (int) 0 ; | |
4671 | wxRegion *result; | |
4672 | wxColour temp2 ; | |
4673 | PyObject * obj0 = 0 ; | |
4674 | PyObject * obj1 = 0 ; | |
994141e6 | 4675 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4676 | char *kwnames[] = { |
4677 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4678 | }; | |
4679 | ||
994141e6 | 4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4683 | SWIG_fail; | |
d14a1e28 | 4684 | if (arg1 == NULL) { |
15afbcd0 RD |
4685 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4686 | SWIG_fail; | |
d14a1e28 RD |
4687 | } |
4688 | if (obj1) { | |
4689 | { | |
4690 | arg2 = &temp2; | |
4691 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4692 | } | |
4693 | } | |
994141e6 | 4694 | if (obj2) { |
15afbcd0 RD |
4695 | arg3 = (int) SWIG_AsInt(obj2); |
4696 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4697 | } |
d14a1e28 RD |
4698 | { |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
15afbcd0 | 4705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4706 | return resultobj; |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
4712 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4713 | PyObject *resultobj; | |
4714 | int arg1 ; | |
4715 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4716 | int arg3 = (int) wxWINDING_RULE ; | |
4717 | wxRegion *result; | |
4718 | PyObject * obj0 = 0 ; | |
994141e6 | 4719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4720 | char *kwnames[] = { |
4721 | (char *) "points",(char *) "fillStyle", NULL | |
4722 | }; | |
4723 | ||
994141e6 | 4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4725 | { |
4726 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4727 | if (arg2 == NULL) SWIG_fail; | |
4728 | } | |
994141e6 | 4729 | if (obj1) { |
15afbcd0 RD |
4730 | arg3 = (int) SWIG_AsInt(obj1); |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4732 | } |
d14a1e28 RD |
4733 | { |
4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4735 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4736 | ||
4737 | wxPyEndAllowThreads(__tstate); | |
4738 | if (PyErr_Occurred()) SWIG_fail; | |
4739 | } | |
15afbcd0 | 4740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4741 | { |
4742 | if (arg2) delete [] arg2; | |
4743 | } | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | { | |
4747 | if (arg2) delete [] arg2; | |
4748 | } | |
4749 | return NULL; | |
4750 | } | |
4751 | ||
4752 | ||
4753 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4754 | PyObject *resultobj; | |
4755 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | char *kwnames[] = { | |
4758 | (char *) "self", NULL | |
4759 | }; | |
4760 | ||
4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4764 | { |
4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4766 | delete arg1; | |
4767 | ||
4768 | wxPyEndAllowThreads(__tstate); | |
4769 | if (PyErr_Occurred()) SWIG_fail; | |
4770 | } | |
4771 | Py_INCREF(Py_None); resultobj = Py_None; | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
4778 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4779 | PyObject *resultobj; | |
4780 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4781 | PyObject * obj0 = 0 ; | |
4782 | char *kwnames[] = { | |
4783 | (char *) "self", NULL | |
4784 | }; | |
4785 | ||
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4789 | { |
4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4791 | (arg1)->Clear(); | |
4792 | ||
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) SWIG_fail; | |
4795 | } | |
4796 | Py_INCREF(Py_None); resultobj = Py_None; | |
4797 | return resultobj; | |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
4803 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4804 | PyObject *resultobj; | |
4805 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4806 | int arg2 ; |
4807 | int arg3 ; | |
d14a1e28 RD |
4808 | bool result; |
4809 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4810 | PyObject * obj1 = 0 ; |
4811 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4812 | char *kwnames[] = { |
4813 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4814 | }; | |
4815 | ||
994141e6 | 4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4819 | arg2 = (int) SWIG_AsInt(obj1); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | arg3 = (int) SWIG_AsInt(obj2); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4823 | { |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
4829 | } | |
4d5c3d91 | 4830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4831 | return resultobj; |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
4837 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4838 | PyObject *resultobj; | |
4839 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4840 | int arg2 ; |
4841 | int arg3 ; | |
d14a1e28 RD |
4842 | int result; |
4843 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4844 | PyObject * obj1 = 0 ; |
4845 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4846 | char *kwnames[] = { |
4847 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4848 | }; | |
4849 | ||
994141e6 | 4850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4853 | arg2 = (int) SWIG_AsInt(obj1); | |
4854 | if (PyErr_Occurred()) SWIG_fail; | |
4855 | arg3 = (int) SWIG_AsInt(obj2); | |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4857 | { |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | result = (int)(arg1)->Contains(arg2,arg3); | |
4860 | ||
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
15afbcd0 | 4864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4865 | return resultobj; |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
4871 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject *resultobj; | |
4873 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4874 | wxPoint *arg2 = 0 ; | |
4875 | int result; | |
4876 | wxPoint temp2 ; | |
4877 | PyObject * obj0 = 0 ; | |
4878 | PyObject * obj1 = 0 ; | |
4879 | char *kwnames[] = { | |
4880 | (char *) "self",(char *) "pt", NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4886 | { |
4887 | arg2 = &temp2; | |
4888 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4889 | } | |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
15afbcd0 | 4897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4898 | return resultobj; |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
4904 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4905 | PyObject *resultobj; | |
4906 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4907 | wxRect *arg2 = 0 ; | |
4908 | int result; | |
4909 | wxRect temp2 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | PyObject * obj1 = 0 ; | |
4912 | char *kwnames[] = { | |
4913 | (char *) "self",(char *) "rect", NULL | |
4914 | }; | |
4915 | ||
4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4919 | { |
4920 | arg2 = &temp2; | |
4921 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4922 | } | |
4923 | { | |
4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4925 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4926 | ||
4927 | wxPyEndAllowThreads(__tstate); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
15afbcd0 | 4930 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4931 | return resultobj; |
4932 | fail: | |
4933 | return NULL; | |
4934 | } | |
4935 | ||
4936 | ||
4937 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4938 | PyObject *resultobj; | |
4939 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4940 | int arg2 ; |
4941 | int arg3 ; | |
4942 | int arg4 ; | |
4943 | int arg5 ; | |
d14a1e28 RD |
4944 | int result; |
4945 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4946 | PyObject * obj1 = 0 ; |
4947 | PyObject * obj2 = 0 ; | |
4948 | PyObject * obj3 = 0 ; | |
4949 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4950 | char *kwnames[] = { |
4951 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4952 | }; | |
4953 | ||
994141e6 | 4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4957 | arg2 = (int) SWIG_AsInt(obj1); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | arg3 = (int) SWIG_AsInt(obj2); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | arg4 = (int) SWIG_AsInt(obj3); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | arg5 = (int) SWIG_AsInt(obj4); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4965 | { |
4966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4967 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4968 | ||
4969 | wxPyEndAllowThreads(__tstate); | |
4970 | if (PyErr_Occurred()) SWIG_fail; | |
4971 | } | |
15afbcd0 | 4972 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4973 | return resultobj; |
4974 | fail: | |
4975 | return NULL; | |
4976 | } | |
4977 | ||
4978 | ||
4979 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4980 | PyObject *resultobj; | |
4981 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4982 | wxRect result; | |
4983 | PyObject * obj0 = 0 ; | |
4984 | char *kwnames[] = { | |
4985 | (char *) "self", NULL | |
4986 | }; | |
4987 | ||
4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4991 | { |
4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4993 | result = (arg1)->GetBox(); | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
4998 | { | |
4999 | wxRect * resultptr; | |
5000 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 5001 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5002 | } |
5003 | return resultobj; | |
5004 | fail: | |
5005 | return NULL; | |
5006 | } | |
5007 | ||
5008 | ||
5009 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5010 | PyObject *resultobj; | |
5011 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5012 | int arg2 ; |
5013 | int arg3 ; | |
5014 | int arg4 ; | |
5015 | int arg5 ; | |
d14a1e28 RD |
5016 | bool result; |
5017 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5018 | PyObject * obj1 = 0 ; |
5019 | PyObject * obj2 = 0 ; | |
5020 | PyObject * obj3 = 0 ; | |
5021 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5022 | char *kwnames[] = { |
5023 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5024 | }; | |
5025 | ||
994141e6 | 5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5029 | arg2 = (int) SWIG_AsInt(obj1); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | arg3 = (int) SWIG_AsInt(obj2); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | arg4 = (int) SWIG_AsInt(obj3); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | arg5 = (int) SWIG_AsInt(obj4); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5037 | { |
5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5039 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5040 | ||
5041 | wxPyEndAllowThreads(__tstate); | |
5042 | if (PyErr_Occurred()) SWIG_fail; | |
5043 | } | |
4d5c3d91 | 5044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5045 | return resultobj; |
5046 | fail: | |
5047 | return NULL; | |
5048 | } | |
5049 | ||
5050 | ||
5051 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5052 | PyObject *resultobj; | |
5053 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5054 | wxRect *arg2 = 0 ; | |
5055 | bool result; | |
5056 | wxRect temp2 ; | |
5057 | PyObject * obj0 = 0 ; | |
5058 | PyObject * obj1 = 0 ; | |
5059 | char *kwnames[] = { | |
5060 | (char *) "self",(char *) "rect", NULL | |
5061 | }; | |
5062 | ||
5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5066 | { |
5067 | arg2 = &temp2; | |
5068 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5069 | } | |
5070 | { | |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
4d5c3d91 | 5077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5078 | return resultobj; |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5085 | PyObject *resultobj; | |
5086 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5087 | wxRegion *arg2 = 0 ; | |
5088 | bool result; | |
5089 | PyObject * obj0 = 0 ; | |
5090 | PyObject * obj1 = 0 ; | |
5091 | char *kwnames[] = { | |
5092 | (char *) "self",(char *) "region", NULL | |
5093 | }; | |
5094 | ||
5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5098 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5099 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5100 | SWIG_fail; | |
d14a1e28 | 5101 | if (arg2 == NULL) { |
15afbcd0 RD |
5102 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5103 | SWIG_fail; | |
d14a1e28 RD |
5104 | } |
5105 | { | |
5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5107 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5108 | ||
5109 | wxPyEndAllowThreads(__tstate); | |
5110 | if (PyErr_Occurred()) SWIG_fail; | |
5111 | } | |
4d5c3d91 | 5112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5113 | return resultobj; |
5114 | fail: | |
5115 | return NULL; | |
5116 | } | |
5117 | ||
5118 | ||
5119 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5120 | PyObject *resultobj; | |
5121 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5122 | bool result; | |
5123 | PyObject * obj0 = 0 ; | |
5124 | char *kwnames[] = { | |
5125 | (char *) "self", NULL | |
5126 | }; | |
5127 | ||
5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5131 | { |
5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5133 | result = (bool)(arg1)->IsEmpty(); | |
5134 | ||
5135 | wxPyEndAllowThreads(__tstate); | |
5136 | if (PyErr_Occurred()) SWIG_fail; | |
5137 | } | |
4d5c3d91 | 5138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5139 | return resultobj; |
5140 | fail: | |
5141 | return NULL; | |
5142 | } | |
5143 | ||
5144 | ||
5145 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5146 | PyObject *resultobj; | |
5147 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5148 | int arg2 ; |
5149 | int arg3 ; | |
5150 | int arg4 ; | |
5151 | int arg5 ; | |
d14a1e28 RD |
5152 | bool result; |
5153 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5154 | PyObject * obj1 = 0 ; |
5155 | PyObject * obj2 = 0 ; | |
5156 | PyObject * obj3 = 0 ; | |
5157 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5158 | char *kwnames[] = { |
5159 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5160 | }; | |
5161 | ||
994141e6 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5165 | arg2 = (int) SWIG_AsInt(obj1); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | arg3 = (int) SWIG_AsInt(obj2); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | arg4 = (int) SWIG_AsInt(obj3); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | arg5 = (int) SWIG_AsInt(obj4); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5173 | { |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
4d5c3d91 | 5180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5181 | return resultobj; |
5182 | fail: | |
5183 | return NULL; | |
5184 | } | |
5185 | ||
5186 | ||
5187 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject *resultobj; | |
5189 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5190 | wxRect *arg2 = 0 ; | |
5191 | bool result; | |
5192 | wxRect temp2 ; | |
5193 | PyObject * obj0 = 0 ; | |
5194 | PyObject * obj1 = 0 ; | |
5195 | char *kwnames[] = { | |
5196 | (char *) "self",(char *) "rect", NULL | |
5197 | }; | |
5198 | ||
5199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5202 | { |
5203 | arg2 = &temp2; | |
5204 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5205 | } | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
4d5c3d91 | 5213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5214 | return resultobj; |
5215 | fail: | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
5220 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5221 | PyObject *resultobj; | |
5222 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5223 | wxRegion *arg2 = 0 ; | |
5224 | bool result; | |
5225 | PyObject * obj0 = 0 ; | |
5226 | PyObject * obj1 = 0 ; | |
5227 | char *kwnames[] = { | |
5228 | (char *) "self",(char *) "region", NULL | |
5229 | }; | |
5230 | ||
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5235 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5236 | SWIG_fail; | |
d14a1e28 | 5237 | if (arg2 == NULL) { |
15afbcd0 RD |
5238 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5239 | SWIG_fail; | |
d14a1e28 RD |
5240 | } |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
4d5c3d91 | 5248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5249 | return resultobj; |
5250 | fail: | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj; | |
5257 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5258 | int arg2 ; |
5259 | int arg3 ; | |
5260 | int arg4 ; | |
5261 | int arg5 ; | |
d14a1e28 RD |
5262 | bool result; |
5263 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5264 | PyObject * obj1 = 0 ; |
5265 | PyObject * obj2 = 0 ; | |
5266 | PyObject * obj3 = 0 ; | |
5267 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5268 | char *kwnames[] = { |
5269 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5270 | }; | |
5271 | ||
994141e6 | 5272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5275 | arg2 = (int) SWIG_AsInt(obj1); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | arg3 = (int) SWIG_AsInt(obj2); | |
5278 | if (PyErr_Occurred()) SWIG_fail; | |
5279 | arg4 = (int) SWIG_AsInt(obj3); | |
5280 | if (PyErr_Occurred()) SWIG_fail; | |
5281 | arg5 = (int) SWIG_AsInt(obj4); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5283 | { |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5285 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5286 | ||
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
4d5c3d91 | 5290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5291 | return resultobj; |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
5297 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject *resultobj; | |
5299 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5300 | wxRect *arg2 = 0 ; | |
5301 | bool result; | |
5302 | wxRect temp2 ; | |
5303 | PyObject * obj0 = 0 ; | |
5304 | PyObject * obj1 = 0 ; | |
5305 | char *kwnames[] = { | |
5306 | (char *) "self",(char *) "rect", NULL | |
5307 | }; | |
5308 | ||
5309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5312 | { |
5313 | arg2 = &temp2; | |
5314 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5315 | } | |
5316 | { | |
5317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5318 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5319 | ||
5320 | wxPyEndAllowThreads(__tstate); | |
5321 | if (PyErr_Occurred()) SWIG_fail; | |
5322 | } | |
4d5c3d91 | 5323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5324 | return resultobj; |
5325 | fail: | |
5326 | return NULL; | |
5327 | } | |
5328 | ||
5329 | ||
5330 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5331 | PyObject *resultobj; | |
5332 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5333 | wxRegion *arg2 = 0 ; | |
5334 | bool result; | |
5335 | PyObject * obj0 = 0 ; | |
5336 | PyObject * obj1 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self",(char *) "region", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5346 | SWIG_fail; | |
d14a1e28 | 5347 | if (arg2 == NULL) { |
15afbcd0 RD |
5348 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5349 | SWIG_fail; | |
d14a1e28 RD |
5350 | } |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
4d5c3d91 | 5358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5359 | return resultobj; |
5360 | fail: | |
5361 | return NULL; | |
5362 | } | |
5363 | ||
5364 | ||
5365 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5368 | int arg2 ; |
5369 | int arg3 ; | |
5370 | int arg4 ; | |
5371 | int arg5 ; | |
d14a1e28 RD |
5372 | bool result; |
5373 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5374 | PyObject * obj1 = 0 ; |
5375 | PyObject * obj2 = 0 ; | |
5376 | PyObject * obj3 = 0 ; | |
5377 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5378 | char *kwnames[] = { |
5379 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5380 | }; | |
5381 | ||
994141e6 | 5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5385 | arg2 = (int) SWIG_AsInt(obj1); | |
5386 | if (PyErr_Occurred()) SWIG_fail; | |
5387 | arg3 = (int) SWIG_AsInt(obj2); | |
5388 | if (PyErr_Occurred()) SWIG_fail; | |
5389 | arg4 = (int) SWIG_AsInt(obj3); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | arg5 = (int) SWIG_AsInt(obj4); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5393 | { |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
4d5c3d91 | 5400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5401 | return resultobj; |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
5407 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject *resultobj; | |
5409 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5410 | wxRect *arg2 = 0 ; | |
5411 | bool result; | |
5412 | wxRect temp2 ; | |
5413 | PyObject * obj0 = 0 ; | |
5414 | PyObject * obj1 = 0 ; | |
5415 | char *kwnames[] = { | |
5416 | (char *) "self",(char *) "rect", NULL | |
5417 | }; | |
5418 | ||
5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5422 | { |
5423 | arg2 = &temp2; | |
5424 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5425 | } | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5429 | ||
5430 | wxPyEndAllowThreads(__tstate); | |
5431 | if (PyErr_Occurred()) SWIG_fail; | |
5432 | } | |
4d5c3d91 | 5433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5434 | return resultobj; |
5435 | fail: | |
5436 | return NULL; | |
5437 | } | |
5438 | ||
5439 | ||
5440 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject *resultobj; | |
5442 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5443 | wxRegion *arg2 = 0 ; | |
5444 | bool result; | |
5445 | PyObject * obj0 = 0 ; | |
5446 | PyObject * obj1 = 0 ; | |
5447 | char *kwnames[] = { | |
5448 | (char *) "self",(char *) "region", NULL | |
5449 | }; | |
5450 | ||
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5455 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5456 | SWIG_fail; | |
d14a1e28 | 5457 | if (arg2 == NULL) { |
15afbcd0 RD |
5458 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5459 | SWIG_fail; | |
d14a1e28 RD |
5460 | } |
5461 | { | |
5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5463 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5464 | ||
5465 | wxPyEndAllowThreads(__tstate); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
4d5c3d91 | 5468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5469 | return resultobj; |
5470 | fail: | |
5471 | return NULL; | |
5472 | } | |
5473 | ||
5474 | ||
5475 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5476 | PyObject *resultobj; | |
5477 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5478 | SwigValueWrapper< wxBitmap > result; | |
5479 | PyObject * obj0 = 0 ; | |
5480 | char *kwnames[] = { | |
5481 | (char *) "self", NULL | |
5482 | }; | |
5483 | ||
5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5487 | { |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | result = (arg1)->ConvertToBitmap(); | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
5494 | { | |
5495 | wxBitmap * resultptr; | |
5496 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5498 | } |
5499 | return resultobj; | |
5500 | fail: | |
5501 | return NULL; | |
5502 | } | |
5503 | ||
5504 | ||
5505 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject *resultobj; | |
5507 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5508 | wxBitmap *arg2 = 0 ; | |
5509 | wxColour const &arg3_defvalue = wxNullColour ; | |
5510 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5511 | int arg4 = (int) 0 ; | |
5512 | bool result; | |
5513 | wxColour temp3 ; | |
5514 | PyObject * obj0 = 0 ; | |
5515 | PyObject * obj1 = 0 ; | |
5516 | PyObject * obj2 = 0 ; | |
994141e6 | 5517 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5518 | char *kwnames[] = { |
5519 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5520 | }; | |
5521 | ||
994141e6 | 5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5527 | SWIG_fail; | |
d14a1e28 | 5528 | if (arg2 == NULL) { |
15afbcd0 RD |
5529 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5530 | SWIG_fail; | |
d14a1e28 RD |
5531 | } |
5532 | if (obj2) { | |
5533 | { | |
5534 | arg3 = &temp3; | |
5535 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5536 | } | |
5537 | } | |
994141e6 | 5538 | if (obj3) { |
15afbcd0 RD |
5539 | arg4 = (int) SWIG_AsInt(obj3); |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5541 | } |
d14a1e28 RD |
5542 | { |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
4d5c3d91 | 5549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5550 | return resultobj; |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
5556 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5557 | PyObject *obj; | |
5558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5559 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5560 | Py_INCREF(obj); | |
5561 | return Py_BuildValue((char *)""); | |
5562 | } | |
5563 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxRegion *arg1 = 0 ; | |
5566 | wxRegionIterator *result; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "region", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5575 | SWIG_fail; | |
d14a1e28 | 5576 | if (arg1 == NULL) { |
15afbcd0 RD |
5577 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5578 | SWIG_fail; | |
d14a1e28 RD |
5579 | } |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
15afbcd0 | 5587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
5588 | return resultobj; |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
5594 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | char *kwnames[] = { | |
5599 | (char *) "self", NULL | |
5600 | }; | |
5601 | ||
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5605 | { |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | delete arg1; | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | Py_INCREF(Py_None); resultobj = Py_None; | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5622 | int result; |
d14a1e28 RD |
5623 | PyObject * obj0 = 0 ; |
5624 | char *kwnames[] = { | |
5625 | (char *) "self", NULL | |
5626 | }; | |
5627 | ||
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5631 | { |
5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5633 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5634 | |
5635 | wxPyEndAllowThreads(__tstate); | |
5636 | if (PyErr_Occurred()) SWIG_fail; | |
5637 | } | |
15afbcd0 | 5638 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5639 | return resultobj; |
5640 | fail: | |
5641 | return NULL; | |
5642 | } | |
5643 | ||
5644 | ||
5645 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5646 | PyObject *resultobj; | |
5647 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5648 | int result; |
d14a1e28 RD |
5649 | PyObject * obj0 = 0 ; |
5650 | char *kwnames[] = { | |
5651 | (char *) "self", NULL | |
5652 | }; | |
5653 | ||
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5659 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5660 | |
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
15afbcd0 | 5664 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5665 | return resultobj; |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject *resultobj; | |
5673 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5674 | int result; |
d14a1e28 RD |
5675 | PyObject * obj0 = 0 ; |
5676 | char *kwnames[] = { | |
5677 | (char *) "self", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5683 | { |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5685 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5686 | |
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
15afbcd0 | 5690 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5691 | return resultobj; |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5700 | int result; |
d14a1e28 RD |
5701 | PyObject * obj0 = 0 ; |
5702 | char *kwnames[] = { | |
5703 | (char *) "self", NULL | |
5704 | }; | |
5705 | ||
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5709 | { |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5711 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5712 | |
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
15afbcd0 | 5716 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5717 | return resultobj; |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
5723 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5724 | PyObject *resultobj; | |
5725 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5726 | int result; |
d14a1e28 RD |
5727 | PyObject * obj0 = 0 ; |
5728 | char *kwnames[] = { | |
5729 | (char *) "self", NULL | |
5730 | }; | |
5731 | ||
5732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5735 | { |
5736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5737 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5738 | |
5739 | wxPyEndAllowThreads(__tstate); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
15afbcd0 | 5742 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5743 | return resultobj; |
5744 | fail: | |
5745 | return NULL; | |
5746 | } | |
5747 | ||
5748 | ||
5749 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5750 | PyObject *resultobj; | |
5751 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5752 | int result; |
d14a1e28 RD |
5753 | PyObject * obj0 = 0 ; |
5754 | char *kwnames[] = { | |
5755 | (char *) "self", NULL | |
5756 | }; | |
5757 | ||
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5761 | { |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5763 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5764 | |
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
15afbcd0 | 5768 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5769 | return resultobj; |
5770 | fail: | |
5771 | return NULL; | |
5772 | } | |
5773 | ||
5774 | ||
5775 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject *resultobj; | |
5777 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5778 | wxRect result; | |
5779 | PyObject * obj0 = 0 ; | |
5780 | char *kwnames[] = { | |
5781 | (char *) "self", NULL | |
5782 | }; | |
5783 | ||
5784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5787 | { |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | result = (arg1)->GetRect(); | |
5790 | ||
5791 | wxPyEndAllowThreads(__tstate); | |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
5793 | } | |
5794 | { | |
5795 | wxRect * resultptr; | |
5796 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 5797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5798 | } |
5799 | return resultobj; | |
5800 | fail: | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
5805 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj; | |
5807 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5808 | bool result; | |
5809 | PyObject * obj0 = 0 ; | |
5810 | char *kwnames[] = { | |
5811 | (char *) "self", NULL | |
5812 | }; | |
5813 | ||
5814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5817 | { |
5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5819 | result = (bool)(arg1)->HaveRects(); | |
5820 | ||
5821 | wxPyEndAllowThreads(__tstate); | |
5822 | if (PyErr_Occurred()) SWIG_fail; | |
5823 | } | |
4d5c3d91 | 5824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5825 | return resultobj; |
5826 | fail: | |
5827 | return NULL; | |
5828 | } | |
5829 | ||
5830 | ||
5831 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5832 | PyObject *resultobj; | |
5833 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5834 | PyObject * obj0 = 0 ; | |
5835 | char *kwnames[] = { | |
5836 | (char *) "self", NULL | |
5837 | }; | |
5838 | ||
5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5842 | { |
5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5844 | (arg1)->Reset(); | |
5845 | ||
5846 | wxPyEndAllowThreads(__tstate); | |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
5848 | } | |
5849 | Py_INCREF(Py_None); resultobj = Py_None; | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj; | |
5858 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5859 | PyObject * obj0 = 0 ; | |
5860 | char *kwnames[] = { | |
5861 | (char *) "self", NULL | |
5862 | }; | |
5863 | ||
5864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5867 | { |
5868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5869 | wxRegionIterator_Next(arg1); | |
5870 | ||
5871 | wxPyEndAllowThreads(__tstate); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | } | |
5874 | Py_INCREF(Py_None); resultobj = Py_None; | |
5875 | return resultobj; | |
5876 | fail: | |
5877 | return NULL; | |
5878 | } | |
5879 | ||
5880 | ||
5881 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject *resultobj; | |
5883 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5884 | bool result; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5893 | { |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
4d5c3d91 | 5900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5901 | return resultobj; |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
5907 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5908 | PyObject *obj; | |
5909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5910 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5911 | Py_INCREF(obj); | |
5912 | return Py_BuildValue((char *)""); | |
5913 | } | |
5914 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5915 | PyObject *resultobj; | |
5916 | wxNativeFontInfo *result; | |
5917 | char *kwnames[] = { | |
5918 | NULL | |
5919 | }; | |
5920 | ||
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5922 | { | |
5923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5924 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5925 | ||
5926 | wxPyEndAllowThreads(__tstate); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
15afbcd0 | 5929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
5930 | return resultobj; |
5931 | fail: | |
5932 | return NULL; | |
5933 | } | |
5934 | ||
5935 | ||
5936 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject *resultobj; | |
5938 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "self", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5947 | { |
5948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5949 | delete arg1; | |
5950 | ||
5951 | wxPyEndAllowThreads(__tstate); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | } | |
5954 | Py_INCREF(Py_None); resultobj = Py_None; | |
5955 | return resultobj; | |
5956 | fail: | |
5957 | return NULL; | |
5958 | } | |
5959 | ||
5960 | ||
5961 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5962 | PyObject *resultobj; | |
5963 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5964 | PyObject * obj0 = 0 ; | |
5965 | char *kwnames[] = { | |
5966 | (char *) "self", NULL | |
5967 | }; | |
5968 | ||
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5972 | { |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | (arg1)->Init(); | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | Py_INCREF(Py_None); resultobj = Py_None; | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
5986 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj; | |
5988 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5989 | wxFont *arg2 = 0 ; | |
5990 | PyObject * obj0 = 0 ; | |
5991 | PyObject * obj1 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self",(char *) "font", NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6000 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6001 | SWIG_fail; | |
d14a1e28 | 6002 | if (arg2 == NULL) { |
15afbcd0 RD |
6003 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6004 | SWIG_fail; | |
d14a1e28 RD |
6005 | } |
6006 | { | |
6007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6008 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6009 | ||
6010 | wxPyEndAllowThreads(__tstate); | |
6011 | if (PyErr_Occurred()) SWIG_fail; | |
6012 | } | |
6013 | Py_INCREF(Py_None); resultobj = Py_None; | |
6014 | return resultobj; | |
6015 | fail: | |
6016 | return NULL; | |
6017 | } | |
6018 | ||
6019 | ||
6020 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject *resultobj; | |
6022 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6023 | int result; | |
6024 | PyObject * obj0 = 0 ; | |
6025 | char *kwnames[] = { | |
6026 | (char *) "self", NULL | |
6027 | }; | |
6028 | ||
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6032 | { |
6033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6034 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6035 | ||
6036 | wxPyEndAllowThreads(__tstate); | |
6037 | if (PyErr_Occurred()) SWIG_fail; | |
6038 | } | |
15afbcd0 | 6039 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6040 | return resultobj; |
6041 | fail: | |
6042 | return NULL; | |
6043 | } | |
6044 | ||
6045 | ||
6046 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6047 | PyObject *resultobj; | |
6048 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6049 | int result; | |
6050 | PyObject * obj0 = 0 ; | |
6051 | char *kwnames[] = { | |
6052 | (char *) "self", NULL | |
6053 | }; | |
6054 | ||
6055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6058 | { |
6059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6060 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6061 | ||
6062 | wxPyEndAllowThreads(__tstate); | |
6063 | if (PyErr_Occurred()) SWIG_fail; | |
6064 | } | |
15afbcd0 | 6065 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6066 | return resultobj; |
6067 | fail: | |
6068 | return NULL; | |
6069 | } | |
6070 | ||
6071 | ||
6072 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6073 | PyObject *resultobj; | |
6074 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6075 | int result; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6084 | { |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
15afbcd0 | 6091 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6092 | return resultobj; |
6093 | fail: | |
6094 | return NULL; | |
6095 | } | |
6096 | ||
6097 | ||
6098 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject *resultobj; | |
6100 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6101 | bool result; | |
6102 | PyObject * obj0 = 0 ; | |
6103 | char *kwnames[] = { | |
6104 | (char *) "self", NULL | |
6105 | }; | |
6106 | ||
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6110 | { |
6111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6112 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6113 | ||
6114 | wxPyEndAllowThreads(__tstate); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | } | |
4d5c3d91 | 6117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6118 | return resultobj; |
6119 | fail: | |
6120 | return NULL; | |
6121 | } | |
6122 | ||
6123 | ||
6124 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6125 | PyObject *resultobj; | |
6126 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6127 | wxString result; | |
6128 | PyObject * obj0 = 0 ; | |
6129 | char *kwnames[] = { | |
6130 | (char *) "self", NULL | |
6131 | }; | |
6132 | ||
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6136 | { |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6138 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6139 | ||
6140 | wxPyEndAllowThreads(__tstate); | |
6141 | if (PyErr_Occurred()) SWIG_fail; | |
6142 | } | |
6143 | { | |
6144 | #if wxUSE_UNICODE | |
6145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6146 | #else | |
6147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6148 | #endif | |
6149 | } | |
6150 | return resultobj; | |
6151 | fail: | |
6152 | return NULL; | |
6153 | } | |
6154 | ||
6155 | ||
6156 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject *resultobj; | |
6158 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6159 | int result; | |
6160 | PyObject * obj0 = 0 ; | |
6161 | char *kwnames[] = { | |
6162 | (char *) "self", NULL | |
6163 | }; | |
6164 | ||
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6168 | { |
6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6170 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6171 | ||
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
15afbcd0 | 6175 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6176 | return resultobj; |
6177 | fail: | |
6178 | return NULL; | |
6179 | } | |
6180 | ||
6181 | ||
6182 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6183 | PyObject *resultobj; | |
6184 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6185 | int result; | |
6186 | PyObject * obj0 = 0 ; | |
6187 | char *kwnames[] = { | |
6188 | (char *) "self", NULL | |
6189 | }; | |
6190 | ||
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6194 | { |
6195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6196 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6197 | ||
6198 | wxPyEndAllowThreads(__tstate); | |
6199 | if (PyErr_Occurred()) SWIG_fail; | |
6200 | } | |
15afbcd0 | 6201 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6202 | return resultobj; |
6203 | fail: | |
6204 | return NULL; | |
6205 | } | |
6206 | ||
6207 | ||
6208 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6209 | PyObject *resultobj; | |
6210 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6211 | int arg2 ; | |
6212 | PyObject * obj0 = 0 ; | |
994141e6 | 6213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6214 | char *kwnames[] = { |
6215 | (char *) "self",(char *) "pointsize", NULL | |
6216 | }; | |
6217 | ||
994141e6 | 6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6221 | arg2 = (int) SWIG_AsInt(obj1); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6223 | { |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | (arg1)->SetPointSize(arg2); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
6230 | Py_INCREF(Py_None); resultobj = Py_None; | |
6231 | return resultobj; | |
6232 | fail: | |
6233 | return NULL; | |
6234 | } | |
6235 | ||
6236 | ||
6237 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject *resultobj; | |
6239 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6240 | int arg2 ; | |
6241 | PyObject * obj0 = 0 ; | |
994141e6 | 6242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6243 | char *kwnames[] = { |
6244 | (char *) "self",(char *) "style", NULL | |
6245 | }; | |
6246 | ||
994141e6 | 6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6250 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6252 | { |
6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6254 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6255 | ||
6256 | wxPyEndAllowThreads(__tstate); | |
6257 | if (PyErr_Occurred()) SWIG_fail; | |
6258 | } | |
6259 | Py_INCREF(Py_None); resultobj = Py_None; | |
6260 | return resultobj; | |
6261 | fail: | |
6262 | return NULL; | |
6263 | } | |
6264 | ||
6265 | ||
6266 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6267 | PyObject *resultobj; | |
6268 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6269 | int arg2 ; | |
6270 | PyObject * obj0 = 0 ; | |
994141e6 | 6271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6272 | char *kwnames[] = { |
6273 | (char *) "self",(char *) "weight", NULL | |
6274 | }; | |
6275 | ||
994141e6 | 6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6279 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6280 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6281 | { |
6282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6283 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6284 | ||
6285 | wxPyEndAllowThreads(__tstate); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
6288 | Py_INCREF(Py_None); resultobj = Py_None; | |
6289 | return resultobj; | |
6290 | fail: | |
6291 | return NULL; | |
6292 | } | |
6293 | ||
6294 | ||
6295 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6296 | PyObject *resultobj; | |
6297 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6298 | bool arg2 ; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | PyObject * obj1 = 0 ; | |
6301 | char *kwnames[] = { | |
6302 | (char *) "self",(char *) "underlined", NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6308 | arg2 = (bool) SWIG_AsBool(obj1); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6310 | { |
6311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6312 | (arg1)->SetUnderlined(arg2); | |
6313 | ||
6314 | wxPyEndAllowThreads(__tstate); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
6316 | } | |
6317 | Py_INCREF(Py_None); resultobj = Py_None; | |
6318 | return resultobj; | |
6319 | fail: | |
6320 | return NULL; | |
6321 | } | |
6322 | ||
6323 | ||
6324 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj; | |
6326 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6327 | wxString arg2 ; | |
d14a1e28 RD |
6328 | PyObject * obj0 = 0 ; |
6329 | PyObject * obj1 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self",(char *) "facename", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
6337 | { |
6338 | wxString* sptr = wxString_in_helper(obj1); | |
6339 | if (sptr == NULL) SWIG_fail; | |
6340 | arg2 = *sptr; | |
6341 | delete sptr; | |
6342 | } | |
d14a1e28 RD |
6343 | { |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | (arg1)->SetFaceName(arg2); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | Py_INCREF(Py_None); resultobj = Py_None; | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6360 | int arg2 ; | |
6361 | PyObject * obj0 = 0 ; | |
994141e6 | 6362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6363 | char *kwnames[] = { |
6364 | (char *) "self",(char *) "family", NULL | |
6365 | }; | |
6366 | ||
994141e6 | 6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6370 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6372 | { |
6373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6374 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6375 | ||
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) SWIG_fail; | |
6378 | } | |
6379 | Py_INCREF(Py_None); resultobj = Py_None; | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | return NULL; | |
6383 | } | |
6384 | ||
6385 | ||
6386 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6387 | PyObject *resultobj; | |
6388 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6389 | int arg2 ; | |
6390 | PyObject * obj0 = 0 ; | |
994141e6 | 6391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6392 | char *kwnames[] = { |
6393 | (char *) "self",(char *) "encoding", NULL | |
6394 | }; | |
6395 | ||
994141e6 | 6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6399 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6401 | { |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6404 | ||
6405 | wxPyEndAllowThreads(__tstate); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | } | |
6408 | Py_INCREF(Py_None); resultobj = Py_None; | |
6409 | return resultobj; | |
6410 | fail: | |
6411 | return NULL; | |
6412 | } | |
6413 | ||
6414 | ||
6415 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6416 | PyObject *resultobj; | |
6417 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6418 | wxString *arg2 = 0 ; | |
6419 | bool result; | |
e811c8ce | 6420 | bool temp2 = False ; |
d14a1e28 RD |
6421 | PyObject * obj0 = 0 ; |
6422 | PyObject * obj1 = 0 ; | |
6423 | char *kwnames[] = { | |
6424 | (char *) "self",(char *) "s", NULL | |
6425 | }; | |
6426 | ||
6427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6430 | { |
6431 | arg2 = wxString_in_helper(obj1); | |
6432 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6433 | temp2 = True; |
d14a1e28 RD |
6434 | } |
6435 | { | |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6437 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6438 | ||
6439 | wxPyEndAllowThreads(__tstate); | |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
6441 | } | |
4d5c3d91 | 6442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6443 | { |
6444 | if (temp2) | |
6445 | delete arg2; | |
6446 | } | |
6447 | return resultobj; | |
6448 | fail: | |
6449 | { | |
6450 | if (temp2) | |
6451 | delete arg2; | |
6452 | } | |
6453 | return NULL; | |
6454 | } | |
6455 | ||
6456 | ||
6457 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6458 | PyObject *resultobj; | |
6459 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6460 | wxString result; | |
6461 | PyObject * obj0 = 0 ; | |
6462 | char *kwnames[] = { | |
6463 | (char *) "self", NULL | |
6464 | }; | |
6465 | ||
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6469 | { |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6472 | ||
6473 | wxPyEndAllowThreads(__tstate); | |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
6476 | { | |
6477 | #if wxUSE_UNICODE | |
6478 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6479 | #else | |
6480 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6481 | #endif | |
6482 | } | |
6483 | return resultobj; | |
6484 | fail: | |
6485 | return NULL; | |
6486 | } | |
6487 | ||
6488 | ||
6489 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6490 | PyObject *resultobj; | |
6491 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6492 | wxString result; | |
6493 | PyObject * obj0 = 0 ; | |
6494 | char *kwnames[] = { | |
6495 | (char *) "self", NULL | |
6496 | }; | |
6497 | ||
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6501 | { |
6502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6503 | result = wxNativeFontInfo___str__(arg1); | |
6504 | ||
6505 | wxPyEndAllowThreads(__tstate); | |
6506 | if (PyErr_Occurred()) SWIG_fail; | |
6507 | } | |
6508 | { | |
6509 | #if wxUSE_UNICODE | |
6510 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6511 | #else | |
6512 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6513 | #endif | |
6514 | } | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | return NULL; | |
6518 | } | |
6519 | ||
6520 | ||
6521 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6522 | PyObject *resultobj; | |
6523 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6524 | wxString *arg2 = 0 ; | |
6525 | bool result; | |
e811c8ce | 6526 | bool temp2 = False ; |
d14a1e28 RD |
6527 | PyObject * obj0 = 0 ; |
6528 | PyObject * obj1 = 0 ; | |
6529 | char *kwnames[] = { | |
6530 | (char *) "self",(char *) "s", NULL | |
6531 | }; | |
6532 | ||
6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6536 | { |
6537 | arg2 = wxString_in_helper(obj1); | |
6538 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6539 | temp2 = True; |
d14a1e28 RD |
6540 | } |
6541 | { | |
6542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6543 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6544 | ||
6545 | wxPyEndAllowThreads(__tstate); | |
6546 | if (PyErr_Occurred()) SWIG_fail; | |
6547 | } | |
4d5c3d91 | 6548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6549 | { |
6550 | if (temp2) | |
6551 | delete arg2; | |
6552 | } | |
6553 | return resultobj; | |
6554 | fail: | |
6555 | { | |
6556 | if (temp2) | |
6557 | delete arg2; | |
6558 | } | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
6563 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6564 | PyObject *resultobj; | |
6565 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6566 | wxString result; | |
6567 | PyObject * obj0 = 0 ; | |
6568 | char *kwnames[] = { | |
6569 | (char *) "self", NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6575 | { |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
6582 | { | |
6583 | #if wxUSE_UNICODE | |
6584 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6585 | #else | |
6586 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6587 | #endif | |
6588 | } | |
6589 | return resultobj; | |
6590 | fail: | |
6591 | return NULL; | |
6592 | } | |
6593 | ||
6594 | ||
6595 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6596 | PyObject *obj; | |
6597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6598 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6599 | Py_INCREF(obj); | |
6600 | return Py_BuildValue((char *)""); | |
6601 | } | |
6602 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6603 | PyObject *resultobj; | |
6604 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6605 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6606 | bool temp2 = False ; |
d14a1e28 RD |
6607 | PyObject * obj0 = 0 ; |
6608 | PyObject * obj1 = 0 ; | |
6609 | char *kwnames[] = { | |
6610 | (char *) "self",(char *) "facename", NULL | |
6611 | }; | |
6612 | ||
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
6616 | { |
6617 | arg2 = wxString_in_helper(obj1); | |
6618 | if (arg2 == NULL) SWIG_fail; | |
6619 | temp2 = True; | |
6620 | } | |
196addbf | 6621 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6622 | |
6623 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6624 | { |
6625 | if (temp2) | |
6626 | delete arg2; | |
6627 | } | |
d14a1e28 RD |
6628 | return resultobj; |
6629 | fail: | |
7eae615b RD |
6630 | { |
6631 | if (temp2) | |
6632 | delete arg2; | |
6633 | } | |
d14a1e28 RD |
6634 | return NULL; |
6635 | } | |
6636 | ||
6637 | ||
6638 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6639 | PyObject *resultobj; | |
6640 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6641 | wxString *result; |
d14a1e28 RD |
6642 | PyObject * obj0 = 0 ; |
6643 | char *kwnames[] = { | |
6644 | (char *) "self", NULL | |
6645 | }; | |
6646 | ||
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 6650 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6651 | |
6652 | { | |
6653 | #if wxUSE_UNICODE | |
196addbf | 6654 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6655 | #else |
196addbf | 6656 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6657 | #endif |
6658 | } | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6668 | int arg2 ; | |
6669 | PyObject * obj0 = 0 ; | |
994141e6 | 6670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6671 | char *kwnames[] = { |
6672 | (char *) "self",(char *) "encoding", NULL | |
6673 | }; | |
6674 | ||
994141e6 | 6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6678 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6680 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6681 | ||
6682 | Py_INCREF(Py_None); resultobj = Py_None; | |
6683 | return resultobj; | |
6684 | fail: | |
6685 | return NULL; | |
6686 | } | |
6687 | ||
6688 | ||
6689 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject *resultobj; | |
6691 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6692 | int result; | |
6693 | PyObject * obj0 = 0 ; | |
6694 | char *kwnames[] = { | |
6695 | (char *) "self", NULL | |
6696 | }; | |
6697 | ||
6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6701 | result = (int) ((arg1)->encoding); |
6702 | ||
15afbcd0 | 6703 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6704 | return resultobj; |
6705 | fail: | |
6706 | return NULL; | |
6707 | } | |
6708 | ||
6709 | ||
6710 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6711 | PyObject *resultobj; | |
6712 | wxNativeEncodingInfo *result; | |
6713 | char *kwnames[] = { | |
6714 | NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6718 | { | |
6719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6720 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6721 | ||
6722 | wxPyEndAllowThreads(__tstate); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | } | |
15afbcd0 | 6725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
6726 | return resultobj; |
6727 | fail: | |
6728 | return NULL; | |
6729 | } | |
6730 | ||
6731 | ||
6732 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6733 | PyObject *resultobj; | |
6734 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6735 | PyObject * obj0 = 0 ; | |
6736 | char *kwnames[] = { | |
6737 | (char *) "self", NULL | |
6738 | }; | |
6739 | ||
6740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6743 | { |
6744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6745 | delete arg1; | |
6746 | ||
6747 | wxPyEndAllowThreads(__tstate); | |
6748 | if (PyErr_Occurred()) SWIG_fail; | |
6749 | } | |
6750 | Py_INCREF(Py_None); resultobj = Py_None; | |
6751 | return resultobj; | |
6752 | fail: | |
6753 | return NULL; | |
6754 | } | |
6755 | ||
6756 | ||
6757 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6758 | PyObject *resultobj; | |
6759 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6760 | wxString *arg2 = 0 ; | |
6761 | bool result; | |
e811c8ce | 6762 | bool temp2 = False ; |
d14a1e28 RD |
6763 | PyObject * obj0 = 0 ; |
6764 | PyObject * obj1 = 0 ; | |
6765 | char *kwnames[] = { | |
6766 | (char *) "self",(char *) "s", NULL | |
6767 | }; | |
6768 | ||
6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6772 | { |
6773 | arg2 = wxString_in_helper(obj1); | |
6774 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6775 | temp2 = True; |
d14a1e28 RD |
6776 | } |
6777 | { | |
6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6779 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6780 | ||
6781 | wxPyEndAllowThreads(__tstate); | |
6782 | if (PyErr_Occurred()) SWIG_fail; | |
6783 | } | |
4d5c3d91 | 6784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6785 | { |
6786 | if (temp2) | |
6787 | delete arg2; | |
6788 | } | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | { | |
6792 | if (temp2) | |
6793 | delete arg2; | |
6794 | } | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6802 | wxString result; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6811 | { |
6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6813 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6814 | ||
6815 | wxPyEndAllowThreads(__tstate); | |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
6817 | } | |
6818 | { | |
6819 | #if wxUSE_UNICODE | |
6820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6821 | #else | |
6822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6823 | #endif | |
6824 | } | |
6825 | return resultobj; | |
6826 | fail: | |
6827 | return NULL; | |
6828 | } | |
6829 | ||
6830 | ||
6831 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6832 | PyObject *obj; | |
6833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6834 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6835 | Py_INCREF(obj); | |
6836 | return Py_BuildValue((char *)""); | |
6837 | } | |
6838 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject *resultobj; | |
6840 | int arg1 ; | |
6841 | wxNativeEncodingInfo *result; | |
994141e6 | 6842 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6843 | char *kwnames[] = { |
6844 | (char *) "encoding", NULL | |
6845 | }; | |
6846 | ||
994141e6 | 6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
6848 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6850 | { |
6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6852 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6853 | |
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
15afbcd0 | 6857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
6858 | return resultobj; |
6859 | fail: | |
6860 | return NULL; | |
6861 | } | |
6862 | ||
6863 | ||
6864 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6865 | PyObject *resultobj; | |
6866 | wxNativeEncodingInfo *arg1 = 0 ; | |
6867 | bool result; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | char *kwnames[] = { | |
6870 | (char *) "info", NULL | |
6871 | }; | |
6872 | ||
6873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6876 | SWIG_fail; | |
d14a1e28 | 6877 | if (arg1 == NULL) { |
15afbcd0 RD |
6878 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6879 | SWIG_fail; | |
d14a1e28 RD |
6880 | } |
6881 | { | |
6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6883 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6884 | ||
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
4d5c3d91 | 6888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6889 | return resultobj; |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj; | |
6897 | wxFontMapper *result; | |
6898 | char *kwnames[] = { | |
6899 | NULL | |
6900 | }; | |
6901 | ||
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6903 | { | |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6905 | result = (wxFontMapper *)new wxFontMapper(); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
6908 | if (PyErr_Occurred()) SWIG_fail; | |
6909 | } | |
15afbcd0 | 6910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
6911 | return resultobj; |
6912 | fail: | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
6917 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6918 | PyObject *resultobj; | |
6919 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6920 | PyObject * obj0 = 0 ; | |
6921 | char *kwnames[] = { | |
6922 | (char *) "self", NULL | |
6923 | }; | |
6924 | ||
6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6928 | { |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6930 | delete arg1; | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | Py_INCREF(Py_None); resultobj = Py_None; | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject *resultobj; | |
6944 | wxFontMapper *result; | |
6945 | char *kwnames[] = { | |
6946 | NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
15afbcd0 | 6957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6958 | return resultobj; |
6959 | fail: | |
6960 | return NULL; | |
6961 | } | |
6962 | ||
6963 | ||
6964 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject *resultobj; | |
6966 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6967 | wxFontMapper *result; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | char *kwnames[] = { | |
6970 | (char *) "mapper", NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6976 | { |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
15afbcd0 | 6983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6984 | return resultobj; |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6993 | wxString *arg2 = 0 ; | |
e811c8ce | 6994 | bool arg3 = (bool) True ; |
d14a1e28 | 6995 | int result; |
e811c8ce | 6996 | bool temp2 = False ; |
d14a1e28 RD |
6997 | PyObject * obj0 = 0 ; |
6998 | PyObject * obj1 = 0 ; | |
6999 | PyObject * obj2 = 0 ; | |
7000 | char *kwnames[] = { | |
7001 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7002 | }; | |
7003 | ||
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7007 | { |
7008 | arg2 = wxString_in_helper(obj1); | |
7009 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7010 | temp2 = True; |
d14a1e28 RD |
7011 | } |
7012 | if (obj2) { | |
15afbcd0 RD |
7013 | arg3 = (bool) SWIG_AsBool(obj2); |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7015 | } |
7016 | { | |
7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7018 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7019 | ||
7020 | wxPyEndAllowThreads(__tstate); | |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
7022 | } | |
15afbcd0 | 7023 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7024 | { |
7025 | if (temp2) | |
7026 | delete arg2; | |
7027 | } | |
7028 | return resultobj; | |
7029 | fail: | |
7030 | { | |
7031 | if (temp2) | |
7032 | delete arg2; | |
7033 | } | |
7034 | return NULL; | |
7035 | } | |
7036 | ||
7037 | ||
7038 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7039 | PyObject *resultobj; | |
7040 | size_t result; | |
7041 | char *kwnames[] = { | |
7042 | NULL | |
7043 | }; | |
7044 | ||
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7049 | ||
7050 | wxPyEndAllowThreads(__tstate); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | } | |
15afbcd0 | 7053 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7054 | return resultobj; |
7055 | fail: | |
7056 | return NULL; | |
7057 | } | |
7058 | ||
7059 | ||
7060 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7061 | PyObject *resultobj; | |
7062 | size_t arg1 ; | |
7063 | int result; | |
7064 | PyObject * obj0 = 0 ; | |
7065 | char *kwnames[] = { | |
7066 | (char *) "n", NULL | |
7067 | }; | |
7068 | ||
7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7070 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7072 | { |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7075 | ||
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
15afbcd0 | 7079 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7080 | return resultobj; |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj; | |
7088 | int arg1 ; | |
7089 | wxString result; | |
994141e6 | 7090 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7091 | char *kwnames[] = { |
7092 | (char *) "encoding", NULL | |
7093 | }; | |
7094 | ||
994141e6 | 7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7096 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7098 | { |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | { | |
7106 | #if wxUSE_UNICODE | |
7107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7108 | #else | |
7109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7110 | #endif | |
7111 | } | |
7112 | return resultobj; | |
7113 | fail: | |
7114 | return NULL; | |
7115 | } | |
7116 | ||
7117 | ||
7118 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7119 | PyObject *resultobj; | |
7120 | int arg1 ; | |
7121 | wxString result; | |
994141e6 | 7122 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7123 | char *kwnames[] = { |
7124 | (char *) "encoding", NULL | |
7125 | }; | |
7126 | ||
994141e6 | 7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7128 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7130 | { |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | { | |
7138 | #if wxUSE_UNICODE | |
7139 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7140 | #else | |
7141 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7142 | #endif | |
7143 | } | |
7144 | return resultobj; | |
7145 | fail: | |
7146 | return NULL; | |
7147 | } | |
7148 | ||
7149 | ||
7150 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7151 | PyObject *resultobj; | |
7152 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7153 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | PyObject * obj1 = 0 ; | |
7156 | char *kwnames[] = { | |
7157 | (char *) "self",(char *) "config", NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7163 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7165 | { |
7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7167 | (arg1)->SetConfig(arg2); | |
7168 | ||
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) SWIG_fail; | |
7171 | } | |
7172 | Py_INCREF(Py_None); resultobj = Py_None; | |
7173 | return resultobj; | |
7174 | fail: | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
7179 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7180 | PyObject *resultobj; | |
7181 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7182 | wxString *arg2 = 0 ; | |
e811c8ce | 7183 | bool temp2 = False ; |
d14a1e28 RD |
7184 | PyObject * obj0 = 0 ; |
7185 | PyObject * obj1 = 0 ; | |
7186 | char *kwnames[] = { | |
7187 | (char *) "self",(char *) "prefix", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7193 | { |
7194 | arg2 = wxString_in_helper(obj1); | |
7195 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7196 | temp2 = True; |
d14a1e28 RD |
7197 | } |
7198 | { | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
7205 | Py_INCREF(Py_None); resultobj = Py_None; | |
7206 | { | |
7207 | if (temp2) | |
7208 | delete arg2; | |
7209 | } | |
7210 | return resultobj; | |
7211 | fail: | |
7212 | { | |
7213 | if (temp2) | |
7214 | delete arg2; | |
7215 | } | |
7216 | return NULL; | |
7217 | } | |
7218 | ||
7219 | ||
7220 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject *resultobj; | |
7222 | wxString result; | |
7223 | char *kwnames[] = { | |
7224 | NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | result = wxFontMapper::GetDefaultConfigPath(); | |
7231 | ||
7232 | wxPyEndAllowThreads(__tstate); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | } | |
7235 | { | |
7236 | #if wxUSE_UNICODE | |
7237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7238 | #else | |
7239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7240 | #endif | |
7241 | } | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
7248 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject *resultobj; | |
7250 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7251 | int arg2 ; | |
7252 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7253 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 7254 | bool arg4 = (bool) True ; |
d14a1e28 | 7255 | PyObject *result; |
e811c8ce | 7256 | bool temp3 = False ; |
d14a1e28 | 7257 | PyObject * obj0 = 0 ; |
994141e6 | 7258 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7259 | PyObject * obj2 = 0 ; |
7260 | PyObject * obj3 = 0 ; | |
7261 | char *kwnames[] = { | |
7262 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7263 | }; | |
7264 | ||
994141e6 | 7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7268 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7270 | if (obj2) { |
7271 | { | |
7272 | arg3 = wxString_in_helper(obj2); | |
7273 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7274 | temp3 = True; |
d14a1e28 RD |
7275 | } |
7276 | } | |
7277 | if (obj3) { | |
15afbcd0 RD |
7278 | arg4 = (bool) SWIG_AsBool(obj3); |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7280 | } |
7281 | { | |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | resultobj = result; | |
7289 | { | |
7290 | if (temp3) | |
7291 | delete arg3; | |
7292 | } | |
7293 | return resultobj; | |
7294 | fail: | |
7295 | { | |
7296 | if (temp3) | |
7297 | delete arg3; | |
7298 | } | |
7299 | return NULL; | |
7300 | } | |
7301 | ||
7302 | ||
7303 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7304 | PyObject *resultobj; | |
7305 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7306 | int arg2 ; | |
7307 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7308 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7309 | bool result; | |
e811c8ce | 7310 | bool temp3 = False ; |
d14a1e28 | 7311 | PyObject * obj0 = 0 ; |
994141e6 | 7312 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7313 | PyObject * obj2 = 0 ; |
7314 | char *kwnames[] = { | |
7315 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7316 | }; | |
7317 | ||
994141e6 | 7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7321 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7323 | if (obj2) { |
7324 | { | |
7325 | arg3 = wxString_in_helper(obj2); | |
7326 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7327 | temp3 = True; |
d14a1e28 RD |
7328 | } |
7329 | } | |
7330 | { | |
7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7332 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7333 | ||
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
4d5c3d91 | 7337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7338 | { |
7339 | if (temp3) | |
7340 | delete arg3; | |
7341 | } | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | { | |
7345 | if (temp3) | |
7346 | delete arg3; | |
7347 | } | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7355 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7356 | PyObject * obj0 = 0 ; | |
7357 | PyObject * obj1 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self",(char *) "parent", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7367 | { |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | (arg1)->SetDialogParent(arg2); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | Py_INCREF(Py_None); resultobj = Py_None; | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7384 | wxString *arg2 = 0 ; | |
e811c8ce | 7385 | bool temp2 = False ; |
d14a1e28 RD |
7386 | PyObject * obj0 = 0 ; |
7387 | PyObject * obj1 = 0 ; | |
7388 | char *kwnames[] = { | |
7389 | (char *) "self",(char *) "title", NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7395 | { |
7396 | arg2 = wxString_in_helper(obj1); | |
7397 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7398 | temp2 = True; |
d14a1e28 RD |
7399 | } |
7400 | { | |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7402 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7403 | ||
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
7407 | Py_INCREF(Py_None); resultobj = Py_None; | |
7408 | { | |
7409 | if (temp2) | |
7410 | delete arg2; | |
7411 | } | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | { | |
7415 | if (temp2) | |
7416 | delete arg2; | |
7417 | } | |
7418 | return NULL; | |
7419 | } | |
7420 | ||
7421 | ||
7422 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7423 | PyObject *obj; | |
7424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7425 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7426 | Py_INCREF(obj); | |
7427 | return Py_BuildValue((char *)""); | |
7428 | } | |
7429 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | int arg1 ; | |
7432 | int arg2 ; | |
7433 | int arg3 ; | |
7434 | int arg4 ; | |
e811c8ce | 7435 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7436 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7437 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7438 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7439 | wxFont *result; | |
e811c8ce | 7440 | bool temp6 = False ; |
994141e6 RD |
7441 | PyObject * obj0 = 0 ; |
7442 | PyObject * obj1 = 0 ; | |
7443 | PyObject * obj2 = 0 ; | |
7444 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7445 | PyObject * obj4 = 0 ; |
7446 | PyObject * obj5 = 0 ; | |
994141e6 | 7447 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7448 | char *kwnames[] = { |
7449 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7450 | }; | |
7451 | ||
994141e6 | 7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
7453 | arg1 = (int) SWIG_AsInt(obj0); |
7454 | if (PyErr_Occurred()) SWIG_fail; | |
7455 | arg2 = (int) SWIG_AsInt(obj1); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | arg3 = (int) SWIG_AsInt(obj2); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | arg4 = (int) SWIG_AsInt(obj3); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7461 | if (obj4) { |
15afbcd0 RD |
7462 | arg5 = (bool) SWIG_AsBool(obj4); |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7464 | } |
7465 | if (obj5) { | |
7466 | { | |
7467 | arg6 = wxString_in_helper(obj5); | |
7468 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7469 | temp6 = True; |
d14a1e28 RD |
7470 | } |
7471 | } | |
994141e6 | 7472 | if (obj6) { |
15afbcd0 RD |
7473 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); |
7474 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7475 | } |
d14a1e28 RD |
7476 | { |
7477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7478 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7479 | ||
7480 | wxPyEndAllowThreads(__tstate); | |
7481 | if (PyErr_Occurred()) SWIG_fail; | |
7482 | } | |
15afbcd0 | 7483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7484 | { |
7485 | if (temp6) | |
7486 | delete arg6; | |
7487 | } | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | { | |
7491 | if (temp6) | |
7492 | delete arg6; | |
7493 | } | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
7498 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject *resultobj; | |
7500 | wxFont *arg1 = (wxFont *) 0 ; | |
7501 | PyObject * obj0 = 0 ; | |
7502 | char *kwnames[] = { | |
7503 | (char *) "self", NULL | |
7504 | }; | |
7505 | ||
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7509 | { |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | delete arg1; | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | Py_INCREF(Py_None); resultobj = Py_None; | |
7517 | return resultobj; | |
7518 | fail: | |
7519 | return NULL; | |
7520 | } | |
7521 | ||
7522 | ||
7523 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7524 | PyObject *resultobj; | |
7525 | wxNativeFontInfo *arg1 = 0 ; | |
7526 | wxFont *result; | |
7527 | PyObject * obj0 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "info", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7534 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7535 | SWIG_fail; | |
d14a1e28 | 7536 | if (arg1 == NULL) { |
15afbcd0 RD |
7537 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7538 | SWIG_fail; | |
d14a1e28 RD |
7539 | } |
7540 | { | |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
15afbcd0 | 7547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7548 | return resultobj; |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
7554 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject *resultobj; | |
7556 | wxString *arg1 = 0 ; | |
7557 | wxFont *result; | |
e811c8ce | 7558 | bool temp1 = False ; |
d14a1e28 RD |
7559 | PyObject * obj0 = 0 ; |
7560 | char *kwnames[] = { | |
7561 | (char *) "info", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7565 | { | |
7566 | arg1 = wxString_in_helper(obj0); | |
7567 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7568 | temp1 = True; |
d14a1e28 RD |
7569 | } |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
15afbcd0 | 7577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7578 | { |
7579 | if (temp1) | |
7580 | delete arg1; | |
7581 | } | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | { | |
7585 | if (temp1) | |
7586 | delete arg1; | |
7587 | } | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7593 | PyObject *resultobj; | |
7594 | int arg1 ; | |
7595 | int arg2 ; | |
7596 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7597 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7598 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7599 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7600 | wxFont *result; | |
e811c8ce | 7601 | bool temp4 = False ; |
994141e6 RD |
7602 | PyObject * obj0 = 0 ; |
7603 | PyObject * obj1 = 0 ; | |
7604 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7605 | PyObject * obj3 = 0 ; |
994141e6 | 7606 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7607 | char *kwnames[] = { |
7608 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7609 | }; | |
7610 | ||
994141e6 | 7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
7612 | arg1 = (int) SWIG_AsInt(obj0); |
7613 | if (PyErr_Occurred()) SWIG_fail; | |
7614 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7616 | if (obj2) { |
15afbcd0 RD |
7617 | arg3 = (int) SWIG_AsInt(obj2); |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7619 | } |
d14a1e28 RD |
7620 | if (obj3) { |
7621 | { | |
7622 | arg4 = wxString_in_helper(obj3); | |
7623 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7624 | temp4 = True; |
d14a1e28 RD |
7625 | } |
7626 | } | |
994141e6 | 7627 | if (obj4) { |
15afbcd0 RD |
7628 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7630 | } |
d14a1e28 RD |
7631 | { |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
15afbcd0 | 7638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7639 | { |
7640 | if (temp4) | |
7641 | delete arg4; | |
7642 | } | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | { | |
7646 | if (temp4) | |
7647 | delete arg4; | |
7648 | } | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
7653 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject *resultobj; | |
7655 | wxFont *arg1 = (wxFont *) 0 ; | |
7656 | bool result; | |
7657 | PyObject * obj0 = 0 ; | |
7658 | char *kwnames[] = { | |
7659 | (char *) "self", NULL | |
7660 | }; | |
7661 | ||
7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7665 | { |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
4d5c3d91 | 7672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7673 | return resultobj; |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7682 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7683 | bool result; |
7684 | PyObject * obj0 = 0 ; | |
7685 | PyObject * obj1 = 0 ; | |
7686 | char *kwnames[] = { | |
22faec7d | 7687 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7688 | }; |
7689 | ||
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7695 | { |
7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7697 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7698 | |
7699 | wxPyEndAllowThreads(__tstate); | |
7700 | if (PyErr_Occurred()) SWIG_fail; | |
7701 | } | |
4d5c3d91 | 7702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7703 | return resultobj; |
7704 | fail: | |
7705 | return NULL; | |
7706 | } | |
7707 | ||
7708 | ||
7709 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7710 | PyObject *resultobj; | |
7711 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7712 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7713 | bool result; |
7714 | PyObject * obj0 = 0 ; | |
7715 | PyObject * obj1 = 0 ; | |
7716 | char *kwnames[] = { | |
22faec7d | 7717 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7718 | }; |
7719 | ||
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7723 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7725 | { |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7727 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7728 | |
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
4d5c3d91 | 7732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7733 | return resultobj; |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
7739 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7740 | PyObject *resultobj; | |
7741 | wxFont *arg1 = (wxFont *) 0 ; | |
7742 | int result; | |
7743 | PyObject * obj0 = 0 ; | |
7744 | char *kwnames[] = { | |
7745 | (char *) "self", NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7751 | { |
7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7753 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) SWIG_fail; | |
7757 | } | |
15afbcd0 | 7758 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7759 | return resultobj; |
7760 | fail: | |
7761 | return NULL; | |
7762 | } | |
7763 | ||
7764 | ||
7765 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7766 | PyObject *resultobj; | |
7767 | wxFont *arg1 = (wxFont *) 0 ; | |
7768 | int result; | |
7769 | PyObject * obj0 = 0 ; | |
7770 | char *kwnames[] = { | |
7771 | (char *) "self", NULL | |
7772 | }; | |
7773 | ||
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7777 | { |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
15afbcd0 | 7784 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7785 | return resultobj; |
7786 | fail: | |
7787 | return NULL; | |
7788 | } | |
7789 | ||
7790 | ||
7791 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7792 | PyObject *resultobj; | |
7793 | wxFont *arg1 = (wxFont *) 0 ; | |
7794 | int result; | |
7795 | PyObject * obj0 = 0 ; | |
7796 | char *kwnames[] = { | |
7797 | (char *) "self", NULL | |
7798 | }; | |
7799 | ||
7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7803 | { |
7804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7805 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7806 | ||
7807 | wxPyEndAllowThreads(__tstate); | |
7808 | if (PyErr_Occurred()) SWIG_fail; | |
7809 | } | |
15afbcd0 | 7810 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7811 | return resultobj; |
7812 | fail: | |
7813 | return NULL; | |
7814 | } | |
7815 | ||
7816 | ||
7817 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7818 | PyObject *resultobj; | |
7819 | wxFont *arg1 = (wxFont *) 0 ; | |
7820 | int result; | |
7821 | PyObject * obj0 = 0 ; | |
7822 | char *kwnames[] = { | |
7823 | (char *) "self", NULL | |
7824 | }; | |
7825 | ||
7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7829 | { |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
15afbcd0 | 7836 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7837 | return resultobj; |
7838 | fail: | |
7839 | return NULL; | |
7840 | } | |
7841 | ||
7842 | ||
7843 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7844 | PyObject *resultobj; | |
7845 | wxFont *arg1 = (wxFont *) 0 ; | |
7846 | bool result; | |
7847 | PyObject * obj0 = 0 ; | |
7848 | char *kwnames[] = { | |
7849 | (char *) "self", NULL | |
7850 | }; | |
7851 | ||
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7855 | { |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
4d5c3d91 | 7862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7863 | return resultobj; |
7864 | fail: | |
7865 | return NULL; | |
7866 | } | |
7867 | ||
7868 | ||
7869 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj; | |
7871 | wxFont *arg1 = (wxFont *) 0 ; | |
7872 | wxString result; | |
7873 | PyObject * obj0 = 0 ; | |
7874 | char *kwnames[] = { | |
7875 | (char *) "self", NULL | |
7876 | }; | |
7877 | ||
7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7881 | { |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | { | |
7889 | #if wxUSE_UNICODE | |
7890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7891 | #else | |
7892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7893 | #endif | |
7894 | } | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
7901 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7902 | PyObject *resultobj; | |
7903 | wxFont *arg1 = (wxFont *) 0 ; | |
7904 | int result; | |
7905 | PyObject * obj0 = 0 ; | |
7906 | char *kwnames[] = { | |
7907 | (char *) "self", NULL | |
7908 | }; | |
7909 | ||
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7913 | { |
7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7915 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7916 | ||
7917 | wxPyEndAllowThreads(__tstate); | |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
7919 | } | |
15afbcd0 | 7920 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7921 | return resultobj; |
7922 | fail: | |
7923 | return NULL; | |
7924 | } | |
7925 | ||
7926 | ||
7927 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7928 | PyObject *resultobj; | |
7929 | wxFont *arg1 = (wxFont *) 0 ; | |
7930 | wxNativeFontInfo *result; | |
7931 | PyObject * obj0 = 0 ; | |
7932 | char *kwnames[] = { | |
7933 | (char *) "self", NULL | |
7934 | }; | |
7935 | ||
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7939 | { |
7940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7941 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7942 | ||
7943 | wxPyEndAllowThreads(__tstate); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
15afbcd0 | 7946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
7947 | return resultobj; |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject *resultobj; | |
7955 | wxFont *arg1 = (wxFont *) 0 ; | |
7956 | bool result; | |
7957 | PyObject * obj0 = 0 ; | |
7958 | char *kwnames[] = { | |
7959 | (char *) "self", NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7965 | { |
7966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7967 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7968 | ||
7969 | wxPyEndAllowThreads(__tstate); | |
7970 | if (PyErr_Occurred()) SWIG_fail; | |
7971 | } | |
4d5c3d91 | 7972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7973 | return resultobj; |
7974 | fail: | |
7975 | return NULL; | |
7976 | } | |
7977 | ||
7978 | ||
7979 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7980 | PyObject *resultobj; | |
7981 | wxFont *arg1 = (wxFont *) 0 ; | |
7982 | wxString result; | |
7983 | PyObject * obj0 = 0 ; | |
7984 | char *kwnames[] = { | |
7985 | (char *) "self", NULL | |
7986 | }; | |
7987 | ||
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7991 | { |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) SWIG_fail; | |
7997 | } | |
7998 | { | |
7999 | #if wxUSE_UNICODE | |
8000 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8001 | #else | |
8002 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8003 | #endif | |
8004 | } | |
8005 | return resultobj; | |
8006 | fail: | |
8007 | return NULL; | |
8008 | } | |
8009 | ||
8010 | ||
8011 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8012 | PyObject *resultobj; | |
8013 | wxFont *arg1 = (wxFont *) 0 ; | |
8014 | wxString result; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | char *kwnames[] = { | |
8017 | (char *) "self", NULL | |
8018 | }; | |
8019 | ||
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8023 | { |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8025 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8026 | ||
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | { | |
8031 | #if wxUSE_UNICODE | |
8032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8033 | #else | |
8034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8035 | #endif | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | return NULL; | |
8040 | } | |
8041 | ||
8042 | ||
8043 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8044 | PyObject *resultobj; | |
8045 | wxFont *arg1 = (wxFont *) 0 ; | |
8046 | int arg2 ; | |
8047 | PyObject * obj0 = 0 ; | |
994141e6 | 8048 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8049 | char *kwnames[] = { |
8050 | (char *) "self",(char *) "pointSize", NULL | |
8051 | }; | |
8052 | ||
994141e6 | 8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8056 | arg2 = (int) SWIG_AsInt(obj1); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8058 | { |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | (arg1)->SetPointSize(arg2); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | Py_INCREF(Py_None); resultobj = Py_None; | |
8066 | return resultobj; | |
8067 | fail: | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
8072 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject *resultobj; | |
8074 | wxFont *arg1 = (wxFont *) 0 ; | |
8075 | int arg2 ; | |
8076 | PyObject * obj0 = 0 ; | |
994141e6 | 8077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8078 | char *kwnames[] = { |
8079 | (char *) "self",(char *) "family", NULL | |
8080 | }; | |
8081 | ||
994141e6 | 8082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8085 | arg2 = (int) SWIG_AsInt(obj1); | |
8086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8087 | { |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | (arg1)->SetFamily(arg2); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
8094 | Py_INCREF(Py_None); resultobj = Py_None; | |
8095 | return resultobj; | |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxFont *arg1 = (wxFont *) 0 ; | |
8104 | int arg2 ; | |
8105 | PyObject * obj0 = 0 ; | |
994141e6 | 8106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8107 | char *kwnames[] = { |
8108 | (char *) "self",(char *) "style", NULL | |
8109 | }; | |
8110 | ||
994141e6 | 8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8114 | arg2 = (int) SWIG_AsInt(obj1); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8116 | { |
8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8118 | (arg1)->SetStyle(arg2); | |
8119 | ||
8120 | wxPyEndAllowThreads(__tstate); | |
8121 | if (PyErr_Occurred()) SWIG_fail; | |
8122 | } | |
8123 | Py_INCREF(Py_None); resultobj = Py_None; | |
8124 | return resultobj; | |
8125 | fail: | |
8126 | return NULL; | |
8127 | } | |
8128 | ||
8129 | ||
8130 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8131 | PyObject *resultobj; | |
8132 | wxFont *arg1 = (wxFont *) 0 ; | |
8133 | int arg2 ; | |
8134 | PyObject * obj0 = 0 ; | |
994141e6 | 8135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8136 | char *kwnames[] = { |
8137 | (char *) "self",(char *) "weight", NULL | |
8138 | }; | |
8139 | ||
994141e6 | 8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8143 | arg2 = (int) SWIG_AsInt(obj1); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8145 | { |
8146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8147 | (arg1)->SetWeight(arg2); | |
8148 | ||
8149 | wxPyEndAllowThreads(__tstate); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | Py_INCREF(Py_None); resultobj = Py_None; | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8160 | PyObject *resultobj; | |
8161 | wxFont *arg1 = (wxFont *) 0 ; | |
8162 | wxString *arg2 = 0 ; | |
e811c8ce | 8163 | bool temp2 = False ; |
d14a1e28 RD |
8164 | PyObject * obj0 = 0 ; |
8165 | PyObject * obj1 = 0 ; | |
8166 | char *kwnames[] = { | |
8167 | (char *) "self",(char *) "faceName", NULL | |
8168 | }; | |
8169 | ||
8170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8173 | { |
8174 | arg2 = wxString_in_helper(obj1); | |
8175 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8176 | temp2 = True; |
d14a1e28 RD |
8177 | } |
8178 | { | |
8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8180 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | Py_INCREF(Py_None); resultobj = Py_None; | |
8186 | { | |
8187 | if (temp2) | |
8188 | delete arg2; | |
8189 | } | |
8190 | return resultobj; | |
8191 | fail: | |
8192 | { | |
8193 | if (temp2) | |
8194 | delete arg2; | |
8195 | } | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
8200 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject *resultobj; | |
8202 | wxFont *arg1 = (wxFont *) 0 ; | |
8203 | bool arg2 ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | PyObject * obj1 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "self",(char *) "underlined", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8213 | arg2 = (bool) SWIG_AsBool(obj1); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8215 | { |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | (arg1)->SetUnderlined(arg2); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | Py_INCREF(Py_None); resultobj = Py_None; | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
8229 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject *resultobj; | |
8231 | wxFont *arg1 = (wxFont *) 0 ; | |
8232 | int arg2 ; | |
8233 | PyObject * obj0 = 0 ; | |
994141e6 | 8234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8235 | char *kwnames[] = { |
8236 | (char *) "self",(char *) "encoding", NULL | |
8237 | }; | |
8238 | ||
994141e6 | 8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8242 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8244 | { |
8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8246 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8247 | ||
8248 | wxPyEndAllowThreads(__tstate); | |
8249 | if (PyErr_Occurred()) SWIG_fail; | |
8250 | } | |
8251 | Py_INCREF(Py_None); resultobj = Py_None; | |
8252 | return resultobj; | |
8253 | fail: | |
8254 | return NULL; | |
8255 | } | |
8256 | ||
8257 | ||
8258 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8259 | PyObject *resultobj; | |
8260 | wxFont *arg1 = (wxFont *) 0 ; | |
8261 | wxNativeFontInfo *arg2 = 0 ; | |
8262 | PyObject * obj0 = 0 ; | |
8263 | PyObject * obj1 = 0 ; | |
8264 | char *kwnames[] = { | |
8265 | (char *) "self",(char *) "info", NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8271 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8272 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8273 | SWIG_fail; | |
d14a1e28 | 8274 | if (arg2 == NULL) { |
15afbcd0 RD |
8275 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8276 | SWIG_fail; | |
d14a1e28 RD |
8277 | } |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | Py_INCREF(Py_None); resultobj = Py_None; | |
8286 | return resultobj; | |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject *resultobj; | |
8294 | wxFont *arg1 = (wxFont *) 0 ; | |
8295 | wxString *arg2 = 0 ; | |
e811c8ce | 8296 | bool temp2 = False ; |
d14a1e28 RD |
8297 | PyObject * obj0 = 0 ; |
8298 | PyObject * obj1 = 0 ; | |
8299 | char *kwnames[] = { | |
8300 | (char *) "self",(char *) "info", NULL | |
8301 | }; | |
8302 | ||
8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8306 | { |
8307 | arg2 = wxString_in_helper(obj1); | |
8308 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8309 | temp2 = True; |
d14a1e28 RD |
8310 | } |
8311 | { | |
8312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8313 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8314 | ||
8315 | wxPyEndAllowThreads(__tstate); | |
8316 | if (PyErr_Occurred()) SWIG_fail; | |
8317 | } | |
8318 | Py_INCREF(Py_None); resultobj = Py_None; | |
8319 | { | |
8320 | if (temp2) | |
8321 | delete arg2; | |
8322 | } | |
8323 | return resultobj; | |
8324 | fail: | |
8325 | { | |
8326 | if (temp2) | |
8327 | delete arg2; | |
8328 | } | |
8329 | return NULL; | |
8330 | } | |
8331 | ||
8332 | ||
8333 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8334 | PyObject *resultobj; | |
8335 | wxFont *arg1 = (wxFont *) 0 ; | |
8336 | wxString *arg2 = 0 ; | |
e811c8ce | 8337 | bool temp2 = False ; |
d14a1e28 RD |
8338 | PyObject * obj0 = 0 ; |
8339 | PyObject * obj1 = 0 ; | |
8340 | char *kwnames[] = { | |
8341 | (char *) "self",(char *) "info", NULL | |
8342 | }; | |
8343 | ||
8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8347 | { |
8348 | arg2 = wxString_in_helper(obj1); | |
8349 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8350 | temp2 = True; |
d14a1e28 RD |
8351 | } |
8352 | { | |
8353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8354 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8355 | ||
8356 | wxPyEndAllowThreads(__tstate); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
8359 | Py_INCREF(Py_None); resultobj = Py_None; | |
8360 | { | |
8361 | if (temp2) | |
8362 | delete arg2; | |
8363 | } | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | { | |
8367 | if (temp2) | |
8368 | delete arg2; | |
8369 | } | |
8370 | return NULL; | |
8371 | } | |
8372 | ||
8373 | ||
8374 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8375 | PyObject *resultobj; | |
8376 | wxFont *arg1 = (wxFont *) 0 ; | |
8377 | wxString result; | |
8378 | PyObject * obj0 = 0 ; | |
8379 | char *kwnames[] = { | |
8380 | (char *) "self", NULL | |
8381 | }; | |
8382 | ||
8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8386 | { |
8387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8388 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8389 | ||
8390 | wxPyEndAllowThreads(__tstate); | |
8391 | if (PyErr_Occurred()) SWIG_fail; | |
8392 | } | |
8393 | { | |
8394 | #if wxUSE_UNICODE | |
8395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8396 | #else | |
8397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8398 | #endif | |
8399 | } | |
8400 | return resultobj; | |
8401 | fail: | |
8402 | return NULL; | |
8403 | } | |
8404 | ||
8405 | ||
8406 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8407 | PyObject *resultobj; | |
8408 | wxFont *arg1 = (wxFont *) 0 ; | |
8409 | wxString result; | |
8410 | PyObject * obj0 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8418 | { |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8421 | ||
8422 | wxPyEndAllowThreads(__tstate); | |
8423 | if (PyErr_Occurred()) SWIG_fail; | |
8424 | } | |
8425 | { | |
8426 | #if wxUSE_UNICODE | |
8427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8428 | #else | |
8429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8430 | #endif | |
8431 | } | |
8432 | return resultobj; | |
8433 | fail: | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
8438 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject *resultobj; | |
8440 | wxFont *arg1 = (wxFont *) 0 ; | |
8441 | wxString result; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | char *kwnames[] = { | |
8444 | (char *) "self", NULL | |
8445 | }; | |
8446 | ||
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8450 | { |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | { | |
8458 | #if wxUSE_UNICODE | |
8459 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8460 | #else | |
8461 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8462 | #endif | |
8463 | } | |
8464 | return resultobj; | |
8465 | fail: | |
8466 | return NULL; | |
8467 | } | |
8468 | ||
8469 | ||
8470 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8471 | PyObject *resultobj; | |
8472 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8473 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8474 | PyObject * obj0 = 0 ; |
8475 | PyObject * obj1 = 0 ; | |
8476 | char *kwnames[] = { | |
8477 | (char *) "self",(char *) "no", NULL | |
8478 | }; | |
8479 | ||
8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8483 | if (obj1) { |
15afbcd0 RD |
8484 | arg2 = (bool) SWIG_AsBool(obj1); |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8486 | } |
8487 | { | |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8489 | (arg1)->SetNoAntiAliasing(arg2); | |
8490 | ||
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
8494 | Py_INCREF(Py_None); resultobj = Py_None; | |
8495 | return resultobj; | |
8496 | fail: | |
8497 | return NULL; | |
8498 | } | |
8499 | ||
8500 | ||
8501 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8502 | PyObject *resultobj; | |
8503 | wxFont *arg1 = (wxFont *) 0 ; | |
8504 | bool result; | |
8505 | PyObject * obj0 = 0 ; | |
8506 | char *kwnames[] = { | |
8507 | (char *) "self", NULL | |
8508 | }; | |
8509 | ||
8510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8513 | { |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8516 | ||
8517 | wxPyEndAllowThreads(__tstate); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | } | |
4d5c3d91 | 8520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8521 | return resultobj; |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
8527 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject *resultobj; | |
8529 | int result; | |
8530 | char *kwnames[] = { | |
8531 | NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8535 | { | |
8536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8537 | result = (int)wxFont::GetDefaultEncoding(); | |
8538 | ||
8539 | wxPyEndAllowThreads(__tstate); | |
8540 | if (PyErr_Occurred()) SWIG_fail; | |
8541 | } | |
15afbcd0 | 8542 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8543 | return resultobj; |
8544 | fail: | |
8545 | return NULL; | |
8546 | } | |
8547 | ||
8548 | ||
8549 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8550 | PyObject *resultobj; | |
8551 | int arg1 ; | |
994141e6 | 8552 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8553 | char *kwnames[] = { |
8554 | (char *) "encoding", NULL | |
8555 | }; | |
8556 | ||
994141e6 | 8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8558 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
8559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8560 | { |
8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8562 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8563 | ||
8564 | wxPyEndAllowThreads(__tstate); | |
8565 | if (PyErr_Occurred()) SWIG_fail; | |
8566 | } | |
8567 | Py_INCREF(Py_None); resultobj = Py_None; | |
8568 | return resultobj; | |
8569 | fail: | |
8570 | return NULL; | |
8571 | } | |
8572 | ||
8573 | ||
8574 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8575 | PyObject *obj; | |
8576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8577 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8578 | Py_INCREF(obj); | |
8579 | return Py_BuildValue((char *)""); | |
8580 | } | |
8581 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject *resultobj; | |
8583 | wxPyFontEnumerator *result; | |
8584 | char *kwnames[] = { | |
8585 | NULL | |
8586 | }; | |
8587 | ||
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
15afbcd0 | 8596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
8597 | return resultobj; |
8598 | fail: | |
8599 | return NULL; | |
8600 | } | |
8601 | ||
8602 | ||
8603 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8604 | PyObject *resultobj; | |
8605 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8606 | PyObject * obj0 = 0 ; | |
8607 | char *kwnames[] = { | |
8608 | (char *) "self", NULL | |
8609 | }; | |
8610 | ||
8611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8614 | { |
8615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8616 | delete arg1; | |
8617 | ||
8618 | wxPyEndAllowThreads(__tstate); | |
8619 | if (PyErr_Occurred()) SWIG_fail; | |
8620 | } | |
8621 | Py_INCREF(Py_None); resultobj = Py_None; | |
8622 | return resultobj; | |
8623 | fail: | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
8628 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8629 | PyObject *resultobj; | |
8630 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8631 | PyObject *arg2 = (PyObject *) 0 ; | |
8632 | PyObject *arg3 = (PyObject *) 0 ; | |
8633 | bool arg4 ; | |
8634 | PyObject * obj0 = 0 ; | |
8635 | PyObject * obj1 = 0 ; | |
8636 | PyObject * obj2 = 0 ; | |
8637 | PyObject * obj3 = 0 ; | |
8638 | char *kwnames[] = { | |
8639 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8640 | }; | |
8641 | ||
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8645 | arg2 = obj1; |
8646 | arg3 = obj2; | |
15afbcd0 RD |
8647 | arg4 = (bool) SWIG_AsBool(obj3); |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8649 | { |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | Py_INCREF(Py_None); resultobj = Py_None; | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8664 | PyObject *resultobj; | |
8665 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8666 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8667 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8668 | bool result; |
8669 | PyObject * obj0 = 0 ; | |
994141e6 | 8670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8671 | PyObject * obj2 = 0 ; |
8672 | char *kwnames[] = { | |
8673 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8674 | }; | |
8675 | ||
994141e6 | 8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8679 | if (obj1) { |
15afbcd0 RD |
8680 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8682 | } |
d14a1e28 | 8683 | if (obj2) { |
15afbcd0 RD |
8684 | arg3 = (bool) SWIG_AsBool(obj2); |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8686 | } |
8687 | { | |
8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8689 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8690 | ||
8691 | wxPyEndAllowThreads(__tstate); | |
8692 | if (PyErr_Occurred()) SWIG_fail; | |
8693 | } | |
4d5c3d91 | 8694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8695 | return resultobj; |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8704 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8705 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8706 | bool result; | |
e811c8ce | 8707 | bool temp2 = False ; |
d14a1e28 RD |
8708 | PyObject * obj0 = 0 ; |
8709 | PyObject * obj1 = 0 ; | |
8710 | char *kwnames[] = { | |
8711 | (char *) "self",(char *) "facename", NULL | |
8712 | }; | |
8713 | ||
8714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8717 | if (obj1) { |
8718 | { | |
8719 | arg2 = wxString_in_helper(obj1); | |
8720 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8721 | temp2 = True; |
d14a1e28 RD |
8722 | } |
8723 | } | |
8724 | { | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8727 | ||
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
4d5c3d91 | 8731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8732 | { |
8733 | if (temp2) | |
8734 | delete arg2; | |
8735 | } | |
8736 | return resultobj; | |
8737 | fail: | |
8738 | { | |
8739 | if (temp2) | |
8740 | delete arg2; | |
8741 | } | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
8746 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8747 | PyObject *resultobj; | |
8748 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8749 | PyObject *result; | |
8750 | PyObject * obj0 = 0 ; | |
8751 | char *kwnames[] = { | |
8752 | (char *) "self", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8758 | { |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
8765 | resultobj = result; | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8775 | PyObject *result; | |
8776 | PyObject * obj0 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8784 | { |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | resultobj = result; | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
8798 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8799 | PyObject *obj; | |
8800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8801 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8802 | Py_INCREF(obj); | |
8803 | return Py_BuildValue((char *)""); | |
8804 | } | |
8805 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj; | |
8807 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8808 | int arg2 ; | |
8809 | PyObject * obj0 = 0 ; | |
994141e6 | 8810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8811 | char *kwnames[] = { |
8812 | (char *) "self",(char *) "Language", NULL | |
8813 | }; | |
8814 | ||
994141e6 | 8815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8818 | arg2 = (int) SWIG_AsInt(obj1); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8820 | if (arg1) (arg1)->Language = arg2; |
8821 | ||
8822 | Py_INCREF(Py_None); resultobj = Py_None; | |
8823 | return resultobj; | |
8824 | fail: | |
8825 | return NULL; | |
8826 | } | |
8827 | ||
8828 | ||
8829 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8832 | int result; | |
8833 | PyObject * obj0 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8841 | result = (int) ((arg1)->Language); |
8842 | ||
15afbcd0 | 8843 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8844 | return resultobj; |
8845 | fail: | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
8850 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject *resultobj; | |
8852 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8853 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8854 | bool temp2 = False ; |
d14a1e28 RD |
8855 | PyObject * obj0 = 0 ; |
8856 | PyObject * obj1 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self",(char *) "CanonicalName", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
8864 | { |
8865 | arg2 = wxString_in_helper(obj1); | |
8866 | if (arg2 == NULL) SWIG_fail; | |
8867 | temp2 = True; | |
8868 | } | |
196addbf | 8869 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8870 | |
8871 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8872 | { |
8873 | if (temp2) | |
8874 | delete arg2; | |
8875 | } | |
d14a1e28 RD |
8876 | return resultobj; |
8877 | fail: | |
7eae615b RD |
8878 | { |
8879 | if (temp2) | |
8880 | delete arg2; | |
8881 | } | |
d14a1e28 RD |
8882 | return NULL; |
8883 | } | |
8884 | ||
8885 | ||
8886 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8887 | PyObject *resultobj; | |
8888 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8889 | wxString *result; |
d14a1e28 RD |
8890 | PyObject * obj0 = 0 ; |
8891 | char *kwnames[] = { | |
8892 | (char *) "self", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 8898 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8899 | |
8900 | { | |
8901 | #if wxUSE_UNICODE | |
196addbf | 8902 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8903 | #else |
196addbf | 8904 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8905 | #endif |
8906 | } | |
8907 | return resultobj; | |
8908 | fail: | |
8909 | return NULL; | |
8910 | } | |
8911 | ||
8912 | ||
8913 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8914 | PyObject *resultobj; | |
8915 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8916 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8917 | bool temp2 = False ; |
d14a1e28 RD |
8918 | PyObject * obj0 = 0 ; |
8919 | PyObject * obj1 = 0 ; | |
8920 | char *kwnames[] = { | |
8921 | (char *) "self",(char *) "Description", NULL | |
8922 | }; | |
8923 | ||
8924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
8927 | { |
8928 | arg2 = wxString_in_helper(obj1); | |
8929 | if (arg2 == NULL) SWIG_fail; | |
8930 | temp2 = True; | |
8931 | } | |
196addbf | 8932 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8933 | |
8934 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8935 | { |
8936 | if (temp2) | |
8937 | delete arg2; | |
8938 | } | |
d14a1e28 RD |
8939 | return resultobj; |
8940 | fail: | |
7eae615b RD |
8941 | { |
8942 | if (temp2) | |
8943 | delete arg2; | |
8944 | } | |
d14a1e28 RD |
8945 | return NULL; |
8946 | } | |
8947 | ||
8948 | ||
8949 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj; | |
8951 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8952 | wxString *result; |
d14a1e28 RD |
8953 | PyObject * obj0 = 0 ; |
8954 | char *kwnames[] = { | |
8955 | (char *) "self", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 8961 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8962 | |
8963 | { | |
8964 | #if wxUSE_UNICODE | |
196addbf | 8965 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8966 | #else |
196addbf | 8967 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8968 | #endif |
8969 | } | |
8970 | return resultobj; | |
8971 | fail: | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
8976 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8977 | PyObject *obj; | |
8978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8979 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8980 | Py_INCREF(obj); | |
8981 | return Py_BuildValue((char *)""); | |
8982 | } | |
8983 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8984 | PyObject *resultobj; | |
8985 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8986 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8987 | wxLocale *result; | |
994141e6 RD |
8988 | PyObject * obj0 = 0 ; |
8989 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8990 | char *kwnames[] = { |
8991 | (char *) "language",(char *) "flags", NULL | |
8992 | }; | |
8993 | ||
994141e6 RD |
8994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8995 | if (obj0) { | |
15afbcd0 RD |
8996 | arg1 = (int) SWIG_AsInt(obj0); |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8998 | } |
8999 | if (obj1) { | |
15afbcd0 RD |
9000 | arg2 = (int) SWIG_AsInt(obj1); |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9002 | } |
d14a1e28 RD |
9003 | { |
9004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9005 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
9006 | ||
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
15afbcd0 | 9010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
9011 | return resultobj; |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9018 | PyObject *resultobj; | |
9019 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9020 | PyObject * obj0 = 0 ; | |
9021 | char *kwnames[] = { | |
9022 | (char *) "self", NULL | |
9023 | }; | |
9024 | ||
9025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9028 | { |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | delete arg1; | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | Py_INCREF(Py_None); resultobj = Py_None; | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj; | |
9044 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9045 | wxString *arg2 = 0 ; | |
9046 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9047 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9048 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9049 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
9050 | bool arg5 = (bool) True ; |
9051 | bool arg6 = (bool) False ; | |
d14a1e28 | 9052 | bool result; |
e811c8ce RD |
9053 | bool temp2 = False ; |
9054 | bool temp3 = False ; | |
9055 | bool temp4 = False ; | |
d14a1e28 RD |
9056 | PyObject * obj0 = 0 ; |
9057 | PyObject * obj1 = 0 ; | |
9058 | PyObject * obj2 = 0 ; | |
9059 | PyObject * obj3 = 0 ; | |
9060 | PyObject * obj4 = 0 ; | |
9061 | PyObject * obj5 = 0 ; | |
9062 | char *kwnames[] = { | |
9063 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9064 | }; | |
9065 | ||
9066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
9067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9069 | { |
9070 | arg2 = wxString_in_helper(obj1); | |
9071 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9072 | temp2 = True; |
d14a1e28 RD |
9073 | } |
9074 | if (obj2) { | |
9075 | { | |
9076 | arg3 = wxString_in_helper(obj2); | |
9077 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9078 | temp3 = True; |
d14a1e28 RD |
9079 | } |
9080 | } | |
9081 | if (obj3) { | |
9082 | { | |
9083 | arg4 = wxString_in_helper(obj3); | |
9084 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9085 | temp4 = True; |
d14a1e28 RD |
9086 | } |
9087 | } | |
9088 | if (obj4) { | |
15afbcd0 RD |
9089 | arg5 = (bool) SWIG_AsBool(obj4); |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9091 | } |
9092 | if (obj5) { | |
15afbcd0 RD |
9093 | arg6 = (bool) SWIG_AsBool(obj5); |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9095 | } |
9096 | { | |
9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9098 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9099 | ||
9100 | wxPyEndAllowThreads(__tstate); | |
9101 | if (PyErr_Occurred()) SWIG_fail; | |
9102 | } | |
4d5c3d91 | 9103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9104 | { |
9105 | if (temp2) | |
9106 | delete arg2; | |
9107 | } | |
9108 | { | |
9109 | if (temp3) | |
9110 | delete arg3; | |
9111 | } | |
9112 | { | |
9113 | if (temp4) | |
9114 | delete arg4; | |
9115 | } | |
9116 | return resultobj; | |
9117 | fail: | |
9118 | { | |
9119 | if (temp2) | |
9120 | delete arg2; | |
9121 | } | |
9122 | { | |
9123 | if (temp3) | |
9124 | delete arg3; | |
9125 | } | |
9126 | { | |
9127 | if (temp4) | |
9128 | delete arg4; | |
9129 | } | |
9130 | return NULL; | |
9131 | } | |
9132 | ||
9133 | ||
9134 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject *resultobj; | |
9136 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9137 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9138 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9139 | bool result; | |
9140 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9141 | PyObject * obj1 = 0 ; |
9142 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9143 | char *kwnames[] = { |
9144 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9145 | }; | |
9146 | ||
994141e6 | 9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9150 | if (obj1) { |
15afbcd0 RD |
9151 | arg2 = (int) SWIG_AsInt(obj1); |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9153 | } |
9154 | if (obj2) { | |
15afbcd0 RD |
9155 | arg3 = (int) SWIG_AsInt(obj2); |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9157 | } |
d14a1e28 RD |
9158 | { |
9159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9160 | result = (bool)(arg1)->Init(arg2,arg3); | |
9161 | ||
9162 | wxPyEndAllowThreads(__tstate); | |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
9164 | } | |
4d5c3d91 | 9165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9166 | return resultobj; |
9167 | fail: | |
9168 | return NULL; | |
9169 | } | |
9170 | ||
9171 | ||
9172 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9173 | PyObject *resultobj; | |
9174 | int result; | |
9175 | char *kwnames[] = { | |
9176 | NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9180 | { | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | result = (int)wxLocale::GetSystemLanguage(); | |
9183 | ||
9184 | wxPyEndAllowThreads(__tstate); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | } | |
15afbcd0 | 9187 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9188 | return resultobj; |
9189 | fail: | |
9190 | return NULL; | |
9191 | } | |
9192 | ||
9193 | ||
9194 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9195 | PyObject *resultobj; | |
9196 | int result; | |
9197 | char *kwnames[] = { | |
9198 | NULL | |
9199 | }; | |
9200 | ||
9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9202 | { | |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | result = (int)wxLocale::GetSystemEncoding(); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
15afbcd0 | 9209 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9210 | return resultobj; |
9211 | fail: | |
9212 | return NULL; | |
9213 | } | |
9214 | ||
9215 | ||
9216 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9217 | PyObject *resultobj; | |
9218 | wxString result; | |
9219 | char *kwnames[] = { | |
9220 | NULL | |
9221 | }; | |
9222 | ||
9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9224 | { | |
9225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9226 | result = wxLocale::GetSystemEncodingName(); | |
9227 | ||
9228 | wxPyEndAllowThreads(__tstate); | |
9229 | if (PyErr_Occurred()) SWIG_fail; | |
9230 | } | |
9231 | { | |
9232 | #if wxUSE_UNICODE | |
9233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9234 | #else | |
9235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9236 | #endif | |
9237 | } | |
9238 | return resultobj; | |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
9244 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9245 | PyObject *resultobj; | |
9246 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9247 | bool result; | |
9248 | PyObject * obj0 = 0 ; | |
9249 | char *kwnames[] = { | |
9250 | (char *) "self", NULL | |
9251 | }; | |
9252 | ||
9253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9256 | { |
9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9258 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9259 | ||
9260 | wxPyEndAllowThreads(__tstate); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
4d5c3d91 | 9263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9264 | return resultobj; |
9265 | fail: | |
9266 | return NULL; | |
9267 | } | |
9268 | ||
9269 | ||
9270 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9271 | PyObject *resultobj; | |
9272 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9273 | wxString result; | |
9274 | PyObject * obj0 = 0 ; | |
9275 | char *kwnames[] = { | |
9276 | (char *) "self", NULL | |
9277 | }; | |
9278 | ||
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9282 | { |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | { | |
9290 | #if wxUSE_UNICODE | |
9291 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9292 | #else | |
9293 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9294 | #endif | |
9295 | } | |
9296 | return resultobj; | |
9297 | fail: | |
9298 | return NULL; | |
9299 | } | |
9300 | ||
9301 | ||
9302 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9303 | PyObject *resultobj; | |
9304 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9305 | int result; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | char *kwnames[] = { | |
9308 | (char *) "self", NULL | |
9309 | }; | |
9310 | ||
9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9314 | { |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | } | |
15afbcd0 | 9321 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9322 | return resultobj; |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9331 | wxString result; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9340 | { |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | { | |
9348 | #if wxUSE_UNICODE | |
9349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9350 | #else | |
9351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9352 | #endif | |
9353 | } | |
9354 | return resultobj; | |
9355 | fail: | |
9356 | return NULL; | |
9357 | } | |
9358 | ||
9359 | ||
9360 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject *resultobj; | |
9362 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9363 | wxString result; | |
9364 | PyObject * obj0 = 0 ; | |
9365 | char *kwnames[] = { | |
9366 | (char *) "self", NULL | |
9367 | }; | |
9368 | ||
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9372 | { |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9375 | ||
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
9379 | { | |
9380 | #if wxUSE_UNICODE | |
9381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9382 | #else | |
9383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9384 | #endif | |
9385 | } | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj; | |
9394 | wxString *arg1 = 0 ; | |
e811c8ce | 9395 | bool temp1 = False ; |
d14a1e28 RD |
9396 | PyObject * obj0 = 0 ; |
9397 | char *kwnames[] = { | |
9398 | (char *) "prefix", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9402 | { | |
9403 | arg1 = wxString_in_helper(obj0); | |
9404 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9405 | temp1 = True; |
d14a1e28 RD |
9406 | } |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | Py_INCREF(Py_None); resultobj = Py_None; | |
9415 | { | |
9416 | if (temp1) | |
9417 | delete arg1; | |
9418 | } | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | { | |
9422 | if (temp1) | |
9423 | delete arg1; | |
9424 | } | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
9429 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9430 | PyObject *resultobj; | |
9431 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9432 | wxString *arg2 = 0 ; | |
9433 | bool result; | |
e811c8ce | 9434 | bool temp2 = False ; |
d14a1e28 RD |
9435 | PyObject * obj0 = 0 ; |
9436 | PyObject * obj1 = 0 ; | |
9437 | char *kwnames[] = { | |
9438 | (char *) "self",(char *) "szDomain", NULL | |
9439 | }; | |
9440 | ||
9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9444 | { |
9445 | arg2 = wxString_in_helper(obj1); | |
9446 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9447 | temp2 = True; |
d14a1e28 RD |
9448 | } |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9452 | ||
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
4d5c3d91 | 9456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9457 | { |
9458 | if (temp2) | |
9459 | delete arg2; | |
9460 | } | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | { | |
9464 | if (temp2) | |
9465 | delete arg2; | |
9466 | } | |
9467 | return NULL; | |
9468 | } | |
9469 | ||
9470 | ||
9471 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9472 | PyObject *resultobj; | |
9473 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9474 | wxString *arg2 = 0 ; | |
9475 | bool result; | |
e811c8ce | 9476 | bool temp2 = False ; |
d14a1e28 RD |
9477 | PyObject * obj0 = 0 ; |
9478 | PyObject * obj1 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self",(char *) "szDomain", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9486 | { |
9487 | arg2 = wxString_in_helper(obj1); | |
9488 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9489 | temp2 = True; |
d14a1e28 RD |
9490 | } |
9491 | { | |
9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9493 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9494 | ||
9495 | wxPyEndAllowThreads(__tstate); | |
9496 | if (PyErr_Occurred()) SWIG_fail; | |
9497 | } | |
4d5c3d91 | 9498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9499 | { |
9500 | if (temp2) | |
9501 | delete arg2; | |
9502 | } | |
9503 | return resultobj; | |
9504 | fail: | |
9505 | { | |
9506 | if (temp2) | |
9507 | delete arg2; | |
9508 | } | |
9509 | return NULL; | |
9510 | } | |
9511 | ||
9512 | ||
9513 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9514 | PyObject *resultobj; | |
9515 | int arg1 ; | |
9516 | wxLanguageInfo *result; | |
994141e6 | 9517 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9518 | char *kwnames[] = { |
9519 | (char *) "lang", NULL | |
9520 | }; | |
9521 | ||
994141e6 | 9522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9523 | arg1 = (int) SWIG_AsInt(obj0); |
9524 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9525 | { |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9528 | ||
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | } | |
15afbcd0 | 9532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9533 | return resultobj; |
9534 | fail: | |
9535 | return NULL; | |
9536 | } | |
9537 | ||
9538 | ||
9539 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9540 | PyObject *resultobj; | |
9541 | int arg1 ; | |
9542 | wxString result; | |
994141e6 | 9543 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9544 | char *kwnames[] = { |
9545 | (char *) "lang", NULL | |
9546 | }; | |
9547 | ||
994141e6 | 9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9549 | arg1 = (int) SWIG_AsInt(obj0); |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9551 | { |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = wxLocale::GetLanguageName(arg1); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | { | |
9559 | #if wxUSE_UNICODE | |
9560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9561 | #else | |
9562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9563 | #endif | |
9564 | } | |
9565 | return resultobj; | |
9566 | fail: | |
9567 | return NULL; | |
9568 | } | |
9569 | ||
9570 | ||
9571 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9572 | PyObject *resultobj; | |
9573 | wxString *arg1 = 0 ; | |
9574 | wxLanguageInfo *result; | |
e811c8ce | 9575 | bool temp1 = False ; |
d14a1e28 RD |
9576 | PyObject * obj0 = 0 ; |
9577 | char *kwnames[] = { | |
9578 | (char *) "locale", NULL | |
9579 | }; | |
9580 | ||
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9582 | { | |
9583 | arg1 = wxString_in_helper(obj0); | |
9584 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9585 | temp1 = True; |
d14a1e28 RD |
9586 | } |
9587 | { | |
9588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9589 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9590 | ||
9591 | wxPyEndAllowThreads(__tstate); | |
9592 | if (PyErr_Occurred()) SWIG_fail; | |
9593 | } | |
15afbcd0 | 9594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9595 | { |
9596 | if (temp1) | |
9597 | delete arg1; | |
9598 | } | |
9599 | return resultobj; | |
9600 | fail: | |
9601 | { | |
9602 | if (temp1) | |
9603 | delete arg1; | |
9604 | } | |
9605 | return NULL; | |
9606 | } | |
9607 | ||
9608 | ||
9609 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9610 | PyObject *resultobj; | |
9611 | wxLanguageInfo *arg1 = 0 ; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "info", NULL | |
9615 | }; | |
9616 | ||
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9620 | SWIG_fail; | |
d14a1e28 | 9621 | if (arg1 == NULL) { |
15afbcd0 RD |
9622 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9623 | SWIG_fail; | |
d14a1e28 RD |
9624 | } |
9625 | { | |
9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9627 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9628 | ||
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) SWIG_fail; | |
9631 | } | |
9632 | Py_INCREF(Py_None); resultobj = Py_None; | |
9633 | return resultobj; | |
9634 | fail: | |
9635 | return NULL; | |
9636 | } | |
9637 | ||
9638 | ||
9639 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject *resultobj; | |
9641 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9642 | wxString *arg2 = 0 ; | |
9643 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9644 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9645 | wxString result; | |
e811c8ce RD |
9646 | bool temp2 = False ; |
9647 | bool temp3 = False ; | |
d14a1e28 RD |
9648 | PyObject * obj0 = 0 ; |
9649 | PyObject * obj1 = 0 ; | |
9650 | PyObject * obj2 = 0 ; | |
9651 | char *kwnames[] = { | |
9652 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9653 | }; | |
9654 | ||
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9658 | { |
9659 | arg2 = wxString_in_helper(obj1); | |
9660 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9661 | temp2 = True; |
d14a1e28 RD |
9662 | } |
9663 | if (obj2) { | |
9664 | { | |
9665 | arg3 = wxString_in_helper(obj2); | |
9666 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9667 | temp3 = True; |
d14a1e28 RD |
9668 | } |
9669 | } | |
9670 | { | |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9672 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | { | |
9678 | #if wxUSE_UNICODE | |
9679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9680 | #else | |
9681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9682 | #endif | |
9683 | } | |
9684 | { | |
9685 | if (temp2) | |
9686 | delete arg2; | |
9687 | } | |
9688 | { | |
9689 | if (temp3) | |
9690 | delete arg3; | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | { | |
9695 | if (temp2) | |
9696 | delete arg2; | |
9697 | } | |
9698 | { | |
9699 | if (temp3) | |
9700 | delete arg3; | |
9701 | } | |
9702 | return NULL; | |
9703 | } | |
9704 | ||
9705 | ||
9706 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject *resultobj; | |
9708 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9709 | wxString *result; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | char *kwnames[] = { | |
9712 | (char *) "self", NULL | |
9713 | }; | |
9714 | ||
9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9718 | { |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9720 | { | |
9721 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9722 | result = (wxString *) &_result_ref; | |
9723 | } | |
9724 | ||
9725 | wxPyEndAllowThreads(__tstate); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
cc6dd355 RD |
9728 | { |
9729 | #if wxUSE_UNICODE | |
9730 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9731 | #else | |
9732 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9733 | #endif | |
9734 | } | |
d14a1e28 RD |
9735 | return resultobj; |
9736 | fail: | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
9741 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9742 | PyObject *obj; | |
9743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9744 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9745 | Py_INCREF(obj); | |
9746 | return Py_BuildValue((char *)""); | |
9747 | } | |
9748 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxLocale *result; | |
9751 | char *kwnames[] = { | |
9752 | NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (wxLocale *)wxGetLocale(); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
15afbcd0 | 9763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
9764 | return resultobj; |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
9770 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9771 | PyObject *resultobj; | |
9772 | wxString *arg1 = 0 ; | |
9773 | wxString result; | |
e811c8ce | 9774 | bool temp1 = False ; |
d14a1e28 RD |
9775 | PyObject * obj0 = 0 ; |
9776 | ||
9777 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9778 | { | |
9779 | arg1 = wxString_in_helper(obj0); | |
9780 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9781 | temp1 = True; |
d14a1e28 RD |
9782 | } |
9783 | { | |
9784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9785 | result = wxGetTranslation((wxString const &)*arg1); | |
9786 | ||
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
9790 | { | |
9791 | #if wxUSE_UNICODE | |
9792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9793 | #else | |
9794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9795 | #endif | |
9796 | } | |
9797 | { | |
9798 | if (temp1) | |
9799 | delete arg1; | |
9800 | } | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | { | |
9804 | if (temp1) | |
9805 | delete arg1; | |
9806 | } | |
9807 | return NULL; | |
9808 | } | |
9809 | ||
9810 | ||
9811 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9812 | PyObject *resultobj; | |
9813 | wxString *arg1 = 0 ; | |
9814 | wxString *arg2 = 0 ; | |
9815 | size_t arg3 ; | |
9816 | wxString result; | |
e811c8ce RD |
9817 | bool temp1 = False ; |
9818 | bool temp2 = False ; | |
d14a1e28 RD |
9819 | PyObject * obj0 = 0 ; |
9820 | PyObject * obj1 = 0 ; | |
9821 | PyObject * obj2 = 0 ; | |
9822 | ||
9823 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9824 | { | |
9825 | arg1 = wxString_in_helper(obj0); | |
9826 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9827 | temp1 = True; |
d14a1e28 RD |
9828 | } |
9829 | { | |
9830 | arg2 = wxString_in_helper(obj1); | |
9831 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9832 | temp2 = True; |
d14a1e28 | 9833 | } |
15afbcd0 RD |
9834 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9836 | { |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9838 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9839 | ||
9840 | wxPyEndAllowThreads(__tstate); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
9843 | { | |
9844 | #if wxUSE_UNICODE | |
9845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9846 | #else | |
9847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9848 | #endif | |
9849 | } | |
9850 | { | |
9851 | if (temp1) | |
9852 | delete arg1; | |
9853 | } | |
9854 | { | |
9855 | if (temp2) | |
9856 | delete arg2; | |
9857 | } | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | { | |
9861 | if (temp1) | |
9862 | delete arg1; | |
9863 | } | |
9864 | { | |
9865 | if (temp2) | |
9866 | delete arg2; | |
9867 | } | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
9872 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9873 | int argc; | |
9874 | PyObject *argv[4]; | |
9875 | int ii; | |
9876 | ||
9877 | argc = PyObject_Length(args); | |
9878 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9879 | argv[ii] = PyTuple_GetItem(args,ii); | |
9880 | } | |
9881 | if (argc == 1) { | |
9882 | int _v; | |
9883 | { | |
4d5c3d91 | 9884 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9885 | } |
9886 | if (_v) { | |
9887 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9888 | } | |
9889 | } | |
9890 | if (argc == 3) { | |
9891 | int _v; | |
9892 | { | |
4d5c3d91 | 9893 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9894 | } |
9895 | if (_v) { | |
9896 | { | |
4d5c3d91 | 9897 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9898 | } |
9899 | if (_v) { | |
15afbcd0 | 9900 | _v = SWIG_CheckUnsignedLong(argv[2]); |
d14a1e28 RD |
9901 | if (_v) { |
9902 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9903 | } | |
9904 | } | |
9905 | } | |
9906 | } | |
9907 | ||
9908 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxEncodingConverter *result; | |
9916 | char *kwnames[] = { | |
9917 | NULL | |
9918 | }; | |
9919 | ||
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9921 | { | |
9922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9923 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9924 | ||
9925 | wxPyEndAllowThreads(__tstate); | |
9926 | if (PyErr_Occurred()) SWIG_fail; | |
9927 | } | |
15afbcd0 | 9928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
9929 | return resultobj; |
9930 | fail: | |
9931 | return NULL; | |
9932 | } | |
9933 | ||
9934 | ||
9935 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9936 | PyObject *resultobj; | |
9937 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9938 | PyObject * obj0 = 0 ; | |
9939 | char *kwnames[] = { | |
9940 | (char *) "self", NULL | |
9941 | }; | |
9942 | ||
9943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
9945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9946 | { |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | delete arg1; | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | Py_INCREF(Py_None); resultobj = Py_None; | |
9954 | return resultobj; | |
9955 | fail: | |
9956 | return NULL; | |
9957 | } | |
9958 | ||
9959 | ||
9960 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9961 | PyObject *resultobj; | |
9962 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9963 | int arg2 ; | |
9964 | int arg3 ; | |
9965 | int arg4 = (int) wxCONVERT_STRICT ; | |
9966 | bool result; | |
9967 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9968 | PyObject * obj1 = 0 ; |
9969 | PyObject * obj2 = 0 ; | |
9970 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9971 | char *kwnames[] = { |
9972 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9973 | }; | |
9974 | ||
994141e6 | 9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
9977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9978 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
9979 | if (PyErr_Occurred()) SWIG_fail; | |
9980 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
9981 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9982 | if (obj3) { |
15afbcd0 RD |
9983 | arg4 = (int) SWIG_AsInt(obj3); |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9985 | } |
d14a1e28 RD |
9986 | { |
9987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9988 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9989 | ||
9990 | wxPyEndAllowThreads(__tstate); | |
9991 | if (PyErr_Occurred()) SWIG_fail; | |
9992 | } | |
4d5c3d91 | 9993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9994 | return resultobj; |
9995 | fail: | |
9996 | return NULL; | |
9997 | } | |
9998 | ||
9999 | ||
10000 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10001 | PyObject *resultobj; | |
10002 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10003 | wxString *arg2 = 0 ; | |
10004 | wxString result; | |
e811c8ce | 10005 | bool temp2 = False ; |
d14a1e28 RD |
10006 | PyObject * obj0 = 0 ; |
10007 | PyObject * obj1 = 0 ; | |
10008 | char *kwnames[] = { | |
10009 | (char *) "self",(char *) "input", NULL | |
10010 | }; | |
10011 | ||
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10015 | { |
10016 | arg2 = wxString_in_helper(obj1); | |
10017 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10018 | temp2 = True; |
d14a1e28 RD |
10019 | } |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | result = (arg1)->Convert((wxString const &)*arg2); | |
10023 | ||
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
10027 | { | |
10028 | #if wxUSE_UNICODE | |
10029 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10030 | #else | |
10031 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10032 | #endif | |
10033 | } | |
10034 | { | |
10035 | if (temp2) | |
10036 | delete arg2; | |
10037 | } | |
10038 | return resultobj; | |
10039 | fail: | |
10040 | { | |
10041 | if (temp2) | |
10042 | delete arg2; | |
10043 | } | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | int arg1 ; | |
10051 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10052 | wxFontEncodingArray result; | |
994141e6 RD |
10053 | PyObject * obj0 = 0 ; |
10054 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10055 | char *kwnames[] = { |
10056 | (char *) "enc",(char *) "platform", NULL | |
10057 | }; | |
10058 | ||
994141e6 | 10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10060 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10062 | if (obj1) { |
15afbcd0 RD |
10063 | arg2 = (int) SWIG_AsInt(obj1); |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10065 | } |
d14a1e28 RD |
10066 | { |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10069 | ||
10070 | wxPyEndAllowThreads(__tstate); | |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
10072 | } | |
10073 | { | |
10074 | resultobj = PyList_New(0); | |
10075 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10076 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10077 | PyList_Append(resultobj, number); | |
10078 | Py_DECREF(number); | |
10079 | } | |
10080 | } | |
10081 | return resultobj; | |
10082 | fail: | |
10083 | return NULL; | |
10084 | } | |
10085 | ||
10086 | ||
10087 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10088 | PyObject *resultobj; | |
10089 | int arg1 ; | |
10090 | wxFontEncodingArray result; | |
994141e6 | 10091 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10092 | char *kwnames[] = { |
10093 | (char *) "enc", NULL | |
10094 | }; | |
10095 | ||
994141e6 | 10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
10097 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10098 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10099 | { |
10100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10101 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10102 | ||
10103 | wxPyEndAllowThreads(__tstate); | |
10104 | if (PyErr_Occurred()) SWIG_fail; | |
10105 | } | |
10106 | { | |
10107 | resultobj = PyList_New(0); | |
10108 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10109 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10110 | PyList_Append(resultobj, number); | |
10111 | Py_DECREF(number); | |
10112 | } | |
10113 | } | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | int arg1 ; | |
10123 | int arg2 ; | |
10124 | bool result; | |
994141e6 RD |
10125 | PyObject * obj0 = 0 ; |
10126 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10127 | char *kwnames[] = { |
10128 | (char *) "encIn",(char *) "encOut", NULL | |
10129 | }; | |
10130 | ||
994141e6 | 10131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10132 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10136 | { |
10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10138 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10139 | ||
10140 | wxPyEndAllowThreads(__tstate); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
4d5c3d91 | 10143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10144 | return resultobj; |
10145 | fail: | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10151 | PyObject *obj; | |
10152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10153 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10154 | Py_INCREF(obj); | |
10155 | return Py_BuildValue((char *)""); | |
10156 | } | |
10157 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10158 | PyObject *resultobj; | |
10159 | wxDC *arg1 = (wxDC *) 0 ; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | char *kwnames[] = { | |
10162 | (char *) "self", NULL | |
10163 | }; | |
10164 | ||
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10168 | { |
10169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10170 | delete arg1; | |
10171 | ||
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | Py_INCREF(Py_None); resultobj = Py_None; | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
10182 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10183 | PyObject *resultobj; | |
10184 | wxDC *arg1 = (wxDC *) 0 ; | |
10185 | PyObject * obj0 = 0 ; | |
10186 | char *kwnames[] = { | |
10187 | (char *) "self", NULL | |
10188 | }; | |
10189 | ||
10190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10193 | { |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10195 | (arg1)->BeginDrawing(); | |
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_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10208 | PyObject *resultobj; | |
10209 | wxDC *arg1 = (wxDC *) 0 ; | |
10210 | PyObject * obj0 = 0 ; | |
10211 | char *kwnames[] = { | |
10212 | (char *) "self", NULL | |
10213 | }; | |
10214 | ||
10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10218 | { |
10219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10220 | (arg1)->EndDrawing(); | |
10221 | ||
10222 | wxPyEndAllowThreads(__tstate); | |
10223 | if (PyErr_Occurred()) SWIG_fail; | |
10224 | } | |
10225 | Py_INCREF(Py_None); resultobj = Py_None; | |
10226 | return resultobj; | |
10227 | fail: | |
10228 | return NULL; | |
10229 | } | |
10230 | ||
10231 | ||
10232 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject *resultobj; | |
10234 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10235 | int arg2 ; |
10236 | int arg3 ; | |
d14a1e28 RD |
10237 | wxColour *arg4 = 0 ; |
10238 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10239 | bool result; | |
10240 | wxColour temp4 ; | |
10241 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10242 | PyObject * obj1 = 0 ; |
10243 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10244 | PyObject * obj3 = 0 ; |
994141e6 | 10245 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10246 | char *kwnames[] = { |
10247 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10248 | }; | |
10249 | ||
994141e6 | 10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10253 | arg2 = (int) SWIG_AsInt(obj1); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | arg3 = (int) SWIG_AsInt(obj2); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10257 | { |
10258 | arg4 = &temp4; | |
10259 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10260 | } | |
994141e6 | 10261 | if (obj4) { |
15afbcd0 RD |
10262 | arg5 = (int) SWIG_AsInt(obj4); |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10264 | } |
d14a1e28 RD |
10265 | { |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
4d5c3d91 | 10272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10273 | return resultobj; |
10274 | fail: | |
10275 | return NULL; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject *resultobj; | |
10281 | wxDC *arg1 = (wxDC *) 0 ; | |
10282 | wxPoint *arg2 = 0 ; | |
10283 | wxColour *arg3 = 0 ; | |
10284 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10285 | bool result; | |
10286 | wxPoint temp2 ; | |
10287 | wxColour temp3 ; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | PyObject * obj1 = 0 ; | |
10290 | PyObject * obj2 = 0 ; | |
994141e6 | 10291 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10292 | char *kwnames[] = { |
10293 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10294 | }; | |
10295 | ||
994141e6 | 10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10299 | { |
10300 | arg2 = &temp2; | |
10301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10302 | } | |
10303 | { | |
10304 | arg3 = &temp3; | |
10305 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10306 | } | |
994141e6 | 10307 | if (obj3) { |
15afbcd0 RD |
10308 | arg4 = (int) SWIG_AsInt(obj3); |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10310 | } |
d14a1e28 RD |
10311 | { |
10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10313 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10314 | ||
10315 | wxPyEndAllowThreads(__tstate); | |
10316 | if (PyErr_Occurred()) SWIG_fail; | |
10317 | } | |
4d5c3d91 | 10318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10319 | return resultobj; |
10320 | fail: | |
10321 | return NULL; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject *resultobj; | |
10327 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10328 | int arg2 ; |
10329 | int arg3 ; | |
d14a1e28 RD |
10330 | wxColour result; |
10331 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10332 | PyObject * obj1 = 0 ; |
10333 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10334 | char *kwnames[] = { |
10335 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10336 | }; | |
10337 | ||
994141e6 | 10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10341 | arg2 = (int) SWIG_AsInt(obj1); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | arg3 = (int) SWIG_AsInt(obj2); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10345 | { |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | { | |
10353 | wxColour * resultptr; | |
10354 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10355 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10356 | } |
10357 | return resultobj; | |
10358 | fail: | |
10359 | return NULL; | |
10360 | } | |
10361 | ||
10362 | ||
10363 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10364 | PyObject *resultobj; | |
10365 | wxDC *arg1 = (wxDC *) 0 ; | |
10366 | wxPoint *arg2 = 0 ; | |
10367 | wxColour result; | |
10368 | wxPoint temp2 ; | |
10369 | PyObject * obj0 = 0 ; | |
10370 | PyObject * obj1 = 0 ; | |
10371 | char *kwnames[] = { | |
10372 | (char *) "self",(char *) "pt", NULL | |
10373 | }; | |
10374 | ||
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10378 | { |
10379 | arg2 = &temp2; | |
10380 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10381 | } | |
10382 | { | |
10383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10384 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10385 | ||
10386 | wxPyEndAllowThreads(__tstate); | |
10387 | if (PyErr_Occurred()) SWIG_fail; | |
10388 | } | |
10389 | { | |
10390 | wxColour * resultptr; | |
10391 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10392 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10393 | } |
10394 | return resultobj; | |
10395 | fail: | |
10396 | return NULL; | |
10397 | } | |
10398 | ||
10399 | ||
10400 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10401 | PyObject *resultobj; | |
10402 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10403 | int arg2 ; |
10404 | int arg3 ; | |
10405 | int arg4 ; | |
10406 | int arg5 ; | |
d14a1e28 | 10407 | PyObject * obj0 = 0 ; |
994141e6 RD |
10408 | PyObject * obj1 = 0 ; |
10409 | PyObject * obj2 = 0 ; | |
10410 | PyObject * obj3 = 0 ; | |
10411 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10412 | char *kwnames[] = { |
10413 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10414 | }; | |
10415 | ||
994141e6 | 10416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10419 | arg2 = (int) SWIG_AsInt(obj1); | |
10420 | if (PyErr_Occurred()) SWIG_fail; | |
10421 | arg3 = (int) SWIG_AsInt(obj2); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | arg4 = (int) SWIG_AsInt(obj3); | |
10424 | if (PyErr_Occurred()) SWIG_fail; | |
10425 | arg5 = (int) SWIG_AsInt(obj4); | |
10426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10427 | { |
10428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10429 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10430 | ||
10431 | wxPyEndAllowThreads(__tstate); | |
10432 | if (PyErr_Occurred()) SWIG_fail; | |
10433 | } | |
10434 | Py_INCREF(Py_None); resultobj = Py_None; | |
10435 | return resultobj; | |
10436 | fail: | |
10437 | return NULL; | |
10438 | } | |
10439 | ||
10440 | ||
10441 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10442 | PyObject *resultobj; | |
10443 | wxDC *arg1 = (wxDC *) 0 ; | |
10444 | wxPoint *arg2 = 0 ; | |
10445 | wxPoint *arg3 = 0 ; | |
10446 | wxPoint temp2 ; | |
10447 | wxPoint temp3 ; | |
10448 | PyObject * obj0 = 0 ; | |
10449 | PyObject * obj1 = 0 ; | |
10450 | PyObject * obj2 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10458 | { |
10459 | arg2 = &temp2; | |
10460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10461 | } | |
10462 | { | |
10463 | arg3 = &temp3; | |
10464 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10465 | } | |
10466 | { | |
10467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10468 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10469 | ||
10470 | wxPyEndAllowThreads(__tstate); | |
10471 | if (PyErr_Occurred()) SWIG_fail; | |
10472 | } | |
10473 | Py_INCREF(Py_None); resultobj = Py_None; | |
10474 | return resultobj; | |
10475 | fail: | |
10476 | return NULL; | |
10477 | } | |
10478 | ||
10479 | ||
10480 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10481 | PyObject *resultobj; | |
10482 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10483 | int arg2 ; |
10484 | int arg3 ; | |
d14a1e28 | 10485 | PyObject * obj0 = 0 ; |
994141e6 RD |
10486 | PyObject * obj1 = 0 ; |
10487 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10488 | char *kwnames[] = { |
10489 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10490 | }; | |
10491 | ||
994141e6 | 10492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10495 | arg2 = (int) SWIG_AsInt(obj1); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | arg3 = (int) SWIG_AsInt(obj2); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10499 | { |
10500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10501 | (arg1)->CrossHair(arg2,arg3); | |
10502 | ||
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | Py_INCREF(Py_None); resultobj = Py_None; | |
10507 | return resultobj; | |
10508 | fail: | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxDC *arg1 = (wxDC *) 0 ; | |
10516 | wxPoint *arg2 = 0 ; | |
10517 | wxPoint temp2 ; | |
10518 | PyObject * obj0 = 0 ; | |
10519 | PyObject * obj1 = 0 ; | |
10520 | char *kwnames[] = { | |
10521 | (char *) "self",(char *) "pt", NULL | |
10522 | }; | |
10523 | ||
10524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10527 | { |
10528 | arg2 = &temp2; | |
10529 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10530 | } | |
10531 | { | |
10532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10533 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10534 | ||
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
10538 | Py_INCREF(Py_None); resultobj = Py_None; | |
10539 | return resultobj; | |
10540 | fail: | |
10541 | return NULL; | |
10542 | } | |
10543 | ||
10544 | ||
10545 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10546 | PyObject *resultobj; | |
10547 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10548 | int arg2 ; |
10549 | int arg3 ; | |
10550 | int arg4 ; | |
10551 | int arg5 ; | |
10552 | int arg6 ; | |
10553 | int arg7 ; | |
d14a1e28 | 10554 | PyObject * obj0 = 0 ; |
994141e6 RD |
10555 | PyObject * obj1 = 0 ; |
10556 | PyObject * obj2 = 0 ; | |
10557 | PyObject * obj3 = 0 ; | |
10558 | PyObject * obj4 = 0 ; | |
10559 | PyObject * obj5 = 0 ; | |
10560 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10561 | char *kwnames[] = { |
10562 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10563 | }; | |
10564 | ||
994141e6 | 10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10568 | arg2 = (int) SWIG_AsInt(obj1); | |
10569 | if (PyErr_Occurred()) SWIG_fail; | |
10570 | arg3 = (int) SWIG_AsInt(obj2); | |
10571 | if (PyErr_Occurred()) SWIG_fail; | |
10572 | arg4 = (int) SWIG_AsInt(obj3); | |
10573 | if (PyErr_Occurred()) SWIG_fail; | |
10574 | arg5 = (int) SWIG_AsInt(obj4); | |
10575 | if (PyErr_Occurred()) SWIG_fail; | |
10576 | arg6 = (int) SWIG_AsInt(obj5); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | arg7 = (int) SWIG_AsInt(obj6); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10580 | { |
10581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10582 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10583 | ||
10584 | wxPyEndAllowThreads(__tstate); | |
10585 | if (PyErr_Occurred()) SWIG_fail; | |
10586 | } | |
10587 | Py_INCREF(Py_None); resultobj = Py_None; | |
10588 | return resultobj; | |
10589 | fail: | |
10590 | return NULL; | |
10591 | } | |
10592 | ||
10593 | ||
10594 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10595 | PyObject *resultobj; | |
10596 | wxDC *arg1 = (wxDC *) 0 ; | |
10597 | wxPoint *arg2 = 0 ; | |
10598 | wxPoint *arg3 = 0 ; | |
10599 | wxPoint *arg4 = 0 ; | |
10600 | wxPoint temp2 ; | |
10601 | wxPoint temp3 ; | |
10602 | wxPoint temp4 ; | |
10603 | PyObject * obj0 = 0 ; | |
10604 | PyObject * obj1 = 0 ; | |
10605 | PyObject * obj2 = 0 ; | |
10606 | PyObject * obj3 = 0 ; | |
10607 | char *kwnames[] = { | |
10608 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10609 | }; | |
10610 | ||
10611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10614 | { |
10615 | arg2 = &temp2; | |
10616 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10617 | } | |
10618 | { | |
10619 | arg3 = &temp3; | |
10620 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10621 | } | |
10622 | { | |
10623 | arg4 = &temp4; | |
10624 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10625 | } | |
10626 | { | |
10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10628 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10629 | ||
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
10633 | Py_INCREF(Py_None); resultobj = Py_None; | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
10640 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10641 | PyObject *resultobj; | |
10642 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10643 | int arg2 ; |
10644 | int arg3 ; | |
10645 | int arg4 ; | |
10646 | int arg5 ; | |
d14a1e28 | 10647 | PyObject * obj0 = 0 ; |
994141e6 RD |
10648 | PyObject * obj1 = 0 ; |
10649 | PyObject * obj2 = 0 ; | |
10650 | PyObject * obj3 = 0 ; | |
10651 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10652 | char *kwnames[] = { |
10653 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10654 | }; | |
10655 | ||
994141e6 | 10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10659 | arg2 = (int) SWIG_AsInt(obj1); | |
10660 | if (PyErr_Occurred()) SWIG_fail; | |
10661 | arg3 = (int) SWIG_AsInt(obj2); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | arg4 = (int) SWIG_AsInt(obj3); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | arg5 = (int) SWIG_AsInt(obj4); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10667 | { |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | Py_INCREF(Py_None); resultobj = Py_None; | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
d14a1e28 RD |
10681 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
10682 | PyObject *resultobj; | |
10683 | wxDC *arg1 = (wxDC *) 0 ; | |
10684 | wxRect *arg2 = 0 ; | |
10685 | wxRect temp2 ; | |
10686 | PyObject * obj0 = 0 ; | |
10687 | PyObject * obj1 = 0 ; | |
10688 | char *kwnames[] = { | |
10689 | (char *) "self",(char *) "rect", NULL | |
10690 | }; | |
10691 | ||
10692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10695 | { |
10696 | arg2 = &temp2; | |
10697 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10698 | } | |
10699 | { | |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | Py_INCREF(Py_None); resultobj = Py_None; | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
10713 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject *resultobj; | |
10715 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10716 | int arg2 ; |
10717 | int arg3 ; | |
10718 | int arg4 ; | |
10719 | int arg5 ; | |
d14a1e28 RD |
10720 | double arg6 ; |
10721 | double arg7 ; | |
10722 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10723 | PyObject * obj1 = 0 ; |
10724 | PyObject * obj2 = 0 ; | |
10725 | PyObject * obj3 = 0 ; | |
10726 | PyObject * obj4 = 0 ; | |
10727 | PyObject * obj5 = 0 ; | |
10728 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10729 | char *kwnames[] = { |
10730 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10731 | }; | |
10732 | ||
994141e6 | 10733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10736 | arg2 = (int) SWIG_AsInt(obj1); | |
10737 | if (PyErr_Occurred()) SWIG_fail; | |
10738 | arg3 = (int) SWIG_AsInt(obj2); | |
10739 | if (PyErr_Occurred()) SWIG_fail; | |
10740 | arg4 = (int) SWIG_AsInt(obj3); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | arg5 = (int) SWIG_AsInt(obj4); | |
10743 | if (PyErr_Occurred()) SWIG_fail; | |
10744 | arg6 = (double) SWIG_AsDouble(obj5); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | arg7 = (double) SWIG_AsDouble(obj6); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10748 | { |
10749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10750 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10751 | ||
10752 | wxPyEndAllowThreads(__tstate); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
10754 | } | |
10755 | Py_INCREF(Py_None); resultobj = Py_None; | |
10756 | return resultobj; | |
10757 | fail: | |
10758 | return NULL; | |
10759 | } | |
10760 | ||
10761 | ||
10762 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10763 | PyObject *resultobj; | |
10764 | wxDC *arg1 = (wxDC *) 0 ; | |
10765 | wxPoint *arg2 = 0 ; | |
10766 | wxSize *arg3 = 0 ; | |
10767 | double arg4 ; | |
10768 | double arg5 ; | |
10769 | wxPoint temp2 ; | |
10770 | wxSize temp3 ; | |
10771 | PyObject * obj0 = 0 ; | |
10772 | PyObject * obj1 = 0 ; | |
10773 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10774 | PyObject * obj3 = 0 ; |
10775 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10776 | char *kwnames[] = { |
10777 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10778 | }; | |
10779 | ||
994141e6 | 10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10783 | { |
10784 | arg2 = &temp2; | |
10785 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10786 | } | |
10787 | { | |
10788 | arg3 = &temp3; | |
10789 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10790 | } | |
15afbcd0 RD |
10791 | arg4 = (double) SWIG_AsDouble(obj3); |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
10793 | arg5 = (double) SWIG_AsDouble(obj4); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10795 | { |
10796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10797 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10798 | ||
10799 | wxPyEndAllowThreads(__tstate); | |
10800 | if (PyErr_Occurred()) SWIG_fail; | |
10801 | } | |
10802 | Py_INCREF(Py_None); resultobj = Py_None; | |
10803 | return resultobj; | |
10804 | fail: | |
10805 | return NULL; | |
10806 | } | |
10807 | ||
10808 | ||
10809 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10810 | PyObject *resultobj; | |
10811 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10812 | int arg2 ; |
10813 | int arg3 ; | |
d14a1e28 | 10814 | PyObject * obj0 = 0 ; |
994141e6 RD |
10815 | PyObject * obj1 = 0 ; |
10816 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10817 | char *kwnames[] = { |
10818 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10819 | }; | |
10820 | ||
994141e6 | 10821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10824 | arg2 = (int) SWIG_AsInt(obj1); | |
10825 | if (PyErr_Occurred()) SWIG_fail; | |
10826 | arg3 = (int) SWIG_AsInt(obj2); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10828 | { |
10829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10830 | (arg1)->DrawPoint(arg2,arg3); | |
10831 | ||
10832 | wxPyEndAllowThreads(__tstate); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | Py_INCREF(Py_None); resultobj = Py_None; | |
10836 | return resultobj; | |
10837 | fail: | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10843 | PyObject *resultobj; | |
10844 | wxDC *arg1 = (wxDC *) 0 ; | |
10845 | wxPoint *arg2 = 0 ; | |
10846 | wxPoint temp2 ; | |
10847 | PyObject * obj0 = 0 ; | |
10848 | PyObject * obj1 = 0 ; | |
10849 | char *kwnames[] = { | |
10850 | (char *) "self",(char *) "pt", NULL | |
10851 | }; | |
10852 | ||
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10856 | { |
10857 | arg2 = &temp2; | |
10858 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10859 | } | |
10860 | { | |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
10867 | Py_INCREF(Py_None); resultobj = Py_None; | |
10868 | return resultobj; | |
10869 | fail: | |
10870 | return NULL; | |
10871 | } | |
10872 | ||
10873 | ||
10874 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10875 | PyObject *resultobj; | |
10876 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10877 | int arg2 ; |
10878 | int arg3 ; | |
10879 | int arg4 ; | |
10880 | int arg5 ; | |
d14a1e28 | 10881 | PyObject * obj0 = 0 ; |
994141e6 RD |
10882 | PyObject * obj1 = 0 ; |
10883 | PyObject * obj2 = 0 ; | |
10884 | PyObject * obj3 = 0 ; | |
10885 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10886 | char *kwnames[] = { |
10887 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10888 | }; | |
10889 | ||
994141e6 | 10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10893 | arg2 = (int) SWIG_AsInt(obj1); | |
10894 | if (PyErr_Occurred()) SWIG_fail; | |
10895 | arg3 = (int) SWIG_AsInt(obj2); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | arg4 = (int) SWIG_AsInt(obj3); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | arg5 = (int) SWIG_AsInt(obj4); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10901 | { |
10902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10903 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10904 | ||
10905 | wxPyEndAllowThreads(__tstate); | |
10906 | if (PyErr_Occurred()) SWIG_fail; | |
10907 | } | |
10908 | Py_INCREF(Py_None); resultobj = Py_None; | |
10909 | return resultobj; | |
10910 | fail: | |
10911 | return NULL; | |
10912 | } | |
10913 | ||
10914 | ||
10915 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10916 | PyObject *resultobj; | |
10917 | wxDC *arg1 = (wxDC *) 0 ; | |
10918 | wxPoint *arg2 = 0 ; | |
10919 | wxSize *arg3 = 0 ; | |
10920 | wxPoint temp2 ; | |
10921 | wxSize temp3 ; | |
10922 | PyObject * obj0 = 0 ; | |
10923 | PyObject * obj1 = 0 ; | |
10924 | PyObject * obj2 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10932 | { |
10933 | arg2 = &temp2; | |
10934 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10935 | } | |
10936 | { | |
10937 | arg3 = &temp3; | |
10938 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10939 | } | |
10940 | { | |
10941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10942 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10943 | ||
10944 | wxPyEndAllowThreads(__tstate); | |
10945 | if (PyErr_Occurred()) SWIG_fail; | |
10946 | } | |
10947 | Py_INCREF(Py_None); resultobj = Py_None; | |
10948 | return resultobj; | |
10949 | fail: | |
10950 | return NULL; | |
10951 | } | |
10952 | ||
10953 | ||
10954 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10955 | PyObject *resultobj; | |
10956 | wxDC *arg1 = (wxDC *) 0 ; | |
10957 | wxRect *arg2 = 0 ; | |
10958 | wxRect temp2 ; | |
10959 | PyObject * obj0 = 0 ; | |
10960 | PyObject * obj1 = 0 ; | |
10961 | char *kwnames[] = { | |
10962 | (char *) "self",(char *) "rect", NULL | |
10963 | }; | |
10964 | ||
10965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10968 | { |
10969 | arg2 = &temp2; | |
10970 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10971 | } | |
10972 | { | |
10973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10974 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10975 | ||
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | Py_INCREF(Py_None); resultobj = Py_None; | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
10986 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10987 | PyObject *resultobj; | |
10988 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10989 | int arg2 ; |
10990 | int arg3 ; | |
10991 | int arg4 ; | |
10992 | int arg5 ; | |
d14a1e28 RD |
10993 | double arg6 ; |
10994 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10995 | PyObject * obj1 = 0 ; |
10996 | PyObject * obj2 = 0 ; | |
10997 | PyObject * obj3 = 0 ; | |
10998 | PyObject * obj4 = 0 ; | |
10999 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11000 | char *kwnames[] = { |
11001 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11002 | }; | |
11003 | ||
994141e6 | 11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
11005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11007 | arg2 = (int) SWIG_AsInt(obj1); | |
11008 | if (PyErr_Occurred()) SWIG_fail; | |
11009 | arg3 = (int) SWIG_AsInt(obj2); | |
11010 | if (PyErr_Occurred()) SWIG_fail; | |
11011 | arg4 = (int) SWIG_AsInt(obj3); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | arg5 = (int) SWIG_AsInt(obj4); | |
11014 | if (PyErr_Occurred()) SWIG_fail; | |
11015 | arg6 = (double) SWIG_AsDouble(obj5); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11017 | { |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxDC *arg1 = (wxDC *) 0 ; | |
11034 | wxPoint *arg2 = 0 ; | |
11035 | wxSize *arg3 = 0 ; | |
11036 | double arg4 ; | |
11037 | wxPoint temp2 ; | |
11038 | wxSize temp3 ; | |
11039 | PyObject * obj0 = 0 ; | |
11040 | PyObject * obj1 = 0 ; | |
11041 | PyObject * obj2 = 0 ; | |
994141e6 | 11042 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11043 | char *kwnames[] = { |
11044 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
11045 | }; | |
11046 | ||
994141e6 | 11047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11050 | { |
11051 | arg2 = &temp2; | |
11052 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11053 | } | |
11054 | { | |
11055 | arg3 = &temp3; | |
11056 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11057 | } | |
15afbcd0 RD |
11058 | arg4 = (double) SWIG_AsDouble(obj3); |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11060 | { |
11061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11062 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
11063 | ||
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | Py_INCREF(Py_None); resultobj = Py_None; | |
11068 | return resultobj; | |
11069 | fail: | |
11070 | return NULL; | |
11071 | } | |
11072 | ||
11073 | ||
11074 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11075 | PyObject *resultobj; | |
11076 | wxDC *arg1 = (wxDC *) 0 ; | |
11077 | wxRect *arg2 = 0 ; | |
11078 | double arg3 ; | |
11079 | wxRect temp2 ; | |
11080 | PyObject * obj0 = 0 ; | |
11081 | PyObject * obj1 = 0 ; | |
994141e6 | 11082 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11083 | char *kwnames[] = { |
11084 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
11085 | }; | |
11086 | ||
994141e6 | 11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11090 | { |
11091 | arg2 = &temp2; | |
11092 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11093 | } | |
15afbcd0 RD |
11094 | arg3 = (double) SWIG_AsDouble(obj2); |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11096 | { |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | Py_INCREF(Py_None); resultobj = Py_None; | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
11110 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject *resultobj; | |
11112 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11113 | int arg2 ; |
11114 | int arg3 ; | |
11115 | int arg4 ; | |
d14a1e28 | 11116 | PyObject * obj0 = 0 ; |
994141e6 RD |
11117 | PyObject * obj1 = 0 ; |
11118 | PyObject * obj2 = 0 ; | |
11119 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11120 | char *kwnames[] = { |
11121 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11122 | }; | |
11123 | ||
994141e6 | 11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11127 | arg2 = (int) SWIG_AsInt(obj1); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | arg3 = (int) SWIG_AsInt(obj2); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | arg4 = (int) SWIG_AsInt(obj3); | |
11132 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11133 | { |
11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11135 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11136 | ||
11137 | wxPyEndAllowThreads(__tstate); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | } | |
11140 | Py_INCREF(Py_None); resultobj = Py_None; | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj; | |
11149 | wxDC *arg1 = (wxDC *) 0 ; | |
11150 | wxPoint *arg2 = 0 ; | |
e811c8ce | 11151 | int arg3 ; |
d14a1e28 RD |
11152 | wxPoint temp2 ; |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
994141e6 | 11155 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11156 | char *kwnames[] = { |
11157 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11158 | }; | |
11159 | ||
994141e6 | 11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11163 | { |
11164 | arg2 = &temp2; | |
11165 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11166 | } | |
15afbcd0 RD |
11167 | arg3 = (int) SWIG_AsInt(obj2); |
11168 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11169 | { |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | Py_INCREF(Py_None); resultobj = Py_None; | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11184 | PyObject *resultobj; | |
11185 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11186 | int arg2 ; |
11187 | int arg3 ; | |
11188 | int arg4 ; | |
11189 | int arg5 ; | |
d14a1e28 | 11190 | PyObject * obj0 = 0 ; |
994141e6 RD |
11191 | PyObject * obj1 = 0 ; |
11192 | PyObject * obj2 = 0 ; | |
11193 | PyObject * obj3 = 0 ; | |
11194 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11195 | char *kwnames[] = { |
11196 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11197 | }; | |
11198 | ||
994141e6 | 11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11202 | arg2 = (int) SWIG_AsInt(obj1); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | arg3 = (int) SWIG_AsInt(obj2); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | arg4 = (int) SWIG_AsInt(obj3); | |
11207 | if (PyErr_Occurred()) SWIG_fail; | |
11208 | arg5 = (int) SWIG_AsInt(obj4); | |
11209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11210 | { |
11211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11212 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11213 | ||
11214 | wxPyEndAllowThreads(__tstate); | |
11215 | if (PyErr_Occurred()) SWIG_fail; | |
11216 | } | |
11217 | Py_INCREF(Py_None); resultobj = Py_None; | |
11218 | return resultobj; | |
11219 | fail: | |
11220 | return NULL; | |
11221 | } | |
11222 | ||
11223 | ||
11224 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11225 | PyObject *resultobj; | |
11226 | wxDC *arg1 = (wxDC *) 0 ; | |
11227 | wxPoint *arg2 = 0 ; | |
11228 | wxSize *arg3 = 0 ; | |
11229 | wxPoint temp2 ; | |
11230 | wxSize temp3 ; | |
11231 | PyObject * obj0 = 0 ; | |
11232 | PyObject * obj1 = 0 ; | |
11233 | PyObject * obj2 = 0 ; | |
11234 | char *kwnames[] = { | |
11235 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11236 | }; | |
11237 | ||
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
11239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11241 | { |
11242 | arg2 = &temp2; | |
11243 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11244 | } | |
11245 | { | |
11246 | arg3 = &temp3; | |
11247 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11248 | } | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11252 | ||
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
11256 | Py_INCREF(Py_None); resultobj = Py_None; | |
11257 | return resultobj; | |
11258 | fail: | |
11259 | return NULL; | |
11260 | } | |
11261 | ||
11262 | ||
11263 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11264 | PyObject *resultobj; | |
11265 | wxDC *arg1 = (wxDC *) 0 ; | |
11266 | wxRect *arg2 = 0 ; | |
11267 | wxRect temp2 ; | |
11268 | PyObject * obj0 = 0 ; | |
11269 | PyObject * obj1 = 0 ; | |
11270 | char *kwnames[] = { | |
11271 | (char *) "self",(char *) "rect", NULL | |
11272 | }; | |
11273 | ||
11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11277 | { |
11278 | arg2 = &temp2; | |
11279 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11280 | } | |
11281 | { | |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11284 | ||
11285 | wxPyEndAllowThreads(__tstate); | |
11286 | if (PyErr_Occurred()) SWIG_fail; | |
11287 | } | |
11288 | Py_INCREF(Py_None); resultobj = Py_None; | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | return NULL; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11296 | PyObject *resultobj; | |
11297 | wxDC *arg1 = (wxDC *) 0 ; | |
11298 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11299 | int arg3 ; |
11300 | int arg4 ; | |
d14a1e28 RD |
11301 | PyObject * obj0 = 0 ; |
11302 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11303 | PyObject * obj2 = 0 ; |
11304 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11305 | char *kwnames[] = { |
11306 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11307 | }; | |
11308 | ||
994141e6 | 11309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11314 | SWIG_fail; | |
d14a1e28 | 11315 | if (arg2 == NULL) { |
15afbcd0 RD |
11316 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11317 | SWIG_fail; | |
994141e6 | 11318 | } |
15afbcd0 RD |
11319 | arg3 = (int) SWIG_AsInt(obj2); |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | arg4 = (int) SWIG_AsInt(obj3); | |
11322 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11323 | { |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | Py_INCREF(Py_None); resultobj = Py_None; | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
11337 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11338 | PyObject *resultobj; | |
11339 | wxDC *arg1 = (wxDC *) 0 ; | |
11340 | wxIcon *arg2 = 0 ; | |
11341 | wxPoint *arg3 = 0 ; | |
11342 | wxPoint temp3 ; | |
11343 | PyObject * obj0 = 0 ; | |
11344 | PyObject * obj1 = 0 ; | |
11345 | PyObject * obj2 = 0 ; | |
11346 | char *kwnames[] = { | |
11347 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11348 | }; | |
11349 | ||
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
11351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11355 | SWIG_fail; | |
d14a1e28 | 11356 | if (arg2 == NULL) { |
15afbcd0 RD |
11357 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11358 | SWIG_fail; | |
d14a1e28 RD |
11359 | } |
11360 | { | |
11361 | arg3 = &temp3; | |
11362 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11363 | } | |
11364 | { | |
11365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11366 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11367 | ||
11368 | wxPyEndAllowThreads(__tstate); | |
11369 | if (PyErr_Occurred()) SWIG_fail; | |
11370 | } | |
11371 | Py_INCREF(Py_None); resultobj = Py_None; | |
11372 | return resultobj; | |
11373 | fail: | |
11374 | return NULL; | |
11375 | } | |
11376 | ||
11377 | ||
11378 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11379 | PyObject *resultobj; | |
11380 | wxDC *arg1 = (wxDC *) 0 ; | |
11381 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11382 | int arg3 ; |
11383 | int arg4 ; | |
11384 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11385 | PyObject * obj0 = 0 ; |
11386 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11387 | PyObject * obj2 = 0 ; |
11388 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11389 | PyObject * obj4 = 0 ; |
11390 | char *kwnames[] = { | |
11391 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11392 | }; | |
11393 | ||
994141e6 | 11394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11399 | SWIG_fail; | |
d14a1e28 | 11400 | if (arg2 == NULL) { |
15afbcd0 RD |
11401 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11402 | SWIG_fail; | |
994141e6 | 11403 | } |
15afbcd0 RD |
11404 | arg3 = (int) SWIG_AsInt(obj2); |
11405 | if (PyErr_Occurred()) SWIG_fail; | |
11406 | arg4 = (int) SWIG_AsInt(obj3); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11408 | if (obj4) { |
15afbcd0 RD |
11409 | arg5 = (bool) SWIG_AsBool(obj4); |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11411 | } |
11412 | { | |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11415 | ||
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
11419 | Py_INCREF(Py_None); resultobj = Py_None; | |
11420 | return resultobj; | |
11421 | fail: | |
11422 | return NULL; | |
11423 | } | |
11424 | ||
11425 | ||
11426 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11427 | PyObject *resultobj; | |
11428 | wxDC *arg1 = (wxDC *) 0 ; | |
11429 | wxBitmap *arg2 = 0 ; | |
11430 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11431 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11432 | wxPoint temp3 ; |
11433 | PyObject * obj0 = 0 ; | |
11434 | PyObject * obj1 = 0 ; | |
11435 | PyObject * obj2 = 0 ; | |
11436 | PyObject * obj3 = 0 ; | |
11437 | char *kwnames[] = { | |
11438 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11439 | }; | |
11440 | ||
11441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11446 | SWIG_fail; | |
d14a1e28 | 11447 | if (arg2 == NULL) { |
15afbcd0 RD |
11448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11449 | SWIG_fail; | |
d14a1e28 RD |
11450 | } |
11451 | { | |
11452 | arg3 = &temp3; | |
11453 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11454 | } | |
11455 | if (obj3) { | |
15afbcd0 RD |
11456 | arg4 = (bool) SWIG_AsBool(obj3); |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11458 | } |
11459 | { | |
11460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11461 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11462 | ||
11463 | wxPyEndAllowThreads(__tstate); | |
11464 | if (PyErr_Occurred()) SWIG_fail; | |
11465 | } | |
11466 | Py_INCREF(Py_None); resultobj = Py_None; | |
11467 | return resultobj; | |
11468 | fail: | |
11469 | return NULL; | |
11470 | } | |
11471 | ||
11472 | ||
11473 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11474 | PyObject *resultobj; | |
11475 | wxDC *arg1 = (wxDC *) 0 ; | |
11476 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11477 | int arg3 ; |
11478 | int arg4 ; | |
11479 | bool temp2 = False ; | |
d14a1e28 RD |
11480 | PyObject * obj0 = 0 ; |
11481 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11482 | PyObject * obj2 = 0 ; |
11483 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11484 | char *kwnames[] = { |
11485 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11486 | }; | |
11487 | ||
994141e6 | 11488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11491 | { |
11492 | arg2 = wxString_in_helper(obj1); | |
11493 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11494 | temp2 = True; |
d14a1e28 | 11495 | } |
15afbcd0 RD |
11496 | arg3 = (int) SWIG_AsInt(obj2); |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | arg4 = (int) SWIG_AsInt(obj3); | |
11499 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11500 | { |
11501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11502 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11503 | ||
11504 | wxPyEndAllowThreads(__tstate); | |
11505 | if (PyErr_Occurred()) SWIG_fail; | |
11506 | } | |
11507 | Py_INCREF(Py_None); resultobj = Py_None; | |
11508 | { | |
11509 | if (temp2) | |
11510 | delete arg2; | |
11511 | } | |
11512 | return resultobj; | |
11513 | fail: | |
11514 | { | |
11515 | if (temp2) | |
11516 | delete arg2; | |
11517 | } | |
11518 | return NULL; | |
11519 | } | |
11520 | ||
11521 | ||
11522 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11523 | PyObject *resultobj; | |
11524 | wxDC *arg1 = (wxDC *) 0 ; | |
11525 | wxString *arg2 = 0 ; | |
11526 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11527 | bool temp2 = False ; |
d14a1e28 RD |
11528 | wxPoint temp3 ; |
11529 | PyObject * obj0 = 0 ; | |
11530 | PyObject * obj1 = 0 ; | |
11531 | PyObject * obj2 = 0 ; | |
11532 | char *kwnames[] = { | |
11533 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11534 | }; | |
11535 | ||
11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
11537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11539 | { |
11540 | arg2 = wxString_in_helper(obj1); | |
11541 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11542 | temp2 = True; |
d14a1e28 RD |
11543 | } |
11544 | { | |
11545 | arg3 = &temp3; | |
11546 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11547 | } | |
11548 | { | |
11549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11550 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11551 | ||
11552 | wxPyEndAllowThreads(__tstate); | |
11553 | if (PyErr_Occurred()) SWIG_fail; | |
11554 | } | |
11555 | Py_INCREF(Py_None); resultobj = Py_None; | |
11556 | { | |
11557 | if (temp2) | |
11558 | delete arg2; | |
11559 | } | |
11560 | return resultobj; | |
11561 | fail: | |
11562 | { | |
11563 | if (temp2) | |
11564 | delete arg2; | |
11565 | } | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
11570 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11571 | PyObject *resultobj; | |
11572 | wxDC *arg1 = (wxDC *) 0 ; | |
11573 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11574 | int arg3 ; |
11575 | int arg4 ; | |
d14a1e28 | 11576 | double arg5 ; |
e811c8ce | 11577 | bool temp2 = False ; |
d14a1e28 RD |
11578 | PyObject * obj0 = 0 ; |
11579 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11580 | PyObject * obj2 = 0 ; |
11581 | PyObject * obj3 = 0 ; | |
11582 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11583 | char *kwnames[] = { |
11584 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11585 | }; | |
11586 | ||
994141e6 | 11587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11590 | { |
11591 | arg2 = wxString_in_helper(obj1); | |
11592 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11593 | temp2 = True; |
d14a1e28 | 11594 | } |
15afbcd0 RD |
11595 | arg3 = (int) SWIG_AsInt(obj2); |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | arg4 = (int) SWIG_AsInt(obj3); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | arg5 = (double) SWIG_AsDouble(obj4); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11601 | { |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11603 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11604 | ||
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
11608 | Py_INCREF(Py_None); resultobj = Py_None; | |
11609 | { | |
11610 | if (temp2) | |
11611 | delete arg2; | |
11612 | } | |
11613 | return resultobj; | |
11614 | fail: | |
11615 | { | |
11616 | if (temp2) | |
11617 | delete arg2; | |
11618 | } | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
11623 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11624 | PyObject *resultobj; | |
11625 | wxDC *arg1 = (wxDC *) 0 ; | |
11626 | wxString *arg2 = 0 ; | |
11627 | wxPoint *arg3 = 0 ; | |
11628 | double arg4 ; | |
e811c8ce | 11629 | bool temp2 = False ; |
d14a1e28 RD |
11630 | wxPoint temp3 ; |
11631 | PyObject * obj0 = 0 ; | |
11632 | PyObject * obj1 = 0 ; | |
11633 | PyObject * obj2 = 0 ; | |
994141e6 | 11634 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11635 | char *kwnames[] = { |
11636 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11637 | }; | |
11638 | ||
994141e6 | 11639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11642 | { |
11643 | arg2 = wxString_in_helper(obj1); | |
11644 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11645 | temp2 = True; |
d14a1e28 RD |
11646 | } |
11647 | { | |
11648 | arg3 = &temp3; | |
11649 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11650 | } | |
15afbcd0 RD |
11651 | arg4 = (double) SWIG_AsDouble(obj3); |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11653 | { |
11654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11655 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11656 | ||
11657 | wxPyEndAllowThreads(__tstate); | |
11658 | if (PyErr_Occurred()) SWIG_fail; | |
11659 | } | |
11660 | Py_INCREF(Py_None); resultobj = Py_None; | |
11661 | { | |
11662 | if (temp2) | |
11663 | delete arg2; | |
11664 | } | |
11665 | return resultobj; | |
11666 | fail: | |
11667 | { | |
11668 | if (temp2) | |
11669 | delete arg2; | |
11670 | } | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
11675 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11676 | PyObject *resultobj; | |
11677 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11678 | int arg2 ; |
11679 | int arg3 ; | |
11680 | int arg4 ; | |
11681 | int arg5 ; | |
d14a1e28 | 11682 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11683 | int arg7 ; |
11684 | int arg8 ; | |
d14a1e28 | 11685 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11686 | bool arg10 = (bool) False ; |
11687 | int arg11 = (int) -1 ; | |
11688 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11689 | bool result; |
11690 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11691 | PyObject * obj1 = 0 ; |
11692 | PyObject * obj2 = 0 ; | |
11693 | PyObject * obj3 = 0 ; | |
11694 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11695 | PyObject * obj5 = 0 ; |
994141e6 RD |
11696 | PyObject * obj6 = 0 ; |
11697 | PyObject * obj7 = 0 ; | |
11698 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11699 | PyObject * obj9 = 0 ; |
994141e6 RD |
11700 | PyObject * obj10 = 0 ; |
11701 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11702 | char *kwnames[] = { |
11703 | (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 | |
11704 | }; | |
11705 | ||
994141e6 | 11706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
15afbcd0 RD |
11707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11709 | arg2 = (int) SWIG_AsInt(obj1); | |
11710 | if (PyErr_Occurred()) SWIG_fail; | |
11711 | arg3 = (int) SWIG_AsInt(obj2); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | arg4 = (int) SWIG_AsInt(obj3); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | arg5 = (int) SWIG_AsInt(obj4); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
11718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11719 | arg7 = (int) SWIG_AsInt(obj6); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | arg8 = (int) SWIG_AsInt(obj7); | |
11722 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11723 | if (obj8) { |
15afbcd0 RD |
11724 | arg9 = (int) SWIG_AsInt(obj8); |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11726 | } |
d14a1e28 | 11727 | if (obj9) { |
15afbcd0 RD |
11728 | arg10 = (bool) SWIG_AsBool(obj9); |
11729 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11730 | } |
11731 | if (obj10) { | |
15afbcd0 RD |
11732 | arg11 = (int) SWIG_AsInt(obj10); |
11733 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11734 | } |
11735 | if (obj11) { | |
15afbcd0 RD |
11736 | arg12 = (int) SWIG_AsInt(obj11); |
11737 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11738 | } |
11739 | { | |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
4d5c3d91 | 11746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11747 | return resultobj; |
11748 | fail: | |
11749 | return NULL; | |
11750 | } | |
11751 | ||
11752 | ||
11753 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj; | |
11755 | wxDC *arg1 = (wxDC *) 0 ; | |
11756 | wxPoint *arg2 = 0 ; | |
11757 | wxSize *arg3 = 0 ; | |
11758 | wxDC *arg4 = (wxDC *) 0 ; | |
11759 | wxPoint *arg5 = 0 ; | |
11760 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11761 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11762 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11763 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11764 | bool result; | |
11765 | wxPoint temp2 ; | |
11766 | wxSize temp3 ; | |
11767 | wxPoint temp5 ; | |
11768 | wxPoint temp8 ; | |
11769 | PyObject * obj0 = 0 ; | |
11770 | PyObject * obj1 = 0 ; | |
11771 | PyObject * obj2 = 0 ; | |
11772 | PyObject * obj3 = 0 ; | |
11773 | PyObject * obj4 = 0 ; | |
994141e6 | 11774 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11775 | PyObject * obj6 = 0 ; |
11776 | PyObject * obj7 = 0 ; | |
11777 | char *kwnames[] = { | |
11778 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11779 | }; | |
11780 | ||
994141e6 | 11781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
11782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11784 | { |
11785 | arg2 = &temp2; | |
11786 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11787 | } | |
11788 | { | |
11789 | arg3 = &temp3; | |
11790 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11791 | } | |
15afbcd0 RD |
11792 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
11793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11794 | { |
11795 | arg5 = &temp5; | |
11796 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11797 | } | |
994141e6 | 11798 | if (obj5) { |
15afbcd0 RD |
11799 | arg6 = (int) SWIG_AsInt(obj5); |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11801 | } |
d14a1e28 | 11802 | if (obj6) { |
15afbcd0 RD |
11803 | arg7 = (bool) SWIG_AsBool(obj6); |
11804 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11805 | } |
11806 | if (obj7) { | |
11807 | { | |
11808 | arg8 = &temp8; | |
11809 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11810 | } | |
11811 | } | |
11812 | { | |
11813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11814 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11815 | ||
11816 | wxPyEndAllowThreads(__tstate); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
11818 | } | |
4d5c3d91 | 11819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11820 | return resultobj; |
11821 | fail: | |
11822 | return NULL; | |
11823 | } | |
11824 | ||
11825 | ||
11826 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11827 | PyObject *resultobj; | |
11828 | wxDC *arg1 = (wxDC *) 0 ; | |
11829 | int arg2 ; | |
11830 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11831 | int arg4 = (int) 0 ; |
11832 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11833 | PyObject * obj0 = 0 ; |
11834 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11835 | PyObject * obj2 = 0 ; |
11836 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11837 | char *kwnames[] = { |
11838 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11839 | }; | |
11840 | ||
994141e6 | 11841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11844 | { |
11845 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11846 | if (arg3 == NULL) SWIG_fail; | |
11847 | } | |
994141e6 | 11848 | if (obj2) { |
15afbcd0 RD |
11849 | arg4 = (int) SWIG_AsInt(obj2); |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11851 | } |
11852 | if (obj3) { | |
15afbcd0 RD |
11853 | arg5 = (int) SWIG_AsInt(obj3); |
11854 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11855 | } |
d14a1e28 RD |
11856 | { |
11857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11858 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11859 | ||
11860 | wxPyEndAllowThreads(__tstate); | |
11861 | if (PyErr_Occurred()) SWIG_fail; | |
11862 | } | |
11863 | Py_INCREF(Py_None); resultobj = Py_None; | |
11864 | { | |
11865 | if (arg3) delete [] arg3; | |
11866 | } | |
11867 | return resultobj; | |
11868 | fail: | |
11869 | { | |
11870 | if (arg3) delete [] arg3; | |
11871 | } | |
11872 | return NULL; | |
11873 | } | |
11874 | ||
11875 | ||
11876 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11877 | PyObject *resultobj; | |
11878 | wxDC *arg1 = (wxDC *) 0 ; | |
11879 | int arg2 ; | |
11880 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11881 | int arg4 = (int) 0 ; |
11882 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11883 | int arg6 = (int) wxODDEVEN_RULE ; |
11884 | PyObject * obj0 = 0 ; | |
11885 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11886 | PyObject * obj2 = 0 ; |
11887 | PyObject * obj3 = 0 ; | |
11888 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11889 | char *kwnames[] = { |
11890 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11891 | }; | |
11892 | ||
994141e6 | 11893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11896 | { |
11897 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11898 | if (arg3 == NULL) SWIG_fail; | |
11899 | } | |
994141e6 | 11900 | if (obj2) { |
15afbcd0 RD |
11901 | arg4 = (int) SWIG_AsInt(obj2); |
11902 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11903 | } |
11904 | if (obj3) { | |
15afbcd0 RD |
11905 | arg5 = (int) SWIG_AsInt(obj3); |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11907 | } |
11908 | if (obj4) { | |
15afbcd0 RD |
11909 | arg6 = (int) SWIG_AsInt(obj4); |
11910 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11911 | } |
d14a1e28 RD |
11912 | { |
11913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11914 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11915 | ||
11916 | wxPyEndAllowThreads(__tstate); | |
11917 | if (PyErr_Occurred()) SWIG_fail; | |
11918 | } | |
11919 | Py_INCREF(Py_None); resultobj = Py_None; | |
11920 | { | |
11921 | if (arg3) delete [] arg3; | |
11922 | } | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | { | |
11926 | if (arg3) delete [] arg3; | |
11927 | } | |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
11932 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11933 | PyObject *resultobj; | |
11934 | wxDC *arg1 = (wxDC *) 0 ; | |
11935 | wxString *arg2 = 0 ; | |
11936 | wxRect *arg3 = 0 ; | |
11937 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11938 | int arg5 = (int) -1 ; | |
e811c8ce | 11939 | bool temp2 = False ; |
d14a1e28 RD |
11940 | wxRect temp3 ; |
11941 | PyObject * obj0 = 0 ; | |
11942 | PyObject * obj1 = 0 ; | |
11943 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11944 | PyObject * obj3 = 0 ; |
11945 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11946 | char *kwnames[] = { |
11947 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11948 | }; | |
11949 | ||
994141e6 | 11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11953 | { |
11954 | arg2 = wxString_in_helper(obj1); | |
11955 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11956 | temp2 = True; |
d14a1e28 RD |
11957 | } |
11958 | { | |
11959 | arg3 = &temp3; | |
11960 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11961 | } | |
994141e6 | 11962 | if (obj3) { |
15afbcd0 RD |
11963 | arg4 = (int) SWIG_AsInt(obj3); |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11965 | } |
11966 | if (obj4) { | |
15afbcd0 RD |
11967 | arg5 = (int) SWIG_AsInt(obj4); |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11969 | } |
11970 | { | |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11972 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
11973 | |
11974 | wxPyEndAllowThreads(__tstate); | |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
11976 | } | |
11977 | Py_INCREF(Py_None); resultobj = Py_None; | |
11978 | { | |
11979 | if (temp2) | |
11980 | delete arg2; | |
11981 | } | |
11982 | return resultobj; | |
11983 | fail: | |
11984 | { | |
11985 | if (temp2) | |
11986 | delete arg2; | |
11987 | } | |
11988 | return NULL; | |
11989 | } | |
11990 | ||
11991 | ||
11992 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11993 | PyObject *resultobj; | |
11994 | wxDC *arg1 = (wxDC *) 0 ; | |
11995 | wxString *arg2 = 0 ; | |
11996 | wxBitmap *arg3 = 0 ; | |
11997 | wxRect *arg4 = 0 ; | |
11998 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11999 | int arg6 = (int) -1 ; | |
12000 | wxRect result; | |
e811c8ce | 12001 | bool temp2 = False ; |
d14a1e28 RD |
12002 | wxRect temp4 ; |
12003 | PyObject * obj0 = 0 ; | |
12004 | PyObject * obj1 = 0 ; | |
12005 | PyObject * obj2 = 0 ; | |
12006 | PyObject * obj3 = 0 ; | |
994141e6 RD |
12007 | PyObject * obj4 = 0 ; |
12008 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12009 | char *kwnames[] = { |
12010 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12011 | }; | |
12012 | ||
994141e6 | 12013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
12014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12016 | { |
12017 | arg2 = wxString_in_helper(obj1); | |
12018 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12019 | temp2 = True; |
d14a1e28 | 12020 | } |
15afbcd0 RD |
12021 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
12022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12023 | SWIG_fail; | |
d14a1e28 | 12024 | if (arg3 == NULL) { |
15afbcd0 RD |
12025 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12026 | SWIG_fail; | |
d14a1e28 RD |
12027 | } |
12028 | { | |
12029 | arg4 = &temp4; | |
12030 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12031 | } | |
994141e6 | 12032 | if (obj4) { |
15afbcd0 RD |
12033 | arg5 = (int) SWIG_AsInt(obj4); |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12035 | } |
12036 | if (obj5) { | |
15afbcd0 RD |
12037 | arg6 = (int) SWIG_AsInt(obj5); |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12039 | } |
d14a1e28 RD |
12040 | { |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | { | |
12048 | wxRect * resultptr; | |
12049 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12051 | } |
12052 | { | |
12053 | if (temp2) | |
12054 | delete arg2; | |
12055 | } | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | { | |
12059 | if (temp2) | |
12060 | delete arg2; | |
12061 | } | |
12062 | return NULL; | |
12063 | } | |
12064 | ||
12065 | ||
12066 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12067 | PyObject *resultobj; | |
12068 | wxDC *arg1 = (wxDC *) 0 ; | |
12069 | int arg2 ; | |
12070 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12071 | PyObject * obj0 = 0 ; | |
12072 | PyObject * obj1 = 0 ; | |
12073 | char *kwnames[] = { | |
12074 | (char *) "self",(char *) "points", NULL | |
12075 | }; | |
12076 | ||
12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12080 | { |
12081 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12082 | if (arg3 == NULL) SWIG_fail; | |
12083 | } | |
12084 | { | |
12085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12086 | (arg1)->DrawSpline(arg2,arg3); | |
12087 | ||
12088 | wxPyEndAllowThreads(__tstate); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | } | |
12091 | Py_INCREF(Py_None); resultobj = Py_None; | |
12092 | { | |
12093 | if (arg3) delete [] arg3; | |
12094 | } | |
12095 | return resultobj; | |
12096 | fail: | |
12097 | { | |
12098 | if (arg3) delete [] arg3; | |
12099 | } | |
12100 | return NULL; | |
12101 | } | |
12102 | ||
12103 | ||
12104 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12105 | PyObject *resultobj; | |
12106 | wxDC *arg1 = (wxDC *) 0 ; | |
12107 | PyObject * obj0 = 0 ; | |
12108 | char *kwnames[] = { | |
12109 | (char *) "self", NULL | |
12110 | }; | |
12111 | ||
12112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12115 | { |
12116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12117 | (arg1)->Clear(); | |
12118 | ||
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | Py_INCREF(Py_None); resultobj = Py_None; | |
12123 | return resultobj; | |
12124 | fail: | |
12125 | return NULL; | |
12126 | } | |
12127 | ||
12128 | ||
12129 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12130 | PyObject *resultobj; | |
12131 | wxDC *arg1 = (wxDC *) 0 ; | |
12132 | wxString *arg2 = 0 ; | |
12133 | bool result; | |
e811c8ce | 12134 | bool temp2 = False ; |
d14a1e28 RD |
12135 | PyObject * obj0 = 0 ; |
12136 | PyObject * obj1 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self",(char *) "message", NULL | |
12139 | }; | |
12140 | ||
12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12144 | { |
12145 | arg2 = wxString_in_helper(obj1); | |
12146 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12147 | temp2 = True; |
d14a1e28 RD |
12148 | } |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
4d5c3d91 | 12156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12157 | { |
12158 | if (temp2) | |
12159 | delete arg2; | |
12160 | } | |
12161 | return resultobj; | |
12162 | fail: | |
12163 | { | |
12164 | if (temp2) | |
12165 | delete arg2; | |
12166 | } | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxDC *arg1 = (wxDC *) 0 ; | |
12174 | PyObject * obj0 = 0 ; | |
12175 | char *kwnames[] = { | |
12176 | (char *) "self", NULL | |
12177 | }; | |
12178 | ||
12179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12182 | { |
12183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12184 | (arg1)->EndDoc(); | |
12185 | ||
12186 | wxPyEndAllowThreads(__tstate); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | } | |
12189 | Py_INCREF(Py_None); resultobj = Py_None; | |
12190 | return resultobj; | |
12191 | fail: | |
12192 | return NULL; | |
12193 | } | |
12194 | ||
12195 | ||
12196 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12197 | PyObject *resultobj; | |
12198 | wxDC *arg1 = (wxDC *) 0 ; | |
12199 | PyObject * obj0 = 0 ; | |
12200 | char *kwnames[] = { | |
12201 | (char *) "self", NULL | |
12202 | }; | |
12203 | ||
12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12207 | { |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | (arg1)->StartPage(); | |
12210 | ||
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
12214 | Py_INCREF(Py_None); resultobj = Py_None; | |
12215 | return resultobj; | |
12216 | fail: | |
12217 | return NULL; | |
12218 | } | |
12219 | ||
12220 | ||
12221 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12222 | PyObject *resultobj; | |
12223 | wxDC *arg1 = (wxDC *) 0 ; | |
12224 | PyObject * obj0 = 0 ; | |
12225 | char *kwnames[] = { | |
12226 | (char *) "self", NULL | |
12227 | }; | |
12228 | ||
12229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12232 | { |
12233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12234 | (arg1)->EndPage(); | |
12235 | ||
12236 | wxPyEndAllowThreads(__tstate); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | } | |
12239 | Py_INCREF(Py_None); resultobj = Py_None; | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12247 | PyObject *resultobj; | |
12248 | wxDC *arg1 = (wxDC *) 0 ; | |
12249 | wxFont *arg2 = 0 ; | |
12250 | PyObject * obj0 = 0 ; | |
12251 | PyObject * obj1 = 0 ; | |
12252 | char *kwnames[] = { | |
12253 | (char *) "self",(char *) "font", NULL | |
12254 | }; | |
12255 | ||
12256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12259 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12260 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12261 | SWIG_fail; | |
d14a1e28 | 12262 | if (arg2 == NULL) { |
15afbcd0 RD |
12263 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12264 | SWIG_fail; | |
d14a1e28 RD |
12265 | } |
12266 | { | |
12267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12268 | (arg1)->SetFont((wxFont const &)*arg2); | |
12269 | ||
12270 | wxPyEndAllowThreads(__tstate); | |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
12272 | } | |
12273 | Py_INCREF(Py_None); resultobj = Py_None; | |
12274 | return resultobj; | |
12275 | fail: | |
12276 | return NULL; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12281 | PyObject *resultobj; | |
12282 | wxDC *arg1 = (wxDC *) 0 ; | |
12283 | wxPen *arg2 = 0 ; | |
12284 | PyObject * obj0 = 0 ; | |
12285 | PyObject * obj1 = 0 ; | |
12286 | char *kwnames[] = { | |
12287 | (char *) "self",(char *) "pen", NULL | |
12288 | }; | |
12289 | ||
12290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12294 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12295 | SWIG_fail; | |
d14a1e28 | 12296 | if (arg2 == NULL) { |
15afbcd0 RD |
12297 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12298 | SWIG_fail; | |
d14a1e28 RD |
12299 | } |
12300 | { | |
12301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12302 | (arg1)->SetPen((wxPen const &)*arg2); | |
12303 | ||
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
12307 | Py_INCREF(Py_None); resultobj = Py_None; | |
12308 | return resultobj; | |
12309 | fail: | |
12310 | return NULL; | |
12311 | } | |
12312 | ||
12313 | ||
12314 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12315 | PyObject *resultobj; | |
12316 | wxDC *arg1 = (wxDC *) 0 ; | |
12317 | wxBrush *arg2 = 0 ; | |
12318 | PyObject * obj0 = 0 ; | |
12319 | PyObject * obj1 = 0 ; | |
12320 | char *kwnames[] = { | |
12321 | (char *) "self",(char *) "brush", NULL | |
12322 | }; | |
12323 | ||
12324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12329 | SWIG_fail; | |
d14a1e28 | 12330 | if (arg2 == NULL) { |
15afbcd0 RD |
12331 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12332 | SWIG_fail; | |
d14a1e28 RD |
12333 | } |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12337 | ||
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
12341 | Py_INCREF(Py_None); resultobj = Py_None; | |
12342 | return resultobj; | |
12343 | fail: | |
12344 | return NULL; | |
12345 | } | |
12346 | ||
12347 | ||
12348 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12349 | PyObject *resultobj; | |
12350 | wxDC *arg1 = (wxDC *) 0 ; | |
12351 | wxBrush *arg2 = 0 ; | |
12352 | PyObject * obj0 = 0 ; | |
12353 | PyObject * obj1 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self",(char *) "brush", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12361 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12362 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12363 | SWIG_fail; | |
d14a1e28 | 12364 | if (arg2 == NULL) { |
15afbcd0 RD |
12365 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12366 | SWIG_fail; | |
d14a1e28 RD |
12367 | } |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | Py_INCREF(Py_None); resultobj = Py_None; | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxDC *arg1 = (wxDC *) 0 ; | |
12385 | int arg2 ; | |
12386 | PyObject * obj0 = 0 ; | |
994141e6 | 12387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12388 | char *kwnames[] = { |
12389 | (char *) "self",(char *) "mode", NULL | |
12390 | }; | |
12391 | ||
994141e6 | 12392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12395 | arg2 = (int) SWIG_AsInt(obj1); | |
12396 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12397 | { |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | (arg1)->SetBackgroundMode(arg2); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
12404 | Py_INCREF(Py_None); resultobj = Py_None; | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxDC *arg1 = (wxDC *) 0 ; | |
12414 | wxPalette *arg2 = 0 ; | |
12415 | PyObject * obj0 = 0 ; | |
12416 | PyObject * obj1 = 0 ; | |
12417 | char *kwnames[] = { | |
12418 | (char *) "self",(char *) "palette", NULL | |
12419 | }; | |
12420 | ||
12421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
12425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12426 | SWIG_fail; | |
d14a1e28 | 12427 | if (arg2 == NULL) { |
15afbcd0 RD |
12428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12429 | SWIG_fail; | |
d14a1e28 RD |
12430 | } |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | Py_INCREF(Py_None); resultobj = Py_None; | |
12439 | return resultobj; | |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
242b7b46 | 12445 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12446 | PyObject *resultobj; |
12447 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12448 | int arg2 ; |
12449 | int arg3 ; | |
12450 | int arg4 ; | |
12451 | int arg5 ; | |
d14a1e28 | 12452 | PyObject * obj0 = 0 ; |
994141e6 RD |
12453 | PyObject * obj1 = 0 ; |
12454 | PyObject * obj2 = 0 ; | |
12455 | PyObject * obj3 = 0 ; | |
12456 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12457 | char *kwnames[] = { |
12458 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12459 | }; | |
12460 | ||
994141e6 | 12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12464 | arg2 = (int) SWIG_AsInt(obj1); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | arg3 = (int) SWIG_AsInt(obj2); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | arg4 = (int) SWIG_AsInt(obj3); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | arg5 = (int) SWIG_AsInt(obj4); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12472 | { |
12473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12474 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12475 | ||
12476 | wxPyEndAllowThreads(__tstate); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
12479 | Py_INCREF(Py_None); resultobj = Py_None; | |
12480 | return resultobj; | |
12481 | fail: | |
12482 | return NULL; | |
12483 | } | |
12484 | ||
12485 | ||
242b7b46 RD |
12486 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12487 | PyObject *resultobj; | |
12488 | wxDC *arg1 = (wxDC *) 0 ; | |
12489 | wxPoint *arg2 = 0 ; | |
12490 | wxSize *arg3 = 0 ; | |
12491 | wxPoint temp2 ; | |
12492 | wxSize temp3 ; | |
12493 | PyObject * obj0 = 0 ; | |
12494 | PyObject * obj1 = 0 ; | |
12495 | PyObject * obj2 = 0 ; | |
12496 | char *kwnames[] = { | |
12497 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12498 | }; | |
12499 | ||
12500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
242b7b46 RD |
12503 | { |
12504 | arg2 = &temp2; | |
12505 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12506 | } | |
12507 | { | |
12508 | arg3 = &temp3; | |
12509 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12510 | } | |
12511 | { | |
12512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12513 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12514 | ||
12515 | wxPyEndAllowThreads(__tstate); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
12518 | Py_INCREF(Py_None); resultobj = Py_None; | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
d14a1e28 RD |
12525 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12526 | PyObject *resultobj; | |
12527 | wxDC *arg1 = (wxDC *) 0 ; | |
12528 | wxRect *arg2 = 0 ; | |
12529 | wxRect temp2 ; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | PyObject * obj1 = 0 ; | |
12532 | char *kwnames[] = { | |
12533 | (char *) "self",(char *) "rect", NULL | |
12534 | }; | |
12535 | ||
12536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12539 | { |
12540 | arg2 = &temp2; | |
12541 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12542 | } | |
12543 | { | |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12546 | ||
12547 | wxPyEndAllowThreads(__tstate); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
12549 | } | |
12550 | Py_INCREF(Py_None); resultobj = Py_None; | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
12554 | } | |
12555 | ||
12556 | ||
12557 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12558 | PyObject *resultobj; | |
12559 | wxDC *arg1 = (wxDC *) 0 ; | |
12560 | wxRegion *arg2 = 0 ; | |
12561 | PyObject * obj0 = 0 ; | |
12562 | PyObject * obj1 = 0 ; | |
12563 | char *kwnames[] = { | |
12564 | (char *) "self",(char *) "region", NULL | |
12565 | }; | |
12566 | ||
12567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12572 | SWIG_fail; | |
d14a1e28 | 12573 | if (arg2 == NULL) { |
15afbcd0 RD |
12574 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12575 | SWIG_fail; | |
d14a1e28 RD |
12576 | } |
12577 | { | |
12578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12579 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12580 | ||
12581 | wxPyEndAllowThreads(__tstate); | |
12582 | if (PyErr_Occurred()) SWIG_fail; | |
12583 | } | |
12584 | Py_INCREF(Py_None); resultobj = Py_None; | |
12585 | return resultobj; | |
12586 | fail: | |
12587 | return NULL; | |
12588 | } | |
12589 | ||
12590 | ||
12591 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12592 | PyObject *resultobj; | |
12593 | wxDC *arg1 = (wxDC *) 0 ; | |
12594 | PyObject * obj0 = 0 ; | |
12595 | char *kwnames[] = { | |
12596 | (char *) "self", NULL | |
12597 | }; | |
12598 | ||
12599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12602 | { |
12603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12604 | (arg1)->DestroyClippingRegion(); | |
12605 | ||
12606 | wxPyEndAllowThreads(__tstate); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
12608 | } | |
12609 | Py_INCREF(Py_None); resultobj = Py_None; | |
12610 | return resultobj; | |
12611 | fail: | |
12612 | return NULL; | |
12613 | } | |
12614 | ||
12615 | ||
12616 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12617 | PyObject *resultobj; | |
12618 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12619 | int *arg2 = (int *) 0 ; |
12620 | int *arg3 = (int *) 0 ; | |
12621 | int *arg4 = (int *) 0 ; | |
12622 | int *arg5 = (int *) 0 ; | |
12623 | int temp2 ; | |
12624 | int temp3 ; | |
12625 | int temp4 ; | |
12626 | int temp5 ; | |
d14a1e28 RD |
12627 | PyObject * obj0 = 0 ; |
12628 | char *kwnames[] = { | |
12629 | (char *) "self", NULL | |
12630 | }; | |
12631 | ||
12632 | arg2 = &temp2; | |
12633 | arg3 = &temp3; | |
12634 | arg4 = &temp4; | |
12635 | arg5 = &temp5; | |
12636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12639 | { |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12641 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | Py_INCREF(Py_None); resultobj = Py_None; | |
12647 | { | |
12648 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12649 | resultobj = t_output_helper(resultobj,o); | |
12650 | } | |
12651 | { | |
12652 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12653 | resultobj = t_output_helper(resultobj,o); | |
12654 | } | |
12655 | { | |
12656 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12657 | resultobj = t_output_helper(resultobj,o); | |
12658 | } | |
12659 | { | |
12660 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12661 | resultobj = t_output_helper(resultobj,o); | |
12662 | } | |
12663 | return resultobj; | |
12664 | fail: | |
12665 | return NULL; | |
12666 | } | |
12667 | ||
12668 | ||
12669 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12670 | PyObject *resultobj; | |
12671 | wxDC *arg1 = (wxDC *) 0 ; | |
12672 | wxRect result; | |
12673 | PyObject * obj0 = 0 ; | |
12674 | char *kwnames[] = { | |
12675 | (char *) "self", NULL | |
12676 | }; | |
12677 | ||
12678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12681 | { |
12682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12683 | result = wxDC_GetClippingRect(arg1); | |
12684 | ||
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | { | |
12689 | wxRect * resultptr; | |
12690 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12692 | } |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12702 | int result; |
d14a1e28 RD |
12703 | PyObject * obj0 = 0 ; |
12704 | char *kwnames[] = { | |
12705 | (char *) "self", NULL | |
12706 | }; | |
12707 | ||
12708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12711 | { |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12713 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12714 | |
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
15afbcd0 | 12718 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12719 | return resultobj; |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj; | |
12727 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12728 | int result; |
d14a1e28 RD |
12729 | PyObject * obj0 = 0 ; |
12730 | char *kwnames[] = { | |
12731 | (char *) "self", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12737 | { |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12739 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12740 | |
12741 | wxPyEndAllowThreads(__tstate); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
15afbcd0 | 12744 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12745 | return resultobj; |
12746 | fail: | |
12747 | return NULL; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12752 | PyObject *resultobj; | |
12753 | wxDC *arg1 = (wxDC *) 0 ; | |
12754 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12755 | int *arg3 = (int *) 0 ; |
12756 | int *arg4 = (int *) 0 ; | |
12757 | bool temp2 = False ; | |
12758 | int temp3 ; | |
12759 | int temp4 ; | |
d14a1e28 RD |
12760 | PyObject * obj0 = 0 ; |
12761 | PyObject * obj1 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self",(char *) "string", NULL | |
12764 | }; | |
12765 | ||
12766 | arg3 = &temp3; | |
12767 | arg4 = &temp4; | |
12768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12771 | { |
12772 | arg2 = wxString_in_helper(obj1); | |
12773 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12774 | temp2 = True; |
d14a1e28 RD |
12775 | } |
12776 | { | |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12778 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12779 | ||
12780 | wxPyEndAllowThreads(__tstate); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | } | |
12783 | Py_INCREF(Py_None); resultobj = Py_None; | |
12784 | { | |
12785 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12786 | resultobj = t_output_helper(resultobj,o); | |
12787 | } | |
12788 | { | |
12789 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12790 | resultobj = t_output_helper(resultobj,o); | |
12791 | } | |
12792 | { | |
12793 | if (temp2) | |
12794 | delete arg2; | |
12795 | } | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | { | |
12799 | if (temp2) | |
12800 | delete arg2; | |
12801 | } | |
12802 | return NULL; | |
12803 | } | |
12804 | ||
12805 | ||
12806 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12807 | PyObject *resultobj; | |
12808 | wxDC *arg1 = (wxDC *) 0 ; | |
12809 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12810 | int *arg3 = (int *) 0 ; |
12811 | int *arg4 = (int *) 0 ; | |
12812 | int *arg5 = (int *) 0 ; | |
12813 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12814 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12815 | bool temp2 = False ; |
12816 | int temp3 ; | |
12817 | int temp4 ; | |
12818 | int temp5 ; | |
12819 | int temp6 ; | |
d14a1e28 RD |
12820 | PyObject * obj0 = 0 ; |
12821 | PyObject * obj1 = 0 ; | |
12822 | PyObject * obj2 = 0 ; | |
12823 | char *kwnames[] = { | |
12824 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12825 | }; | |
12826 | ||
12827 | arg3 = &temp3; | |
12828 | arg4 = &temp4; | |
12829 | arg5 = &temp5; | |
12830 | arg6 = &temp6; | |
12831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12834 | { |
12835 | arg2 = wxString_in_helper(obj1); | |
12836 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12837 | temp2 = True; |
d14a1e28 RD |
12838 | } |
12839 | if (obj2) { | |
15afbcd0 RD |
12840 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12842 | } |
12843 | { | |
12844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12845 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12846 | ||
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | Py_INCREF(Py_None); resultobj = Py_None; | |
12851 | { | |
12852 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12853 | resultobj = t_output_helper(resultobj,o); | |
12854 | } | |
12855 | { | |
12856 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12857 | resultobj = t_output_helper(resultobj,o); | |
12858 | } | |
12859 | { | |
12860 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12861 | resultobj = t_output_helper(resultobj,o); | |
12862 | } | |
12863 | { | |
12864 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12865 | resultobj = t_output_helper(resultobj,o); | |
12866 | } | |
12867 | { | |
12868 | if (temp2) | |
12869 | delete arg2; | |
12870 | } | |
12871 | return resultobj; | |
12872 | fail: | |
12873 | { | |
12874 | if (temp2) | |
12875 | delete arg2; | |
12876 | } | |
12877 | return NULL; | |
12878 | } | |
12879 | ||
12880 | ||
12881 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12882 | PyObject *resultobj; | |
12883 | wxDC *arg1 = (wxDC *) 0 ; | |
12884 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12885 | int *arg3 = (int *) 0 ; |
12886 | int *arg4 = (int *) 0 ; | |
12887 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12888 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12889 | bool temp2 = False ; |
12890 | int temp3 ; | |
12891 | int temp4 ; | |
12892 | int temp5 ; | |
d14a1e28 RD |
12893 | PyObject * obj0 = 0 ; |
12894 | PyObject * obj1 = 0 ; | |
12895 | PyObject * obj2 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12898 | }; | |
12899 | ||
12900 | arg3 = &temp3; | |
12901 | arg4 = &temp4; | |
12902 | arg5 = &temp5; | |
12903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12906 | { |
12907 | arg2 = wxString_in_helper(obj1); | |
12908 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12909 | temp2 = True; |
d14a1e28 RD |
12910 | } |
12911 | if (obj2) { | |
15afbcd0 RD |
12912 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
12913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12914 | } |
12915 | { | |
12916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12917 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12918 | ||
12919 | wxPyEndAllowThreads(__tstate); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | } | |
12922 | Py_INCREF(Py_None); resultobj = Py_None; | |
12923 | { | |
12924 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12925 | resultobj = t_output_helper(resultobj,o); | |
12926 | } | |
12927 | { | |
12928 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12929 | resultobj = t_output_helper(resultobj,o); | |
12930 | } | |
12931 | { | |
12932 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12933 | resultobj = t_output_helper(resultobj,o); | |
12934 | } | |
12935 | { | |
12936 | if (temp2) | |
12937 | delete arg2; | |
12938 | } | |
12939 | return resultobj; | |
12940 | fail: | |
12941 | { | |
12942 | if (temp2) | |
12943 | delete arg2; | |
12944 | } | |
12945 | return NULL; | |
12946 | } | |
12947 | ||
12948 | ||
db914595 RD |
12949 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
12950 | PyObject *resultobj; | |
12951 | wxDC *arg1 = (wxDC *) 0 ; | |
12952 | wxString *arg2 = 0 ; | |
12953 | wxArrayInt result; | |
12954 | bool temp2 = False ; | |
12955 | PyObject * obj0 = 0 ; | |
12956 | PyObject * obj1 = 0 ; | |
12957 | char *kwnames[] = { | |
12958 | (char *) "self",(char *) "text", NULL | |
12959 | }; | |
12960 | ||
12961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
12964 | { |
12965 | arg2 = wxString_in_helper(obj1); | |
12966 | if (arg2 == NULL) SWIG_fail; | |
12967 | temp2 = True; | |
12968 | } | |
12969 | { | |
12970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12971 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
12972 | ||
12973 | wxPyEndAllowThreads(__tstate); | |
12974 | if (PyErr_Occurred()) SWIG_fail; | |
12975 | } | |
12976 | { | |
12977 | resultobj = PyList_New(0); | |
12978 | size_t idx; | |
12979 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
12980 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
12981 | PyList_Append(resultobj, val); | |
12982 | Py_DECREF(val); | |
12983 | } | |
12984 | } | |
12985 | { | |
12986 | if (temp2) | |
12987 | delete arg2; | |
12988 | } | |
12989 | return resultobj; | |
12990 | fail: | |
12991 | { | |
12992 | if (temp2) | |
12993 | delete arg2; | |
12994 | } | |
12995 | return NULL; | |
12996 | } | |
12997 | ||
12998 | ||
322913ce RD |
12999 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
13000 | PyObject *resultobj; | |
13001 | wxDC *arg1 = (wxDC *) 0 ; | |
13002 | wxSize result; | |
13003 | PyObject * obj0 = 0 ; | |
13004 | char *kwnames[] = { | |
13005 | (char *) "self", NULL | |
13006 | }; | |
13007 | ||
13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
13011 | { |
13012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13013 | result = (arg1)->GetSize(); | |
13014 | ||
13015 | wxPyEndAllowThreads(__tstate); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | { | |
13019 | wxSize * resultptr; | |
13020 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13021 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
322913ce RD |
13022 | } |
13023 | return resultobj; | |
13024 | fail: | |
13025 | return NULL; | |
13026 | } | |
13027 | ||
13028 | ||
d14a1e28 RD |
13029 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
13030 | PyObject *resultobj; | |
13031 | wxDC *arg1 = (wxDC *) 0 ; | |
13032 | int *arg2 = (int *) 0 ; | |
13033 | int *arg3 = (int *) 0 ; | |
13034 | int temp2 ; | |
13035 | int temp3 ; | |
13036 | PyObject * obj0 = 0 ; | |
13037 | char *kwnames[] = { | |
13038 | (char *) "self", NULL | |
13039 | }; | |
13040 | ||
13041 | arg2 = &temp2; | |
13042 | arg3 = &temp3; | |
13043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13046 | { |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | (arg1)->GetSize(arg2,arg3); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
13053 | Py_INCREF(Py_None); resultobj = Py_None; | |
13054 | { | |
13055 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13056 | resultobj = t_output_helper(resultobj,o); | |
13057 | } | |
13058 | { | |
13059 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13060 | resultobj = t_output_helper(resultobj,o); | |
13061 | } | |
13062 | return resultobj; | |
13063 | fail: | |
13064 | return NULL; | |
13065 | } | |
13066 | ||
13067 | ||
322913ce | 13068 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13069 | PyObject *resultobj; |
13070 | wxDC *arg1 = (wxDC *) 0 ; | |
13071 | wxSize result; | |
13072 | PyObject * obj0 = 0 ; | |
13073 | char *kwnames[] = { | |
13074 | (char *) "self", NULL | |
13075 | }; | |
13076 | ||
322913ce | 13077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13080 | { |
13081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13082 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13083 | |
13084 | wxPyEndAllowThreads(__tstate); | |
13085 | if (PyErr_Occurred()) SWIG_fail; | |
13086 | } | |
13087 | { | |
13088 | wxSize * resultptr; | |
13089 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13091 | } |
13092 | return resultobj; | |
13093 | fail: | |
13094 | return NULL; | |
13095 | } | |
13096 | ||
13097 | ||
322913ce | 13098 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13099 | PyObject *resultobj; |
13100 | wxDC *arg1 = (wxDC *) 0 ; | |
13101 | int *arg2 = (int *) 0 ; | |
13102 | int *arg3 = (int *) 0 ; | |
13103 | int temp2 ; | |
13104 | int temp3 ; | |
13105 | PyObject * obj0 = 0 ; | |
13106 | char *kwnames[] = { | |
13107 | (char *) "self", NULL | |
13108 | }; | |
13109 | ||
13110 | arg2 = &temp2; | |
13111 | arg3 = &temp3; | |
322913ce | 13112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13115 | { |
13116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13117 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13118 | ||
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | Py_INCREF(Py_None); resultobj = Py_None; | |
13123 | { | |
13124 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13125 | resultobj = t_output_helper(resultobj,o); | |
13126 | } | |
13127 | { | |
13128 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13129 | resultobj = t_output_helper(resultobj,o); | |
13130 | } | |
13131 | return resultobj; | |
13132 | fail: | |
13133 | return NULL; | |
13134 | } | |
13135 | ||
13136 | ||
d14a1e28 RD |
13137 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13138 | PyObject *resultobj; | |
13139 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13140 | int arg2 ; |
13141 | int result; | |
d14a1e28 | 13142 | PyObject * obj0 = 0 ; |
994141e6 | 13143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13144 | char *kwnames[] = { |
13145 | (char *) "self",(char *) "x", NULL | |
13146 | }; | |
13147 | ||
994141e6 | 13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13151 | arg2 = (int) SWIG_AsInt(obj1); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13153 | { |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13155 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13156 | |
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
15afbcd0 | 13160 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13161 | return resultobj; |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
13167 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13168 | PyObject *resultobj; | |
13169 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13170 | int arg2 ; |
13171 | int result; | |
d14a1e28 | 13172 | PyObject * obj0 = 0 ; |
994141e6 | 13173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13174 | char *kwnames[] = { |
13175 | (char *) "self",(char *) "y", NULL | |
13176 | }; | |
13177 | ||
994141e6 | 13178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13181 | arg2 = (int) SWIG_AsInt(obj1); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13183 | { |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13185 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13186 | |
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
15afbcd0 | 13190 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13191 | return resultobj; |
13192 | fail: | |
13193 | return NULL; | |
13194 | } | |
13195 | ||
13196 | ||
13197 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13198 | PyObject *resultobj; | |
13199 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13200 | int arg2 ; |
13201 | int result; | |
d14a1e28 | 13202 | PyObject * obj0 = 0 ; |
994141e6 | 13203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13204 | char *kwnames[] = { |
13205 | (char *) "self",(char *) "x", NULL | |
13206 | }; | |
13207 | ||
994141e6 | 13208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13211 | arg2 = (int) SWIG_AsInt(obj1); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13213 | { |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13215 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13216 | |
13217 | wxPyEndAllowThreads(__tstate); | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | } | |
15afbcd0 | 13220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13221 | return resultobj; |
13222 | fail: | |
13223 | return NULL; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13228 | PyObject *resultobj; | |
13229 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13230 | int arg2 ; |
13231 | int result; | |
d14a1e28 | 13232 | PyObject * obj0 = 0 ; |
994141e6 | 13233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13234 | char *kwnames[] = { |
13235 | (char *) "self",(char *) "y", NULL | |
13236 | }; | |
13237 | ||
994141e6 | 13238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13241 | arg2 = (int) SWIG_AsInt(obj1); | |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13243 | { |
13244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13245 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13246 | |
13247 | wxPyEndAllowThreads(__tstate); | |
13248 | if (PyErr_Occurred()) SWIG_fail; | |
13249 | } | |
15afbcd0 | 13250 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13251 | return resultobj; |
13252 | fail: | |
13253 | return NULL; | |
13254 | } | |
13255 | ||
13256 | ||
13257 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13258 | PyObject *resultobj; | |
13259 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13260 | int arg2 ; |
13261 | int result; | |
d14a1e28 | 13262 | PyObject * obj0 = 0 ; |
994141e6 | 13263 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13264 | char *kwnames[] = { |
13265 | (char *) "self",(char *) "x", NULL | |
13266 | }; | |
13267 | ||
994141e6 | 13268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13271 | arg2 = (int) SWIG_AsInt(obj1); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13273 | { |
13274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13275 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13276 | |
13277 | wxPyEndAllowThreads(__tstate); | |
13278 | if (PyErr_Occurred()) SWIG_fail; | |
13279 | } | |
15afbcd0 | 13280 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13281 | return resultobj; |
13282 | fail: | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13290 | int arg2 ; |
13291 | int result; | |
d14a1e28 | 13292 | PyObject * obj0 = 0 ; |
994141e6 | 13293 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13294 | char *kwnames[] = { |
13295 | (char *) "self",(char *) "y", NULL | |
13296 | }; | |
13297 | ||
994141e6 | 13298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13301 | arg2 = (int) SWIG_AsInt(obj1); | |
13302 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13303 | { |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13305 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13306 | |
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
15afbcd0 | 13310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13311 | return resultobj; |
13312 | fail: | |
13313 | return NULL; | |
13314 | } | |
13315 | ||
13316 | ||
13317 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13318 | PyObject *resultobj; | |
13319 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13320 | int arg2 ; |
13321 | int result; | |
d14a1e28 | 13322 | PyObject * obj0 = 0 ; |
994141e6 | 13323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13324 | char *kwnames[] = { |
13325 | (char *) "self",(char *) "x", NULL | |
13326 | }; | |
13327 | ||
994141e6 | 13328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13331 | arg2 = (int) SWIG_AsInt(obj1); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13333 | { |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13335 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13336 | |
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
15afbcd0 | 13340 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13341 | return resultobj; |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj; | |
13349 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13350 | int arg2 ; |
13351 | int result; | |
d14a1e28 | 13352 | PyObject * obj0 = 0 ; |
994141e6 | 13353 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13354 | char *kwnames[] = { |
13355 | (char *) "self",(char *) "y", NULL | |
13356 | }; | |
13357 | ||
994141e6 | 13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13361 | arg2 = (int) SWIG_AsInt(obj1); | |
13362 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13363 | { |
13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13365 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13366 | |
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
15afbcd0 | 13370 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13371 | return resultobj; |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
13377 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13378 | PyObject *resultobj; | |
13379 | wxDC *arg1 = (wxDC *) 0 ; | |
13380 | bool result; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | char *kwnames[] = { | |
13383 | (char *) "self", NULL | |
13384 | }; | |
13385 | ||
13386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13389 | { |
13390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13391 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13392 | ||
13393 | wxPyEndAllowThreads(__tstate); | |
13394 | if (PyErr_Occurred()) SWIG_fail; | |
13395 | } | |
4d5c3d91 | 13396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13397 | return resultobj; |
13398 | fail: | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
13403 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13404 | PyObject *resultobj; | |
13405 | wxDC *arg1 = (wxDC *) 0 ; | |
13406 | bool result; | |
13407 | PyObject * obj0 = 0 ; | |
13408 | char *kwnames[] = { | |
13409 | (char *) "self", NULL | |
13410 | }; | |
13411 | ||
13412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13415 | { |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13418 | ||
13419 | wxPyEndAllowThreads(__tstate); | |
13420 | if (PyErr_Occurred()) SWIG_fail; | |
13421 | } | |
4d5c3d91 | 13422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13423 | return resultobj; |
13424 | fail: | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
13429 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13430 | PyObject *resultobj; | |
13431 | wxDC *arg1 = (wxDC *) 0 ; | |
13432 | int result; | |
13433 | PyObject * obj0 = 0 ; | |
13434 | char *kwnames[] = { | |
13435 | (char *) "self", NULL | |
13436 | }; | |
13437 | ||
13438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13441 | { |
13442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13443 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13444 | ||
13445 | wxPyEndAllowThreads(__tstate); | |
13446 | if (PyErr_Occurred()) SWIG_fail; | |
13447 | } | |
15afbcd0 | 13448 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13449 | return resultobj; |
13450 | fail: | |
13451 | return NULL; | |
13452 | } | |
13453 | ||
13454 | ||
13455 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13456 | PyObject *resultobj; | |
13457 | wxDC *arg1 = (wxDC *) 0 ; | |
13458 | wxSize result; | |
13459 | PyObject * obj0 = 0 ; | |
13460 | char *kwnames[] = { | |
13461 | (char *) "self", NULL | |
13462 | }; | |
13463 | ||
13464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13467 | { |
13468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13469 | result = ((wxDC const *)arg1)->GetPPI(); | |
13470 | ||
13471 | wxPyEndAllowThreads(__tstate); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | } | |
13474 | { | |
13475 | wxSize * resultptr; | |
13476 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13477 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13478 | } |
13479 | return resultobj; | |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxDC *arg1 = (wxDC *) 0 ; | |
13488 | bool result; | |
13489 | PyObject * obj0 = 0 ; | |
13490 | char *kwnames[] = { | |
13491 | (char *) "self", NULL | |
13492 | }; | |
13493 | ||
13494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13497 | { |
13498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13499 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13500 | ||
13501 | wxPyEndAllowThreads(__tstate); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
13503 | } | |
4d5c3d91 | 13504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13505 | return resultobj; |
13506 | fail: | |
13507 | return NULL; | |
13508 | } | |
13509 | ||
13510 | ||
13511 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13512 | PyObject *resultobj; | |
13513 | wxDC *arg1 = (wxDC *) 0 ; | |
13514 | int result; | |
13515 | PyObject * obj0 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "self", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13523 | { |
13524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13525 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13526 | ||
13527 | wxPyEndAllowThreads(__tstate); | |
13528 | if (PyErr_Occurred()) SWIG_fail; | |
13529 | } | |
15afbcd0 | 13530 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13531 | return resultobj; |
13532 | fail: | |
13533 | return NULL; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13538 | PyObject *resultobj; | |
13539 | wxDC *arg1 = (wxDC *) 0 ; | |
13540 | wxBrush *result; | |
13541 | PyObject * obj0 = 0 ; | |
13542 | char *kwnames[] = { | |
13543 | (char *) "self", NULL | |
13544 | }; | |
13545 | ||
13546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13549 | { |
13550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13551 | { | |
13552 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13553 | result = (wxBrush *) &_result_ref; | |
13554 | } | |
13555 | ||
13556 | wxPyEndAllowThreads(__tstate); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | } | |
4276dc52 RD |
13559 | { |
13560 | wxBrush* resultptr = new wxBrush(*result); | |
13561 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13562 | } | |
d14a1e28 RD |
13563 | return resultobj; |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj; | |
13571 | wxDC *arg1 = (wxDC *) 0 ; | |
13572 | wxBrush *result; | |
13573 | PyObject * obj0 = 0 ; | |
13574 | char *kwnames[] = { | |
13575 | (char *) "self", NULL | |
13576 | }; | |
13577 | ||
13578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13581 | { |
13582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13583 | { | |
13584 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13585 | result = (wxBrush *) &_result_ref; | |
13586 | } | |
13587 | ||
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
4276dc52 RD |
13591 | { |
13592 | wxBrush* resultptr = new wxBrush(*result); | |
13593 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13594 | } | |
d14a1e28 RD |
13595 | return resultobj; |
13596 | fail: | |
13597 | return NULL; | |
13598 | } | |
13599 | ||
13600 | ||
13601 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13602 | PyObject *resultobj; | |
13603 | wxDC *arg1 = (wxDC *) 0 ; | |
13604 | wxFont *result; | |
13605 | PyObject * obj0 = 0 ; | |
13606 | char *kwnames[] = { | |
13607 | (char *) "self", NULL | |
13608 | }; | |
13609 | ||
13610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13613 | { |
13614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13615 | { | |
13616 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13617 | result = (wxFont *) &_result_ref; | |
13618 | } | |
13619 | ||
13620 | wxPyEndAllowThreads(__tstate); | |
13621 | if (PyErr_Occurred()) SWIG_fail; | |
13622 | } | |
4276dc52 RD |
13623 | { |
13624 | wxFont* resultptr = new wxFont(*result); | |
13625 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13626 | } | |
d14a1e28 RD |
13627 | return resultobj; |
13628 | fail: | |
13629 | return NULL; | |
13630 | } | |
13631 | ||
13632 | ||
13633 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13634 | PyObject *resultobj; | |
13635 | wxDC *arg1 = (wxDC *) 0 ; | |
13636 | wxPen *result; | |
13637 | PyObject * obj0 = 0 ; | |
13638 | char *kwnames[] = { | |
13639 | (char *) "self", NULL | |
13640 | }; | |
13641 | ||
13642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13645 | { |
13646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13647 | { | |
13648 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13649 | result = (wxPen *) &_result_ref; | |
13650 | } | |
13651 | ||
13652 | wxPyEndAllowThreads(__tstate); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
4276dc52 RD |
13655 | { |
13656 | wxPen* resultptr = new wxPen(*result); | |
13657 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
13658 | } | |
d14a1e28 RD |
13659 | return resultobj; |
13660 | fail: | |
13661 | return NULL; | |
13662 | } | |
13663 | ||
13664 | ||
13665 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13666 | PyObject *resultobj; | |
13667 | wxDC *arg1 = (wxDC *) 0 ; | |
13668 | wxColour *result; | |
13669 | PyObject * obj0 = 0 ; | |
13670 | char *kwnames[] = { | |
13671 | (char *) "self", NULL | |
13672 | }; | |
13673 | ||
13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13677 | { |
13678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13679 | { | |
13680 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13681 | result = (wxColour *) &_result_ref; | |
13682 | } | |
13683 | ||
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
15afbcd0 | 13687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13688 | return resultobj; |
13689 | fail: | |
13690 | return NULL; | |
13691 | } | |
13692 | ||
13693 | ||
13694 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13695 | PyObject *resultobj; | |
13696 | wxDC *arg1 = (wxDC *) 0 ; | |
13697 | wxColour *result; | |
13698 | PyObject * obj0 = 0 ; | |
13699 | char *kwnames[] = { | |
13700 | (char *) "self", NULL | |
13701 | }; | |
13702 | ||
13703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13706 | { |
13707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13708 | { | |
13709 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13710 | result = (wxColour *) &_result_ref; | |
13711 | } | |
13712 | ||
13713 | wxPyEndAllowThreads(__tstate); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
13715 | } | |
15afbcd0 | 13716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13717 | return resultobj; |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13724 | PyObject *resultobj; | |
13725 | wxDC *arg1 = (wxDC *) 0 ; | |
13726 | wxColour *arg2 = 0 ; | |
13727 | wxColour temp2 ; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | PyObject * obj1 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self",(char *) "colour", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13737 | { |
13738 | arg2 = &temp2; | |
13739 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13740 | } | |
13741 | { | |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13743 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13744 | ||
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | Py_INCREF(Py_None); resultobj = Py_None; | |
13749 | return resultobj; | |
13750 | fail: | |
13751 | return NULL; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13756 | PyObject *resultobj; | |
13757 | wxDC *arg1 = (wxDC *) 0 ; | |
13758 | wxColour *arg2 = 0 ; | |
13759 | wxColour temp2 ; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | PyObject * obj1 = 0 ; | |
13762 | char *kwnames[] = { | |
13763 | (char *) "self",(char *) "colour", NULL | |
13764 | }; | |
13765 | ||
13766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13769 | { |
13770 | arg2 = &temp2; | |
13771 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13772 | } | |
13773 | { | |
13774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13775 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13776 | ||
13777 | wxPyEndAllowThreads(__tstate); | |
13778 | if (PyErr_Occurred()) SWIG_fail; | |
13779 | } | |
13780 | Py_INCREF(Py_None); resultobj = Py_None; | |
13781 | return resultobj; | |
13782 | fail: | |
13783 | return NULL; | |
13784 | } | |
13785 | ||
13786 | ||
13787 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13788 | PyObject *resultobj; | |
13789 | wxDC *arg1 = (wxDC *) 0 ; | |
13790 | int result; | |
13791 | PyObject * obj0 = 0 ; | |
13792 | char *kwnames[] = { | |
13793 | (char *) "self", NULL | |
13794 | }; | |
13795 | ||
13796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13799 | { |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
15afbcd0 | 13806 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13807 | return resultobj; |
13808 | fail: | |
13809 | return NULL; | |
13810 | } | |
13811 | ||
13812 | ||
13813 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13814 | PyObject *resultobj; | |
13815 | wxDC *arg1 = (wxDC *) 0 ; | |
13816 | int arg2 ; | |
13817 | PyObject * obj0 = 0 ; | |
994141e6 | 13818 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13819 | char *kwnames[] = { |
13820 | (char *) "self",(char *) "mode", NULL | |
13821 | }; | |
13822 | ||
994141e6 | 13823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13826 | arg2 = (int) SWIG_AsInt(obj1); | |
13827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13828 | { |
13829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13830 | (arg1)->SetMapMode(arg2); | |
13831 | ||
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | Py_INCREF(Py_None); resultobj = Py_None; | |
13836 | return resultobj; | |
13837 | fail: | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
13842 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxDC *arg1 = (wxDC *) 0 ; | |
13845 | double *arg2 = (double *) 0 ; | |
13846 | double *arg3 = (double *) 0 ; | |
13847 | double temp2 ; | |
13848 | double temp3 ; | |
13849 | PyObject * obj0 = 0 ; | |
13850 | char *kwnames[] = { | |
13851 | (char *) "self", NULL | |
13852 | }; | |
13853 | ||
13854 | arg2 = &temp2; | |
13855 | arg3 = &temp3; | |
13856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13859 | { |
13860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13861 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13862 | ||
13863 | wxPyEndAllowThreads(__tstate); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
13866 | Py_INCREF(Py_None); resultobj = Py_None; | |
13867 | { | |
13868 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13869 | resultobj = t_output_helper(resultobj,o); | |
13870 | } | |
13871 | { | |
13872 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13873 | resultobj = t_output_helper(resultobj,o); | |
13874 | } | |
13875 | return resultobj; | |
13876 | fail: | |
13877 | return NULL; | |
13878 | } | |
13879 | ||
13880 | ||
13881 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13882 | PyObject *resultobj; | |
13883 | wxDC *arg1 = (wxDC *) 0 ; | |
13884 | double arg2 ; | |
13885 | double arg3 ; | |
13886 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13887 | PyObject * obj1 = 0 ; |
13888 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13889 | char *kwnames[] = { |
13890 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13891 | }; | |
13892 | ||
994141e6 | 13893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13896 | arg2 = (double) SWIG_AsDouble(obj1); | |
13897 | if (PyErr_Occurred()) SWIG_fail; | |
13898 | arg3 = (double) SWIG_AsDouble(obj2); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13900 | { |
13901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13902 | (arg1)->SetUserScale(arg2,arg3); | |
13903 | ||
13904 | wxPyEndAllowThreads(__tstate); | |
13905 | if (PyErr_Occurred()) SWIG_fail; | |
13906 | } | |
13907 | Py_INCREF(Py_None); resultobj = Py_None; | |
13908 | return resultobj; | |
13909 | fail: | |
13910 | return NULL; | |
13911 | } | |
13912 | ||
13913 | ||
13914 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13915 | PyObject *resultobj; | |
13916 | wxDC *arg1 = (wxDC *) 0 ; | |
13917 | double *arg2 = (double *) 0 ; | |
13918 | double *arg3 = (double *) 0 ; | |
13919 | double temp2 ; | |
13920 | double temp3 ; | |
13921 | PyObject * obj0 = 0 ; | |
13922 | char *kwnames[] = { | |
13923 | (char *) "self", NULL | |
13924 | }; | |
13925 | ||
13926 | arg2 = &temp2; | |
13927 | arg3 = &temp3; | |
13928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13931 | { |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | (arg1)->GetLogicalScale(arg2,arg3); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | Py_INCREF(Py_None); resultobj = Py_None; | |
13939 | { | |
13940 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13941 | resultobj = t_output_helper(resultobj,o); | |
13942 | } | |
13943 | { | |
13944 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13945 | resultobj = t_output_helper(resultobj,o); | |
13946 | } | |
13947 | return resultobj; | |
13948 | fail: | |
13949 | return NULL; | |
13950 | } | |
13951 | ||
13952 | ||
13953 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13954 | PyObject *resultobj; | |
13955 | wxDC *arg1 = (wxDC *) 0 ; | |
13956 | double arg2 ; | |
13957 | double arg3 ; | |
13958 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13959 | PyObject * obj1 = 0 ; |
13960 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13961 | char *kwnames[] = { |
13962 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13963 | }; | |
13964 | ||
994141e6 | 13965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13968 | arg2 = (double) SWIG_AsDouble(obj1); | |
13969 | if (PyErr_Occurred()) SWIG_fail; | |
13970 | arg3 = (double) SWIG_AsDouble(obj2); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13972 | { |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | (arg1)->SetLogicalScale(arg2,arg3); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
13979 | Py_INCREF(Py_None); resultobj = Py_None; | |
13980 | return resultobj; | |
13981 | fail: | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
322913ce | 13986 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13987 | PyObject *resultobj; |
13988 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13989 | wxPoint result; |
d14a1e28 RD |
13990 | PyObject * obj0 = 0 ; |
13991 | char *kwnames[] = { | |
13992 | (char *) "self", NULL | |
13993 | }; | |
13994 | ||
322913ce | 13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13998 | { |
13999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14000 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14001 | |
14002 | wxPyEndAllowThreads(__tstate); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
d14a1e28 | 14005 | { |
322913ce RD |
14006 | wxPoint * resultptr; |
14007 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14009 | } |
14010 | return resultobj; | |
14011 | fail: | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
322913ce | 14016 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14017 | PyObject *resultobj; |
14018 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14019 | int *arg2 = (int *) 0 ; |
14020 | int *arg3 = (int *) 0 ; | |
14021 | int temp2 ; | |
14022 | int temp3 ; | |
d14a1e28 RD |
14023 | PyObject * obj0 = 0 ; |
14024 | char *kwnames[] = { | |
14025 | (char *) "self", NULL | |
14026 | }; | |
14027 | ||
322913ce RD |
14028 | arg2 = &temp2; |
14029 | arg3 = &temp3; | |
14030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14033 | { |
14034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14035 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14036 | |
14037 | wxPyEndAllowThreads(__tstate); | |
14038 | if (PyErr_Occurred()) SWIG_fail; | |
14039 | } | |
322913ce | 14040 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14041 | { |
322913ce RD |
14042 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14043 | resultobj = t_output_helper(resultobj,o); | |
14044 | } | |
14045 | { | |
14046 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14047 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14048 | } |
14049 | return resultobj; | |
14050 | fail: | |
14051 | return NULL; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14056 | PyObject *resultobj; | |
14057 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14058 | int arg2 ; |
14059 | int arg3 ; | |
d14a1e28 | 14060 | PyObject * obj0 = 0 ; |
994141e6 RD |
14061 | PyObject * obj1 = 0 ; |
14062 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14063 | char *kwnames[] = { |
14064 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14065 | }; | |
14066 | ||
994141e6 | 14067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14070 | arg2 = (int) SWIG_AsInt(obj1); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | arg3 = (int) SWIG_AsInt(obj2); | |
14073 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14074 | { |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14077 | ||
14078 | wxPyEndAllowThreads(__tstate); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | Py_INCREF(Py_None); resultobj = Py_None; | |
14082 | return resultobj; | |
14083 | fail: | |
14084 | return NULL; | |
14085 | } | |
14086 | ||
14087 | ||
322913ce | 14088 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14089 | PyObject *resultobj; |
14090 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14091 | wxPoint result; |
d14a1e28 RD |
14092 | PyObject * obj0 = 0 ; |
14093 | char *kwnames[] = { | |
14094 | (char *) "self", NULL | |
14095 | }; | |
14096 | ||
322913ce | 14097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14100 | { |
14101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14102 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14103 | |
14104 | wxPyEndAllowThreads(__tstate); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
d14a1e28 | 14107 | { |
322913ce RD |
14108 | wxPoint * resultptr; |
14109 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14111 | } |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
322913ce | 14118 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14119 | PyObject *resultobj; |
14120 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14121 | int *arg2 = (int *) 0 ; |
14122 | int *arg3 = (int *) 0 ; | |
14123 | int temp2 ; | |
14124 | int temp3 ; | |
d14a1e28 RD |
14125 | PyObject * obj0 = 0 ; |
14126 | char *kwnames[] = { | |
14127 | (char *) "self", NULL | |
14128 | }; | |
14129 | ||
322913ce RD |
14130 | arg2 = &temp2; |
14131 | arg3 = &temp3; | |
14132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14135 | { |
14136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14137 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14138 | |
14139 | wxPyEndAllowThreads(__tstate); | |
14140 | if (PyErr_Occurred()) SWIG_fail; | |
14141 | } | |
322913ce | 14142 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14143 | { |
322913ce RD |
14144 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14145 | resultobj = t_output_helper(resultobj,o); | |
14146 | } | |
14147 | { | |
14148 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14149 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14150 | } |
14151 | return resultobj; | |
14152 | fail: | |
14153 | return NULL; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14158 | PyObject *resultobj; | |
14159 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14160 | int arg2 ; |
14161 | int arg3 ; | |
d14a1e28 | 14162 | PyObject * obj0 = 0 ; |
994141e6 RD |
14163 | PyObject * obj1 = 0 ; |
14164 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14165 | char *kwnames[] = { |
14166 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14167 | }; | |
14168 | ||
994141e6 | 14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14172 | arg2 = (int) SWIG_AsInt(obj1); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | arg3 = (int) SWIG_AsInt(obj2); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14176 | { |
14177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14178 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14179 | ||
14180 | wxPyEndAllowThreads(__tstate); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
14183 | Py_INCREF(Py_None); resultobj = Py_None; | |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
14190 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14191 | PyObject *resultobj; | |
14192 | wxDC *arg1 = (wxDC *) 0 ; | |
14193 | bool arg2 ; | |
14194 | bool arg3 ; | |
14195 | PyObject * obj0 = 0 ; | |
14196 | PyObject * obj1 = 0 ; | |
14197 | PyObject * obj2 = 0 ; | |
14198 | char *kwnames[] = { | |
14199 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14200 | }; | |
14201 | ||
14202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14205 | arg2 = (bool) SWIG_AsBool(obj1); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | arg3 = (bool) SWIG_AsBool(obj2); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14209 | { |
14210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14211 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14212 | ||
14213 | wxPyEndAllowThreads(__tstate); | |
14214 | if (PyErr_Occurred()) SWIG_fail; | |
14215 | } | |
14216 | Py_INCREF(Py_None); resultobj = Py_None; | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | return NULL; | |
14220 | } | |
14221 | ||
14222 | ||
14223 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14224 | PyObject *resultobj; | |
14225 | wxDC *arg1 = (wxDC *) 0 ; | |
14226 | int result; | |
14227 | PyObject * obj0 = 0 ; | |
14228 | char *kwnames[] = { | |
14229 | (char *) "self", NULL | |
14230 | }; | |
14231 | ||
14232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14235 | { |
14236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14237 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14238 | ||
14239 | wxPyEndAllowThreads(__tstate); | |
14240 | if (PyErr_Occurred()) SWIG_fail; | |
14241 | } | |
15afbcd0 | 14242 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14243 | return resultobj; |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14250 | PyObject *resultobj; | |
14251 | wxDC *arg1 = (wxDC *) 0 ; | |
14252 | int arg2 ; | |
14253 | PyObject * obj0 = 0 ; | |
994141e6 | 14254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14255 | char *kwnames[] = { |
14256 | (char *) "self",(char *) "function", NULL | |
14257 | }; | |
14258 | ||
994141e6 | 14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14262 | arg2 = (int) SWIG_AsInt(obj1); | |
14263 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14264 | { |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | (arg1)->SetLogicalFunction(arg2); | |
14267 | ||
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | Py_INCREF(Py_None); resultobj = Py_None; | |
14272 | return resultobj; | |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14279 | PyObject *resultobj; | |
14280 | wxDC *arg1 = (wxDC *) 0 ; | |
14281 | bool arg2 ; | |
14282 | PyObject * obj0 = 0 ; | |
14283 | PyObject * obj1 = 0 ; | |
14284 | char *kwnames[] = { | |
14285 | (char *) "self",(char *) "opt", NULL | |
14286 | }; | |
14287 | ||
14288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14291 | arg2 = (bool) SWIG_AsBool(obj1); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14293 | { |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | (arg1)->SetOptimization(arg2); | |
14296 | ||
14297 | wxPyEndAllowThreads(__tstate); | |
14298 | if (PyErr_Occurred()) SWIG_fail; | |
14299 | } | |
14300 | Py_INCREF(Py_None); resultobj = Py_None; | |
14301 | return resultobj; | |
14302 | fail: | |
14303 | return NULL; | |
14304 | } | |
14305 | ||
14306 | ||
14307 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14308 | PyObject *resultobj; | |
14309 | wxDC *arg1 = (wxDC *) 0 ; | |
14310 | bool result; | |
14311 | PyObject * obj0 = 0 ; | |
14312 | char *kwnames[] = { | |
14313 | (char *) "self", NULL | |
14314 | }; | |
14315 | ||
14316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14319 | { |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | result = (bool)(arg1)->GetOptimization(); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
4d5c3d91 | 14326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14327 | return resultobj; |
14328 | fail: | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14334 | PyObject *resultobj; | |
14335 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14336 | int arg2 ; |
14337 | int arg3 ; | |
d14a1e28 | 14338 | PyObject * obj0 = 0 ; |
994141e6 RD |
14339 | PyObject * obj1 = 0 ; |
14340 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14341 | char *kwnames[] = { |
14342 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14343 | }; | |
14344 | ||
994141e6 | 14345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14348 | arg2 = (int) SWIG_AsInt(obj1); | |
14349 | if (PyErr_Occurred()) SWIG_fail; | |
14350 | arg3 = (int) SWIG_AsInt(obj2); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14352 | { |
14353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14354 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14355 | ||
14356 | wxPyEndAllowThreads(__tstate); | |
14357 | if (PyErr_Occurred()) SWIG_fail; | |
14358 | } | |
14359 | Py_INCREF(Py_None); resultobj = Py_None; | |
14360 | return resultobj; | |
14361 | fail: | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxDC *arg1 = (wxDC *) 0 ; | |
14369 | PyObject * obj0 = 0 ; | |
14370 | char *kwnames[] = { | |
14371 | (char *) "self", NULL | |
14372 | }; | |
14373 | ||
14374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14377 | { |
14378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14379 | (arg1)->ResetBoundingBox(); | |
14380 | ||
14381 | wxPyEndAllowThreads(__tstate); | |
14382 | if (PyErr_Occurred()) SWIG_fail; | |
14383 | } | |
14384 | Py_INCREF(Py_None); resultobj = Py_None; | |
14385 | return resultobj; | |
14386 | fail: | |
14387 | return NULL; | |
14388 | } | |
14389 | ||
14390 | ||
14391 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14392 | PyObject *resultobj; | |
14393 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14394 | int result; |
d14a1e28 RD |
14395 | PyObject * obj0 = 0 ; |
14396 | char *kwnames[] = { | |
14397 | (char *) "self", NULL | |
14398 | }; | |
14399 | ||
14400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14403 | { |
14404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14405 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14406 | |
14407 | wxPyEndAllowThreads(__tstate); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
14409 | } | |
15afbcd0 | 14410 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14411 | return resultobj; |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj; | |
14419 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14420 | int result; |
d14a1e28 RD |
14421 | PyObject * obj0 = 0 ; |
14422 | char *kwnames[] = { | |
14423 | (char *) "self", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14429 | { |
14430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14431 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14432 | |
14433 | wxPyEndAllowThreads(__tstate); | |
14434 | if (PyErr_Occurred()) SWIG_fail; | |
14435 | } | |
15afbcd0 | 14436 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14437 | return resultobj; |
14438 | fail: | |
14439 | return NULL; | |
14440 | } | |
14441 | ||
14442 | ||
14443 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14444 | PyObject *resultobj; | |
14445 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14446 | int result; |
d14a1e28 RD |
14447 | PyObject * obj0 = 0 ; |
14448 | char *kwnames[] = { | |
14449 | (char *) "self", NULL | |
14450 | }; | |
14451 | ||
14452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14455 | { |
14456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14457 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14458 | |
14459 | wxPyEndAllowThreads(__tstate); | |
14460 | if (PyErr_Occurred()) SWIG_fail; | |
14461 | } | |
15afbcd0 | 14462 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14463 | return resultobj; |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14470 | PyObject *resultobj; | |
14471 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14472 | int result; |
d14a1e28 RD |
14473 | PyObject * obj0 = 0 ; |
14474 | char *kwnames[] = { | |
14475 | (char *) "self", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14481 | { |
14482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14483 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14484 | |
14485 | wxPyEndAllowThreads(__tstate); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
14487 | } | |
15afbcd0 | 14488 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14489 | return resultobj; |
14490 | fail: | |
14491 | return NULL; | |
14492 | } | |
14493 | ||
14494 | ||
14495 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14496 | PyObject *resultobj; | |
14497 | wxDC *arg1 = (wxDC *) 0 ; | |
14498 | int *arg2 = (int *) 0 ; | |
14499 | int *arg3 = (int *) 0 ; | |
14500 | int *arg4 = (int *) 0 ; | |
14501 | int *arg5 = (int *) 0 ; | |
14502 | int temp2 ; | |
14503 | int temp3 ; | |
14504 | int temp4 ; | |
14505 | int temp5 ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | char *kwnames[] = { | |
14508 | (char *) "self", NULL | |
14509 | }; | |
14510 | ||
14511 | arg2 = &temp2; | |
14512 | arg3 = &temp3; | |
14513 | arg4 = &temp4; | |
14514 | arg5 = &temp5; | |
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14518 | { |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14521 | ||
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | Py_INCREF(Py_None); resultobj = Py_None; | |
14526 | { | |
14527 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14528 | resultobj = t_output_helper(resultobj,o); | |
14529 | } | |
14530 | { | |
14531 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14532 | resultobj = t_output_helper(resultobj,o); | |
14533 | } | |
14534 | { | |
14535 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14536 | resultobj = t_output_helper(resultobj,o); | |
14537 | } | |
14538 | { | |
14539 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14540 | resultobj = t_output_helper(resultobj,o); | |
14541 | } | |
14542 | return resultobj; | |
14543 | fail: | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxDC *arg1 = (wxDC *) 0 ; | |
14551 | PyObject *arg2 = (PyObject *) 0 ; | |
14552 | PyObject *arg3 = (PyObject *) 0 ; | |
14553 | PyObject *arg4 = (PyObject *) 0 ; | |
14554 | PyObject *result; | |
14555 | PyObject * obj0 = 0 ; | |
14556 | PyObject * obj1 = 0 ; | |
14557 | PyObject * obj2 = 0 ; | |
14558 | PyObject * obj3 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14566 | arg2 = obj1; |
14567 | arg3 = obj2; | |
14568 | arg4 = obj3; | |
14569 | { | |
14570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14571 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14572 | ||
14573 | wxPyEndAllowThreads(__tstate); | |
14574 | if (PyErr_Occurred()) SWIG_fail; | |
14575 | } | |
14576 | resultobj = result; | |
14577 | return resultobj; | |
14578 | fail: | |
14579 | return NULL; | |
14580 | } | |
14581 | ||
14582 | ||
14583 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14584 | PyObject *resultobj; | |
14585 | wxDC *arg1 = (wxDC *) 0 ; | |
14586 | PyObject *arg2 = (PyObject *) 0 ; | |
14587 | PyObject *arg3 = (PyObject *) 0 ; | |
14588 | PyObject *arg4 = (PyObject *) 0 ; | |
14589 | PyObject *result; | |
14590 | PyObject * obj0 = 0 ; | |
14591 | PyObject * obj1 = 0 ; | |
14592 | PyObject * obj2 = 0 ; | |
14593 | PyObject * obj3 = 0 ; | |
14594 | char *kwnames[] = { | |
14595 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14596 | }; | |
14597 | ||
14598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14601 | arg2 = obj1; |
14602 | arg3 = obj2; | |
14603 | arg4 = obj3; | |
14604 | { | |
14605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14606 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14607 | ||
14608 | wxPyEndAllowThreads(__tstate); | |
14609 | if (PyErr_Occurred()) SWIG_fail; | |
14610 | } | |
14611 | resultobj = result; | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
14618 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14619 | PyObject *resultobj; | |
14620 | wxDC *arg1 = (wxDC *) 0 ; | |
14621 | PyObject *arg2 = (PyObject *) 0 ; | |
14622 | PyObject *arg3 = (PyObject *) 0 ; | |
14623 | PyObject *arg4 = (PyObject *) 0 ; | |
14624 | PyObject *result; | |
14625 | PyObject * obj0 = 0 ; | |
14626 | PyObject * obj1 = 0 ; | |
14627 | PyObject * obj2 = 0 ; | |
14628 | PyObject * obj3 = 0 ; | |
14629 | char *kwnames[] = { | |
14630 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14631 | }; | |
14632 | ||
14633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14636 | arg2 = obj1; |
14637 | arg3 = obj2; | |
14638 | arg4 = obj3; | |
14639 | { | |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14642 | ||
14643 | wxPyEndAllowThreads(__tstate); | |
14644 | if (PyErr_Occurred()) SWIG_fail; | |
14645 | } | |
14646 | resultobj = result; | |
14647 | return resultobj; | |
14648 | fail: | |
14649 | return NULL; | |
14650 | } | |
14651 | ||
14652 | ||
14653 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14654 | PyObject *resultobj; | |
14655 | wxDC *arg1 = (wxDC *) 0 ; | |
14656 | PyObject *arg2 = (PyObject *) 0 ; | |
14657 | PyObject *arg3 = (PyObject *) 0 ; | |
14658 | PyObject *arg4 = (PyObject *) 0 ; | |
14659 | PyObject *result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | PyObject * obj1 = 0 ; | |
14662 | PyObject * obj2 = 0 ; | |
14663 | PyObject * obj3 = 0 ; | |
14664 | char *kwnames[] = { | |
14665 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14666 | }; | |
14667 | ||
14668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14671 | arg2 = obj1; |
14672 | arg3 = obj2; | |
14673 | arg4 = obj3; | |
14674 | { | |
14675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14676 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14677 | ||
14678 | wxPyEndAllowThreads(__tstate); | |
14679 | if (PyErr_Occurred()) SWIG_fail; | |
14680 | } | |
14681 | resultobj = result; | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
14688 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14689 | PyObject *resultobj; | |
14690 | wxDC *arg1 = (wxDC *) 0 ; | |
14691 | PyObject *arg2 = (PyObject *) 0 ; | |
14692 | PyObject *arg3 = (PyObject *) 0 ; | |
14693 | PyObject *arg4 = (PyObject *) 0 ; | |
14694 | PyObject *result; | |
14695 | PyObject * obj0 = 0 ; | |
14696 | PyObject * obj1 = 0 ; | |
14697 | PyObject * obj2 = 0 ; | |
14698 | PyObject * obj3 = 0 ; | |
14699 | char *kwnames[] = { | |
14700 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14701 | }; | |
14702 | ||
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14706 | arg2 = obj1; |
14707 | arg3 = obj2; | |
14708 | arg4 = obj3; | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14712 | ||
14713 | wxPyEndAllowThreads(__tstate); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
14715 | } | |
14716 | resultobj = result; | |
14717 | return resultobj; | |
14718 | fail: | |
14719 | return NULL; | |
14720 | } | |
14721 | ||
14722 | ||
14723 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14724 | PyObject *resultobj; | |
14725 | wxDC *arg1 = (wxDC *) 0 ; | |
14726 | PyObject *arg2 = (PyObject *) 0 ; | |
14727 | PyObject *arg3 = (PyObject *) 0 ; | |
14728 | PyObject *arg4 = (PyObject *) 0 ; | |
14729 | PyObject *arg5 = (PyObject *) 0 ; | |
14730 | PyObject *result; | |
14731 | PyObject * obj0 = 0 ; | |
14732 | PyObject * obj1 = 0 ; | |
14733 | PyObject * obj2 = 0 ; | |
14734 | PyObject * obj3 = 0 ; | |
14735 | PyObject * obj4 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
14741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14743 | arg2 = obj1; |
14744 | arg3 = obj2; | |
14745 | arg4 = obj3; | |
14746 | arg5 = obj4; | |
14747 | { | |
14748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14749 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14750 | ||
14751 | wxPyEndAllowThreads(__tstate); | |
14752 | if (PyErr_Occurred()) SWIG_fail; | |
14753 | } | |
14754 | resultobj = result; | |
14755 | return resultobj; | |
14756 | fail: | |
14757 | return NULL; | |
14758 | } | |
14759 | ||
14760 | ||
14761 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14762 | PyObject *obj; | |
14763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14764 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14765 | Py_INCREF(obj); | |
14766 | return Py_BuildValue((char *)""); | |
14767 | } | |
14768 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxMemoryDC *result; | |
14771 | char *kwnames[] = { | |
14772 | NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14776 | { | |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14778 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
15afbcd0 | 14783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
14784 | return resultobj; |
14785 | fail: | |
14786 | return NULL; | |
14787 | } | |
14788 | ||
14789 | ||
14790 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14791 | PyObject *resultobj; | |
14792 | wxDC *arg1 = (wxDC *) 0 ; | |
14793 | wxMemoryDC *result; | |
14794 | PyObject * obj0 = 0 ; | |
14795 | char *kwnames[] = { | |
14796 | (char *) "oldDC", NULL | |
14797 | }; | |
14798 | ||
14799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14802 | { |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14805 | ||
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
15afbcd0 | 14809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
14810 | return resultobj; |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj; | |
14818 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14819 | wxBitmap *arg2 = 0 ; | |
14820 | PyObject * obj0 = 0 ; | |
14821 | PyObject * obj1 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self",(char *) "bitmap", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
14828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
14830 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14831 | SWIG_fail; | |
d14a1e28 | 14832 | if (arg2 == NULL) { |
15afbcd0 RD |
14833 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14834 | SWIG_fail; | |
d14a1e28 RD |
14835 | } |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14839 | ||
14840 | wxPyEndAllowThreads(__tstate); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
14843 | Py_INCREF(Py_None); resultobj = Py_None; | |
14844 | return resultobj; | |
14845 | fail: | |
14846 | return NULL; | |
14847 | } | |
14848 | ||
14849 | ||
14850 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14851 | PyObject *obj; | |
14852 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14853 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14854 | Py_INCREF(obj); | |
14855 | return Py_BuildValue((char *)""); | |
14856 | } | |
3adfb63b | 14857 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14858 | PyObject *resultobj; |
14859 | wxDC *arg1 = (wxDC *) 0 ; | |
14860 | wxBitmap *arg2 = 0 ; | |
14861 | wxBufferedDC *result; | |
14862 | PyObject * obj0 = 0 ; | |
14863 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14864 | |
3adfb63b | 14865 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
14869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14870 | SWIG_fail; | |
d14a1e28 | 14871 | if (arg2 == NULL) { |
15afbcd0 RD |
14872 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14873 | SWIG_fail; | |
d14a1e28 RD |
14874 | } |
14875 | { | |
14876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14877 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14878 | ||
14879 | wxPyEndAllowThreads(__tstate); | |
14880 | if (PyErr_Occurred()) SWIG_fail; | |
14881 | } | |
15afbcd0 | 14882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
14883 | return resultobj; |
14884 | fail: | |
14885 | return NULL; | |
14886 | } | |
14887 | ||
14888 | ||
3adfb63b | 14889 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14890 | PyObject *resultobj; |
14891 | wxDC *arg1 = (wxDC *) 0 ; | |
14892 | wxSize *arg2 = 0 ; | |
14893 | wxBufferedDC *result; | |
14894 | wxSize temp2 ; | |
14895 | PyObject * obj0 = 0 ; | |
14896 | PyObject * obj1 = 0 ; | |
3adfb63b | 14897 | |
e498079e | 14898 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
14901 | { |
14902 | arg2 = &temp2; | |
14903 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14904 | } | |
3adfb63b RD |
14905 | { |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14907 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
3adfb63b RD |
14908 | |
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
15afbcd0 | 14912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
3adfb63b RD |
14913 | return resultobj; |
14914 | fail: | |
14915 | return NULL; | |
14916 | } | |
14917 | ||
14918 | ||
14919 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14920 | int argc; | |
e498079e | 14921 | PyObject *argv[3]; |
3adfb63b RD |
14922 | int ii; |
14923 | ||
14924 | argc = PyObject_Length(args); | |
e498079e | 14925 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
3adfb63b RD |
14926 | argv[ii] = PyTuple_GetItem(args,ii); |
14927 | } | |
14928 | if (argc == 2) { | |
14929 | int _v; | |
14930 | { | |
14931 | void *ptr; | |
15afbcd0 | 14932 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
14933 | _v = 0; |
14934 | PyErr_Clear(); | |
14935 | } else { | |
14936 | _v = 1; | |
14937 | } | |
14938 | } | |
14939 | if (_v) { | |
14940 | { | |
14941 | void *ptr; | |
15afbcd0 | 14942 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
3adfb63b RD |
14943 | _v = 0; |
14944 | PyErr_Clear(); | |
14945 | } else { | |
14946 | _v = 1; | |
14947 | } | |
14948 | } | |
14949 | if (_v) { | |
14950 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14951 | } | |
14952 | } | |
14953 | } | |
e498079e | 14954 | if (argc == 2) { |
3adfb63b RD |
14955 | int _v; |
14956 | { | |
14957 | void *ptr; | |
15afbcd0 | 14958 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
14959 | _v = 0; |
14960 | PyErr_Clear(); | |
14961 | } else { | |
14962 | _v = 1; | |
14963 | } | |
14964 | } | |
14965 | if (_v) { | |
14966 | { | |
14967 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14968 | } | |
14969 | if (_v) { | |
e498079e | 14970 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
3adfb63b RD |
14971 | } |
14972 | } | |
14973 | } | |
14974 | ||
14975 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
14976 | return NULL; | |
14977 | } | |
14978 | ||
14979 | ||
14980 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
14981 | PyObject *resultobj; | |
14982 | wxDC *arg1 = (wxDC *) 0 ; | |
14983 | wxSize *arg2 = 0 ; | |
3adfb63b RD |
14984 | wxBufferedDC *result; |
14985 | wxSize temp2 ; | |
14986 | PyObject * obj0 = 0 ; | |
14987 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14988 | |
e498079e | 14989 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14992 | { |
14993 | arg2 = &temp2; | |
14994 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14995 | } | |
14996 | { | |
14997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14998 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
14999 | |
15000 | wxPyEndAllowThreads(__tstate); | |
15001 | if (PyErr_Occurred()) SWIG_fail; | |
15002 | } | |
15afbcd0 | 15003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15004 | return resultobj; |
15005 | fail: | |
15006 | return NULL; | |
15007 | } | |
15008 | ||
15009 | ||
e498079e | 15010 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15011 | PyObject *resultobj; |
15012 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self", NULL | |
15016 | }; | |
15017 | ||
e498079e | 15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15021 | { |
15022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15023 | delete arg1; |
d14a1e28 RD |
15024 | |
15025 | wxPyEndAllowThreads(__tstate); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
15028 | Py_INCREF(Py_None); resultobj = Py_None; | |
15029 | return resultobj; | |
15030 | fail: | |
15031 | return NULL; | |
15032 | } | |
15033 | ||
15034 | ||
e498079e | 15035 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15036 | PyObject *resultobj; |
e498079e | 15037 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
3adfb63b | 15038 | PyObject * obj0 = 0 ; |
e498079e RD |
15039 | char *kwnames[] = { |
15040 | (char *) "self", NULL | |
15041 | }; | |
3adfb63b | 15042 | |
e498079e | 15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15046 | { |
15047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15048 | (arg1)->UnMask(); |
3adfb63b RD |
15049 | |
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
e498079e | 15053 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
15054 | return resultobj; |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
e498079e RD |
15060 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
15061 | PyObject *obj; | |
15062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15063 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15064 | Py_INCREF(obj); | |
15065 | return Py_BuildValue((char *)""); | |
15066 | } | |
15067 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
15068 | PyObject *resultobj; |
15069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e498079e RD |
15070 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15071 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15072 | wxBufferedPaintDC *result; |
15073 | PyObject * obj0 = 0 ; | |
15074 | PyObject * obj1 = 0 ; | |
e498079e RD |
15075 | char *kwnames[] = { |
15076 | (char *) "window",(char *) "buffer", NULL | |
15077 | }; | |
d14a1e28 | 15078 | |
e498079e | 15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15082 | if (obj1) { |
15afbcd0 RD |
15083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
15084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15085 | SWIG_fail; | |
e498079e | 15086 | if (arg2 == NULL) { |
15afbcd0 RD |
15087 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15088 | SWIG_fail; | |
d14a1e28 RD |
15089 | } |
15090 | } | |
15091 | { | |
15092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15093 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15094 | |
15095 | wxPyEndAllowThreads(__tstate); | |
15096 | if (PyErr_Occurred()) SWIG_fail; | |
15097 | } | |
15afbcd0 | 15098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
15099 | return resultobj; |
15100 | fail: | |
15101 | return NULL; | |
15102 | } | |
15103 | ||
15104 | ||
15105 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15106 | PyObject *obj; | |
15107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15108 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15109 | Py_INCREF(obj); | |
15110 | return Py_BuildValue((char *)""); | |
15111 | } | |
15112 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15113 | PyObject *resultobj; | |
15114 | wxScreenDC *result; | |
15115 | char *kwnames[] = { | |
15116 | NULL | |
15117 | }; | |
15118 | ||
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | result = (wxScreenDC *)new wxScreenDC(); | |
15123 | ||
15124 | wxPyEndAllowThreads(__tstate); | |
15125 | if (PyErr_Occurred()) SWIG_fail; | |
15126 | } | |
15afbcd0 | 15127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15128 | return resultobj; |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15137 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15138 | bool result; | |
15139 | PyObject * obj0 = 0 ; | |
15140 | PyObject * obj1 = 0 ; | |
15141 | char *kwnames[] = { | |
15142 | (char *) "self",(char *) "window", NULL | |
15143 | }; | |
15144 | ||
15145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15150 | { |
15151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15152 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15153 | ||
15154 | wxPyEndAllowThreads(__tstate); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
4d5c3d91 | 15157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15158 | return resultobj; |
15159 | fail: | |
15160 | return NULL; | |
15161 | } | |
15162 | ||
15163 | ||
15164 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15165 | PyObject *resultobj; | |
15166 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15167 | wxRect *arg2 = (wxRect *) NULL ; | |
15168 | bool result; | |
15169 | PyObject * obj0 = 0 ; | |
15170 | PyObject * obj1 = 0 ; | |
15171 | char *kwnames[] = { | |
15172 | (char *) "self",(char *) "rect", NULL | |
15173 | }; | |
15174 | ||
15175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15178 | if (obj1) { |
15afbcd0 RD |
15179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15181 | } |
15182 | { | |
15183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15184 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15185 | ||
15186 | wxPyEndAllowThreads(__tstate); | |
15187 | if (PyErr_Occurred()) SWIG_fail; | |
15188 | } | |
4d5c3d91 | 15189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15190 | return resultobj; |
15191 | fail: | |
15192 | return NULL; | |
15193 | } | |
15194 | ||
15195 | ||
15196 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15197 | PyObject *resultobj; | |
15198 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15199 | bool result; | |
15200 | PyObject * obj0 = 0 ; | |
15201 | char *kwnames[] = { | |
15202 | (char *) "self", NULL | |
15203 | }; | |
15204 | ||
15205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15208 | { |
15209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15210 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15211 | ||
15212 | wxPyEndAllowThreads(__tstate); | |
15213 | if (PyErr_Occurred()) SWIG_fail; | |
15214 | } | |
4d5c3d91 | 15215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15216 | return resultobj; |
15217 | fail: | |
15218 | return NULL; | |
15219 | } | |
15220 | ||
15221 | ||
15222 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15223 | PyObject *obj; | |
15224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15225 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15226 | Py_INCREF(obj); | |
15227 | return Py_BuildValue((char *)""); | |
15228 | } | |
15229 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15230 | PyObject *resultobj; | |
15231 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15232 | wxClientDC *result; | |
15233 | PyObject * obj0 = 0 ; | |
15234 | char *kwnames[] = { | |
15235 | (char *) "win", NULL | |
15236 | }; | |
15237 | ||
15238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15241 | { |
15242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15243 | result = (wxClientDC *)new wxClientDC(arg1); | |
15244 | ||
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
15afbcd0 | 15248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15249 | return resultobj; |
15250 | fail: | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
15255 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15256 | PyObject *obj; | |
15257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15258 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15259 | Py_INCREF(obj); | |
15260 | return Py_BuildValue((char *)""); | |
15261 | } | |
15262 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj; | |
15264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15265 | wxPaintDC *result; | |
15266 | PyObject * obj0 = 0 ; | |
15267 | char *kwnames[] = { | |
15268 | (char *) "win", NULL | |
15269 | }; | |
15270 | ||
15271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15274 | { |
15275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15276 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15277 | ||
15278 | wxPyEndAllowThreads(__tstate); | |
15279 | if (PyErr_Occurred()) SWIG_fail; | |
15280 | } | |
15afbcd0 | 15281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15282 | return resultobj; |
15283 | fail: | |
15284 | return NULL; | |
15285 | } | |
15286 | ||
15287 | ||
15288 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15289 | PyObject *obj; | |
15290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15291 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15292 | Py_INCREF(obj); | |
15293 | return Py_BuildValue((char *)""); | |
15294 | } | |
15295 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15296 | PyObject *resultobj; | |
15297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15298 | wxWindowDC *result; | |
15299 | PyObject * obj0 = 0 ; | |
15300 | char *kwnames[] = { | |
15301 | (char *) "win", NULL | |
15302 | }; | |
15303 | ||
15304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15307 | { |
15308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15309 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15310 | ||
15311 | wxPyEndAllowThreads(__tstate); | |
15312 | if (PyErr_Occurred()) SWIG_fail; | |
15313 | } | |
15afbcd0 | 15314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
15315 | return resultobj; |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
15321 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15322 | PyObject *obj; | |
15323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15324 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15325 | Py_INCREF(obj); | |
15326 | return Py_BuildValue((char *)""); | |
15327 | } | |
15328 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15329 | PyObject *resultobj; | |
15330 | wxDC *arg1 = 0 ; | |
15331 | bool arg2 ; | |
15332 | wxMirrorDC *result; | |
15333 | PyObject * obj0 = 0 ; | |
15334 | PyObject * obj1 = 0 ; | |
15335 | char *kwnames[] = { | |
15336 | (char *) "dc",(char *) "mirror", NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15342 | SWIG_fail; | |
d14a1e28 | 15343 | if (arg1 == NULL) { |
15afbcd0 RD |
15344 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15345 | SWIG_fail; | |
a41e16b6 | 15346 | } |
15afbcd0 RD |
15347 | arg2 = (bool) SWIG_AsBool(obj1); |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15349 | { |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15352 | ||
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15afbcd0 | 15356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
15357 | return resultobj; |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15364 | PyObject *obj; | |
15365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15366 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15367 | Py_INCREF(obj); | |
15368 | return Py_BuildValue((char *)""); | |
15369 | } | |
15370 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15371 | PyObject *resultobj; | |
15372 | wxPrintData *arg1 = 0 ; | |
15373 | wxPostScriptDC *result; | |
15374 | PyObject * obj0 = 0 ; | |
15375 | char *kwnames[] = { | |
15376 | (char *) "printData", NULL | |
15377 | }; | |
15378 | ||
15379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15382 | SWIG_fail; | |
d14a1e28 | 15383 | if (arg1 == NULL) { |
15afbcd0 RD |
15384 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15385 | SWIG_fail; | |
d14a1e28 RD |
15386 | } |
15387 | { | |
15388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15389 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15390 | ||
15391 | wxPyEndAllowThreads(__tstate); | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | } | |
15afbcd0 | 15394 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
15395 | return resultobj; |
15396 | fail: | |
15397 | return NULL; | |
15398 | } | |
15399 | ||
15400 | ||
15401 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15402 | PyObject *resultobj; | |
15403 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15404 | wxPrintData *result; | |
15405 | PyObject * obj0 = 0 ; | |
15406 | char *kwnames[] = { | |
15407 | (char *) "self", NULL | |
15408 | }; | |
15409 | ||
15410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15413 | { |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | { | |
15416 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15417 | result = (wxPrintData *) &_result_ref; | |
15418 | } | |
15419 | ||
15420 | wxPyEndAllowThreads(__tstate); | |
15421 | if (PyErr_Occurred()) SWIG_fail; | |
15422 | } | |
15afbcd0 | 15423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
15424 | return resultobj; |
15425 | fail: | |
15426 | return NULL; | |
15427 | } | |
15428 | ||
15429 | ||
15430 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15431 | PyObject *resultobj; | |
15432 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15433 | wxPrintData *arg2 = 0 ; | |
15434 | PyObject * obj0 = 0 ; | |
15435 | PyObject * obj1 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self",(char *) "data", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
15444 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15445 | SWIG_fail; | |
d14a1e28 | 15446 | if (arg2 == NULL) { |
15afbcd0 RD |
15447 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15448 | SWIG_fail; | |
d14a1e28 RD |
15449 | } |
15450 | { | |
15451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15452 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15453 | ||
15454 | wxPyEndAllowThreads(__tstate); | |
15455 | if (PyErr_Occurred()) SWIG_fail; | |
15456 | } | |
15457 | Py_INCREF(Py_None); resultobj = Py_None; | |
15458 | return resultobj; | |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | int arg1 ; | |
994141e6 | 15467 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15468 | char *kwnames[] = { |
15469 | (char *) "ppi", NULL | |
15470 | }; | |
15471 | ||
994141e6 | 15472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15473 | arg1 = (int) SWIG_AsInt(obj0); |
15474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15475 | { |
15476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15477 | wxPostScriptDC::SetResolution(arg1); | |
15478 | ||
15479 | wxPyEndAllowThreads(__tstate); | |
15480 | if (PyErr_Occurred()) SWIG_fail; | |
15481 | } | |
15482 | Py_INCREF(Py_None); resultobj = Py_None; | |
15483 | return resultobj; | |
15484 | fail: | |
15485 | return NULL; | |
15486 | } | |
15487 | ||
15488 | ||
15489 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15490 | PyObject *resultobj; | |
15491 | int result; | |
15492 | char *kwnames[] = { | |
15493 | NULL | |
15494 | }; | |
15495 | ||
15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15497 | { | |
15498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15499 | result = (int)wxPostScriptDC::GetResolution(); | |
15500 | ||
15501 | wxPyEndAllowThreads(__tstate); | |
15502 | if (PyErr_Occurred()) SWIG_fail; | |
15503 | } | |
15afbcd0 | 15504 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15505 | return resultobj; |
15506 | fail: | |
15507 | return NULL; | |
15508 | } | |
15509 | ||
15510 | ||
15511 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15512 | PyObject *obj; | |
15513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15514 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15515 | Py_INCREF(obj); | |
15516 | return Py_BuildValue((char *)""); | |
15517 | } | |
15518 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15519 | PyObject *resultobj; | |
15520 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15521 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15522 | wxMetaFile *result; | |
e811c8ce | 15523 | bool temp1 = False ; |
d14a1e28 RD |
15524 | PyObject * obj0 = 0 ; |
15525 | char *kwnames[] = { | |
15526 | (char *) "filename", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15530 | if (obj0) { | |
15531 | { | |
15532 | arg1 = wxString_in_helper(obj0); | |
15533 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15534 | temp1 = True; |
d14a1e28 RD |
15535 | } |
15536 | } | |
15537 | { | |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15540 | ||
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15afbcd0 | 15544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
15545 | { |
15546 | if (temp1) | |
15547 | delete arg1; | |
15548 | } | |
15549 | return resultobj; | |
15550 | fail: | |
15551 | { | |
15552 | if (temp1) | |
15553 | delete arg1; | |
15554 | } | |
15555 | return NULL; | |
15556 | } | |
15557 | ||
15558 | ||
15559 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15560 | PyObject *obj; | |
15561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15562 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15563 | Py_INCREF(obj); | |
15564 | return Py_BuildValue((char *)""); | |
15565 | } | |
15566 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15567 | PyObject *resultobj; | |
15568 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15569 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15570 | int arg2 = (int) 0 ; | |
15571 | int arg3 = (int) 0 ; | |
15572 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15573 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15574 | wxMetaFileDC *result; | |
e811c8ce RD |
15575 | bool temp1 = False ; |
15576 | bool temp4 = False ; | |
d14a1e28 | 15577 | PyObject * obj0 = 0 ; |
994141e6 RD |
15578 | PyObject * obj1 = 0 ; |
15579 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15580 | PyObject * obj3 = 0 ; |
15581 | char *kwnames[] = { | |
15582 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15583 | }; | |
15584 | ||
994141e6 | 15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15586 | if (obj0) { |
15587 | { | |
15588 | arg1 = wxString_in_helper(obj0); | |
15589 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15590 | temp1 = True; |
d14a1e28 RD |
15591 | } |
15592 | } | |
994141e6 | 15593 | if (obj1) { |
15afbcd0 RD |
15594 | arg2 = (int) SWIG_AsInt(obj1); |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15596 | } |
15597 | if (obj2) { | |
15afbcd0 RD |
15598 | arg3 = (int) SWIG_AsInt(obj2); |
15599 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15600 | } |
d14a1e28 RD |
15601 | if (obj3) { |
15602 | { | |
15603 | arg4 = wxString_in_helper(obj3); | |
15604 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15605 | temp4 = True; |
d14a1e28 RD |
15606 | } |
15607 | } | |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15afbcd0 | 15615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
15616 | { |
15617 | if (temp1) | |
15618 | delete arg1; | |
15619 | } | |
15620 | { | |
15621 | if (temp4) | |
15622 | delete arg4; | |
15623 | } | |
15624 | return resultobj; | |
15625 | fail: | |
15626 | { | |
15627 | if (temp1) | |
15628 | delete arg1; | |
15629 | } | |
15630 | { | |
15631 | if (temp4) | |
15632 | delete arg4; | |
15633 | } | |
15634 | return NULL; | |
15635 | } | |
15636 | ||
15637 | ||
15638 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15639 | PyObject *obj; | |
15640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15641 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15642 | Py_INCREF(obj); | |
15643 | return Py_BuildValue((char *)""); | |
15644 | } | |
15645 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15646 | PyObject *resultobj; | |
15647 | wxPrintData *arg1 = 0 ; | |
15648 | wxPrinterDC *result; | |
15649 | PyObject * obj0 = 0 ; | |
15650 | char *kwnames[] = { | |
15651 | (char *) "printData", NULL | |
15652 | }; | |
15653 | ||
15654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15656 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15657 | SWIG_fail; | |
d14a1e28 | 15658 | if (arg1 == NULL) { |
15afbcd0 RD |
15659 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15660 | SWIG_fail; | |
d14a1e28 RD |
15661 | } |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15665 | ||
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15afbcd0 | 15669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
15670 | return resultobj; |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15677 | PyObject *obj; | |
15678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15679 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15680 | Py_INCREF(obj); | |
15681 | return Py_BuildValue((char *)""); | |
15682 | } | |
15683 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15684 | PyObject *resultobj; | |
15685 | int arg1 ; | |
15686 | int arg2 ; | |
e811c8ce | 15687 | int arg3 = (int) True ; |
d14a1e28 RD |
15688 | int arg4 = (int) 1 ; |
15689 | wxImageList *result; | |
994141e6 RD |
15690 | PyObject * obj0 = 0 ; |
15691 | PyObject * obj1 = 0 ; | |
15692 | PyObject * obj2 = 0 ; | |
15693 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15694 | char *kwnames[] = { |
15695 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15696 | }; | |
15697 | ||
994141e6 | 15698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
15699 | arg1 = (int) SWIG_AsInt(obj0); |
15700 | if (PyErr_Occurred()) SWIG_fail; | |
15701 | arg2 = (int) SWIG_AsInt(obj1); | |
15702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15703 | if (obj2) { |
15afbcd0 RD |
15704 | arg3 = (int) SWIG_AsInt(obj2); |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15706 | } |
15707 | if (obj3) { | |
15afbcd0 RD |
15708 | arg4 = (int) SWIG_AsInt(obj3); |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15710 | } |
d14a1e28 RD |
15711 | { |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15714 | ||
15715 | wxPyEndAllowThreads(__tstate); | |
15716 | if (PyErr_Occurred()) SWIG_fail; | |
15717 | } | |
15718 | { | |
15719 | resultobj = wxPyMake_wxObject(result); | |
15720 | } | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
15727 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15730 | PyObject * obj0 = 0 ; | |
15731 | char *kwnames[] = { | |
15732 | (char *) "self", NULL | |
15733 | }; | |
15734 | ||
15735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15738 | { |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | delete arg1; | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | Py_INCREF(Py_None); resultobj = Py_None; | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15753 | PyObject *resultobj; | |
15754 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15755 | wxBitmap *arg2 = 0 ; | |
15756 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15757 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15758 | int result; | |
15759 | PyObject * obj0 = 0 ; | |
15760 | PyObject * obj1 = 0 ; | |
15761 | PyObject * obj2 = 0 ; | |
15762 | char *kwnames[] = { | |
15763 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15764 | }; | |
15765 | ||
15766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15771 | SWIG_fail; | |
d14a1e28 | 15772 | if (arg2 == NULL) { |
15afbcd0 RD |
15773 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15774 | SWIG_fail; | |
d14a1e28 RD |
15775 | } |
15776 | if (obj2) { | |
15afbcd0 RD |
15777 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15779 | SWIG_fail; | |
d14a1e28 | 15780 | if (arg3 == NULL) { |
15afbcd0 RD |
15781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15782 | SWIG_fail; | |
d14a1e28 RD |
15783 | } |
15784 | } | |
15785 | { | |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15787 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15788 | ||
15789 | wxPyEndAllowThreads(__tstate); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15afbcd0 | 15792 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15793 | return resultobj; |
15794 | fail: | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15800 | PyObject *resultobj; | |
15801 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15802 | wxBitmap *arg2 = 0 ; | |
15803 | wxColour *arg3 = 0 ; | |
15804 | int result; | |
15805 | wxColour temp3 ; | |
15806 | PyObject * obj0 = 0 ; | |
15807 | PyObject * obj1 = 0 ; | |
15808 | PyObject * obj2 = 0 ; | |
15809 | char *kwnames[] = { | |
15810 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15811 | }; | |
15812 | ||
15813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15817 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15818 | SWIG_fail; | |
d14a1e28 | 15819 | if (arg2 == NULL) { |
15afbcd0 RD |
15820 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15821 | SWIG_fail; | |
d14a1e28 RD |
15822 | } |
15823 | { | |
15824 | arg3 = &temp3; | |
15825 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15826 | } | |
15827 | { | |
15828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15829 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15830 | ||
15831 | wxPyEndAllowThreads(__tstate); | |
15832 | if (PyErr_Occurred()) SWIG_fail; | |
15833 | } | |
15afbcd0 | 15834 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15835 | return resultobj; |
15836 | fail: | |
15837 | return NULL; | |
15838 | } | |
15839 | ||
15840 | ||
15841 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15842 | PyObject *resultobj; | |
15843 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15844 | wxIcon *arg2 = 0 ; | |
15845 | int result; | |
15846 | PyObject * obj0 = 0 ; | |
15847 | PyObject * obj1 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self",(char *) "icon", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
15856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15857 | SWIG_fail; | |
d14a1e28 | 15858 | if (arg2 == NULL) { |
15afbcd0 RD |
15859 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15860 | SWIG_fail; | |
d14a1e28 RD |
15861 | } |
15862 | { | |
15863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15864 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15865 | ||
15866 | wxPyEndAllowThreads(__tstate); | |
15867 | if (PyErr_Occurred()) SWIG_fail; | |
15868 | } | |
15afbcd0 | 15869 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15870 | return resultobj; |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15877 | PyObject *resultobj; | |
15878 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15879 | int arg2 ; | |
15880 | wxBitmap *arg3 = 0 ; | |
15881 | bool result; | |
15882 | PyObject * obj0 = 0 ; | |
994141e6 | 15883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15884 | PyObject * obj2 = 0 ; |
15885 | char *kwnames[] = { | |
15886 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15887 | }; | |
15888 | ||
994141e6 | 15889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15892 | arg2 = (int) SWIG_AsInt(obj1); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
15895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15896 | SWIG_fail; | |
d14a1e28 | 15897 | if (arg3 == NULL) { |
15afbcd0 RD |
15898 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15899 | SWIG_fail; | |
d14a1e28 RD |
15900 | } |
15901 | { | |
15902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15903 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15904 | ||
15905 | wxPyEndAllowThreads(__tstate); | |
15906 | if (PyErr_Occurred()) SWIG_fail; | |
15907 | } | |
4d5c3d91 | 15908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15909 | return resultobj; |
15910 | fail: | |
15911 | return NULL; | |
15912 | } | |
15913 | ||
15914 | ||
15915 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15916 | PyObject *resultobj; | |
15917 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15918 | int arg2 ; | |
15919 | wxDC *arg3 = 0 ; | |
15920 | int arg4 ; | |
15921 | int arg5 ; | |
15922 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 15923 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15924 | bool result; |
15925 | PyObject * obj0 = 0 ; | |
994141e6 | 15926 | PyObject * obj1 = 0 ; |
d14a1e28 | 15927 | PyObject * obj2 = 0 ; |
994141e6 RD |
15928 | PyObject * obj3 = 0 ; |
15929 | PyObject * obj4 = 0 ; | |
15930 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15931 | PyObject * obj6 = 0 ; |
15932 | char *kwnames[] = { | |
15933 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15934 | }; | |
15935 | ||
994141e6 | 15936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15939 | arg2 = (int) SWIG_AsInt(obj1); | |
15940 | if (PyErr_Occurred()) SWIG_fail; | |
15941 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
15942 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15943 | SWIG_fail; | |
d14a1e28 | 15944 | if (arg3 == NULL) { |
15afbcd0 RD |
15945 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15946 | SWIG_fail; | |
994141e6 | 15947 | } |
15afbcd0 RD |
15948 | arg4 = (int) SWIG_AsInt(obj3); |
15949 | if (PyErr_Occurred()) SWIG_fail; | |
15950 | arg5 = (int) SWIG_AsInt(obj4); | |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15952 | if (obj5) { |
15afbcd0 RD |
15953 | arg6 = (int) SWIG_AsInt(obj5); |
15954 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15955 | } |
d14a1e28 | 15956 | if (obj6) { |
15afbcd0 RD |
15957 | arg7 = (bool const) SWIG_AsBool(obj6); |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15959 | } |
15960 | { | |
15961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15962 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15963 | ||
15964 | wxPyEndAllowThreads(__tstate); | |
15965 | if (PyErr_Occurred()) SWIG_fail; | |
15966 | } | |
4d5c3d91 | 15967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15968 | return resultobj; |
15969 | fail: | |
15970 | return NULL; | |
15971 | } | |
15972 | ||
15973 | ||
15974 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15975 | PyObject *resultobj; | |
15976 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15977 | int result; | |
15978 | PyObject * obj0 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "self", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15986 | { |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | result = (int)(arg1)->GetImageCount(); | |
15989 | ||
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
15afbcd0 | 15993 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15994 | return resultobj; |
15995 | fail: | |
15996 | return NULL; | |
15997 | } | |
15998 | ||
15999 | ||
16000 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16001 | PyObject *resultobj; | |
16002 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16003 | int arg2 ; | |
16004 | bool result; | |
16005 | PyObject * obj0 = 0 ; | |
994141e6 | 16006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16007 | char *kwnames[] = { |
16008 | (char *) "self",(char *) "index", NULL | |
16009 | }; | |
16010 | ||
994141e6 | 16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | arg2 = (int) SWIG_AsInt(obj1); | |
16015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16016 | { |
16017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16018 | result = (bool)(arg1)->Remove(arg2); | |
16019 | ||
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
4d5c3d91 | 16023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16024 | return resultobj; |
16025 | fail: | |
16026 | return NULL; | |
16027 | } | |
16028 | ||
16029 | ||
16030 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16031 | PyObject *resultobj; | |
16032 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16033 | bool result; | |
16034 | PyObject * obj0 = 0 ; | |
16035 | char *kwnames[] = { | |
16036 | (char *) "self", NULL | |
16037 | }; | |
16038 | ||
16039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16042 | { |
16043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16044 | result = (bool)(arg1)->RemoveAll(); | |
16045 | ||
16046 | wxPyEndAllowThreads(__tstate); | |
16047 | if (PyErr_Occurred()) SWIG_fail; | |
16048 | } | |
4d5c3d91 | 16049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16050 | return resultobj; |
16051 | fail: | |
16052 | return NULL; | |
16053 | } | |
16054 | ||
16055 | ||
16056 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16057 | PyObject *resultobj; | |
16058 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16059 | int arg2 ; | |
16060 | int *arg3 = 0 ; | |
16061 | int *arg4 = 0 ; | |
16062 | int temp3 ; | |
16063 | int temp4 ; | |
16064 | PyObject * obj0 = 0 ; | |
994141e6 | 16065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16066 | char *kwnames[] = { |
16067 | (char *) "self",(char *) "index", NULL | |
16068 | }; | |
16069 | ||
16070 | arg3 = &temp3; | |
16071 | arg4 = &temp4; | |
994141e6 | 16072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16075 | arg2 = (int) SWIG_AsInt(obj1); | |
16076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16077 | { |
16078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16079 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16080 | ||
16081 | wxPyEndAllowThreads(__tstate); | |
16082 | if (PyErr_Occurred()) SWIG_fail; | |
16083 | } | |
16084 | Py_INCREF(Py_None); resultobj = Py_None; | |
16085 | { | |
16086 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16087 | resultobj = t_output_helper(resultobj,o); | |
16088 | } | |
16089 | { | |
16090 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
16091 | resultobj = t_output_helper(resultobj,o); | |
16092 | } | |
16093 | return resultobj; | |
16094 | fail: | |
16095 | return NULL; | |
16096 | } | |
16097 | ||
16098 | ||
16099 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
16100 | PyObject *obj; | |
16101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16102 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16103 | Py_INCREF(obj); | |
16104 | return Py_BuildValue((char *)""); | |
16105 | } | |
994141e6 RD |
16106 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
16107 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
16108 | return 1; | |
d14a1e28 RD |
16109 | } |
16110 | ||
16111 | ||
994141e6 RD |
16112 | static PyObject *_wrap_NORMAL_FONT_get() { |
16113 | PyObject *pyobj; | |
d14a1e28 | 16114 | |
15afbcd0 | 16115 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16116 | return pyobj; |
d14a1e28 RD |
16117 | } |
16118 | ||
16119 | ||
994141e6 RD |
16120 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
16121 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16122 | return 1; | |
d14a1e28 RD |
16123 | } |
16124 | ||
16125 | ||
994141e6 RD |
16126 | static PyObject *_wrap_SMALL_FONT_get() { |
16127 | PyObject *pyobj; | |
d14a1e28 | 16128 | |
15afbcd0 | 16129 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16130 | return pyobj; |
d14a1e28 RD |
16131 | } |
16132 | ||
16133 | ||
994141e6 RD |
16134 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
16135 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16136 | return 1; | |
d14a1e28 | 16137 | } |
994141e6 RD |
16138 | |
16139 | ||
16140 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16141 | PyObject *pyobj; | |
d14a1e28 | 16142 | |
15afbcd0 | 16143 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16144 | return pyobj; |
d14a1e28 RD |
16145 | } |
16146 | ||
16147 | ||
994141e6 RD |
16148 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
16149 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16150 | return 1; | |
d14a1e28 RD |
16151 | } |
16152 | ||
16153 | ||
994141e6 RD |
16154 | static PyObject *_wrap_SWISS_FONT_get() { |
16155 | PyObject *pyobj; | |
d14a1e28 | 16156 | |
15afbcd0 | 16157 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16158 | return pyobj; |
d14a1e28 RD |
16159 | } |
16160 | ||
16161 | ||
994141e6 RD |
16162 | static int _wrap_RED_PEN_set(PyObject *_val) { |
16163 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16164 | return 1; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_RED_PEN_get() { | |
16169 | PyObject *pyobj; | |
d14a1e28 | 16170 | |
15afbcd0 | 16171 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16172 | return pyobj; |
d14a1e28 RD |
16173 | } |
16174 | ||
16175 | ||
994141e6 RD |
16176 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
16177 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16178 | return 1; | |
d14a1e28 | 16179 | } |
994141e6 RD |
16180 | |
16181 | ||
16182 | static PyObject *_wrap_CYAN_PEN_get() { | |
16183 | PyObject *pyobj; | |
d14a1e28 | 16184 | |
15afbcd0 | 16185 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16186 | return pyobj; |
d14a1e28 RD |
16187 | } |
16188 | ||
16189 | ||
994141e6 RD |
16190 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
16191 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16192 | return 1; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | static PyObject *_wrap_GREEN_PEN_get() { | |
16197 | PyObject *pyobj; | |
d14a1e28 | 16198 | |
15afbcd0 | 16199 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16200 | return pyobj; |
d14a1e28 RD |
16201 | } |
16202 | ||
16203 | ||
994141e6 RD |
16204 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
16205 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16206 | return 1; | |
16207 | } | |
16208 | ||
16209 | ||
16210 | static PyObject *_wrap_BLACK_PEN_get() { | |
16211 | PyObject *pyobj; | |
d14a1e28 | 16212 | |
15afbcd0 | 16213 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16214 | return pyobj; |
d14a1e28 RD |
16215 | } |
16216 | ||
16217 | ||
994141e6 RD |
16218 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
16219 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16220 | return 1; | |
d14a1e28 RD |
16221 | } |
16222 | ||
16223 | ||
994141e6 RD |
16224 | static PyObject *_wrap_WHITE_PEN_get() { |
16225 | PyObject *pyobj; | |
d14a1e28 | 16226 | |
15afbcd0 | 16227 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16228 | return pyobj; |
d14a1e28 RD |
16229 | } |
16230 | ||
16231 | ||
994141e6 RD |
16232 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
16233 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16234 | return 1; | |
d14a1e28 RD |
16235 | } |
16236 | ||
16237 | ||
994141e6 RD |
16238 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16239 | PyObject *pyobj; | |
d14a1e28 | 16240 | |
15afbcd0 | 16241 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16242 | return pyobj; |
d14a1e28 RD |
16243 | } |
16244 | ||
16245 | ||
994141e6 RD |
16246 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
16247 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16248 | return 1; | |
d14a1e28 RD |
16249 | } |
16250 | ||
16251 | ||
994141e6 RD |
16252 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16253 | PyObject *pyobj; | |
d14a1e28 | 16254 | |
15afbcd0 | 16255 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16256 | return pyobj; |
d14a1e28 RD |
16257 | } |
16258 | ||
16259 | ||
994141e6 RD |
16260 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
16261 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16262 | return 1; | |
d14a1e28 RD |
16263 | } |
16264 | ||
16265 | ||
994141e6 RD |
16266 | static PyObject *_wrap_GREY_PEN_get() { |
16267 | PyObject *pyobj; | |
16268 | ||
15afbcd0 | 16269 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16270 | return pyobj; |
d14a1e28 | 16271 | } |
994141e6 RD |
16272 | |
16273 | ||
16274 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16275 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
16276 | return 1; |
16277 | } | |
16278 | ||
16279 | ||
994141e6 | 16280 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16281 | PyObject *pyobj; |
16282 | ||
15afbcd0 | 16283 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16284 | return pyobj; |
16285 | } | |
16286 | ||
16287 | ||
994141e6 RD |
16288 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
16289 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
16290 | return 1; |
16291 | } | |
16292 | ||
16293 | ||
994141e6 | 16294 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16295 | PyObject *pyobj; |
16296 | ||
15afbcd0 | 16297 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16298 | return pyobj; |
16299 | } | |
16300 | ||
16301 | ||
994141e6 RD |
16302 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
16303 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16304 | return 1; |
16305 | } | |
16306 | ||
16307 | ||
994141e6 | 16308 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16309 | PyObject *pyobj; |
16310 | ||
15afbcd0 | 16311 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16312 | return pyobj; |
16313 | } | |
16314 | ||
16315 | ||
994141e6 RD |
16316 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
16317 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16318 | return 1; |
16319 | } | |
16320 | ||
16321 | ||
994141e6 | 16322 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16323 | PyObject *pyobj; |
16324 | ||
15afbcd0 | 16325 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16326 | return pyobj; |
16327 | } | |
16328 | ||
16329 | ||
994141e6 RD |
16330 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
16331 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16332 | return 1; |
16333 | } | |
16334 | ||
16335 | ||
994141e6 | 16336 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16337 | PyObject *pyobj; |
16338 | ||
15afbcd0 | 16339 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16340 | return pyobj; |
16341 | } | |
16342 | ||
16343 | ||
994141e6 RD |
16344 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
16345 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16346 | return 1; |
16347 | } | |
16348 | ||
16349 | ||
994141e6 | 16350 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16351 | PyObject *pyobj; |
16352 | ||
15afbcd0 | 16353 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16354 | return pyobj; |
16355 | } | |
16356 | ||
16357 | ||
994141e6 RD |
16358 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
16359 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16360 | return 1; |
16361 | } | |
16362 | ||
16363 | ||
994141e6 | 16364 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16365 | PyObject *pyobj; |
16366 | ||
15afbcd0 | 16367 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16368 | return pyobj; |
16369 | } | |
16370 | ||
16371 | ||
994141e6 RD |
16372 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
16373 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16374 | return 1; |
16375 | } | |
16376 | ||
16377 | ||
994141e6 | 16378 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16379 | PyObject *pyobj; |
16380 | ||
15afbcd0 | 16381 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16382 | return pyobj; |
16383 | } | |
16384 | ||
16385 | ||
994141e6 RD |
16386 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
16387 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16388 | return 1; |
16389 | } | |
16390 | ||
16391 | ||
994141e6 | 16392 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16393 | PyObject *pyobj; |
16394 | ||
15afbcd0 | 16395 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16396 | return pyobj; |
16397 | } | |
16398 | ||
16399 | ||
994141e6 RD |
16400 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
16401 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16402 | return 1; |
16403 | } | |
16404 | ||
16405 | ||
994141e6 | 16406 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16407 | PyObject *pyobj; |
16408 | ||
15afbcd0 | 16409 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16410 | return pyobj; |
16411 | } | |
16412 | ||
16413 | ||
994141e6 RD |
16414 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
16415 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16416 | return 1; |
16417 | } | |
16418 | ||
16419 | ||
994141e6 | 16420 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16421 | PyObject *pyobj; |
16422 | ||
15afbcd0 | 16423 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16424 | return pyobj; |
16425 | } | |
16426 | ||
16427 | ||
994141e6 RD |
16428 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
16429 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16430 | return 1; |
16431 | } | |
16432 | ||
16433 | ||
994141e6 | 16434 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16435 | PyObject *pyobj; |
16436 | ||
15afbcd0 | 16437 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16438 | return pyobj; |
16439 | } | |
16440 | ||
16441 | ||
994141e6 RD |
16442 | static int _wrap_BLACK_set(PyObject *_val) { |
16443 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16444 | return 1; |
16445 | } | |
16446 | ||
16447 | ||
994141e6 | 16448 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16449 | PyObject *pyobj; |
16450 | ||
15afbcd0 | 16451 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16452 | return pyobj; |
16453 | } | |
16454 | ||
16455 | ||
994141e6 RD |
16456 | static int _wrap_WHITE_set(PyObject *_val) { |
16457 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16458 | return 1; |
16459 | } | |
16460 | ||
16461 | ||
994141e6 | 16462 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16463 | PyObject *pyobj; |
16464 | ||
15afbcd0 | 16465 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16466 | return pyobj; |
16467 | } | |
16468 | ||
16469 | ||
994141e6 RD |
16470 | static int _wrap_RED_set(PyObject *_val) { |
16471 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16472 | return 1; |
16473 | } | |
16474 | ||
16475 | ||
994141e6 | 16476 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16477 | PyObject *pyobj; |
16478 | ||
15afbcd0 | 16479 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16480 | return pyobj; |
16481 | } | |
16482 | ||
16483 | ||
994141e6 RD |
16484 | static int _wrap_BLUE_set(PyObject *_val) { |
16485 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16486 | return 1; |
16487 | } | |
16488 | ||
16489 | ||
994141e6 | 16490 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16491 | PyObject *pyobj; |
16492 | ||
15afbcd0 | 16493 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16494 | return pyobj; |
16495 | } | |
16496 | ||
16497 | ||
994141e6 RD |
16498 | static int _wrap_GREEN_set(PyObject *_val) { |
16499 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16500 | return 1; |
16501 | } | |
16502 | ||
16503 | ||
994141e6 | 16504 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16505 | PyObject *pyobj; |
16506 | ||
15afbcd0 | 16507 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16508 | return pyobj; |
16509 | } | |
16510 | ||
16511 | ||
994141e6 RD |
16512 | static int _wrap_CYAN_set(PyObject *_val) { |
16513 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16514 | return 1; |
16515 | } | |
16516 | ||
16517 | ||
994141e6 | 16518 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16519 | PyObject *pyobj; |
16520 | ||
15afbcd0 | 16521 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16522 | return pyobj; |
16523 | } | |
16524 | ||
16525 | ||
994141e6 RD |
16526 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16527 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16528 | return 1; |
16529 | } | |
16530 | ||
16531 | ||
994141e6 | 16532 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16533 | PyObject *pyobj; |
16534 | ||
15afbcd0 | 16535 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16536 | return pyobj; |
16537 | } | |
16538 | ||
16539 | ||
994141e6 RD |
16540 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16541 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16542 | return 1; |
16543 | } | |
16544 | ||
16545 | ||
994141e6 | 16546 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16547 | PyObject *pyobj; |
16548 | ||
15afbcd0 | 16549 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16550 | return pyobj; |
16551 | } | |
16552 | ||
16553 | ||
994141e6 RD |
16554 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16555 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16556 | return 1; |
16557 | } | |
16558 | ||
16559 | ||
994141e6 | 16560 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16561 | PyObject *pyobj; |
16562 | ||
15afbcd0 | 16563 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16564 | return pyobj; |
16565 | } | |
16566 | ||
16567 | ||
994141e6 RD |
16568 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16569 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16570 | return 1; |
16571 | } | |
16572 | ||
16573 | ||
994141e6 | 16574 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16575 | PyObject *pyobj; |
16576 | ||
15afbcd0 | 16577 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16578 | return pyobj; |
16579 | } | |
16580 | ||
16581 | ||
994141e6 RD |
16582 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16583 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16584 | return 1; |
16585 | } | |
16586 | ||
16587 | ||
994141e6 | 16588 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16589 | PyObject *pyobj; |
16590 | ||
15afbcd0 | 16591 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16592 | return pyobj; |
16593 | } | |
16594 | ||
16595 | ||
994141e6 RD |
16596 | static int _wrap_NullIcon_set(PyObject *_val) { |
16597 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16598 | return 1; |
16599 | } | |
16600 | ||
16601 | ||
994141e6 | 16602 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16603 | PyObject *pyobj; |
16604 | ||
15afbcd0 | 16605 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16606 | return pyobj; |
16607 | } | |
16608 | ||
16609 | ||
994141e6 RD |
16610 | static int _wrap_NullCursor_set(PyObject *_val) { |
16611 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16612 | return 1; |
16613 | } | |
16614 | ||
16615 | ||
994141e6 | 16616 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16617 | PyObject *pyobj; |
16618 | ||
15afbcd0 | 16619 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16620 | return pyobj; |
16621 | } | |
16622 | ||
16623 | ||
994141e6 RD |
16624 | static int _wrap_NullPen_set(PyObject *_val) { |
16625 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16626 | return 1; |
16627 | } | |
16628 | ||
16629 | ||
994141e6 | 16630 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16631 | PyObject *pyobj; |
16632 | ||
15afbcd0 | 16633 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16634 | return pyobj; |
16635 | } | |
16636 | ||
16637 | ||
994141e6 RD |
16638 | static int _wrap_NullBrush_set(PyObject *_val) { |
16639 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16640 | return 1; |
16641 | } | |
16642 | ||
16643 | ||
994141e6 | 16644 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16645 | PyObject *pyobj; |
16646 | ||
15afbcd0 | 16647 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16648 | return pyobj; |
16649 | } | |
16650 | ||
16651 | ||
994141e6 RD |
16652 | static int _wrap_NullPalette_set(PyObject *_val) { |
16653 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16654 | return 1; |
16655 | } | |
16656 | ||
16657 | ||
994141e6 | 16658 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16659 | PyObject *pyobj; |
16660 | ||
15afbcd0 | 16661 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16662 | return pyobj; |
16663 | } | |
16664 | ||
16665 | ||
994141e6 RD |
16666 | static int _wrap_NullFont_set(PyObject *_val) { |
16667 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16668 | return 1; |
16669 | } | |
16670 | ||
16671 | ||
994141e6 | 16672 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16673 | PyObject *pyobj; |
16674 | ||
15afbcd0 | 16675 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16676 | return pyobj; |
16677 | } | |
16678 | ||
16679 | ||
994141e6 RD |
16680 | static int _wrap_NullColour_set(PyObject *_val) { |
16681 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16682 | return 1; |
16683 | } | |
16684 | ||
16685 | ||
994141e6 | 16686 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16687 | PyObject *pyobj; |
16688 | ||
15afbcd0 | 16689 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16690 | return pyobj; |
16691 | } | |
16692 | ||
16693 | ||
994141e6 RD |
16694 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16695 | PyObject *resultobj; | |
16696 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16697 | wxPen *arg2 = (wxPen *) 0 ; | |
16698 | PyObject * obj0 = 0 ; | |
16699 | PyObject * obj1 = 0 ; | |
16700 | char *kwnames[] = { | |
16701 | (char *) "self",(char *) "pen", NULL | |
16702 | }; | |
16703 | ||
16704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16709 | { |
16710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16711 | (arg1)->AddPen(arg2); | |
16712 | ||
16713 | wxPyEndAllowThreads(__tstate); | |
16714 | if (PyErr_Occurred()) SWIG_fail; | |
16715 | } | |
16716 | Py_INCREF(Py_None); resultobj = Py_None; | |
16717 | return resultobj; | |
16718 | fail: | |
16719 | return NULL; | |
d14a1e28 RD |
16720 | } |
16721 | ||
16722 | ||
994141e6 RD |
16723 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16724 | PyObject *resultobj; | |
16725 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16726 | wxColour *arg2 = 0 ; | |
16727 | int arg3 ; | |
16728 | int arg4 ; | |
16729 | wxPen *result; | |
16730 | wxColour temp2 ; | |
16731 | PyObject * obj0 = 0 ; | |
16732 | PyObject * obj1 = 0 ; | |
16733 | PyObject * obj2 = 0 ; | |
16734 | PyObject * obj3 = 0 ; | |
16735 | char *kwnames[] = { | |
16736 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16737 | }; | |
d14a1e28 | 16738 | |
994141e6 | 16739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
16740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16742 | { |
16743 | arg2 = &temp2; | |
16744 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16745 | } | |
15afbcd0 RD |
16746 | arg3 = (int) SWIG_AsInt(obj2); |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
16748 | arg4 = (int) SWIG_AsInt(obj3); | |
16749 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16750 | { |
16751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16752 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
15afbcd0 | 16757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
16758 | return resultobj; |
16759 | fail: | |
16760 | return NULL; | |
d14a1e28 RD |
16761 | } |
16762 | ||
16763 | ||
994141e6 RD |
16764 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16765 | PyObject *resultobj; | |
16766 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16767 | wxPen *arg2 = (wxPen *) 0 ; | |
16768 | PyObject * obj0 = 0 ; | |
16769 | PyObject * obj1 = 0 ; | |
16770 | char *kwnames[] = { | |
16771 | (char *) "self",(char *) "pen", NULL | |
16772 | }; | |
16773 | ||
16774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16779 | { |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | (arg1)->RemovePen(arg2); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | Py_INCREF(Py_None); resultobj = Py_None; | |
16787 | return resultobj; | |
16788 | fail: | |
16789 | return NULL; | |
d14a1e28 RD |
16790 | } |
16791 | ||
16792 | ||
994141e6 RD |
16793 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16794 | PyObject *resultobj; | |
16795 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16796 | int result; | |
16797 | PyObject * obj0 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "self", NULL | |
16800 | }; | |
d14a1e28 | 16801 | |
994141e6 | 16802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16805 | { |
16806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16807 | result = (int)(arg1)->GetCount(); | |
16808 | ||
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
15afbcd0 | 16812 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
16813 | return resultobj; |
16814 | fail: | |
16815 | return NULL; | |
d14a1e28 RD |
16816 | } |
16817 | ||
16818 | ||
994141e6 RD |
16819 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16820 | PyObject *obj; | |
16821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16822 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16823 | Py_INCREF(obj); | |
16824 | return Py_BuildValue((char *)""); | |
16825 | } | |
16826 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16827 | PyObject *resultobj; | |
16828 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16829 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | PyObject * obj1 = 0 ; | |
16832 | char *kwnames[] = { | |
16833 | (char *) "self",(char *) "brush", NULL | |
16834 | }; | |
16835 | ||
16836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
16840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16841 | { |
16842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16843 | (arg1)->AddBrush(arg2); | |
16844 | ||
16845 | wxPyEndAllowThreads(__tstate); | |
16846 | if (PyErr_Occurred()) SWIG_fail; | |
16847 | } | |
16848 | Py_INCREF(Py_None); resultobj = Py_None; | |
16849 | return resultobj; | |
16850 | fail: | |
16851 | return NULL; | |
16852 | } | |
16853 | ||
16854 | ||
16855 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16856 | PyObject *resultobj; | |
16857 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16858 | wxColour *arg2 = 0 ; | |
16859 | int arg3 ; | |
16860 | wxBrush *result; | |
16861 | wxColour temp2 ; | |
16862 | PyObject * obj0 = 0 ; | |
16863 | PyObject * obj1 = 0 ; | |
16864 | PyObject * obj2 = 0 ; | |
16865 | char *kwnames[] = { | |
16866 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16867 | }; | |
16868 | ||
16869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16872 | { |
16873 | arg2 = &temp2; | |
16874 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16875 | } | |
15afbcd0 RD |
16876 | arg3 = (int) SWIG_AsInt(obj2); |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16878 | { |
16879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16880 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16881 | ||
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
15afbcd0 | 16885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
16886 | return resultobj; |
16887 | fail: | |
16888 | return NULL; | |
d14a1e28 RD |
16889 | } |
16890 | ||
16891 | ||
994141e6 RD |
16892 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16893 | PyObject *resultobj; | |
16894 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16895 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16896 | PyObject * obj0 = 0 ; | |
16897 | PyObject * obj1 = 0 ; | |
16898 | char *kwnames[] = { | |
16899 | (char *) "self",(char *) "brush", NULL | |
16900 | }; | |
d14a1e28 | 16901 | |
994141e6 | 16902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
16906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16907 | { |
16908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16909 | (arg1)->RemoveBrush(arg2); | |
16910 | ||
16911 | wxPyEndAllowThreads(__tstate); | |
16912 | if (PyErr_Occurred()) SWIG_fail; | |
16913 | } | |
16914 | Py_INCREF(Py_None); resultobj = Py_None; | |
16915 | return resultobj; | |
16916 | fail: | |
16917 | return NULL; | |
d14a1e28 RD |
16918 | } |
16919 | ||
16920 | ||
994141e6 RD |
16921 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16922 | PyObject *resultobj; | |
16923 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16924 | int result; | |
16925 | PyObject * obj0 = 0 ; | |
16926 | char *kwnames[] = { | |
16927 | (char *) "self", NULL | |
16928 | }; | |
d14a1e28 | 16929 | |
994141e6 | 16930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16933 | { |
16934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16935 | result = (int)(arg1)->GetCount(); | |
16936 | ||
16937 | wxPyEndAllowThreads(__tstate); | |
16938 | if (PyErr_Occurred()) SWIG_fail; | |
16939 | } | |
15afbcd0 | 16940 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
16941 | return resultobj; |
16942 | fail: | |
16943 | return NULL; | |
d14a1e28 RD |
16944 | } |
16945 | ||
16946 | ||
994141e6 RD |
16947 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16948 | PyObject *obj; | |
16949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16950 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16951 | Py_INCREF(obj); | |
16952 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16953 | } |
994141e6 RD |
16954 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16955 | PyObject *resultobj; | |
16956 | wxColourDatabase *result; | |
16957 | char *kwnames[] = { | |
16958 | NULL | |
16959 | }; | |
d14a1e28 | 16960 | |
994141e6 RD |
16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16962 | { | |
16963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16964 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16965 | ||
16966 | wxPyEndAllowThreads(__tstate); | |
16967 | if (PyErr_Occurred()) SWIG_fail; | |
16968 | } | |
15afbcd0 | 16969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
16970 | return resultobj; |
16971 | fail: | |
16972 | return NULL; | |
d14a1e28 RD |
16973 | } |
16974 | ||
16975 | ||
994141e6 RD |
16976 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16977 | PyObject *resultobj; | |
16978 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16979 | PyObject * obj0 = 0 ; | |
16980 | char *kwnames[] = { | |
16981 | (char *) "self", NULL | |
16982 | }; | |
d14a1e28 | 16983 | |
994141e6 | 16984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
16986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16987 | { |
16988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16989 | delete arg1; | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | Py_INCREF(Py_None); resultobj = Py_None; | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | return NULL; | |
d14a1e28 RD |
16998 | } |
16999 | ||
17000 | ||
994141e6 RD |
17001 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
17002 | PyObject *resultobj; | |
17003 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17004 | wxString *arg2 = 0 ; | |
17005 | wxColour result; | |
17006 | bool temp2 = False ; | |
17007 | PyObject * obj0 = 0 ; | |
17008 | PyObject * obj1 = 0 ; | |
17009 | char *kwnames[] = { | |
17010 | (char *) "self",(char *) "name", NULL | |
17011 | }; | |
17012 | ||
17013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17016 | { |
17017 | arg2 = wxString_in_helper(obj1); | |
17018 | if (arg2 == NULL) SWIG_fail; | |
17019 | temp2 = True; | |
17020 | } | |
17021 | { | |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | { | |
17029 | wxColour * resultptr; | |
17030 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
17032 | } |
17033 | { | |
17034 | if (temp2) | |
17035 | delete arg2; | |
17036 | } | |
17037 | return resultobj; | |
17038 | fail: | |
17039 | { | |
17040 | if (temp2) | |
17041 | delete arg2; | |
17042 | } | |
17043 | return NULL; | |
d14a1e28 RD |
17044 | } |
17045 | ||
17046 | ||
994141e6 RD |
17047 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
17048 | PyObject *resultobj; | |
17049 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17050 | wxColour *arg2 = 0 ; | |
17051 | wxString result; | |
17052 | wxColour temp2 ; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | PyObject * obj1 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "self",(char *) "colour", NULL | |
17057 | }; | |
d14a1e28 | 17058 | |
994141e6 | 17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17062 | { |
17063 | arg2 = &temp2; | |
17064 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17065 | } | |
17066 | { | |
17067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17068 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17069 | ||
17070 | wxPyEndAllowThreads(__tstate); | |
17071 | if (PyErr_Occurred()) SWIG_fail; | |
17072 | } | |
17073 | { | |
17074 | #if wxUSE_UNICODE | |
17075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17076 | #else | |
17077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17078 | #endif | |
17079 | } | |
17080 | return resultobj; | |
17081 | fail: | |
17082 | return NULL; | |
d14a1e28 RD |
17083 | } |
17084 | ||
17085 | ||
994141e6 RD |
17086 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
17087 | PyObject *resultobj; | |
17088 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17089 | wxString *arg2 = 0 ; | |
17090 | wxColour *arg3 = 0 ; | |
17091 | bool temp2 = False ; | |
17092 | wxColour temp3 ; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | PyObject * obj1 = 0 ; | |
17095 | PyObject * obj2 = 0 ; | |
17096 | char *kwnames[] = { | |
17097 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17098 | }; | |
17099 | ||
17100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17103 | { |
17104 | arg2 = wxString_in_helper(obj1); | |
17105 | if (arg2 == NULL) SWIG_fail; | |
17106 | temp2 = True; | |
17107 | } | |
17108 | { | |
17109 | arg3 = &temp3; | |
17110 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17111 | } | |
17112 | { | |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | Py_INCREF(Py_None); resultobj = Py_None; | |
17120 | { | |
17121 | if (temp2) | |
17122 | delete arg2; | |
17123 | } | |
17124 | return resultobj; | |
17125 | fail: | |
17126 | { | |
17127 | if (temp2) | |
17128 | delete arg2; | |
17129 | } | |
17130 | return NULL; | |
d14a1e28 RD |
17131 | } |
17132 | ||
17133 | ||
994141e6 RD |
17134 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
17135 | PyObject *resultobj; | |
17136 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17137 | wxString *arg2 = 0 ; | |
17138 | int arg3 ; | |
17139 | int arg4 ; | |
17140 | int arg5 ; | |
17141 | bool temp2 = False ; | |
17142 | PyObject * obj0 = 0 ; | |
17143 | PyObject * obj1 = 0 ; | |
17144 | PyObject * obj2 = 0 ; | |
17145 | PyObject * obj3 = 0 ; | |
17146 | PyObject * obj4 = 0 ; | |
17147 | char *kwnames[] = { | |
17148 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17149 | }; | |
d14a1e28 | 17150 | |
994141e6 | 17151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17154 | { |
17155 | arg2 = wxString_in_helper(obj1); | |
17156 | if (arg2 == NULL) SWIG_fail; | |
17157 | temp2 = True; | |
17158 | } | |
15afbcd0 RD |
17159 | arg3 = (int) SWIG_AsInt(obj2); |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
17161 | arg4 = (int) SWIG_AsInt(obj3); | |
17162 | if (PyErr_Occurred()) SWIG_fail; | |
17163 | arg5 = (int) SWIG_AsInt(obj4); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17165 | { |
17166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17167 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17168 | ||
17169 | wxPyEndAllowThreads(__tstate); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
17172 | Py_INCREF(Py_None); resultobj = Py_None; | |
17173 | { | |
17174 | if (temp2) | |
17175 | delete arg2; | |
17176 | } | |
17177 | return resultobj; | |
17178 | fail: | |
17179 | { | |
17180 | if (temp2) | |
17181 | delete arg2; | |
17182 | } | |
17183 | return NULL; | |
d14a1e28 RD |
17184 | } |
17185 | ||
17186 | ||
994141e6 RD |
17187 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17188 | PyObject *obj; | |
17189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17190 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17191 | Py_INCREF(obj); | |
17192 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17193 | } |
994141e6 RD |
17194 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17195 | PyObject *resultobj; | |
17196 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17197 | wxFont *arg2 = (wxFont *) 0 ; | |
17198 | PyObject * obj0 = 0 ; | |
17199 | PyObject * obj1 = 0 ; | |
17200 | char *kwnames[] = { | |
17201 | (char *) "self",(char *) "font", NULL | |
17202 | }; | |
d14a1e28 | 17203 | |
994141e6 | 17204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17209 | { |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | (arg1)->AddFont(arg2); | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | Py_INCREF(Py_None); resultobj = Py_None; | |
17217 | return resultobj; | |
17218 | fail: | |
17219 | return NULL; | |
d14a1e28 RD |
17220 | } |
17221 | ||
17222 | ||
994141e6 RD |
17223 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17224 | PyObject *resultobj; | |
17225 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17226 | int arg2 ; | |
17227 | int arg3 ; | |
17228 | int arg4 ; | |
17229 | int arg5 ; | |
17230 | bool arg6 = (bool) False ; | |
17231 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17232 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17233 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17234 | wxFont *result; | |
17235 | bool temp7 = False ; | |
17236 | PyObject * obj0 = 0 ; | |
17237 | PyObject * obj1 = 0 ; | |
17238 | PyObject * obj2 = 0 ; | |
17239 | PyObject * obj3 = 0 ; | |
17240 | PyObject * obj4 = 0 ; | |
17241 | PyObject * obj5 = 0 ; | |
17242 | PyObject * obj6 = 0 ; | |
17243 | PyObject * obj7 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17246 | }; | |
d14a1e28 | 17247 | |
994141e6 | 17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17251 | arg2 = (int) SWIG_AsInt(obj1); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | arg3 = (int) SWIG_AsInt(obj2); | |
17254 | if (PyErr_Occurred()) SWIG_fail; | |
17255 | arg4 = (int) SWIG_AsInt(obj3); | |
17256 | if (PyErr_Occurred()) SWIG_fail; | |
17257 | arg5 = (int) SWIG_AsInt(obj4); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17259 | if (obj5) { |
15afbcd0 RD |
17260 | arg6 = (bool) SWIG_AsBool(obj5); |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17262 | } |
17263 | if (obj6) { | |
17264 | { | |
17265 | arg7 = wxString_in_helper(obj6); | |
17266 | if (arg7 == NULL) SWIG_fail; | |
17267 | temp7 = True; | |
17268 | } | |
17269 | } | |
17270 | if (obj7) { | |
15afbcd0 RD |
17271 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17273 | } |
17274 | { | |
17275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17276 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17277 | ||
17278 | wxPyEndAllowThreads(__tstate); | |
17279 | if (PyErr_Occurred()) SWIG_fail; | |
17280 | } | |
15afbcd0 | 17281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
17282 | { |
17283 | if (temp7) | |
17284 | delete arg7; | |
17285 | } | |
17286 | return resultobj; | |
17287 | fail: | |
17288 | { | |
17289 | if (temp7) | |
17290 | delete arg7; | |
17291 | } | |
17292 | return NULL; | |
d14a1e28 RD |
17293 | } |
17294 | ||
17295 | ||
994141e6 RD |
17296 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17297 | PyObject *resultobj; | |
17298 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17299 | wxFont *arg2 = (wxFont *) 0 ; | |
17300 | PyObject * obj0 = 0 ; | |
17301 | PyObject * obj1 = 0 ; | |
17302 | char *kwnames[] = { | |
17303 | (char *) "self",(char *) "font", NULL | |
17304 | }; | |
d14a1e28 | 17305 | |
994141e6 | 17306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17311 | { |
17312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17313 | (arg1)->RemoveFont(arg2); | |
17314 | ||
17315 | wxPyEndAllowThreads(__tstate); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
17317 | } | |
17318 | Py_INCREF(Py_None); resultobj = Py_None; | |
17319 | return resultobj; | |
17320 | fail: | |
17321 | return NULL; | |
d14a1e28 RD |
17322 | } |
17323 | ||
17324 | ||
994141e6 RD |
17325 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17326 | PyObject *resultobj; | |
17327 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17328 | int result; | |
17329 | PyObject * obj0 = 0 ; | |
17330 | char *kwnames[] = { | |
17331 | (char *) "self", NULL | |
17332 | }; | |
d14a1e28 | 17333 | |
994141e6 | 17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17337 | { |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | result = (int)(arg1)->GetCount(); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
15afbcd0 | 17344 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
17345 | return resultobj; |
17346 | fail: | |
17347 | return NULL; | |
d14a1e28 RD |
17348 | } |
17349 | ||
17350 | ||
994141e6 RD |
17351 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17352 | PyObject *obj; | |
17353 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17354 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17355 | Py_INCREF(obj); | |
17356 | return Py_BuildValue((char *)""); | |
17357 | } | |
d14a1e28 RD |
17358 | static int _wrap_TheFontList_set(PyObject *_val) { |
17359 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17360 | return 1; | |
17361 | } | |
17362 | ||
17363 | ||
17364 | static PyObject *_wrap_TheFontList_get() { | |
17365 | PyObject *pyobj; | |
17366 | ||
15afbcd0 | 17367 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
17368 | return pyobj; |
17369 | } | |
17370 | ||
17371 | ||
17372 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17373 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17374 | return 1; | |
17375 | } | |
17376 | ||
17377 | ||
17378 | static PyObject *_wrap_ThePenList_get() { | |
17379 | PyObject *pyobj; | |
17380 | ||
15afbcd0 | 17381 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
17382 | return pyobj; |
17383 | } | |
17384 | ||
17385 | ||
17386 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17387 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17388 | return 1; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject *_wrap_TheBrushList_get() { | |
17393 | PyObject *pyobj; | |
17394 | ||
15afbcd0 | 17395 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
17396 | return pyobj; |
17397 | } | |
17398 | ||
17399 | ||
17400 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17401 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17402 | return 1; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_TheColourDatabase_get() { | |
17407 | PyObject *pyobj; | |
17408 | ||
15afbcd0 | 17409 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
17410 | return pyobj; |
17411 | } | |
17412 | ||
17413 | ||
e811c8ce | 17414 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17415 | PyObject *resultobj; |
e811c8ce | 17416 | wxEffects *result; |
d14a1e28 | 17417 | char *kwnames[] = { |
e811c8ce | 17418 | NULL |
d14a1e28 RD |
17419 | }; |
17420 | ||
e811c8ce | 17421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17422 | { |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17424 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17425 | |
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
15afbcd0 | 17429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17430 | return resultobj; |
17431 | fail: | |
17432 | return NULL; | |
17433 | } | |
17434 | ||
17435 | ||
e811c8ce | 17436 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17437 | PyObject *resultobj; |
e811c8ce RD |
17438 | wxEffects *arg1 = (wxEffects *) 0 ; |
17439 | wxColour result; | |
d14a1e28 | 17440 | PyObject * obj0 = 0 ; |
d14a1e28 | 17441 | char *kwnames[] = { |
e811c8ce | 17442 | (char *) "self", NULL |
d14a1e28 RD |
17443 | }; |
17444 | ||
e811c8ce | 17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17448 | { |
17449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17450 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17451 | |
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
e811c8ce RD |
17455 | { |
17456 | wxColour * resultptr; | |
17457 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17458 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 17459 | } |
d14a1e28 RD |
17460 | return resultobj; |
17461 | fail: | |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
e811c8ce | 17466 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17467 | PyObject *resultobj; |
e811c8ce RD |
17468 | wxEffects *arg1 = (wxEffects *) 0 ; |
17469 | wxColour result; | |
d14a1e28 | 17470 | PyObject * obj0 = 0 ; |
d14a1e28 | 17471 | char *kwnames[] = { |
e811c8ce | 17472 | (char *) "self", NULL |
d14a1e28 RD |
17473 | }; |
17474 | ||
e811c8ce | 17475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17478 | { |
17479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17480 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17481 | |
17482 | wxPyEndAllowThreads(__tstate); | |
17483 | if (PyErr_Occurred()) SWIG_fail; | |
17484 | } | |
d14a1e28 | 17485 | { |
e811c8ce RD |
17486 | wxColour * resultptr; |
17487 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17488 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17489 | } |
17490 | return resultobj; | |
17491 | fail: | |
d14a1e28 RD |
17492 | return NULL; |
17493 | } | |
17494 | ||
17495 | ||
e811c8ce | 17496 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17497 | PyObject *resultobj; |
e811c8ce RD |
17498 | wxEffects *arg1 = (wxEffects *) 0 ; |
17499 | wxColour result; | |
d14a1e28 | 17500 | PyObject * obj0 = 0 ; |
d14a1e28 | 17501 | char *kwnames[] = { |
e811c8ce | 17502 | (char *) "self", NULL |
d14a1e28 RD |
17503 | }; |
17504 | ||
e811c8ce | 17505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17508 | { |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17510 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17511 | |
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
e811c8ce RD |
17515 | { |
17516 | wxColour * resultptr; | |
17517 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17518 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 17519 | } |
d14a1e28 RD |
17520 | return resultobj; |
17521 | fail: | |
17522 | return NULL; | |
17523 | } | |
17524 | ||
17525 | ||
e811c8ce | 17526 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17527 | PyObject *resultobj; |
e811c8ce RD |
17528 | wxEffects *arg1 = (wxEffects *) 0 ; |
17529 | wxColour result; | |
d14a1e28 RD |
17530 | PyObject * obj0 = 0 ; |
17531 | char *kwnames[] = { | |
e811c8ce | 17532 | (char *) "self", NULL |
d14a1e28 RD |
17533 | }; |
17534 | ||
17535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17538 | { |
17539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17540 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17541 | ||
17542 | wxPyEndAllowThreads(__tstate); | |
17543 | if (PyErr_Occurred()) SWIG_fail; | |
17544 | } | |
17545 | { | |
17546 | wxColour * resultptr; | |
17547 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17549 | } |
17550 | return resultobj; | |
17551 | fail: | |
17552 | return NULL; | |
17553 | } | |
17554 | ||
17555 | ||
17556 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17559 | wxColour result; | |
17560 | PyObject * obj0 = 0 ; | |
17561 | char *kwnames[] = { | |
17562 | (char *) "self", NULL | |
17563 | }; | |
17564 | ||
17565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17568 | { |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17571 | ||
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | { | |
17576 | wxColour * resultptr; | |
17577 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17579 | } |
17580 | return resultobj; | |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17589 | wxColour *arg2 = 0 ; | |
17590 | wxColour temp2 ; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | PyObject * obj1 = 0 ; | |
17593 | char *kwnames[] = { | |
17594 | (char *) "self",(char *) "c", NULL | |
17595 | }; | |
17596 | ||
17597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17600 | { |
17601 | arg2 = &temp2; | |
17602 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17603 | } | |
17604 | { | |
17605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17606 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17607 | ||
17608 | wxPyEndAllowThreads(__tstate); | |
17609 | if (PyErr_Occurred()) SWIG_fail; | |
17610 | } | |
17611 | Py_INCREF(Py_None); resultobj = Py_None; | |
17612 | return resultobj; | |
17613 | fail: | |
17614 | return NULL; | |
17615 | } | |
17616 | ||
17617 | ||
17618 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17619 | PyObject *resultobj; | |
17620 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17621 | wxColour *arg2 = 0 ; | |
17622 | wxColour temp2 ; | |
17623 | PyObject * obj0 = 0 ; | |
17624 | PyObject * obj1 = 0 ; | |
17625 | char *kwnames[] = { | |
17626 | (char *) "self",(char *) "c", NULL | |
17627 | }; | |
17628 | ||
17629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17632 | { |
17633 | arg2 = &temp2; | |
17634 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17635 | } | |
17636 | { | |
17637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17638 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17639 | ||
17640 | wxPyEndAllowThreads(__tstate); | |
17641 | if (PyErr_Occurred()) SWIG_fail; | |
17642 | } | |
17643 | Py_INCREF(Py_None); resultobj = Py_None; | |
17644 | return resultobj; | |
17645 | fail: | |
17646 | return NULL; | |
17647 | } | |
17648 | ||
17649 | ||
17650 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17651 | PyObject *resultobj; | |
17652 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17653 | wxColour *arg2 = 0 ; | |
17654 | wxColour temp2 ; | |
17655 | PyObject * obj0 = 0 ; | |
17656 | PyObject * obj1 = 0 ; | |
17657 | char *kwnames[] = { | |
17658 | (char *) "self",(char *) "c", NULL | |
17659 | }; | |
17660 | ||
17661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17664 | { |
17665 | arg2 = &temp2; | |
17666 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17667 | } | |
17668 | { | |
17669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17670 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17671 | ||
17672 | wxPyEndAllowThreads(__tstate); | |
17673 | if (PyErr_Occurred()) SWIG_fail; | |
17674 | } | |
17675 | Py_INCREF(Py_None); resultobj = Py_None; | |
17676 | return resultobj; | |
17677 | fail: | |
17678 | return NULL; | |
17679 | } | |
17680 | ||
17681 | ||
17682 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17683 | PyObject *resultobj; | |
17684 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17685 | wxColour *arg2 = 0 ; | |
17686 | wxColour temp2 ; | |
17687 | PyObject * obj0 = 0 ; | |
17688 | PyObject * obj1 = 0 ; | |
17689 | char *kwnames[] = { | |
17690 | (char *) "self",(char *) "c", NULL | |
17691 | }; | |
17692 | ||
17693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17696 | { |
17697 | arg2 = &temp2; | |
17698 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17699 | } | |
17700 | { | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | Py_INCREF(Py_None); resultobj = Py_None; | |
17708 | return resultobj; | |
17709 | fail: | |
17710 | return NULL; | |
17711 | } | |
17712 | ||
17713 | ||
17714 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17715 | PyObject *resultobj; | |
17716 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17717 | wxColour *arg2 = 0 ; | |
17718 | wxColour temp2 ; | |
17719 | PyObject * obj0 = 0 ; | |
17720 | PyObject * obj1 = 0 ; | |
17721 | char *kwnames[] = { | |
17722 | (char *) "self",(char *) "c", NULL | |
17723 | }; | |
17724 | ||
17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17728 | { |
17729 | arg2 = &temp2; | |
17730 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17731 | } | |
17732 | { | |
17733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17734 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17735 | ||
17736 | wxPyEndAllowThreads(__tstate); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | Py_INCREF(Py_None); resultobj = Py_None; | |
17740 | return resultobj; | |
17741 | fail: | |
17742 | return NULL; | |
17743 | } | |
17744 | ||
17745 | ||
17746 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17747 | PyObject *resultobj; | |
17748 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17749 | wxColour *arg2 = 0 ; | |
17750 | wxColour *arg3 = 0 ; | |
17751 | wxColour *arg4 = 0 ; | |
17752 | wxColour *arg5 = 0 ; | |
17753 | wxColour *arg6 = 0 ; | |
17754 | wxColour temp2 ; | |
17755 | wxColour temp3 ; | |
17756 | wxColour temp4 ; | |
17757 | wxColour temp5 ; | |
17758 | wxColour temp6 ; | |
17759 | PyObject * obj0 = 0 ; | |
17760 | PyObject * obj1 = 0 ; | |
17761 | PyObject * obj2 = 0 ; | |
17762 | PyObject * obj3 = 0 ; | |
17763 | PyObject * obj4 = 0 ; | |
17764 | PyObject * obj5 = 0 ; | |
17765 | char *kwnames[] = { | |
17766 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17767 | }; | |
17768 | ||
17769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
17770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17772 | { |
17773 | arg2 = &temp2; | |
17774 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17775 | } | |
17776 | { | |
17777 | arg3 = &temp3; | |
17778 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17779 | } | |
17780 | { | |
17781 | arg4 = &temp4; | |
17782 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17783 | } | |
17784 | { | |
17785 | arg5 = &temp5; | |
17786 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17787 | } | |
17788 | { | |
17789 | arg6 = &temp6; | |
17790 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17791 | } | |
17792 | { | |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17795 | ||
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | Py_INCREF(Py_None); resultobj = Py_None; | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj; | |
17808 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17809 | wxDC *arg2 = 0 ; | |
17810 | wxRect *arg3 = 0 ; | |
17811 | int arg4 = (int) 1 ; | |
17812 | wxRect temp3 ; | |
17813 | PyObject * obj0 = 0 ; | |
17814 | PyObject * obj1 = 0 ; | |
17815 | PyObject * obj2 = 0 ; | |
994141e6 | 17816 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17817 | char *kwnames[] = { |
17818 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17819 | }; | |
17820 | ||
994141e6 | 17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17826 | SWIG_fail; | |
d14a1e28 | 17827 | if (arg2 == NULL) { |
15afbcd0 RD |
17828 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17829 | SWIG_fail; | |
d14a1e28 RD |
17830 | } |
17831 | { | |
17832 | arg3 = &temp3; | |
17833 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17834 | } | |
994141e6 | 17835 | if (obj3) { |
15afbcd0 RD |
17836 | arg4 = (int) SWIG_AsInt(obj3); |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17838 | } |
d14a1e28 RD |
17839 | { |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | Py_INCREF(Py_None); resultobj = Py_None; | |
17847 | return resultobj; | |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17856 | wxRect *arg2 = 0 ; | |
17857 | wxDC *arg3 = 0 ; | |
17858 | wxBitmap *arg4 = 0 ; | |
17859 | bool result; | |
17860 | wxRect temp2 ; | |
17861 | PyObject * obj0 = 0 ; | |
17862 | PyObject * obj1 = 0 ; | |
17863 | PyObject * obj2 = 0 ; | |
17864 | PyObject * obj3 = 0 ; | |
17865 | char *kwnames[] = { | |
17866 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17867 | }; | |
17868 | ||
17869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
17870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17872 | { |
17873 | arg2 = &temp2; | |
17874 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17875 | } | |
15afbcd0 RD |
17876 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
17877 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17878 | SWIG_fail; | |
d14a1e28 | 17879 | if (arg3 == NULL) { |
15afbcd0 RD |
17880 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17881 | SWIG_fail; | |
d14a1e28 | 17882 | } |
15afbcd0 RD |
17883 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
17884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17885 | SWIG_fail; | |
d14a1e28 | 17886 | if (arg4 == NULL) { |
15afbcd0 RD |
17887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17888 | SWIG_fail; | |
d14a1e28 RD |
17889 | } |
17890 | { | |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
4d5c3d91 | 17897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17898 | return resultobj; |
17899 | fail: | |
17900 | return NULL; | |
17901 | } | |
17902 | ||
17903 | ||
17904 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17905 | PyObject *obj; | |
17906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17907 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17908 | Py_INCREF(obj); | |
17909 | return Py_BuildValue((char *)""); | |
17910 | } | |
17911 | static PyMethodDef SwigMethods[] = { | |
17912 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17914 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17915 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17916 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17917 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17918 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17919 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
17920 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 17921 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17922 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
17923 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17924 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17926 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17927 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f RD |
17928 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
17929 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17930 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17931 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17932 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 17933 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17934 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
17935 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17939 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17940 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17941 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17945 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17947 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17952 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17953 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 17956 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
22faec7d | 17957 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
c9c7117a | 17958 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17959 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17960 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17961 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17963 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17964 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17967 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17968 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17969 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17970 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17971 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17972 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17973 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17974 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17975 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17976 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17977 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17978 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17979 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17980 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17981 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17982 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17983 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17984 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17985 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17986 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17987 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17988 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17989 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17990 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17991 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17992 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17993 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17994 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17995 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 RD |
17996 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, |
17997 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17998 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, |
17999 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18000 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
18001 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18002 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18003 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
18004 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
18005 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18006 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18007 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18008 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18009 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18010 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18011 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18012 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18013 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18014 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18015 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18016 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
18017 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18018 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18019 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18020 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18021 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18022 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18023 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18024 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
18025 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18026 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18027 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18028 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18029 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18030 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18031 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
18032 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
18033 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18034 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18035 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
18036 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18037 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
18038 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
18039 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
18040 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18041 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
18042 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
18043 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18044 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
18045 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
18046 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
18047 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
18048 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
18049 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
18050 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
18051 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
18052 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
18053 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
18054 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
18055 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
18056 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
18057 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
18058 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
18059 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
18060 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
18061 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
18062 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
18063 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18064 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18065 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
18066 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18067 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18068 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
18069 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
18070 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
18071 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18072 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
18073 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18074 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
18075 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
18076 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
18077 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
18078 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
18079 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
18080 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18081 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18082 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
18083 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
18084 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18085 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18086 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18087 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18088 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18089 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18090 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18091 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18092 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18093 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18094 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18095 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18096 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18097 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18098 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18099 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18100 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
18101 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
18102 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
18103 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
18104 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
18105 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
18106 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
18107 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
18108 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18109 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18110 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18111 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18112 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
18113 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18114 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18115 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18116 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18117 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
18118 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
18119 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18120 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
18121 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18122 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18123 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
18124 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
18125 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18127 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18128 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
18129 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
18130 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
18131 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
18132 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
18133 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
18134 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
18135 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
18136 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18139 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18140 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18141 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18142 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18143 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18144 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18145 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18146 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18147 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18148 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
18149 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
18150 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18151 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18152 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18153 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18154 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18155 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18159 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
18160 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18161 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
18162 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
18163 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
18164 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18165 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18166 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18168 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
18169 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18170 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18171 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
18172 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18173 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18174 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18175 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18176 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
18177 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
18178 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
18180 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
18181 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
18182 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
18183 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
18184 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18185 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18186 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18187 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18188 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18189 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18190 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18191 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18192 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18193 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18194 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18195 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18196 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18197 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18198 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18199 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18200 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18201 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18202 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18203 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18204 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18205 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18206 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18207 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18208 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18209 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18210 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18211 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18212 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18213 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18214 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18215 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18216 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18217 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18218 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18219 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
18220 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
18221 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
18222 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18223 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
18224 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
18225 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
18226 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
18227 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18228 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
18229 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
18230 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
18231 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18232 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
18233 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
18234 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
18235 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18236 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18237 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18238 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18239 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18240 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18241 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
18242 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
18243 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
18244 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18245 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18246 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18247 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18248 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18249 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18250 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18251 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18252 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18253 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18254 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18255 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18256 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18257 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18258 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18259 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18260 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18261 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18262 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18263 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18264 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18265 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18266 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18267 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18268 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18269 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18270 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18271 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
242b7b46 | 18272 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18273 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18274 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18275 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18276 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18277 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18278 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18279 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18280 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18281 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18282 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18283 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18284 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18285 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18286 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18287 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18288 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18289 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18290 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18291 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18292 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18293 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18294 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18295 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18296 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18297 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18298 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18299 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18300 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18301 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18302 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18303 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18304 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18305 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18306 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18307 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18308 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18309 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18310 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18311 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18312 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18313 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18314 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18315 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18316 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18317 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18318 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18319 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18320 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18321 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18322 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18323 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18324 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18325 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18326 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18327 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18328 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18329 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18330 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18331 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18332 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18333 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18334 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18335 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18336 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18337 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18338 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18339 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18340 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18341 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18342 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18343 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18344 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18345 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
3adfb63b RD |
18346 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18347 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
e498079e | 18348 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18349 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18350 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
e498079e | 18351 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18352 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18353 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18354 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18355 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18356 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18357 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18358 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18359 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18360 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18361 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18362 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18363 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18364 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18365 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18366 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18367 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18368 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18369 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18370 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18371 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18372 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18373 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18374 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18375 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18376 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18377 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18378 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18379 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18380 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18381 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18382 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18383 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18384 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18385 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18386 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18387 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18388 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18389 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18390 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18391 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18392 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18393 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18394 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18395 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18396 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18397 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18398 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18399 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18400 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18401 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18402 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18403 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18404 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18405 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18406 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18407 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18408 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18409 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18410 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18411 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18412 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18413 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18414 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18415 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18416 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18417 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18418 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18419 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18420 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18421 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18422 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18423 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18424 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18425 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18426 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18427 | { NULL, NULL } | |
18428 | }; | |
18429 | ||
18430 | ||
18431 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18432 | ||
e811c8ce RD |
18433 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18434 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18435 | } | |
18436 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18437 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18438 | } | |
18439 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18440 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18441 | } | |
d14a1e28 RD |
18442 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18443 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18444 | } | |
18445 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18446 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18447 | } | |
d14a1e28 RD |
18448 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18449 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18450 | } | |
18451 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18452 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18453 | } | |
18454 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18455 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18456 | } | |
18457 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18458 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18459 | } | |
18460 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18461 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18462 | } | |
18463 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18464 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18465 | } | |
18466 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18467 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18468 | } | |
18469 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18470 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18471 | } | |
18472 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18473 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18474 | } | |
18475 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18476 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18477 | } | |
18478 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18479 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18480 | } | |
18481 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18482 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18483 | } | |
18484 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18485 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18486 | } | |
18487 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18488 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18489 | } | |
18490 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18491 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18492 | } | |
18493 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18494 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18495 | } | |
18496 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18497 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18498 | } | |
18499 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18500 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18501 | } | |
18502 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18503 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18504 | } | |
18505 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18506 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18507 | } | |
18508 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18509 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18510 | } | |
18511 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18512 | return (void *)((wxObject *) ((wxDC *) x)); | |
18513 | } | |
18514 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18515 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18516 | } | |
18517 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18518 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18519 | } | |
18520 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18521 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18522 | } | |
18523 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18524 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18525 | } | |
18526 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18527 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18528 | } | |
18529 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18530 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18531 | } | |
18532 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18533 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18534 | } | |
18535 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18536 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18537 | } | |
18538 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18539 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18540 | } | |
18541 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18542 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18543 | } | |
18544 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18545 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18546 | } | |
18547 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18548 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18549 | } | |
18550 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18551 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18552 | } | |
18553 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18554 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18555 | } | |
18556 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18557 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18558 | } | |
18559 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18560 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18561 | } | |
18562 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18563 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18564 | } | |
18565 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18566 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18567 | } | |
18568 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18569 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18570 | } | |
18571 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18572 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18573 | } | |
18574 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18575 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18576 | } | |
18577 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18578 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18579 | } | |
18580 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18581 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18582 | } | |
18583 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18584 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18585 | } | |
18586 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18587 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18588 | } | |
18589 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18590 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18591 | } | |
18592 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18593 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18594 | } | |
18595 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18596 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18597 | } | |
18598 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18599 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18600 | } | |
18601 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18602 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18603 | } | |
18604 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18605 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18606 | } | |
18607 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18608 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18609 | } | |
18610 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18611 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18612 | } | |
18613 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18614 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18615 | } | |
18616 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18617 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18618 | } | |
18619 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18620 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18621 | } | |
18622 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18623 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18624 | } | |
18625 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18626 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18627 | } | |
18628 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18629 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18630 | } | |
18631 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18632 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18633 | } | |
18634 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18635 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18636 | } | |
18637 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18638 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18639 | } | |
18640 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18641 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18642 | } | |
18643 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18644 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18645 | } | |
1e0c8722 RD |
18646 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18647 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18648 | } | |
d14a1e28 RD |
18649 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18650 | return (void *)((wxObject *) ((wxImage *) x)); | |
18651 | } | |
18652 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18653 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18654 | } | |
d14a1e28 RD |
18655 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18656 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18657 | } | |
18658 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18659 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18660 | } | |
18661 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18662 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18663 | } | |
18664 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18665 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18666 | } | |
18667 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18668 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18669 | } | |
18670 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18671 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18672 | } | |
18673 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18674 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18675 | } | |
18676 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18677 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18678 | } | |
18679 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18680 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18681 | } | |
18682 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18683 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18684 | } | |
18685 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18686 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18687 | } | |
18688 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18690 | } | |
18691 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18692 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18693 | } | |
18694 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18695 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18696 | } | |
18697 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18698 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18699 | } | |
18700 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18701 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18702 | } | |
18703 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18704 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18705 | } | |
18706 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18707 | return (void *)((wxObject *) ((wxMask *) x)); | |
18708 | } | |
18709 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18710 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18711 | } | |
18712 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18713 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18714 | } | |
18715 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18716 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18717 | } | |
18718 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18719 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18720 | } | |
18721 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18722 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18723 | } | |
18724 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18725 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18726 | } | |
18727 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18728 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18729 | } | |
18730 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18731 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18732 | } | |
18733 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18734 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18735 | } | |
18736 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18737 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18738 | } | |
18739 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18740 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18741 | } | |
18742 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18743 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18744 | } | |
18745 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18746 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18747 | } | |
18748 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18749 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18750 | } | |
18751 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18752 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18753 | } | |
18754 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18755 | return (void *)((wxObject *) ((wxColour *) x)); | |
18756 | } | |
18757 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18758 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18759 | } | |
18760 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18761 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18762 | } | |
18763 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18764 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18765 | } | |
e811c8ce RD |
18766 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18767 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18768 | } |
e811c8ce RD |
18769 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18770 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18771 | } |
e811c8ce RD |
18772 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18773 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18774 | } | |
18775 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18776 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18777 | } | |
18778 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18779 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18780 | } | |
18781 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18782 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18783 | } | |
18784 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18785 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18786 | } | |
18787 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18788 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18789 | } | |
18790 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18791 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18792 | } | |
18793 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18794 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18795 | } | |
18796 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18797 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18798 | } | |
18799 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18800 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18801 | } | |
18802 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18803 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18804 | } | |
18805 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18806 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18807 | } | |
18808 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18809 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18810 | } | |
18811 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18812 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18813 | } | |
18814 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18815 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18816 | } | |
18817 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18818 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18819 | } | |
18820 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18821 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18822 | } | |
18823 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18824 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18825 | } | |
18826 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18827 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18828 | } | |
18829 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18830 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 | 18831 | } |
15afbcd0 RD |
18832 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
18833 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18834 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18835 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18836 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18837 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18838 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18839 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18840 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18841 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18842 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18843 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18844 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18845 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18846 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18847 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18848 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18849 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18850 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18851 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18852 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18853 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18854 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18855 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18856 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18857 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18858 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18859 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18860 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18861 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18862 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18863 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18864 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18865 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18866 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18867 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18868 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18869 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18870 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18871 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18872 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18873 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18874 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18875 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18876 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18877 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18878 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18879 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18880 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18881 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18882 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18883 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18884 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18885 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18886 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
18887 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
18888 | |
18889 | static swig_type_info *swig_types_initial[] = { | |
18890 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18891 | _swigt__p_wxBrush, |
18892 | _swigt__p_wxColour, | |
d14a1e28 RD |
18893 | _swigt__p_wxDC, |
18894 | _swigt__p_wxMirrorDC, | |
18895 | _swigt__p_byte, | |
18896 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 18897 | _swigt__p_char, |
d14a1e28 RD |
18898 | _swigt__p_wxIconLocation, |
18899 | _swigt__p_wxImage, | |
18900 | _swigt__p_wxMetaFileDC, | |
18901 | _swigt__p_wxMask, | |
18902 | _swigt__p_wxFont, | |
18903 | _swigt__p_wxWindow, | |
18904 | _swigt__p_wxSize, | |
18905 | _swigt__p_double, | |
18906 | _swigt__p_wxMemoryDC, | |
18907 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18908 | _swigt__p_wxEffects, |
18909 | _swigt__p_wxNativeEncodingInfo, | |
18910 | _swigt__p_wxPalette, | |
18911 | _swigt__p_wxBitmap, | |
18912 | _swigt__p_wxObject, | |
18913 | _swigt__p_wxRegionIterator, | |
18914 | _swigt__p_wxRect, | |
18915 | _swigt__p_wxString, | |
18916 | _swigt__p_wxPrinterDC, | |
18917 | _swigt__p_wxIconBundle, | |
18918 | _swigt__p_wxPoint, | |
18919 | _swigt__p_wxDash, | |
18920 | _swigt__p_wxScreenDC, | |
18921 | _swigt__p_wxCursor, | |
18922 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18923 | _swigt__p_wxBufferedDC, |
18924 | _swigt__p_wxImageList, | |
18925 | _swigt__p_unsigned_char, | |
18926 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18927 | _swigt__p_wxIcon, |
994141e6 | 18928 | _swigt__p_wxLocale, |
d14a1e28 RD |
18929 | _swigt__p_wxRegion, |
18930 | _swigt__p_wxLanguageInfo, | |
18931 | _swigt__p_wxConfigBase, | |
18932 | _swigt__p_wxWindowDC, | |
18933 | _swigt__p_wxPrintData, | |
18934 | _swigt__p_wxBrushList, | |
18935 | _swigt__p_wxFontList, | |
18936 | _swigt__p_wxPen, | |
18937 | _swigt__p_wxBufferedPaintDC, | |
18938 | _swigt__p_wxPaintDC, | |
18939 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18940 | _swigt__p_wxPyPen, |
18941 | _swigt__p_int, | |
18942 | _swigt__p_wxMetaFile, | |
18943 | _swigt__p_wxNativeFontInfo, | |
18944 | _swigt__p_wxEncodingConverter, | |
18945 | _swigt__p_wxColourDatabase, | |
18946 | 0 | |
18947 | }; | |
18948 | ||
18949 | ||
18950 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18951 | ||
18952 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18953 | {0}}; |
18954 | ||
18955 | #ifdef __cplusplus | |
18956 | } | |
18957 | #endif | |
18958 | ||
18959 | #ifdef __cplusplus | |
18960 | extern "C" | |
18961 | #endif | |
18962 | SWIGEXPORT(void) SWIG_init(void) { | |
18963 | static PyObject *SWIG_globals = 0; | |
18964 | static int typeinit = 0; | |
18965 | PyObject *m, *d; | |
18966 | int i; | |
18967 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18968 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18969 | d = PyModule_GetDict(m); | |
18970 | ||
18971 | if (!typeinit) { | |
18972 | for (i = 0; swig_types_initial[i]; i++) { | |
18973 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18974 | } | |
18975 | typeinit = 1; | |
18976 | } | |
18977 | SWIG_InstallConstants(d,swig_const_table); | |
18978 | ||
15afbcd0 RD |
18979 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); |
18980 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
18981 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
18982 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18983 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18984 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18985 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18986 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
18987 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
18988 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18989 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
18990 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18991 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18992 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18993 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
18994 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
18995 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18996 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18997 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18998 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
18999 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
19000 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
19001 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
19002 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
19003 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
19004 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
19005 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19006 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
19007 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
19008 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
19009 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
19010 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
19011 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
19012 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
19013 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
19014 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
19015 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
19016 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
19017 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
19018 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
19019 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
19020 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
19021 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
19022 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
19023 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
19024 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
19025 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
19026 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
19027 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
19028 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
19029 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
19030 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
19031 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
19032 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
19033 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
19034 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
19035 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
19036 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
19037 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
19038 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
19039 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
19040 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
19041 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
19042 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
19043 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
19044 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
19045 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
19046 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
19047 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
19048 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
19049 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
19050 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
19051 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
19052 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
19053 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
19054 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
19055 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
19056 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
19057 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
19058 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
19059 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
19060 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
19061 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
19062 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
19063 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
19064 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
19065 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
19066 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
19067 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
19068 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
19069 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
19070 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
19071 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
19072 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
19073 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
19074 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
19075 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
19076 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
19077 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
19078 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
19079 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
19080 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
19081 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
19082 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
19083 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
19084 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
19085 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
19086 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
19087 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
19088 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
19089 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
19090 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
19091 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
19092 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
19093 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
19094 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
19095 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
19096 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
19097 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
19098 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
19099 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
19100 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
19101 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
19102 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
19103 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
19104 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
19105 | |
19106 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19107 | ||
15afbcd0 RD |
19108 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); |
19109 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
19110 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
19111 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
19112 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
19113 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
19114 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
19115 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
19116 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19117 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19118 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19119 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19120 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19121 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19122 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19123 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19124 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19125 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
19126 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
19127 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19128 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19129 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19130 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19131 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
19132 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19133 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
19134 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
19135 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
19136 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
19137 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19138 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
19139 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
19140 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
19141 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
19142 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
19143 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
19144 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
19145 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19146 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
19147 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19148 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
19149 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19150 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
19151 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
19152 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19153 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19154 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19155 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19156 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19157 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19158 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19159 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19160 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
19161 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
19162 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
19163 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19164 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19165 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19166 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19167 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19168 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19169 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19170 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19171 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19172 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19173 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19174 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19175 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19176 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19177 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19178 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19179 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19180 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19181 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19182 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19183 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
19184 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
19185 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
19186 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
19187 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19188 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19189 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19190 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19191 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19192 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19193 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19194 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19195 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
19196 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19197 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19198 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19199 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19200 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19201 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
19202 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19203 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
19204 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19205 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
19206 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
19207 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
19208 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19209 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19210 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19211 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19212 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19213 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19214 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19215 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
19216 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19217 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19218 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19219 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19220 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
19221 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19222 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19223 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19224 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19225 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19226 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19227 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19228 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
19229 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
19230 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
19231 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19232 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
19233 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19234 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
19235 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19236 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19237 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19238 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
19239 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19240 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19241 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19242 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
19243 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19244 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
19245 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
19246 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19247 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19248 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
19249 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
19250 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19251 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19252 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19253 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19254 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
19255 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
19256 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
19257 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
19258 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19259 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19260 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19261 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19262 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19263 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19264 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19265 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19266 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19267 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
19268 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19269 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19270 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19271 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19272 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19273 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19274 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19275 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19276 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
19277 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
19278 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19279 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
19280 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19281 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19282 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
19283 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
19284 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19285 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19286 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19287 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19288 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19289 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19290 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19291 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19292 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19293 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19294 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19295 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19296 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19297 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19298 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19299 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19300 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19301 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19302 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19303 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19304 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19305 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19306 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19307 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19308 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19309 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
19310 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
19311 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
19312 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
19313 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
19314 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19315 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19316 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
19317 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
19318 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
19319 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19320 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
19321 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19322 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19323 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
19324 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19325 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19326 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
19327 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19328 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19329 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19330 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19331 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
19332 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
19333 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
19334 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19335 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
19336 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19337 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
19338 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19339 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19340 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
19341 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19342 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
19343 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19344 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19345 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19346 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19347 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
19348 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19349 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
19350 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
19351 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
19352 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
19353 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
19354 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19355 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19356 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19357 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19358 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19359 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19360 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19361 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19362 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19363 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19364 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19365 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19366 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19367 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19368 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19369 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19370 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19371 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19372 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19373 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19374 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19375 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19376 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19377 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19378 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19379 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19380 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19381 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19382 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19383 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19384 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19385 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19386 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19387 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19388 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19389 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19390 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19391 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19392 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19393 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19394 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19395 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19396 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19397 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19398 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19399 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19400 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19401 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19402 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19403 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19404 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19405 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19406 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19407 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
19408 | |
19409 | // Work around a chicken/egg problem in drawlist.cpp | |
19410 | wxPyDrawList_SetAPIPtr(); | |
19411 | ||
d14a1e28 RD |
19412 | } |
19413 |