]>
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 | |
c32bde28 | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d14a1e28 RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
49 | #define SWIG_PackData SWIG_Python_PackData |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
d14a1e28 RD |
52 | |
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
cc6dd355 RD |
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
d14a1e28 | 83 | #else |
cc6dd355 RD |
84 | # define SWIGEXPORT(a) a |
85 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
86 | #endif |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 90 | #else |
cc6dd355 | 91 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
92 | #endif |
93 | ||
d14a1e28 RD |
94 | #ifdef __cplusplus |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
cc6dd355 | 102 | const char *name; |
d14a1e28 RD |
103 | swig_converter_func converter; |
104 | const char *str; | |
cc6dd355 | 105 | void *clientdata; |
d14a1e28 RD |
106 | swig_dycast_func dcast; |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c32bde28 | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d14a1e28 RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
122 | |
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d14a1e28 RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d14a1e28 RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | /* Contract support */ | |
200 | ||
9d1d5697 | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d14a1e28 RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
e811c8ce RD |
212 | #define SWIGTYPE_p_wxBrush swig_types[1] |
213 | #define SWIGTYPE_p_wxColour swig_types[2] | |
214 | #define SWIGTYPE_p_wxDC swig_types[3] | |
215 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
216 | #define SWIGTYPE_p_byte swig_types[5] | |
217 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
994141e6 RD |
218 | #define SWIGTYPE_p_char swig_types[7] |
219 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
220 | #define SWIGTYPE_p_wxImage swig_types[9] | |
221 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
222 | #define SWIGTYPE_p_wxMask swig_types[11] | |
b2df227b RD |
223 | #define SWIGTYPE_p_wxSize swig_types[12] |
224 | #define SWIGTYPE_p_wxFont swig_types[13] | |
225 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
994141e6 RD |
226 | #define SWIGTYPE_p_double swig_types[15] |
227 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
228 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
229 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
230 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
231 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
232 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
233 | #define SWIGTYPE_p_wxObject swig_types[22] | |
234 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
235 | #define SWIGTYPE_p_wxRect swig_types[24] | |
236 | #define SWIGTYPE_p_wxString swig_types[25] | |
237 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
238 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
239 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
240 | #define SWIGTYPE_p_wxDash swig_types[29] | |
241 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
242 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
243 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
244 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
245 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
246 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
247 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
e811c8ce | 248 | #define SWIGTYPE_p_wxIcon swig_types[37] |
994141e6 RD |
249 | #define SWIGTYPE_p_wxLocale swig_types[38] |
250 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
66c033b4 RD |
251 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] |
252 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
994141e6 RD |
253 | #define SWIGTYPE_p_wxWindowDC swig_types[42] |
254 | #define SWIGTYPE_p_wxPrintData swig_types[43] | |
255 | #define SWIGTYPE_p_wxBrushList swig_types[44] | |
256 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
257 | #define SWIGTYPE_p_wxPen swig_types[46] | |
258 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] | |
259 | #define SWIGTYPE_p_wxPaintDC swig_types[48] | |
260 | #define SWIGTYPE_p_wxPenList swig_types[49] | |
66c033b4 RD |
261 | #define SWIGTYPE_p_int swig_types[50] |
262 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
263 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
264 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
265 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
266 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
267 | |
268 | /* -------- TYPES TABLE (END) -------- */ | |
269 | ||
270 | ||
271 | /*----------------------------------------------- | |
54f9ee45 | 272 | @(target):= _gdi_.so |
d14a1e28 | 273 | ------------------------------------------------*/ |
54f9ee45 | 274 | #define SWIG_init init_gdi_ |
d14a1e28 | 275 | |
54f9ee45 | 276 | #define SWIG_name "_gdi_" |
d14a1e28 | 277 | |
c32bde28 RD |
278 | /* Auxiliar swig macros that appear in the header */ |
279 | ||
280 | #define SWIG_OLDOBJ 1 | |
281 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
282 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 283 | |
994141e6 | 284 | #ifdef __cplusplus |
15afbcd0 | 285 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 286 | #define SWIGSTATIC(a) static a |
c32bde28 RD |
287 | #define swig_new_array(size,Type) (new Type[(size)]) |
288 | #define swig_delete(cptr) delete cptr | |
15afbcd0 | 289 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
290 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
291 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
292 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
293 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
294 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
994141e6 | 295 | |
15afbcd0 RD |
296 | #else /* C case */ |
297 | ||
298 | #define SWIGSTATICINLINE(a) static a | |
299 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
300 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
301 | #define swig_delete(cptr) free((char*)cptr) | |
15afbcd0 | 302 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
303 | #define swig_const_cast(a,Type) (Type)(a) |
304 | #define swig_static_cast(a,Type) (Type)(a) | |
305 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
306 | #define swig_numeric_cast(a,Type) (Type)(a) | |
307 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
15afbcd0 RD |
308 | |
309 | #endif /* __cplusplus */ | |
994141e6 RD |
310 | |
311 | ||
c32bde28 RD |
312 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
313 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
314 | /*@@*/ | |
315 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
316 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
317 | /*@@*/ | |
318 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
319 | #define SWIG_From_short PyInt_FromLong | |
320 | /*@@*/ | |
321 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
322 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
323 | /*@@*/ | |
324 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
325 | #define SWIG_From_int PyInt_FromLong | |
326 | /*@@*/ | |
327 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
328 | #define SWIG_From_long PyInt_FromLong | |
329 | /*@@*/ | |
330 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
331 | #define SWIG_From_float PyFloat_FromDouble | |
332 | /*@@*/ | |
333 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
334 | #define SWIG_From_double PyFloat_FromDouble | |
335 | /*@@*/ | |
994141e6 RD |
336 | |
337 | ||
d14a1e28 RD |
338 | #include "wx/wxPython/wxPython.h" |
339 | #include "wx/wxPython/pyclasses.h" | |
340 | ||
d14a1e28 | 341 | |
b2dc1044 | 342 | static const wxString wxPyEmptyString(wxEmptyString); |
994141e6 | 343 | |
c32bde28 RD |
344 | #include <limits.h> |
345 | ||
346 | ||
347 | SWIGSTATICINLINE(int) | |
348 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
349 | const char *errmsg) | |
994141e6 | 350 | { |
c32bde28 RD |
351 | if (value < min_value) { |
352 | if (errmsg) { | |
353 | PyErr_Format(PyExc_OverflowError, | |
354 | "value %ld is less than '%s' minimum %ld", | |
355 | value, errmsg, min_value); | |
356 | } | |
357 | return 0; | |
358 | } else if (value > max_value) { | |
359 | if (errmsg) { | |
360 | PyErr_Format(PyExc_OverflowError, | |
361 | "value %ld is greater than '%s' maximum %ld", | |
362 | value, errmsg, max_value); | |
363 | } | |
364 | return 0; | |
365 | } | |
366 | return 1; | |
994141e6 RD |
367 | } |
368 | ||
369 | ||
c32bde28 | 370 | // See my_fragments.i |
15afbcd0 | 371 | SWIGSTATICINLINE(int) |
c32bde28 | 372 | SWIG_AsVal_long(PyObject* obj, long* val) |
15afbcd0 | 373 | { |
c32bde28 RD |
374 | if (PyNumber_Check(obj)) { |
375 | if (val) *val = PyInt_AsLong(obj); | |
376 | return 1; | |
377 | } | |
378 | else { | |
379 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
380 | obj->ob_type->tp_name); | |
381 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
382 | Py_DECREF(errmsg); | |
383 | } | |
15afbcd0 | 384 | return 0; |
c32bde28 RD |
385 | } |
386 | ||
387 | ||
388 | #if INT_MAX != LONG_MAX | |
389 | SWIGSTATICINLINE(int) | |
390 | SWIG_AsVal_int(PyObject *obj, int *val) | |
391 | { | |
392 | const char* errmsg = val ? "int" : 0; | |
393 | long v; | |
394 | if (SWIG_AsVal_long(obj, &v)) { | |
395 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
396 | if (val) *val = swig_numeric_cast(v, int); | |
397 | return 1; | |
398 | } else { | |
399 | return 0; | |
400 | } | |
15afbcd0 | 401 | } else { |
c32bde28 RD |
402 | PyErr_Clear(); |
403 | } | |
404 | if (val) { | |
405 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
15afbcd0 | 406 | } |
c32bde28 | 407 | return 0; |
15afbcd0 | 408 | } |
c32bde28 RD |
409 | #else |
410 | SWIGSTATICINLINE(int) | |
411 | SWIG_AsVal_int(PyObject *obj, int *val) | |
412 | { | |
413 | return SWIG_AsVal_long(obj,(long*)val); | |
414 | } | |
415 | #endif | |
15afbcd0 RD |
416 | |
417 | ||
c32bde28 RD |
418 | SWIGSTATICINLINE(int) |
419 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
420 | { | |
421 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
422 | if (obj == Py_True) { | |
423 | if (val) *val = true; | |
424 | return 1; | |
425 | } | |
426 | if (obj == Py_False) { | |
427 | if (val) *val = false; | |
428 | return 1; | |
429 | } | |
430 | int res = 0; | |
431 | if (SWIG_AsVal_int(obj, &res)) { | |
432 | if (val) *val = (bool)res; | |
433 | return 1; | |
434 | } | |
435 | if (val) { | |
436 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
437 | } | |
438 | return 0; | |
439 | } | |
15afbcd0 RD |
440 | |
441 | ||
c32bde28 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_As_bool(PyObject* obj) | |
15afbcd0 | 444 | { |
c32bde28 RD |
445 | bool v; |
446 | if (!SWIG_AsVal_bool(obj, &v)) { | |
447 | /* | |
448 | this is needed to make valgrind/purify happier. the other | |
449 | solution is throw an exception, but since this code should work | |
450 | with plain C .... | |
451 | */ | |
452 | memset((void*)&v, 0, sizeof(bool)); | |
15afbcd0 | 453 | } |
c32bde28 RD |
454 | return v; |
455 | } | |
456 | ||
457 | ||
458 | SWIGSTATICINLINE(int) | |
459 | SWIG_Check_bool(PyObject* obj) | |
460 | { | |
461 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
462 | } |
463 | ||
464 | ||
c32bde28 RD |
465 | // See my_fragments.i |
466 | SWIGSTATICINLINE(int) | |
467 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
69223c70 | 468 | { |
c32bde28 RD |
469 | long v = 0; |
470 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
471 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
69223c70 RD |
472 | return 0; |
473 | } | |
c32bde28 RD |
474 | else if (val) |
475 | *val = (unsigned long)v; | |
476 | return 1; | |
69223c70 RD |
477 | } |
478 | ||
479 | ||
c32bde28 RD |
480 | SWIGSTATICINLINE(int) |
481 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
482 | unsigned long max_value, | |
483 | const char *errmsg) | |
15afbcd0 | 484 | { |
c32bde28 RD |
485 | if (value > max_value) { |
486 | if (errmsg) { | |
487 | PyErr_Format(PyExc_OverflowError, | |
488 | "value %ld is greater than '%s' minimum %ld", | |
489 | value, errmsg, max_value); | |
15afbcd0 | 490 | } |
c32bde28 | 491 | return 0; |
15afbcd0 | 492 | } |
c32bde28 RD |
493 | return 1; |
494 | } | |
15afbcd0 RD |
495 | |
496 | ||
c32bde28 RD |
497 | SWIGSTATICINLINE(int) |
498 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
994141e6 | 499 | { |
c32bde28 RD |
500 | const char* errmsg = val ? "unsigned char" : 0; |
501 | unsigned long v; | |
502 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
503 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
504 | if (val) *val = swig_numeric_cast(v, unsigned char); | |
505 | return 1; | |
506 | } else { | |
507 | return 0; | |
508 | } | |
509 | } else { | |
510 | PyErr_Clear(); | |
511 | } | |
512 | if (val) { | |
513 | PyErr_SetString(PyExc_TypeError, "an unsigned char is expected"); | |
514 | } | |
515 | return 0; | |
15afbcd0 RD |
516 | } |
517 | ||
518 | ||
c32bde28 RD |
519 | SWIGSTATICINLINE(unsigned char) |
520 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
15afbcd0 | 521 | { |
c32bde28 RD |
522 | unsigned char v; |
523 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
524 | /* | |
525 | this is needed to make valgrind/purify happier. the other | |
526 | solution is throw an exception, but since this code should work | |
527 | with plain C .... | |
528 | */ | |
529 | memset((void*)&v, 0, sizeof(unsigned char)); | |
15afbcd0 | 530 | } |
c32bde28 | 531 | return v; |
15afbcd0 RD |
532 | } |
533 | ||
c32bde28 | 534 | |
15afbcd0 | 535 | SWIGSTATICINLINE(int) |
c32bde28 | 536 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
15afbcd0 | 537 | { |
c32bde28 RD |
538 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); |
539 | } | |
540 | ||
541 | ||
542 | SWIGSTATICINLINE(unsigned long) | |
543 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
544 | { | |
545 | unsigned long v; | |
546 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
547 | /* | |
548 | this is needed to make valgrind/purify happier. the other | |
549 | solution is throw an exception, but since this code should work | |
550 | with plain C .... | |
551 | */ | |
552 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 553 | } |
c32bde28 RD |
554 | return v; |
555 | } | |
556 | ||
557 | ||
558 | SWIGSTATICINLINE(int) | |
559 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
560 | { | |
561 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
994141e6 RD |
562 | } |
563 | ||
d14a1e28 RD |
564 | PyObject *wxColour_Get(wxColour *self){ |
565 | PyObject* rv = PyTuple_New(3); | |
566 | int red = -1; | |
567 | int green = -1; | |
568 | int blue = -1; | |
569 | if (self->Ok()) { | |
570 | red = self->Red(); | |
571 | green = self->Green(); | |
572 | blue = self->Blue(); | |
573 | } | |
574 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
575 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
576 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
577 | return rv; | |
578 | } | |
b88bce5f RD |
579 | unsigned long wxColour_GetRGB(wxColour *self){ |
580 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
581 | } | |
582 | ||
15afbcd0 | 583 | SWIGSTATICINLINE(PyObject* ) |
c32bde28 | 584 | SWIG_From_unsigned_SS_long(unsigned long value) |
15afbcd0 RD |
585 | { |
586 | return (value > LONG_MAX) ? | |
587 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 588 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
15afbcd0 RD |
589 | } |
590 | ||
591 | ||
c32bde28 RD |
592 | SWIGSTATICINLINE(int) |
593 | SWIG_As_int(PyObject* obj) | |
15afbcd0 | 594 | { |
c32bde28 RD |
595 | int v; |
596 | if (!SWIG_AsVal_int(obj, &v)) { | |
597 | /* | |
598 | this is needed to make valgrind/purify happier. the other | |
599 | solution is throw an exception, but since this code should work | |
600 | with plain C .... | |
601 | */ | |
602 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 603 | } |
c32bde28 | 604 | return v; |
15afbcd0 RD |
605 | } |
606 | ||
c32bde28 | 607 | |
15afbcd0 | 608 | SWIGSTATICINLINE(int) |
c32bde28 | 609 | SWIG_Check_int(PyObject* obj) |
15afbcd0 | 610 | { |
c32bde28 | 611 | return SWIG_AsVal_int(obj, (int*)0); |
994141e6 RD |
612 | } |
613 | ||
614 | ||
c32bde28 | 615 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
616 | PyObject* o2; |
617 | PyObject* o3; | |
c32bde28 | 618 | |
d14a1e28 RD |
619 | if (!target) { |
620 | target = o; | |
621 | } else if (target == Py_None) { | |
622 | Py_DECREF(Py_None); | |
623 | target = o; | |
7e63a440 RD |
624 | } else { |
625 | if (!PyTuple_Check(target)) { | |
626 | o2 = target; | |
627 | target = PyTuple_New(1); | |
628 | PyTuple_SetItem(target, 0, o2); | |
629 | } | |
d14a1e28 RD |
630 | o3 = PyTuple_New(1); |
631 | PyTuple_SetItem(o3, 0, o); | |
632 | ||
633 | o2 = target; | |
634 | target = PySequence_Concat(o2, o3); | |
635 | Py_DECREF(o2); | |
636 | Py_DECREF(o3); | |
637 | } | |
638 | return target; | |
7e63a440 | 639 | } |
d14a1e28 | 640 | |
c32bde28 | 641 | |
d14a1e28 RD |
642 | PyObject *wxPen_GetDashes(wxPen *self){ |
643 | wxDash* dashes; | |
644 | int count = self->GetDashes(&dashes); | |
4f89f6a3 | 645 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 646 | PyObject* retval = PyList_New(0); |
1a10c483 RD |
647 | for (int x=0; x<count; x++) { |
648 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
649 | PyList_Append(retval, pyint); | |
650 | Py_DECREF(pyint); | |
651 | } | |
4f89f6a3 | 652 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
653 | return retval; |
654 | } | |
66c033b4 RD |
655 | void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
656 | bool blocked = wxPyBeginBlockThreads(); | |
657 | int size = PyList_Size(pyDashes); | |
658 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
659 | ||
660 | // black magic warning! The array of wxDashes needs to exist as | |
661 | // long as the pen does because wxPen does not copy the array. So | |
662 | // stick a copy in a Python string object and attach it to _self, | |
663 | // and then call SetDashes with a pointer to that array. Then | |
664 | // when the Python pen object is destroyed the array will be | |
665 | // cleaned up too. | |
666 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
667 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
668 | ||
669 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
670 | delete [] dashes; | |
671 | Py_DECREF(strDashes); | |
672 | wxPyEndBlockThreads(blocked); | |
673 | } | |
ae8162c8 RD |
674 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
675 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 676 | |
d14a1e28 RD |
677 | #include <wx/image.h> |
678 | ||
679 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
680 | char** cArray = NULL; | |
681 | int count; | |
682 | ||
683 | if (!PyList_Check(listOfStrings)) { | |
684 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
685 | return NULL; | |
686 | } | |
687 | count = PyList_Size(listOfStrings); | |
688 | cArray = new char*[count]; | |
689 | ||
690 | for(int x=0; x<count; x++) { | |
691 | // TODO: Need some validation and error checking here | |
692 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
693 | } | |
694 | return cArray; | |
695 | } | |
696 | ||
697 | ||
698 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
699 | char** cArray = NULL; | |
700 | wxBitmap* bmp; | |
701 | ||
702 | cArray = ConvertListOfStrings(listOfStrings); | |
703 | if (! cArray) | |
704 | return NULL; | |
705 | bmp = new wxBitmap(cArray); | |
706 | delete [] cArray; | |
707 | return bmp; | |
708 | } | |
709 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
710 | char* buf; | |
711 | int length; | |
712 | PyString_AsStringAndSize(bits, &buf, &length); | |
713 | return new wxBitmap(buf, width, height, depth); | |
714 | } | |
b2df227b RD |
715 | wxSize wxBitmap_GetSize(wxBitmap *self){ |
716 | wxSize size(self->GetWidth(), self->GetHeight()); | |
717 | return size; | |
718 | } | |
d14a1e28 RD |
719 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
720 | wxMask *mask = new wxMask(*self, colour); | |
721 | self->SetMask(mask); | |
722 | } | |
b2df227b RD |
723 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
724 | self->SetWidth(size.x); | |
725 | self->SetHeight(size.y); | |
726 | } | |
ae8162c8 RD |
727 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
728 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
0482c494 RD |
729 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
730 | if ( !colour.Ok() ) | |
731 | return new wxMask(bitmap, *wxBLACK); | |
732 | else | |
733 | return new wxMask(bitmap, colour); | |
734 | } | |
d14a1e28 RD |
735 | |
736 | #include <wx/iconbndl.h> | |
737 | ||
738 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
739 | wxIcon* icon = new wxIcon(); | |
740 | icon->CopyFromBitmap(bmp); | |
741 | return icon; | |
742 | } | |
743 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
744 | char** cArray = NULL; | |
745 | wxIcon* icon; | |
746 | ||
747 | cArray = ConvertListOfStrings(listOfStrings); | |
748 | if (! cArray) | |
749 | return NULL; | |
750 | icon = new wxIcon(cArray); | |
751 | delete [] cArray; | |
752 | return icon; | |
753 | } | |
754 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
755 | ||
756 | ||
757 | ||
758 | return new wxIconLocation(*filename); | |
759 | ||
760 | } | |
761 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
762 | ||
763 | ||
764 | ||
765 | // do nothing | |
766 | ||
767 | } | |
768 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
769 | ||
770 | ||
771 | ||
772 | return -1; | |
773 | ||
774 | } | |
994141e6 | 775 | |
c32bde28 RD |
776 | SWIGSTATICINLINE(long) |
777 | SWIG_As_long(PyObject* obj) | |
994141e6 | 778 | { |
c32bde28 RD |
779 | long v; |
780 | if (!SWIG_AsVal_long(obj, &v)) { | |
781 | /* | |
782 | this is needed to make valgrind/purify happier. the other | |
783 | solution is throw an exception, but since this code should work | |
784 | with plain C .... | |
785 | */ | |
786 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 787 | } |
c32bde28 RD |
788 | return v; |
789 | } | |
790 | ||
791 | ||
792 | SWIGSTATICINLINE(int) | |
793 | SWIG_Check_long(PyObject* obj) | |
794 | { | |
795 | return SWIG_AsVal_long(obj, (long*)0); | |
994141e6 RD |
796 | } |
797 | ||
15afbcd0 RD |
798 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ |
799 | #ifdef __WXGTK__ | |
ae8162c8 | 800 | wxCHECK_MSG(false, NULL, |
15afbcd0 RD |
801 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); |
802 | #else | |
803 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
804 | #endif | |
d14a1e28 RD |
805 | } |
806 | ||
807 | ||
808 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
809 | (*self) ++; | |
810 | } | |
811 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
812 | return self->operator bool(); | |
813 | } | |
814 | ||
815 | #include <wx/fontutil.h> | |
816 | #include <wx/fontmap.h> | |
817 | #include <wx/fontenum.h> | |
818 | ||
819 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
820 | return self->ToString(); | |
821 | } | |
822 | ||
823 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
824 | static wxNativeEncodingInfo info; | |
825 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
826 | return &info; | |
827 | else | |
828 | return NULL; | |
829 | } | |
830 | ||
831 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
832 | wxFontEncoding alt_enc; | |
833 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
834 | return PyInt_FromLong(alt_enc); | |
835 | else { | |
836 | Py_INCREF(Py_None); | |
837 | return Py_None; | |
838 | } | |
839 | } | |
840 | wxFont *new_wxFont(wxString const &info){ | |
841 | wxNativeFontInfo nfi; | |
842 | nfi.FromString(info); | |
843 | return new wxFont(nfi); | |
844 | } | |
845 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
846 | return wxFont::New(pointSize, family, flags, face, encoding); | |
847 | } | |
b6294124 RD |
848 | wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){ |
849 | return wxFontBase::New(pixelSize, family, | |
850 | style, weight, underlined, | |
851 | face, encoding); | |
852 | } | |
ae8162c8 RD |
853 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
854 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 RD |
855 | |
856 | class wxPyFontEnumerator : public wxFontEnumerator { | |
857 | public: | |
858 | wxPyFontEnumerator() {} | |
859 | ~wxPyFontEnumerator() {} | |
860 | ||
861 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
862 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
863 | ||
864 | PYPRIVATE; | |
865 | }; | |
866 | ||
867 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
868 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
869 | ||
870 | ||
871 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
872 | wxArrayString* arr = self->GetEncodings(); | |
0dcf9a74 RD |
873 | if (arr) |
874 | return wxArrayString2PyList_helper(*arr); | |
875 | else | |
876 | return PyList_New(0); | |
d14a1e28 RD |
877 | } |
878 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
879 | wxArrayString* arr = self->GetFacenames(); | |
0dcf9a74 RD |
880 | if (arr) |
881 | return wxArrayString2PyList_helper(*arr); | |
882 | else | |
883 | return PyList_New(0); | |
d14a1e28 RD |
884 | } |
885 | ||
a68b8331 | 886 | #include <locale.h> |
d14a1e28 | 887 | |
41e2b43e | 888 | wxLocale *new_wxLocale(int language,int flags){ |
a68b8331 | 889 | wxLocale* loc; |
41e2b43e | 890 | if (language == -1) |
a68b8331 | 891 | loc = new wxLocale(); |
41e2b43e | 892 | else |
a68b8331 RD |
893 | loc = new wxLocale(language, flags); |
894 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
895 | // for the floating point conversions and such to work right. | |
896 | #if PY_VERSION_HEX < 0x02040000 | |
897 | setlocale(LC_NUMERIC, "C"); | |
898 | #endif | |
899 | return loc; | |
900 | } | |
901 | bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){ | |
902 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
903 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
904 | // for the floating point conversions and such to work right. | |
905 | #if PY_VERSION_HEX < 0x02040000 | |
906 | setlocale(LC_NUMERIC, "C"); | |
907 | #endif | |
908 | return rc; | |
909 | } | |
910 | bool wxLocale_Init2(wxLocale *self,int language,int flags){ | |
911 | bool rc = self->Init(language, flags); | |
912 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
913 | // for the floating point conversions and such to work right. | |
914 | #if PY_VERSION_HEX < 0x02040000 | |
915 | setlocale(LC_NUMERIC, "C"); | |
916 | #endif | |
917 | return rc; | |
41e2b43e | 918 | } |
d14a1e28 RD |
919 | |
920 | #include "wx/wxPython/pydrawxxx.h" | |
921 | ||
03e37cd5 | 922 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d14a1e28 RD |
923 | wxColour col; |
924 | self->GetPixel(x, y, &col); | |
925 | return col; | |
926 | } | |
03e37cd5 | 927 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d14a1e28 RD |
928 | wxColour col; |
929 | self->GetPixel(pt, &col); | |
930 | return col; | |
931 | } | |
994141e6 | 932 | |
c32bde28 RD |
933 | // See my_fragments.i |
934 | SWIGSTATICINLINE(int) | |
935 | SWIG_AsVal_double(PyObject *obj, double* val) | |
994141e6 | 936 | { |
c32bde28 RD |
937 | if (PyNumber_Check(obj)) { |
938 | if (val) *val = PyFloat_AsDouble(obj); | |
939 | return 1; | |
940 | } | |
69223c70 RD |
941 | else { |
942 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
943 | obj->ob_type->tp_name); | |
944 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
945 | Py_DECREF(errmsg); | |
69223c70 | 946 | } |
c32bde28 | 947 | return 0; |
15afbcd0 RD |
948 | } |
949 | ||
950 | ||
c32bde28 RD |
951 | SWIGSTATICINLINE(double) |
952 | SWIG_As_double(PyObject* obj) | |
15afbcd0 | 953 | { |
c32bde28 RD |
954 | double v; |
955 | if (!SWIG_AsVal_double(obj, &v)) { | |
956 | /* | |
957 | this is needed to make valgrind/purify happier. the other | |
958 | solution is throw an exception, but since this code should work | |
959 | with plain C .... | |
960 | */ | |
961 | memset((void*)&v, 0, sizeof(double)); | |
15afbcd0 | 962 | } |
c32bde28 RD |
963 | return v; |
964 | } | |
965 | ||
966 | ||
967 | SWIGSTATICINLINE(int) | |
968 | SWIG_Check_double(PyObject* obj) | |
969 | { | |
970 | return SWIG_AsVal_double(obj, (double*)0); | |
994141e6 RD |
971 | } |
972 | ||
d14a1e28 RD |
973 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
974 | wxRect rv; | |
975 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
976 | return rv; | |
977 | } | |
c32bde28 | 978 | |
d14a1e28 RD |
979 | wxRect wxDC_GetClippingRect(wxDC *self){ |
980 | wxRect rect; | |
981 | self->GetClippingBox(rect); | |
982 | return rect; | |
983 | } | |
db914595 RD |
984 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
985 | wxArrayInt widths; | |
986 | self->GetPartialTextExtents(text, widths); | |
987 | return widths; | |
988 | } | |
c32bde28 | 989 | |
03e37cd5 RD |
990 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
991 | self->SetLogicalOrigin(point.x, point.y); | |
992 | } | |
993 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
994 | self->SetDeviceOrigin(point.x, point.y); | |
995 | } | |
996 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
997 | self->CalcBoundingBox(point.x, point.y); | |
998 | } | |
d14a1e28 RD |
999 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
1000 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
1001 | } | |
1002 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1003 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
1004 | } | |
1005 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1006 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
1007 | } | |
1008 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1009 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
1010 | } | |
1011 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1012 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
1013 | } | |
1014 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
1015 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
1016 | } | |
1017 | ||
1018 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
1019 | *x1 = dc->MinX(); | |
1020 | *y1 = dc->MinY(); | |
1021 | *x2 = dc->MaxX(); | |
1022 | *y2 = dc->MaxY(); | |
1023 | } | |
1024 | ||
1025 | ||
b88bce5f | 1026 | #include <wx/dcbuffer.h> |
b88bce5f | 1027 | |
b88bce5f | 1028 | |
d14a1e28 RD |
1029 | #include <wx/dcps.h> |
1030 | ||
1031 | ||
1032 | class wxMetaFile : public wxObject { | |
1033 | public: | |
1034 | wxMetaFile(const wxString&) | |
39f61e25 | 1035 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1036 | }; |
1037 | ||
1038 | class wxMetaFileDC : public wxClientDC { | |
1039 | public: | |
1040 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 1041 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1042 | }; |
1043 | ||
1044 | ||
1045 | ||
1046 | class wxPrinterDC : public wxClientDC { | |
1047 | public: | |
1048 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 1049 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 1050 | |
d14a1e28 | 1051 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 1052 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1053 | }; |
1054 | ||
1055 | ||
1056 | ||
1057 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1058 | self->AddColour(name, wxColour(red, green, blue)); | |
1059 | } | |
1060 | ||
d14a1e28 RD |
1061 | #include <wx/effects.h> |
1062 | ||
1063 | #ifdef __cplusplus | |
1064 | extern "C" { | |
1065 | #endif | |
c32bde28 | 1066 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1067 | PyObject *resultobj; |
1068 | wxGDIObject *result; | |
1069 | char *kwnames[] = { | |
1070 | NULL | |
1071 | }; | |
1072 | ||
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1074 | { | |
e3b71cb8 | 1075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1077 | result = (wxGDIObject *)new wxGDIObject(); | |
1078 | ||
1079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1081 | } |
15afbcd0 | 1082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
1083 | return resultobj; |
1084 | fail: | |
1085 | return NULL; | |
1086 | } | |
1087 | ||
1088 | ||
c32bde28 | 1089 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1090 | PyObject *resultobj; |
1091 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1092 | PyObject * obj0 = 0 ; | |
1093 | char *kwnames[] = { | |
1094 | (char *) "self", NULL | |
1095 | }; | |
1096 | ||
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1100 | { |
1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1102 | delete arg1; | |
1103 | ||
1104 | wxPyEndAllowThreads(__tstate); | |
1105 | if (PyErr_Occurred()) SWIG_fail; | |
1106 | } | |
1107 | Py_INCREF(Py_None); resultobj = Py_None; | |
1108 | return resultobj; | |
1109 | fail: | |
1110 | return NULL; | |
1111 | } | |
1112 | ||
1113 | ||
c32bde28 | 1114 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1115 | PyObject *resultobj; |
1116 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1117 | bool result; | |
1118 | PyObject * obj0 = 0 ; | |
1119 | char *kwnames[] = { | |
1120 | (char *) "self", NULL | |
1121 | }; | |
1122 | ||
1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1126 | { |
1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1128 | result = (bool)(arg1)->GetVisible(); | |
1129 | ||
1130 | wxPyEndAllowThreads(__tstate); | |
1131 | if (PyErr_Occurred()) SWIG_fail; | |
1132 | } | |
4f89f6a3 RD |
1133 | { |
1134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1135 | } | |
d14a1e28 RD |
1136 | return resultobj; |
1137 | fail: | |
1138 | return NULL; | |
1139 | } | |
1140 | ||
1141 | ||
c32bde28 | 1142 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1143 | PyObject *resultobj; |
1144 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1145 | bool arg2 ; | |
1146 | PyObject * obj0 = 0 ; | |
1147 | PyObject * obj1 = 0 ; | |
1148 | char *kwnames[] = { | |
1149 | (char *) "self",(char *) "visible", NULL | |
1150 | }; | |
1151 | ||
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1155 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 1156 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1157 | { |
1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1159 | (arg1)->SetVisible(arg2); | |
1160 | ||
1161 | wxPyEndAllowThreads(__tstate); | |
1162 | if (PyErr_Occurred()) SWIG_fail; | |
1163 | } | |
1164 | Py_INCREF(Py_None); resultobj = Py_None; | |
1165 | return resultobj; | |
1166 | fail: | |
1167 | return NULL; | |
1168 | } | |
1169 | ||
1170 | ||
c32bde28 | 1171 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1172 | PyObject *resultobj; |
1173 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1174 | bool result; | |
1175 | PyObject * obj0 = 0 ; | |
1176 | char *kwnames[] = { | |
1177 | (char *) "self", NULL | |
1178 | }; | |
1179 | ||
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1183 | { |
1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1185 | result = (bool)(arg1)->IsNull(); | |
1186 | ||
1187 | wxPyEndAllowThreads(__tstate); | |
1188 | if (PyErr_Occurred()) SWIG_fail; | |
1189 | } | |
4f89f6a3 RD |
1190 | { |
1191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1192 | } | |
d14a1e28 RD |
1193 | return resultobj; |
1194 | fail: | |
1195 | return NULL; | |
1196 | } | |
1197 | ||
1198 | ||
c32bde28 | 1199 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1200 | PyObject *obj; |
1201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1202 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1203 | Py_INCREF(obj); | |
1204 | return Py_BuildValue((char *)""); | |
1205 | } | |
c32bde28 | 1206 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 1207 | PyObject *resultobj; |
41e2b43e RD |
1208 | byte arg1 = (byte) 0 ; |
1209 | byte arg2 = (byte) 0 ; | |
1210 | byte arg3 = (byte) 0 ; | |
d14a1e28 RD |
1211 | wxColour *result; |
1212 | PyObject * obj0 = 0 ; | |
1213 | PyObject * obj1 = 0 ; | |
1214 | PyObject * obj2 = 0 ; | |
1215 | char *kwnames[] = { | |
1216 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1217 | }; | |
1218 | ||
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1220 | if (obj0) { | |
c32bde28 | 1221 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); |
15afbcd0 | 1222 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1223 | } |
1224 | if (obj1) { | |
c32bde28 | 1225 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1226 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1227 | } |
1228 | if (obj2) { | |
c32bde28 | 1229 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1230 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1231 | } |
1232 | { | |
1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1234 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1235 | ||
1236 | wxPyEndAllowThreads(__tstate); | |
1237 | if (PyErr_Occurred()) SWIG_fail; | |
1238 | } | |
15afbcd0 | 1239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1240 | return resultobj; |
1241 | fail: | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
c32bde28 | 1246 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1247 | PyObject *resultobj; |
1248 | wxString *arg1 = 0 ; | |
1249 | wxColour *result; | |
ae8162c8 | 1250 | bool temp1 = false ; |
d14a1e28 RD |
1251 | PyObject * obj0 = 0 ; |
1252 | char *kwnames[] = { | |
1253 | (char *) "colorName", NULL | |
1254 | }; | |
1255 | ||
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1257 | { | |
1258 | arg1 = wxString_in_helper(obj0); | |
1259 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 1260 | temp1 = true; |
d14a1e28 RD |
1261 | } |
1262 | { | |
eab6e45e | 1263 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1265 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1266 | ||
1267 | wxPyEndAllowThreads(__tstate); | |
1268 | if (PyErr_Occurred()) SWIG_fail; | |
1269 | } | |
15afbcd0 | 1270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1271 | { |
1272 | if (temp1) | |
1273 | delete arg1; | |
1274 | } | |
1275 | return resultobj; | |
1276 | fail: | |
1277 | { | |
1278 | if (temp1) | |
1279 | delete arg1; | |
1280 | } | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
c32bde28 | 1285 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1286 | PyObject *resultobj; |
1287 | unsigned long arg1 ; | |
1288 | wxColour *result; | |
1289 | PyObject * obj0 = 0 ; | |
1290 | char *kwnames[] = { | |
1291 | (char *) "colRGB", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
c32bde28 | 1295 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
15afbcd0 | 1296 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1297 | { |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1299 | result = (wxColour *)new wxColour(arg1); | |
1300 | ||
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
15afbcd0 | 1304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1305 | return resultobj; |
1306 | fail: | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
c32bde28 | 1311 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1312 | PyObject *resultobj; |
1313 | wxColour *arg1 = (wxColour *) 0 ; | |
1314 | PyObject * obj0 = 0 ; | |
1315 | char *kwnames[] = { | |
1316 | (char *) "self", NULL | |
1317 | }; | |
1318 | ||
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1322 | { |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | delete arg1; | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
1329 | Py_INCREF(Py_None); resultobj = Py_None; | |
1330 | return resultobj; | |
1331 | fail: | |
1332 | return NULL; | |
1333 | } | |
1334 | ||
1335 | ||
c32bde28 | 1336 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1337 | PyObject *resultobj; |
1338 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1339 | byte result; |
d14a1e28 RD |
1340 | PyObject * obj0 = 0 ; |
1341 | char *kwnames[] = { | |
1342 | (char *) "self", NULL | |
1343 | }; | |
1344 | ||
1345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1348 | { |
1349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1350 | result = (byte)(arg1)->Red(); |
d14a1e28 RD |
1351 | |
1352 | wxPyEndAllowThreads(__tstate); | |
1353 | if (PyErr_Occurred()) SWIG_fail; | |
1354 | } | |
c32bde28 | 1355 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
1356 | return resultobj; |
1357 | fail: | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
c32bde28 | 1362 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1363 | PyObject *resultobj; |
1364 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1365 | byte result; |
d14a1e28 RD |
1366 | PyObject * obj0 = 0 ; |
1367 | char *kwnames[] = { | |
1368 | (char *) "self", NULL | |
1369 | }; | |
1370 | ||
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1374 | { |
1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1376 | result = (byte)(arg1)->Green(); |
d14a1e28 RD |
1377 | |
1378 | wxPyEndAllowThreads(__tstate); | |
1379 | if (PyErr_Occurred()) SWIG_fail; | |
1380 | } | |
c32bde28 | 1381 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
1382 | return resultobj; |
1383 | fail: | |
1384 | return NULL; | |
1385 | } | |
1386 | ||
1387 | ||
c32bde28 | 1388 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1389 | PyObject *resultobj; |
1390 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1391 | byte result; |
d14a1e28 RD |
1392 | PyObject * obj0 = 0 ; |
1393 | char *kwnames[] = { | |
1394 | (char *) "self", NULL | |
1395 | }; | |
1396 | ||
1397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1400 | { |
1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1402 | result = (byte)(arg1)->Blue(); |
d14a1e28 RD |
1403 | |
1404 | wxPyEndAllowThreads(__tstate); | |
1405 | if (PyErr_Occurred()) SWIG_fail; | |
1406 | } | |
c32bde28 | 1407 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
1408 | return resultobj; |
1409 | fail: | |
1410 | return NULL; | |
1411 | } | |
1412 | ||
1413 | ||
c32bde28 | 1414 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1415 | PyObject *resultobj; |
1416 | wxColour *arg1 = (wxColour *) 0 ; | |
1417 | bool result; | |
1418 | PyObject * obj0 = 0 ; | |
1419 | char *kwnames[] = { | |
1420 | (char *) "self", NULL | |
1421 | }; | |
1422 | ||
1423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1426 | { |
1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1428 | result = (bool)(arg1)->Ok(); | |
1429 | ||
1430 | wxPyEndAllowThreads(__tstate); | |
1431 | if (PyErr_Occurred()) SWIG_fail; | |
1432 | } | |
4f89f6a3 RD |
1433 | { |
1434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1435 | } | |
d14a1e28 RD |
1436 | return resultobj; |
1437 | fail: | |
1438 | return NULL; | |
1439 | } | |
1440 | ||
1441 | ||
c32bde28 | 1442 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1443 | PyObject *resultobj; |
1444 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e RD |
1445 | byte arg2 ; |
1446 | byte arg3 ; | |
1447 | byte arg4 ; | |
d14a1e28 RD |
1448 | PyObject * obj0 = 0 ; |
1449 | PyObject * obj1 = 0 ; | |
1450 | PyObject * obj2 = 0 ; | |
1451 | PyObject * obj3 = 0 ; | |
1452 | char *kwnames[] = { | |
1453 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1454 | }; | |
1455 | ||
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1459 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1460 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1461 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1462 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1463 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 1464 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1465 | { |
1466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1467 | (arg1)->Set(arg2,arg3,arg4); | |
1468 | ||
1469 | wxPyEndAllowThreads(__tstate); | |
1470 | if (PyErr_Occurred()) SWIG_fail; | |
1471 | } | |
1472 | Py_INCREF(Py_None); resultobj = Py_None; | |
1473 | return resultobj; | |
1474 | fail: | |
1475 | return NULL; | |
1476 | } | |
1477 | ||
1478 | ||
c32bde28 | 1479 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1480 | PyObject *resultobj; |
1481 | wxColour *arg1 = (wxColour *) 0 ; | |
1482 | unsigned long arg2 ; | |
1483 | PyObject * obj0 = 0 ; | |
1484 | PyObject * obj1 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "self",(char *) "colRGB", NULL | |
1487 | }; | |
1488 | ||
c9c7117a | 1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1492 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 1493 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1494 | { |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | (arg1)->Set(arg2); | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
1499 | if (PyErr_Occurred()) SWIG_fail; | |
1500 | } | |
1501 | Py_INCREF(Py_None); resultobj = Py_None; | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
c32bde28 | 1508 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1509 | PyObject *resultobj; |
1510 | wxColour *arg1 = (wxColour *) 0 ; | |
1511 | wxString *arg2 = 0 ; | |
ae8162c8 | 1512 | bool temp2 = false ; |
b88bce5f RD |
1513 | PyObject * obj0 = 0 ; |
1514 | PyObject * obj1 = 0 ; | |
1515 | char *kwnames[] = { | |
1516 | (char *) "self",(char *) "colourName", NULL | |
1517 | }; | |
1518 | ||
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1522 | { |
1523 | arg2 = wxString_in_helper(obj1); | |
1524 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1525 | temp2 = true; |
b88bce5f RD |
1526 | } |
1527 | { | |
1528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1529 | (arg1)->InitFromName((wxString const &)*arg2); | |
1530 | ||
1531 | wxPyEndAllowThreads(__tstate); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | } | |
1534 | Py_INCREF(Py_None); resultobj = Py_None; | |
1535 | { | |
1536 | if (temp2) | |
1537 | delete arg2; | |
1538 | } | |
1539 | return resultobj; | |
1540 | fail: | |
1541 | { | |
1542 | if (temp2) | |
1543 | delete arg2; | |
1544 | } | |
1545 | return NULL; | |
1546 | } | |
1547 | ||
1548 | ||
c32bde28 | 1549 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1550 | PyObject *resultobj; |
1551 | wxColour *arg1 = (wxColour *) 0 ; | |
1552 | long result; | |
1553 | PyObject * obj0 = 0 ; | |
1554 | char *kwnames[] = { | |
1555 | (char *) "self", NULL | |
1556 | }; | |
1557 | ||
1558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1561 | { |
1562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1563 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1564 | ||
1565 | wxPyEndAllowThreads(__tstate); | |
1566 | if (PyErr_Occurred()) SWIG_fail; | |
1567 | } | |
c32bde28 | 1568 | resultobj = SWIG_From_long((long)result); |
b88bce5f RD |
1569 | return resultobj; |
1570 | fail: | |
1571 | return NULL; | |
1572 | } | |
1573 | ||
1574 | ||
c32bde28 | 1575 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1576 | PyObject *resultobj; |
1577 | wxColour *arg1 = (wxColour *) 0 ; | |
1578 | wxColour *arg2 = 0 ; | |
1579 | bool result; | |
1580 | wxColour temp2 ; | |
1581 | PyObject * obj0 = 0 ; | |
1582 | PyObject * obj1 = 0 ; | |
1583 | char *kwnames[] = { | |
1584 | (char *) "self",(char *) "colour", NULL | |
1585 | }; | |
1586 | ||
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1590 | { |
1591 | arg2 = &temp2; | |
1592 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1593 | } | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | } | |
4f89f6a3 RD |
1601 | { |
1602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1603 | } | |
d14a1e28 RD |
1604 | return resultobj; |
1605 | fail: | |
1606 | return NULL; | |
1607 | } | |
1608 | ||
1609 | ||
c32bde28 | 1610 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1611 | PyObject *resultobj; |
1612 | wxColour *arg1 = (wxColour *) 0 ; | |
1613 | wxColour *arg2 = 0 ; | |
1614 | bool result; | |
1615 | wxColour temp2 ; | |
1616 | PyObject * obj0 = 0 ; | |
1617 | PyObject * obj1 = 0 ; | |
1618 | char *kwnames[] = { | |
1619 | (char *) "self",(char *) "colour", NULL | |
1620 | }; | |
1621 | ||
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1625 | { |
1626 | arg2 = &temp2; | |
1627 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1628 | } | |
1629 | { | |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
4f89f6a3 RD |
1636 | { |
1637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1638 | } | |
d14a1e28 RD |
1639 | return resultobj; |
1640 | fail: | |
1641 | return NULL; | |
1642 | } | |
1643 | ||
1644 | ||
c32bde28 | 1645 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
1646 | PyObject *resultobj; |
1647 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1648 | PyObject *result; |
c9c7117a | 1649 | PyObject * obj0 = 0 ; |
c9c7117a | 1650 | char *kwnames[] = { |
b88bce5f | 1651 | (char *) "self", NULL |
c9c7117a RD |
1652 | }; |
1653 | ||
b88bce5f | 1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
1657 | { |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1659 | result = (PyObject *)wxColour_Get(arg1); |
c9c7117a RD |
1660 | |
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
b88bce5f | 1664 | resultobj = result; |
c9c7117a RD |
1665 | return resultobj; |
1666 | fail: | |
c9c7117a RD |
1667 | return NULL; |
1668 | } | |
1669 | ||
1670 | ||
c32bde28 | 1671 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1672 | PyObject *resultobj; |
1673 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1674 | unsigned long result; |
d14a1e28 RD |
1675 | PyObject * obj0 = 0 ; |
1676 | char *kwnames[] = { | |
1677 | (char *) "self", NULL | |
1678 | }; | |
1679 | ||
b88bce5f | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1683 | { |
1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1685 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1686 | |
1687 | wxPyEndAllowThreads(__tstate); | |
1688 | if (PyErr_Occurred()) SWIG_fail; | |
1689 | } | |
c32bde28 | 1690 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
1691 | return resultobj; |
1692 | fail: | |
1693 | return NULL; | |
1694 | } | |
1695 | ||
1696 | ||
c32bde28 | 1697 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1698 | PyObject *obj; |
1699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1700 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1701 | Py_INCREF(obj); | |
1702 | return Py_BuildValue((char *)""); | |
1703 | } | |
c32bde28 | 1704 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1705 | PyObject *resultobj; |
1706 | int arg1 ; | |
1707 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1708 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1709 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1710 | wxPalette *result; | |
994141e6 | 1711 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1712 | PyObject * obj1 = 0 ; |
1713 | PyObject * obj2 = 0 ; | |
1714 | PyObject * obj3 = 0 ; | |
1715 | char *kwnames[] = { | |
1716 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1717 | }; | |
1718 | ||
994141e6 | 1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 1720 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 RD |
1721 | if (PyErr_Occurred()) SWIG_fail; |
1722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1724 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1726 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 1728 | { |
e3b71cb8 | 1729 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1731 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1734 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1735 | } |
15afbcd0 | 1736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1737 | return resultobj; |
1738 | fail: | |
1739 | return NULL; | |
1740 | } | |
1741 | ||
1742 | ||
c32bde28 | 1743 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1744 | PyObject *resultobj; |
1745 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1746 | PyObject * obj0 = 0 ; | |
1747 | char *kwnames[] = { | |
1748 | (char *) "self", NULL | |
1749 | }; | |
1750 | ||
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1754 | { |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | delete arg1; | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
1761 | Py_INCREF(Py_None); resultobj = Py_None; | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
c32bde28 | 1768 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1769 | PyObject *resultobj; |
1770 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1771 | byte arg2 ; | |
1772 | byte arg3 ; | |
1773 | byte arg4 ; | |
1774 | int result; | |
1775 | PyObject * obj0 = 0 ; | |
1776 | PyObject * obj1 = 0 ; | |
1777 | PyObject * obj2 = 0 ; | |
1778 | PyObject * obj3 = 0 ; | |
1779 | char *kwnames[] = { | |
1780 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1781 | }; | |
1782 | ||
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1786 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1787 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1788 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1789 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1790 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 1791 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1792 | { |
1793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1794 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1795 | ||
1796 | wxPyEndAllowThreads(__tstate); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
c32bde28 | 1799 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
1800 | return resultobj; |
1801 | fail: | |
1802 | return NULL; | |
1803 | } | |
1804 | ||
1805 | ||
c32bde28 | 1806 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1807 | PyObject *resultobj; |
1808 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1809 | int arg2 ; | |
1810 | byte *arg3 = (byte *) 0 ; | |
1811 | byte *arg4 = (byte *) 0 ; | |
1812 | byte *arg5 = (byte *) 0 ; | |
1813 | bool result; | |
1814 | byte temp3 ; | |
c32bde28 | 1815 | int res3 = 0 ; |
d14a1e28 | 1816 | byte temp4 ; |
c32bde28 | 1817 | int res4 = 0 ; |
d14a1e28 | 1818 | byte temp5 ; |
c32bde28 | 1819 | int res5 = 0 ; |
d14a1e28 | 1820 | PyObject * obj0 = 0 ; |
994141e6 | 1821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1822 | char *kwnames[] = { |
1823 | (char *) "self",(char *) "pixel", NULL | |
1824 | }; | |
1825 | ||
c32bde28 RD |
1826 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
1827 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1828 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
994141e6 | 1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1832 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 1833 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1834 | { |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
4f89f6a3 RD |
1841 | { |
1842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1843 | } | |
c32bde28 RD |
1844 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
1845 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1846 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1847 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1848 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1849 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
d14a1e28 RD |
1850 | return resultobj; |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
c32bde28 | 1856 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1857 | PyObject *resultobj; |
1858 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1859 | bool result; | |
1860 | PyObject * obj0 = 0 ; | |
1861 | char *kwnames[] = { | |
1862 | (char *) "self", NULL | |
1863 | }; | |
1864 | ||
1865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1868 | { |
1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1870 | result = (bool)(arg1)->Ok(); | |
1871 | ||
1872 | wxPyEndAllowThreads(__tstate); | |
1873 | if (PyErr_Occurred()) SWIG_fail; | |
1874 | } | |
4f89f6a3 RD |
1875 | { |
1876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1877 | } | |
d14a1e28 RD |
1878 | return resultobj; |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
c32bde28 | 1884 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1885 | PyObject *obj; |
1886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1887 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1888 | Py_INCREF(obj); | |
1889 | return Py_BuildValue((char *)""); | |
1890 | } | |
c32bde28 | 1891 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1892 | PyObject *resultobj; |
1893 | wxColour *arg1 = 0 ; | |
1894 | int arg2 = (int) 1 ; | |
1895 | int arg3 = (int) wxSOLID ; | |
1896 | wxPen *result; | |
1897 | wxColour temp1 ; | |
1898 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1899 | PyObject * obj1 = 0 ; |
1900 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1901 | char *kwnames[] = { |
1902 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1903 | }; | |
1904 | ||
994141e6 | 1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1906 | { |
1907 | arg1 = &temp1; | |
1908 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1909 | } | |
994141e6 | 1910 | if (obj1) { |
c32bde28 | 1911 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 1912 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
1913 | } |
1914 | if (obj2) { | |
c32bde28 | 1915 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 1916 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1917 | } |
d14a1e28 | 1918 | { |
e3b71cb8 | 1919 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1921 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1924 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1925 | } |
15afbcd0 | 1926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1927 | return resultobj; |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
c32bde28 | 1933 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1934 | PyObject *resultobj; |
1935 | wxPen *arg1 = (wxPen *) 0 ; | |
1936 | PyObject * obj0 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1944 | { |
1945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1946 | delete arg1; | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
1951 | Py_INCREF(Py_None); resultobj = Py_None; | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
c32bde28 | 1958 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1959 | PyObject *resultobj; |
1960 | wxPen *arg1 = (wxPen *) 0 ; | |
1961 | int result; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | char *kwnames[] = { | |
1964 | (char *) "self", NULL | |
1965 | }; | |
1966 | ||
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1970 | { |
1971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1972 | result = (int)(arg1)->GetCap(); | |
1973 | ||
1974 | wxPyEndAllowThreads(__tstate); | |
1975 | if (PyErr_Occurred()) SWIG_fail; | |
1976 | } | |
c32bde28 | 1977 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
1978 | return resultobj; |
1979 | fail: | |
1980 | return NULL; | |
1981 | } | |
1982 | ||
1983 | ||
c32bde28 | 1984 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1985 | PyObject *resultobj; |
1986 | wxPen *arg1 = (wxPen *) 0 ; | |
1987 | wxColour result; | |
1988 | PyObject * obj0 = 0 ; | |
1989 | char *kwnames[] = { | |
1990 | (char *) "self", NULL | |
1991 | }; | |
1992 | ||
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1996 | { |
1997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1998 | result = (arg1)->GetColour(); | |
1999 | ||
2000 | wxPyEndAllowThreads(__tstate); | |
2001 | if (PyErr_Occurred()) SWIG_fail; | |
2002 | } | |
2003 | { | |
2004 | wxColour * resultptr; | |
2005 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 2006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2007 | } |
2008 | return resultobj; | |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
c32bde28 | 2014 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2015 | PyObject *resultobj; |
2016 | wxPen *arg1 = (wxPen *) 0 ; | |
2017 | int result; | |
2018 | PyObject * obj0 = 0 ; | |
2019 | char *kwnames[] = { | |
2020 | (char *) "self", NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2026 | { |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2028 | result = (int)(arg1)->GetJoin(); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
2031 | if (PyErr_Occurred()) SWIG_fail; | |
2032 | } | |
c32bde28 | 2033 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2034 | return resultobj; |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
c32bde28 | 2040 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2041 | PyObject *resultobj; |
2042 | wxPen *arg1 = (wxPen *) 0 ; | |
2043 | int result; | |
2044 | PyObject * obj0 = 0 ; | |
2045 | char *kwnames[] = { | |
2046 | (char *) "self", NULL | |
2047 | }; | |
2048 | ||
2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2052 | { |
2053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2054 | result = (int)(arg1)->GetStyle(); | |
2055 | ||
2056 | wxPyEndAllowThreads(__tstate); | |
2057 | if (PyErr_Occurred()) SWIG_fail; | |
2058 | } | |
c32bde28 | 2059 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2060 | return resultobj; |
2061 | fail: | |
2062 | return NULL; | |
2063 | } | |
2064 | ||
2065 | ||
c32bde28 | 2066 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2067 | PyObject *resultobj; |
2068 | wxPen *arg1 = (wxPen *) 0 ; | |
2069 | int result; | |
2070 | PyObject * obj0 = 0 ; | |
2071 | char *kwnames[] = { | |
2072 | (char *) "self", NULL | |
2073 | }; | |
2074 | ||
2075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2078 | { |
2079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2080 | result = (int)(arg1)->GetWidth(); | |
2081 | ||
2082 | wxPyEndAllowThreads(__tstate); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | } | |
c32bde28 | 2085 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2086 | return resultobj; |
2087 | fail: | |
2088 | return NULL; | |
2089 | } | |
2090 | ||
2091 | ||
c32bde28 | 2092 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2093 | PyObject *resultobj; |
2094 | wxPen *arg1 = (wxPen *) 0 ; | |
2095 | bool result; | |
2096 | PyObject * obj0 = 0 ; | |
2097 | char *kwnames[] = { | |
2098 | (char *) "self", NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2104 | { |
2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2106 | result = (bool)(arg1)->Ok(); | |
2107 | ||
2108 | wxPyEndAllowThreads(__tstate); | |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
2110 | } | |
4f89f6a3 RD |
2111 | { |
2112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2113 | } | |
d14a1e28 RD |
2114 | return resultobj; |
2115 | fail: | |
2116 | return NULL; | |
2117 | } | |
2118 | ||
2119 | ||
c32bde28 | 2120 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2121 | PyObject *resultobj; |
2122 | wxPen *arg1 = (wxPen *) 0 ; | |
2123 | int arg2 ; | |
2124 | PyObject * obj0 = 0 ; | |
994141e6 | 2125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2126 | char *kwnames[] = { |
2127 | (char *) "self",(char *) "cap_style", NULL | |
2128 | }; | |
2129 | ||
994141e6 | 2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2133 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2134 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2135 | { |
2136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2137 | (arg1)->SetCap(arg2); | |
2138 | ||
2139 | wxPyEndAllowThreads(__tstate); | |
2140 | if (PyErr_Occurred()) SWIG_fail; | |
2141 | } | |
2142 | Py_INCREF(Py_None); resultobj = Py_None; | |
2143 | return resultobj; | |
2144 | fail: | |
2145 | return NULL; | |
2146 | } | |
2147 | ||
2148 | ||
c32bde28 | 2149 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2150 | PyObject *resultobj; |
2151 | wxPen *arg1 = (wxPen *) 0 ; | |
2152 | wxColour *arg2 = 0 ; | |
2153 | wxColour temp2 ; | |
2154 | PyObject * obj0 = 0 ; | |
2155 | PyObject * obj1 = 0 ; | |
2156 | char *kwnames[] = { | |
2157 | (char *) "self",(char *) "colour", NULL | |
2158 | }; | |
2159 | ||
2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2163 | { |
2164 | arg2 = &temp2; | |
2165 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2166 | } | |
2167 | { | |
2168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2169 | (arg1)->SetColour(*arg2); | |
2170 | ||
2171 | wxPyEndAllowThreads(__tstate); | |
2172 | if (PyErr_Occurred()) SWIG_fail; | |
2173 | } | |
2174 | Py_INCREF(Py_None); resultobj = Py_None; | |
2175 | return resultobj; | |
2176 | fail: | |
2177 | return NULL; | |
2178 | } | |
2179 | ||
2180 | ||
c32bde28 | 2181 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2182 | PyObject *resultobj; |
2183 | wxPen *arg1 = (wxPen *) 0 ; | |
2184 | int arg2 ; | |
2185 | PyObject * obj0 = 0 ; | |
994141e6 | 2186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2187 | char *kwnames[] = { |
2188 | (char *) "self",(char *) "join_style", NULL | |
2189 | }; | |
2190 | ||
994141e6 | 2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2194 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2195 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2196 | { |
2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2198 | (arg1)->SetJoin(arg2); | |
2199 | ||
2200 | wxPyEndAllowThreads(__tstate); | |
2201 | if (PyErr_Occurred()) SWIG_fail; | |
2202 | } | |
2203 | Py_INCREF(Py_None); resultobj = Py_None; | |
2204 | return resultobj; | |
2205 | fail: | |
2206 | return NULL; | |
2207 | } | |
2208 | ||
2209 | ||
c32bde28 | 2210 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2211 | PyObject *resultobj; |
2212 | wxPen *arg1 = (wxPen *) 0 ; | |
2213 | int arg2 ; | |
2214 | PyObject * obj0 = 0 ; | |
994141e6 | 2215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2216 | char *kwnames[] = { |
2217 | (char *) "self",(char *) "style", NULL | |
2218 | }; | |
2219 | ||
994141e6 | 2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2223 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2224 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2225 | { |
2226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2227 | (arg1)->SetStyle(arg2); | |
2228 | ||
2229 | wxPyEndAllowThreads(__tstate); | |
2230 | if (PyErr_Occurred()) SWIG_fail; | |
2231 | } | |
2232 | Py_INCREF(Py_None); resultobj = Py_None; | |
2233 | return resultobj; | |
2234 | fail: | |
2235 | return NULL; | |
2236 | } | |
2237 | ||
2238 | ||
c32bde28 | 2239 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2240 | PyObject *resultobj; |
2241 | wxPen *arg1 = (wxPen *) 0 ; | |
2242 | int arg2 ; | |
2243 | PyObject * obj0 = 0 ; | |
994141e6 | 2244 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2245 | char *kwnames[] = { |
2246 | (char *) "self",(char *) "width", NULL | |
2247 | }; | |
2248 | ||
994141e6 | 2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2252 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2253 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2254 | { |
2255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2256 | (arg1)->SetWidth(arg2); | |
2257 | ||
2258 | wxPyEndAllowThreads(__tstate); | |
2259 | if (PyErr_Occurred()) SWIG_fail; | |
2260 | } | |
2261 | Py_INCREF(Py_None); resultobj = Py_None; | |
2262 | return resultobj; | |
2263 | fail: | |
2264 | return NULL; | |
2265 | } | |
2266 | ||
2267 | ||
c32bde28 | 2268 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2269 | PyObject *resultobj; |
2270 | wxPen *arg1 = (wxPen *) 0 ; | |
2271 | int arg2 ; | |
2272 | wxDash *arg3 = (wxDash *) 0 ; | |
2273 | PyObject * obj0 = 0 ; | |
2274 | PyObject * obj1 = 0 ; | |
2275 | char *kwnames[] = { | |
2276 | (char *) "self",(char *) "dashes", NULL | |
2277 | }; | |
2278 | ||
2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2282 | { |
2283 | arg2 = PyList_Size(obj1); | |
2284 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2285 | if (arg3 == NULL) SWIG_fail; | |
2286 | } | |
2287 | { | |
2288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2289 | (arg1)->SetDashes(arg2,arg3); | |
2290 | ||
2291 | wxPyEndAllowThreads(__tstate); | |
2292 | if (PyErr_Occurred()) SWIG_fail; | |
2293 | } | |
2294 | Py_INCREF(Py_None); resultobj = Py_None; | |
2295 | { | |
2296 | if (arg3) delete [] arg3; | |
2297 | } | |
2298 | return resultobj; | |
2299 | fail: | |
2300 | { | |
2301 | if (arg3) delete [] arg3; | |
2302 | } | |
2303 | return NULL; | |
2304 | } | |
2305 | ||
2306 | ||
c32bde28 | 2307 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2308 | PyObject *resultobj; |
2309 | wxPen *arg1 = (wxPen *) 0 ; | |
2310 | PyObject *result; | |
2311 | PyObject * obj0 = 0 ; | |
2312 | char *kwnames[] = { | |
2313 | (char *) "self", NULL | |
2314 | }; | |
2315 | ||
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2319 | { |
2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2321 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2322 | ||
2323 | wxPyEndAllowThreads(__tstate); | |
2324 | if (PyErr_Occurred()) SWIG_fail; | |
2325 | } | |
2326 | resultobj = result; | |
2327 | return resultobj; | |
2328 | fail: | |
2329 | return NULL; | |
2330 | } | |
2331 | ||
2332 | ||
c32bde28 | 2333 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
22faec7d RD |
2334 | PyObject *resultobj; |
2335 | wxPen *arg1 = (wxPen *) 0 ; | |
66c033b4 RD |
2336 | PyObject *arg2 = (PyObject *) 0 ; |
2337 | PyObject *arg3 = (PyObject *) 0 ; | |
22faec7d RD |
2338 | PyObject * obj0 = 0 ; |
2339 | PyObject * obj1 = 0 ; | |
66c033b4 | 2340 | PyObject * obj2 = 0 ; |
22faec7d | 2341 | char *kwnames[] = { |
66c033b4 | 2342 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
22faec7d RD |
2343 | }; |
2344 | ||
66c033b4 | 2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
66c033b4 RD |
2348 | arg2 = obj1; |
2349 | arg3 = obj2; | |
3adfb63b RD |
2350 | { |
2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2352 | wxPen__SetDashes(arg1,arg2,arg3); |
3adfb63b RD |
2353 | |
2354 | wxPyEndAllowThreads(__tstate); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | } | |
66c033b4 | 2357 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
2358 | return resultobj; |
2359 | fail: | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
c32bde28 | 2364 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
2365 | PyObject *resultobj; |
2366 | wxPen *arg1 = (wxPen *) 0 ; | |
2367 | int result; | |
2368 | PyObject * obj0 = 0 ; | |
2369 | char *kwnames[] = { | |
2370 | (char *) "self", NULL | |
2371 | }; | |
2372 | ||
2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
2376 | { |
2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2378 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2379 | ||
2380 | wxPyEndAllowThreads(__tstate); | |
2381 | if (PyErr_Occurred()) SWIG_fail; | |
2382 | } | |
c32bde28 | 2383 | resultobj = SWIG_From_int((int)result); |
c9c7117a RD |
2384 | return resultobj; |
2385 | fail: | |
2386 | return NULL; | |
2387 | } | |
2388 | ||
2389 | ||
c32bde28 | 2390 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2391 | PyObject *resultobj; |
66c033b4 RD |
2392 | wxPen *arg1 = (wxPen *) 0 ; |
2393 | wxPen *arg2 = (wxPen *) 0 ; | |
2394 | bool result; | |
d14a1e28 | 2395 | PyObject * obj0 = 0 ; |
994141e6 | 2396 | PyObject * obj1 = 0 ; |
d14a1e28 | 2397 | char *kwnames[] = { |
66c033b4 | 2398 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2399 | }; |
2400 | ||
66c033b4 RD |
2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2406 | { |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2408 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2409 | |
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
d14a1e28 | 2413 | { |
66c033b4 | 2414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2415 | } |
d14a1e28 RD |
2416 | return resultobj; |
2417 | fail: | |
2418 | return NULL; | |
2419 | } | |
2420 | ||
2421 | ||
c32bde28 | 2422 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2423 | PyObject *resultobj; |
66c033b4 RD |
2424 | wxPen *arg1 = (wxPen *) 0 ; |
2425 | wxPen *arg2 = (wxPen *) 0 ; | |
2426 | bool result; | |
d14a1e28 RD |
2427 | PyObject * obj0 = 0 ; |
2428 | PyObject * obj1 = 0 ; | |
2429 | char *kwnames[] = { | |
66c033b4 | 2430 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2431 | }; |
2432 | ||
66c033b4 RD |
2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
15afbcd0 | 2437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
2438 | { |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2440 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2441 | |
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
d14a1e28 | 2445 | { |
66c033b4 | 2446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2447 | } |
2448 | return resultobj; | |
2449 | fail: | |
d14a1e28 RD |
2450 | return NULL; |
2451 | } | |
2452 | ||
2453 | ||
c32bde28 | 2454 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2455 | PyObject *obj; |
2456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
66c033b4 | 2457 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d14a1e28 RD |
2458 | Py_INCREF(obj); |
2459 | return Py_BuildValue((char *)""); | |
2460 | } | |
c32bde28 | 2461 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2462 | PyObject *resultobj; |
2463 | wxColour *arg1 = 0 ; | |
2464 | int arg2 = (int) wxSOLID ; | |
2465 | wxBrush *result; | |
2466 | wxColour temp1 ; | |
2467 | PyObject * obj0 = 0 ; | |
994141e6 | 2468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2469 | char *kwnames[] = { |
2470 | (char *) "colour",(char *) "style", NULL | |
2471 | }; | |
2472 | ||
994141e6 | 2473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2474 | { |
2475 | arg1 = &temp1; | |
2476 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2477 | } | |
994141e6 | 2478 | if (obj1) { |
c32bde28 | 2479 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2480 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2481 | } |
d14a1e28 | 2482 | { |
e3b71cb8 | 2483 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2485 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2486 | ||
2487 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2488 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2489 | } |
15afbcd0 | 2490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2491 | return resultobj; |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
c32bde28 | 2497 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2498 | PyObject *resultobj; |
2499 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2500 | PyObject * obj0 = 0 ; | |
2501 | char *kwnames[] = { | |
2502 | (char *) "self", NULL | |
2503 | }; | |
2504 | ||
2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2508 | { |
2509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2510 | delete arg1; | |
2511 | ||
2512 | wxPyEndAllowThreads(__tstate); | |
2513 | if (PyErr_Occurred()) SWIG_fail; | |
2514 | } | |
2515 | Py_INCREF(Py_None); resultobj = Py_None; | |
2516 | return resultobj; | |
2517 | fail: | |
2518 | return NULL; | |
2519 | } | |
2520 | ||
2521 | ||
c32bde28 | 2522 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2523 | PyObject *resultobj; |
2524 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2525 | wxColour *arg2 = 0 ; | |
2526 | wxColour temp2 ; | |
2527 | PyObject * obj0 = 0 ; | |
2528 | PyObject * obj1 = 0 ; | |
2529 | char *kwnames[] = { | |
2530 | (char *) "self",(char *) "col", NULL | |
2531 | }; | |
2532 | ||
2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2536 | { |
2537 | arg2 = &temp2; | |
2538 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2539 | } | |
2540 | { | |
2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2542 | (arg1)->SetColour((wxColour const &)*arg2); | |
2543 | ||
2544 | wxPyEndAllowThreads(__tstate); | |
2545 | if (PyErr_Occurred()) SWIG_fail; | |
2546 | } | |
2547 | Py_INCREF(Py_None); resultobj = Py_None; | |
2548 | return resultobj; | |
2549 | fail: | |
2550 | return NULL; | |
2551 | } | |
2552 | ||
2553 | ||
c32bde28 | 2554 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2555 | PyObject *resultobj; |
2556 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2557 | int arg2 ; | |
2558 | PyObject * obj0 = 0 ; | |
994141e6 | 2559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2560 | char *kwnames[] = { |
2561 | (char *) "self",(char *) "style", NULL | |
2562 | }; | |
2563 | ||
994141e6 | 2564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2567 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2568 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2569 | { |
2570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2571 | (arg1)->SetStyle(arg2); | |
2572 | ||
2573 | wxPyEndAllowThreads(__tstate); | |
2574 | if (PyErr_Occurred()) SWIG_fail; | |
2575 | } | |
2576 | Py_INCREF(Py_None); resultobj = Py_None; | |
2577 | return resultobj; | |
2578 | fail: | |
2579 | return NULL; | |
2580 | } | |
2581 | ||
2582 | ||
c32bde28 | 2583 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2584 | PyObject *resultobj; |
2585 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2586 | wxBitmap *arg2 = 0 ; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | PyObject * obj1 = 0 ; | |
2589 | char *kwnames[] = { | |
2590 | (char *) "self",(char *) "stipple", NULL | |
2591 | }; | |
2592 | ||
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2598 | SWIG_fail; | |
d14a1e28 | 2599 | if (arg2 == NULL) { |
15afbcd0 RD |
2600 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2601 | SWIG_fail; | |
d14a1e28 RD |
2602 | } |
2603 | { | |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2605 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2606 | ||
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
2610 | Py_INCREF(Py_None); resultobj = Py_None; | |
2611 | return resultobj; | |
2612 | fail: | |
2613 | return NULL; | |
2614 | } | |
2615 | ||
2616 | ||
c32bde28 | 2617 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2618 | PyObject *resultobj; |
2619 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2620 | wxColour result; | |
2621 | PyObject * obj0 = 0 ; | |
2622 | char *kwnames[] = { | |
2623 | (char *) "self", NULL | |
2624 | }; | |
2625 | ||
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2629 | { |
2630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2631 | result = ((wxBrush const *)arg1)->GetColour(); | |
2632 | ||
2633 | wxPyEndAllowThreads(__tstate); | |
2634 | if (PyErr_Occurred()) SWIG_fail; | |
2635 | } | |
2636 | { | |
2637 | wxColour * resultptr; | |
2638 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 2639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2640 | } |
2641 | return resultobj; | |
2642 | fail: | |
2643 | return NULL; | |
2644 | } | |
2645 | ||
2646 | ||
c32bde28 | 2647 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2648 | PyObject *resultobj; |
2649 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2650 | int result; | |
2651 | PyObject * obj0 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2659 | { |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
c32bde28 | 2666 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2667 | return resultobj; |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
c32bde28 | 2673 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2674 | PyObject *resultobj; |
2675 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2676 | wxBitmap *result; | |
2677 | PyObject * obj0 = 0 ; | |
2678 | char *kwnames[] = { | |
2679 | (char *) "self", NULL | |
2680 | }; | |
2681 | ||
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2685 | { |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
15afbcd0 | 2692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2693 | return resultobj; |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
c32bde28 | 2699 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2700 | PyObject *resultobj; |
2701 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2702 | bool result; | |
2703 | PyObject * obj0 = 0 ; | |
2704 | char *kwnames[] = { | |
2705 | (char *) "self", NULL | |
2706 | }; | |
2707 | ||
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2711 | { |
2712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2713 | result = (bool)(arg1)->Ok(); | |
2714 | ||
2715 | wxPyEndAllowThreads(__tstate); | |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
2717 | } | |
4f89f6a3 RD |
2718 | { |
2719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2720 | } | |
d14a1e28 RD |
2721 | return resultobj; |
2722 | fail: | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
c32bde28 | 2727 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2728 | PyObject *obj; |
2729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2730 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2731 | Py_INCREF(obj); | |
2732 | return Py_BuildValue((char *)""); | |
2733 | } | |
c32bde28 | 2734 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2735 | PyObject *resultobj; |
2736 | wxString *arg1 = 0 ; | |
2737 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2738 | wxBitmap *result; | |
ae8162c8 | 2739 | bool temp1 = false ; |
d14a1e28 | 2740 | PyObject * obj0 = 0 ; |
994141e6 | 2741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2742 | char *kwnames[] = { |
2743 | (char *) "name",(char *) "type", NULL | |
2744 | }; | |
2745 | ||
994141e6 | 2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2747 | { |
2748 | arg1 = wxString_in_helper(obj0); | |
2749 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2750 | temp1 = true; |
d14a1e28 | 2751 | } |
994141e6 | 2752 | if (obj1) { |
c32bde28 | 2753 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2754 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2755 | } |
d14a1e28 | 2756 | { |
e3b71cb8 | 2757 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2759 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2760 | ||
2761 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2762 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2763 | } |
15afbcd0 | 2764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2765 | { |
2766 | if (temp1) | |
2767 | delete arg1; | |
2768 | } | |
2769 | return resultobj; | |
2770 | fail: | |
2771 | { | |
2772 | if (temp1) | |
2773 | delete arg1; | |
2774 | } | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
c32bde28 | 2779 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2780 | PyObject *resultobj; |
2781 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2782 | PyObject * obj0 = 0 ; | |
2783 | char *kwnames[] = { | |
2784 | (char *) "self", NULL | |
2785 | }; | |
2786 | ||
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2790 | { |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | delete arg1; | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
2797 | Py_INCREF(Py_None); resultobj = Py_None; | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | return NULL; | |
2801 | } | |
2802 | ||
2803 | ||
c32bde28 | 2804 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
66c033b4 RD |
2805 | PyObject *resultobj; |
2806 | int arg1 ; | |
2807 | int arg2 ; | |
2808 | int arg3 = (int) -1 ; | |
2809 | wxBitmap *result; | |
2810 | PyObject * obj0 = 0 ; | |
2811 | PyObject * obj1 = 0 ; | |
2812 | PyObject * obj2 = 0 ; | |
2813 | char *kwnames[] = { | |
2814 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2815 | }; | |
2816 | ||
2817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 2818 | arg1 = (int)SWIG_As_int(obj0); |
66c033b4 | 2819 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2820 | arg2 = (int)SWIG_As_int(obj1); |
66c033b4 RD |
2821 | if (PyErr_Occurred()) SWIG_fail; |
2822 | if (obj2) { | |
c32bde28 | 2823 | arg3 = (int)SWIG_As_int(obj2); |
66c033b4 RD |
2824 | if (PyErr_Occurred()) SWIG_fail; |
2825 | } | |
2826 | { | |
e3b71cb8 | 2827 | if (!wxPyCheckForApp()) SWIG_fail; |
66c033b4 RD |
2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2829 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2830 | ||
2831 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2832 | if (PyErr_Occurred()) SWIG_fail; |
66c033b4 RD |
2833 | } |
2834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2835 | return resultobj; | |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
c32bde28 | 2841 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2842 | PyObject *resultobj; |
2843 | wxIcon *arg1 = 0 ; | |
2844 | wxBitmap *result; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | char *kwnames[] = { | |
2847 | (char *) "icon", NULL | |
2848 | }; | |
2849 | ||
2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2853 | SWIG_fail; | |
d14a1e28 | 2854 | if (arg1 == NULL) { |
15afbcd0 RD |
2855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2856 | SWIG_fail; | |
d14a1e28 RD |
2857 | } |
2858 | { | |
e3b71cb8 | 2859 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2861 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2864 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2865 | } |
15afbcd0 | 2866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2867 | return resultobj; |
2868 | fail: | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
c32bde28 | 2873 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2874 | PyObject *resultobj; |
2875 | wxImage *arg1 = 0 ; | |
2876 | int arg2 = (int) -1 ; | |
2877 | wxBitmap *result; | |
2878 | PyObject * obj0 = 0 ; | |
994141e6 | 2879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2880 | char *kwnames[] = { |
2881 | (char *) "image",(char *) "depth", NULL | |
2882 | }; | |
2883 | ||
994141e6 | 2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2887 | SWIG_fail; | |
d14a1e28 | 2888 | if (arg1 == NULL) { |
15afbcd0 RD |
2889 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2890 | SWIG_fail; | |
d14a1e28 | 2891 | } |
994141e6 | 2892 | if (obj1) { |
c32bde28 | 2893 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2894 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2895 | } |
d14a1e28 | 2896 | { |
e3b71cb8 | 2897 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2899 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2902 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 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 | ||
c32bde28 | 2911 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2912 | PyObject *resultobj; |
2913 | PyObject *arg1 = (PyObject *) 0 ; | |
2914 | wxBitmap *result; | |
2915 | PyObject * obj0 = 0 ; | |
2916 | char *kwnames[] = { | |
2917 | (char *) "listOfStrings", NULL | |
2918 | }; | |
2919 | ||
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2921 | arg1 = obj0; | |
2922 | { | |
e3b71cb8 | 2923 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2925 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2928 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2929 | } |
15afbcd0 | 2930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2931 | return resultobj; |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
c32bde28 | 2937 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2938 | PyObject *resultobj; |
2939 | PyObject *arg1 = (PyObject *) 0 ; | |
2940 | int arg2 ; | |
2941 | int arg3 ; | |
2942 | int arg4 = (int) 1 ; | |
2943 | wxBitmap *result; | |
2944 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2945 | PyObject * obj1 = 0 ; |
2946 | PyObject * obj2 = 0 ; | |
2947 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2948 | char *kwnames[] = { |
2949 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2950 | }; | |
2951 | ||
994141e6 | 2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2953 | arg1 = obj0; |
c32bde28 | 2954 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2955 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2956 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2957 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2958 | if (obj3) { |
c32bde28 | 2959 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 2960 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2961 | } |
d14a1e28 | 2962 | { |
e3b71cb8 | 2963 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2965 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2968 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2969 | } |
15afbcd0 | 2970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2971 | return resultobj; |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
c32bde28 | 2977 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2978 | PyObject *resultobj; |
2979 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2980 | bool result; | |
2981 | PyObject * obj0 = 0 ; | |
2982 | char *kwnames[] = { | |
2983 | (char *) "self", NULL | |
2984 | }; | |
2985 | ||
2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2989 | { |
2990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2991 | result = (bool)(arg1)->Ok(); | |
2992 | ||
2993 | wxPyEndAllowThreads(__tstate); | |
2994 | if (PyErr_Occurred()) SWIG_fail; | |
2995 | } | |
4f89f6a3 RD |
2996 | { |
2997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2998 | } | |
d14a1e28 RD |
2999 | return resultobj; |
3000 | fail: | |
3001 | return NULL; | |
3002 | } | |
3003 | ||
3004 | ||
c32bde28 | 3005 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3006 | PyObject *resultobj; |
3007 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3008 | int result; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | char *kwnames[] = { | |
3011 | (char *) "self", NULL | |
3012 | }; | |
3013 | ||
3014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3017 | { |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | result = (int)(arg1)->GetWidth(); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) SWIG_fail; | |
3023 | } | |
c32bde28 | 3024 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3025 | return resultobj; |
3026 | fail: | |
3027 | return NULL; | |
3028 | } | |
3029 | ||
3030 | ||
c32bde28 | 3031 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3032 | PyObject *resultobj; |
3033 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3034 | int result; | |
3035 | PyObject * obj0 = 0 ; | |
3036 | char *kwnames[] = { | |
3037 | (char *) "self", NULL | |
3038 | }; | |
3039 | ||
3040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3043 | { |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | result = (int)(arg1)->GetHeight(); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
c32bde28 | 3050 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3051 | return resultobj; |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
c32bde28 | 3057 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3058 | PyObject *resultobj; |
3059 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3060 | int result; | |
3061 | PyObject * obj0 = 0 ; | |
3062 | char *kwnames[] = { | |
3063 | (char *) "self", NULL | |
3064 | }; | |
3065 | ||
3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3069 | { |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | result = (int)(arg1)->GetDepth(); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
c32bde28 | 3076 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3077 | return resultobj; |
3078 | fail: | |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
c32bde28 | 3083 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
3084 | PyObject *resultobj; |
3085 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3086 | wxSize result; | |
3087 | PyObject * obj0 = 0 ; | |
3088 | char *kwnames[] = { | |
3089 | (char *) "self", NULL | |
3090 | }; | |
3091 | ||
3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3095 | { | |
3096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3097 | result = wxBitmap_GetSize(arg1); | |
3098 | ||
3099 | wxPyEndAllowThreads(__tstate); | |
3100 | if (PyErr_Occurred()) SWIG_fail; | |
3101 | } | |
3102 | { | |
3103 | wxSize * resultptr; | |
3104 | resultptr = new wxSize((wxSize &) result); | |
3105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3106 | } | |
3107 | return resultobj; | |
3108 | fail: | |
3109 | return NULL; | |
3110 | } | |
3111 | ||
3112 | ||
c32bde28 | 3113 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3114 | PyObject *resultobj; |
3115 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3116 | SwigValueWrapper< wxImage > result; | |
3117 | PyObject * obj0 = 0 ; | |
3118 | char *kwnames[] = { | |
3119 | (char *) "self", NULL | |
3120 | }; | |
3121 | ||
3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3125 | { |
3126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3127 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3128 | ||
3129 | wxPyEndAllowThreads(__tstate); | |
3130 | if (PyErr_Occurred()) SWIG_fail; | |
3131 | } | |
3132 | { | |
3133 | wxImage * resultptr; | |
3134 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 3135 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
3136 | } |
3137 | return resultobj; | |
3138 | fail: | |
3139 | return NULL; | |
3140 | } | |
3141 | ||
3142 | ||
c32bde28 | 3143 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3144 | PyObject *resultobj; |
3145 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3146 | wxMask *result; | |
3147 | PyObject * obj0 = 0 ; | |
3148 | char *kwnames[] = { | |
3149 | (char *) "self", NULL | |
3150 | }; | |
3151 | ||
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3155 | { |
3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3157 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
15afbcd0 | 3162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
3163 | return resultobj; |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
c32bde28 | 3169 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3170 | PyObject *resultobj; |
3171 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3172 | wxMask *arg2 = (wxMask *) 0 ; | |
3173 | PyObject * obj0 = 0 ; | |
3174 | PyObject * obj1 = 0 ; | |
3175 | char *kwnames[] = { | |
3176 | (char *) "self",(char *) "mask", NULL | |
3177 | }; | |
3178 | ||
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3184 | { |
3185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3186 | (arg1)->SetMask(arg2); | |
3187 | ||
3188 | wxPyEndAllowThreads(__tstate); | |
3189 | if (PyErr_Occurred()) SWIG_fail; | |
3190 | } | |
3191 | Py_INCREF(Py_None); resultobj = Py_None; | |
3192 | return resultobj; | |
3193 | fail: | |
3194 | return NULL; | |
3195 | } | |
3196 | ||
3197 | ||
c32bde28 | 3198 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3199 | PyObject *resultobj; |
3200 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3201 | wxColour *arg2 = 0 ; | |
3202 | wxColour temp2 ; | |
3203 | PyObject * obj0 = 0 ; | |
3204 | PyObject * obj1 = 0 ; | |
3205 | char *kwnames[] = { | |
3206 | (char *) "self",(char *) "colour", NULL | |
3207 | }; | |
3208 | ||
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3212 | { |
3213 | arg2 = &temp2; | |
3214 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | Py_INCREF(Py_None); resultobj = Py_None; | |
3224 | return resultobj; | |
3225 | fail: | |
3226 | return NULL; | |
3227 | } | |
3228 | ||
3229 | ||
c32bde28 | 3230 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3231 | PyObject *resultobj; |
3232 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3233 | wxRect *arg2 = 0 ; | |
3234 | SwigValueWrapper< wxBitmap > result; | |
3235 | wxRect temp2 ; | |
3236 | PyObject * obj0 = 0 ; | |
3237 | PyObject * obj1 = 0 ; | |
3238 | char *kwnames[] = { | |
3239 | (char *) "self",(char *) "rect", NULL | |
3240 | }; | |
3241 | ||
3242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3245 | { |
3246 | arg2 = &temp2; | |
3247 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3248 | } | |
3249 | { | |
3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3251 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3252 | ||
3253 | wxPyEndAllowThreads(__tstate); | |
3254 | if (PyErr_Occurred()) SWIG_fail; | |
3255 | } | |
3256 | { | |
3257 | wxBitmap * resultptr; | |
3258 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 3259 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3260 | } |
3261 | return resultobj; | |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
c32bde28 | 3267 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3268 | PyObject *resultobj; |
3269 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3270 | wxString *arg2 = 0 ; | |
3271 | int arg3 ; | |
66c033b4 | 3272 | wxPalette *arg4 = (wxPalette *) NULL ; |
d14a1e28 | 3273 | bool result; |
ae8162c8 | 3274 | bool temp2 = false ; |
d14a1e28 RD |
3275 | PyObject * obj0 = 0 ; |
3276 | PyObject * obj1 = 0 ; | |
994141e6 | 3277 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3278 | PyObject * obj3 = 0 ; |
3279 | char *kwnames[] = { | |
3280 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3281 | }; | |
3282 | ||
994141e6 | 3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3286 | { |
3287 | arg2 = wxString_in_helper(obj1); | |
3288 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3289 | temp2 = true; |
d14a1e28 | 3290 | } |
c32bde28 | 3291 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3292 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3293 | if (obj3) { |
15afbcd0 RD |
3294 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3296 | } |
3297 | { | |
3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3299 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3300 | ||
3301 | wxPyEndAllowThreads(__tstate); | |
3302 | if (PyErr_Occurred()) SWIG_fail; | |
3303 | } | |
4f89f6a3 RD |
3304 | { |
3305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3306 | } | |
d14a1e28 RD |
3307 | { |
3308 | if (temp2) | |
3309 | delete arg2; | |
3310 | } | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | { | |
3314 | if (temp2) | |
3315 | delete arg2; | |
3316 | } | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
c32bde28 | 3321 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3322 | PyObject *resultobj; |
3323 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3324 | wxString *arg2 = 0 ; | |
3325 | int arg3 ; | |
3326 | bool result; | |
ae8162c8 | 3327 | bool temp2 = false ; |
d14a1e28 RD |
3328 | PyObject * obj0 = 0 ; |
3329 | PyObject * obj1 = 0 ; | |
994141e6 | 3330 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3331 | char *kwnames[] = { |
3332 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3333 | }; | |
3334 | ||
994141e6 | 3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3338 | { |
3339 | arg2 = wxString_in_helper(obj1); | |
3340 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3341 | temp2 = true; |
d14a1e28 | 3342 | } |
c32bde28 | 3343 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3344 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3345 | { |
3346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3347 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3348 | ||
3349 | wxPyEndAllowThreads(__tstate); | |
3350 | if (PyErr_Occurred()) SWIG_fail; | |
3351 | } | |
4f89f6a3 RD |
3352 | { |
3353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3354 | } | |
d14a1e28 RD |
3355 | { |
3356 | if (temp2) | |
3357 | delete arg2; | |
3358 | } | |
3359 | return resultobj; | |
3360 | fail: | |
3361 | { | |
3362 | if (temp2) | |
3363 | delete arg2; | |
3364 | } | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
d3b6e4ff RD |
3369 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
3370 | PyObject *resultobj; | |
3371 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3372 | wxPalette *result; | |
3373 | PyObject * obj0 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "self", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; | |
3379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
c32bde28 | 3395 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3396 | PyObject *resultobj; |
3397 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3398 | wxIcon *arg2 = 0 ; | |
3399 | bool result; | |
3400 | PyObject * obj0 = 0 ; | |
3401 | PyObject * obj1 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "icon", NULL | |
3404 | }; | |
3405 | ||
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3411 | SWIG_fail; | |
d14a1e28 | 3412 | if (arg2 == NULL) { |
15afbcd0 RD |
3413 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3414 | SWIG_fail; | |
d14a1e28 RD |
3415 | } |
3416 | { | |
3417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3418 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3419 | ||
3420 | wxPyEndAllowThreads(__tstate); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | } | |
4f89f6a3 RD |
3423 | { |
3424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3425 | } | |
d14a1e28 RD |
3426 | return resultobj; |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
c32bde28 | 3432 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3433 | PyObject *resultobj; |
3434 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3435 | int arg2 ; | |
3436 | PyObject * obj0 = 0 ; | |
994141e6 | 3437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3438 | char *kwnames[] = { |
3439 | (char *) "self",(char *) "height", NULL | |
3440 | }; | |
3441 | ||
994141e6 | 3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3445 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3446 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3447 | { |
3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3449 | (arg1)->SetHeight(arg2); | |
3450 | ||
3451 | wxPyEndAllowThreads(__tstate); | |
3452 | if (PyErr_Occurred()) SWIG_fail; | |
3453 | } | |
3454 | Py_INCREF(Py_None); resultobj = Py_None; | |
3455 | return resultobj; | |
3456 | fail: | |
3457 | return NULL; | |
3458 | } | |
3459 | ||
3460 | ||
c32bde28 | 3461 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3462 | PyObject *resultobj; |
3463 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3464 | int arg2 ; | |
3465 | PyObject * obj0 = 0 ; | |
994141e6 | 3466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3467 | char *kwnames[] = { |
3468 | (char *) "self",(char *) "width", NULL | |
3469 | }; | |
3470 | ||
994141e6 | 3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3474 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3475 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3476 | { |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | (arg1)->SetWidth(arg2); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | Py_INCREF(Py_None); resultobj = Py_None; | |
3484 | return resultobj; | |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
c32bde28 | 3490 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3491 | PyObject *resultobj; |
3492 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3493 | int arg2 ; | |
3494 | PyObject * obj0 = 0 ; | |
994141e6 | 3495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3496 | char *kwnames[] = { |
3497 | (char *) "self",(char *) "depth", NULL | |
3498 | }; | |
3499 | ||
994141e6 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3503 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3504 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3505 | { |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | (arg1)->SetDepth(arg2); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | Py_INCREF(Py_None); resultobj = Py_None; | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
c32bde28 | 3519 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
3520 | PyObject *resultobj; |
3521 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3522 | wxSize *arg2 = 0 ; | |
3523 | wxSize temp2 ; | |
3524 | PyObject * obj0 = 0 ; | |
3525 | PyObject * obj1 = 0 ; | |
3526 | char *kwnames[] = { | |
3527 | (char *) "self",(char *) "size", NULL | |
3528 | }; | |
3529 | ||
3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3533 | { | |
3534 | arg2 = &temp2; | |
3535 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3536 | } | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
3544 | Py_INCREF(Py_None); resultobj = Py_None; | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
c32bde28 | 3551 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
3552 | PyObject *resultobj; |
3553 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3554 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3555 | bool result; | |
3556 | PyObject * obj0 = 0 ; | |
3557 | PyObject * obj1 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "self",(char *) "other", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3567 | { | |
3568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3569 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3570 | ||
3571 | wxPyEndAllowThreads(__tstate); | |
3572 | if (PyErr_Occurred()) SWIG_fail; | |
3573 | } | |
4f89f6a3 RD |
3574 | { |
3575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3576 | } | |
4276dc52 RD |
3577 | return resultobj; |
3578 | fail: | |
3579 | return NULL; | |
3580 | } | |
3581 | ||
3582 | ||
c32bde28 | 3583 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
3584 | PyObject *resultobj; |
3585 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3586 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3587 | bool result; | |
3588 | PyObject * obj0 = 0 ; | |
3589 | PyObject * obj1 = 0 ; | |
3590 | char *kwnames[] = { | |
3591 | (char *) "self",(char *) "other", NULL | |
3592 | }; | |
3593 | ||
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3599 | { | |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
4f89f6a3 RD |
3606 | { |
3607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3608 | } | |
4276dc52 RD |
3609 | return resultobj; |
3610 | fail: | |
3611 | return NULL; | |
3612 | } | |
3613 | ||
3614 | ||
c32bde28 | 3615 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3616 | PyObject *obj; |
3617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3618 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3619 | Py_INCREF(obj); | |
3620 | return Py_BuildValue((char *)""); | |
3621 | } | |
c32bde28 | 3622 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3623 | PyObject *resultobj; |
3624 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3625 | wxColour const &arg2_defvalue = wxNullColour ; |
3626 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3627 | wxMask *result; |
3628 | wxColour temp2 ; | |
3629 | PyObject * obj0 = 0 ; | |
3630 | PyObject * obj1 = 0 ; | |
3631 | char *kwnames[] = { | |
3632 | (char *) "bitmap",(char *) "colour", NULL | |
3633 | }; | |
3634 | ||
0482c494 | 3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3638 | SWIG_fail; | |
d14a1e28 | 3639 | if (arg1 == NULL) { |
15afbcd0 RD |
3640 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3641 | SWIG_fail; | |
d14a1e28 | 3642 | } |
0482c494 RD |
3643 | if (obj1) { |
3644 | { | |
3645 | arg2 = &temp2; | |
3646 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3647 | } | |
d14a1e28 RD |
3648 | } |
3649 | { | |
e3b71cb8 | 3650 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0482c494 | 3652 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3653 | |
3654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3655 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3656 | } |
15afbcd0 | 3657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3658 | return resultobj; |
3659 | fail: | |
3660 | return NULL; | |
3661 | } | |
3662 | ||
3663 | ||
c32bde28 | 3664 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3665 | PyObject *obj; |
3666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3667 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3668 | Py_INCREF(obj); | |
3669 | return Py_BuildValue((char *)""); | |
3670 | } | |
c32bde28 | 3671 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3672 | PyObject *resultobj; |
3673 | wxString *arg1 = 0 ; | |
f87da722 | 3674 | int arg2 ; |
d14a1e28 RD |
3675 | int arg3 = (int) -1 ; |
3676 | int arg4 = (int) -1 ; | |
3677 | wxIcon *result; | |
ae8162c8 | 3678 | bool temp1 = false ; |
d14a1e28 | 3679 | PyObject * obj0 = 0 ; |
994141e6 RD |
3680 | PyObject * obj1 = 0 ; |
3681 | PyObject * obj2 = 0 ; | |
3682 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3683 | char *kwnames[] = { |
f87da722 | 3684 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3685 | }; |
3686 | ||
994141e6 | 3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3688 | { |
3689 | arg1 = wxString_in_helper(obj0); | |
3690 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3691 | temp1 = true; |
d14a1e28 | 3692 | } |
c32bde28 | 3693 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3694 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3695 | if (obj2) { |
c32bde28 | 3696 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3697 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3698 | } |
3699 | if (obj3) { | |
c32bde28 | 3700 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 3701 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3702 | } |
3703 | { | |
e3b71cb8 | 3704 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3706 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3707 | ||
3708 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3709 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3710 | } |
15afbcd0 | 3711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3712 | { |
3713 | if (temp1) | |
3714 | delete arg1; | |
3715 | } | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | { | |
3719 | if (temp1) | |
3720 | delete arg1; | |
3721 | } | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
c32bde28 | 3726 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3727 | PyObject *resultobj; |
3728 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3729 | PyObject * obj0 = 0 ; | |
3730 | char *kwnames[] = { | |
3731 | (char *) "self", NULL | |
3732 | }; | |
3733 | ||
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3737 | { |
3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3739 | delete arg1; | |
3740 | ||
3741 | wxPyEndAllowThreads(__tstate); | |
3742 | if (PyErr_Occurred()) SWIG_fail; | |
3743 | } | |
3744 | Py_INCREF(Py_None); resultobj = Py_None; | |
3745 | return resultobj; | |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
c32bde28 | 3751 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3752 | PyObject *resultobj; |
3753 | wxIcon *result; | |
3754 | char *kwnames[] = { | |
3755 | NULL | |
3756 | }; | |
3757 | ||
3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3759 | { | |
e3b71cb8 | 3760 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3762 | result = (wxIcon *)new wxIcon(); | |
3763 | ||
3764 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3765 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3766 | } |
15afbcd0 | 3767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3768 | return resultobj; |
3769 | fail: | |
3770 | return NULL; | |
3771 | } | |
3772 | ||
3773 | ||
c32bde28 | 3774 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3775 | PyObject *resultobj; |
3776 | wxIconLocation *arg1 = 0 ; | |
3777 | wxIcon *result; | |
3778 | PyObject * obj0 = 0 ; | |
3779 | char *kwnames[] = { | |
3780 | (char *) "loc", NULL | |
3781 | }; | |
3782 | ||
3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3785 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3786 | SWIG_fail; | |
d14a1e28 | 3787 | if (arg1 == NULL) { |
15afbcd0 RD |
3788 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3789 | SWIG_fail; | |
d14a1e28 RD |
3790 | } |
3791 | { | |
e3b71cb8 | 3792 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3794 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3795 | ||
3796 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3797 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3798 | } |
15afbcd0 | 3799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3800 | return resultobj; |
3801 | fail: | |
3802 | return NULL; | |
3803 | } | |
3804 | ||
3805 | ||
c32bde28 | 3806 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3807 | PyObject *resultobj; |
3808 | wxBitmap *arg1 = 0 ; | |
3809 | wxIcon *result; | |
3810 | PyObject * obj0 = 0 ; | |
3811 | char *kwnames[] = { | |
3812 | (char *) "bmp", NULL | |
3813 | }; | |
3814 | ||
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3817 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3818 | SWIG_fail; | |
d14a1e28 | 3819 | if (arg1 == NULL) { |
15afbcd0 RD |
3820 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3821 | SWIG_fail; | |
d14a1e28 RD |
3822 | } |
3823 | { | |
e3b71cb8 | 3824 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3826 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3827 | ||
3828 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3829 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3830 | } |
15afbcd0 | 3831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3832 | return resultobj; |
3833 | fail: | |
3834 | return NULL; | |
3835 | } | |
3836 | ||
3837 | ||
c32bde28 | 3838 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3839 | PyObject *resultobj; |
3840 | PyObject *arg1 = (PyObject *) 0 ; | |
3841 | wxIcon *result; | |
3842 | PyObject * obj0 = 0 ; | |
3843 | char *kwnames[] = { | |
3844 | (char *) "listOfStrings", NULL | |
3845 | }; | |
3846 | ||
3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3848 | arg1 = obj0; | |
3849 | { | |
e3b71cb8 | 3850 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3852 | result = (wxIcon *)new_wxIcon(arg1); | |
3853 | ||
3854 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3855 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3856 | } |
15afbcd0 | 3857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3858 | return resultobj; |
3859 | fail: | |
3860 | return NULL; | |
3861 | } | |
3862 | ||
3863 | ||
c32bde28 | 3864 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3865 | PyObject *resultobj; |
3866 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3867 | wxString *arg2 = 0 ; | |
f87da722 | 3868 | int arg3 ; |
d14a1e28 | 3869 | bool result; |
ae8162c8 | 3870 | bool temp2 = false ; |
d14a1e28 RD |
3871 | PyObject * obj0 = 0 ; |
3872 | PyObject * obj1 = 0 ; | |
994141e6 | 3873 | PyObject * obj2 = 0 ; |
d14a1e28 | 3874 | char *kwnames[] = { |
f87da722 | 3875 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3876 | }; |
3877 | ||
994141e6 | 3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3881 | { |
3882 | arg2 = wxString_in_helper(obj1); | |
3883 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3884 | temp2 = true; |
d14a1e28 | 3885 | } |
c32bde28 | 3886 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3887 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3888 | { |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3890 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3891 | |
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
4f89f6a3 RD |
3895 | { |
3896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3897 | } | |
d14a1e28 RD |
3898 | { |
3899 | if (temp2) | |
3900 | delete arg2; | |
3901 | } | |
3902 | return resultobj; | |
3903 | fail: | |
3904 | { | |
3905 | if (temp2) | |
3906 | delete arg2; | |
3907 | } | |
3908 | return NULL; | |
3909 | } | |
3910 | ||
3911 | ||
c32bde28 | 3912 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3913 | PyObject *resultobj; |
3914 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3915 | bool result; | |
3916 | PyObject * obj0 = 0 ; | |
3917 | char *kwnames[] = { | |
3918 | (char *) "self", NULL | |
3919 | }; | |
3920 | ||
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3924 | { |
3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3926 | result = (bool)(arg1)->Ok(); | |
3927 | ||
3928 | wxPyEndAllowThreads(__tstate); | |
3929 | if (PyErr_Occurred()) SWIG_fail; | |
3930 | } | |
4f89f6a3 RD |
3931 | { |
3932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3933 | } | |
d14a1e28 RD |
3934 | return resultobj; |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
c32bde28 | 3940 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3941 | PyObject *resultobj; |
3942 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3943 | int result; | |
3944 | PyObject * obj0 = 0 ; | |
3945 | char *kwnames[] = { | |
3946 | (char *) "self", NULL | |
3947 | }; | |
3948 | ||
3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3952 | { |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | result = (int)(arg1)->GetWidth(); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
c32bde28 | 3959 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3960 | return resultobj; |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
c32bde28 | 3966 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3967 | PyObject *resultobj; |
3968 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3969 | int result; | |
3970 | PyObject * obj0 = 0 ; | |
3971 | char *kwnames[] = { | |
3972 | (char *) "self", NULL | |
3973 | }; | |
3974 | ||
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3978 | { |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | result = (int)(arg1)->GetHeight(); | |
3981 | ||
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
c32bde28 | 3985 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3986 | return resultobj; |
3987 | fail: | |
3988 | return NULL; | |
3989 | } | |
3990 | ||
3991 | ||
c32bde28 | 3992 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3993 | PyObject *resultobj; |
3994 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3995 | int result; | |
3996 | PyObject * obj0 = 0 ; | |
3997 | char *kwnames[] = { | |
3998 | (char *) "self", NULL | |
3999 | }; | |
4000 | ||
4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4004 | { |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | result = (int)(arg1)->GetDepth(); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
c32bde28 | 4011 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4012 | return resultobj; |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
c32bde28 | 4018 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4019 | PyObject *resultobj; |
4020 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4021 | int arg2 ; | |
4022 | PyObject * obj0 = 0 ; | |
994141e6 | 4023 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4024 | char *kwnames[] = { |
4025 | (char *) "self",(char *) "w", NULL | |
4026 | }; | |
4027 | ||
994141e6 | 4028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4031 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4032 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4033 | { |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | (arg1)->SetWidth(arg2); | |
4036 | ||
4037 | wxPyEndAllowThreads(__tstate); | |
4038 | if (PyErr_Occurred()) SWIG_fail; | |
4039 | } | |
4040 | Py_INCREF(Py_None); resultobj = Py_None; | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
c32bde28 | 4047 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4048 | PyObject *resultobj; |
4049 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4050 | int arg2 ; | |
4051 | PyObject * obj0 = 0 ; | |
994141e6 | 4052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4053 | char *kwnames[] = { |
4054 | (char *) "self",(char *) "h", NULL | |
4055 | }; | |
4056 | ||
994141e6 | 4057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4060 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4061 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4062 | { |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4064 | (arg1)->SetHeight(arg2); | |
4065 | ||
4066 | wxPyEndAllowThreads(__tstate); | |
4067 | if (PyErr_Occurred()) SWIG_fail; | |
4068 | } | |
4069 | Py_INCREF(Py_None); resultobj = Py_None; | |
4070 | return resultobj; | |
4071 | fail: | |
4072 | return NULL; | |
4073 | } | |
4074 | ||
4075 | ||
c32bde28 | 4076 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4077 | PyObject *resultobj; |
4078 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4079 | int arg2 ; | |
4080 | PyObject * obj0 = 0 ; | |
994141e6 | 4081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4082 | char *kwnames[] = { |
4083 | (char *) "self",(char *) "d", NULL | |
4084 | }; | |
4085 | ||
994141e6 | 4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4089 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4091 | { |
4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4093 | (arg1)->SetDepth(arg2); | |
4094 | ||
4095 | wxPyEndAllowThreads(__tstate); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | } | |
4098 | Py_INCREF(Py_None); resultobj = Py_None; | |
4099 | return resultobj; | |
4100 | fail: | |
4101 | return NULL; | |
4102 | } | |
4103 | ||
4104 | ||
c32bde28 | 4105 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4106 | PyObject *resultobj; |
4107 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4108 | wxBitmap *arg2 = 0 ; | |
4109 | PyObject * obj0 = 0 ; | |
4110 | PyObject * obj1 = 0 ; | |
4111 | char *kwnames[] = { | |
4112 | (char *) "self",(char *) "bmp", NULL | |
4113 | }; | |
4114 | ||
4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4119 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4120 | SWIG_fail; | |
d14a1e28 | 4121 | if (arg2 == NULL) { |
15afbcd0 RD |
4122 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4123 | SWIG_fail; | |
d14a1e28 RD |
4124 | } |
4125 | { | |
4126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4127 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4128 | ||
4129 | wxPyEndAllowThreads(__tstate); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | Py_INCREF(Py_None); resultobj = Py_None; | |
4133 | return resultobj; | |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
c32bde28 | 4139 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4140 | PyObject *obj; |
4141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4142 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4143 | Py_INCREF(obj); | |
4144 | return Py_BuildValue((char *)""); | |
4145 | } | |
c32bde28 | 4146 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4147 | PyObject *resultobj; |
4148 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4149 | int arg2 = (int) 0 ; | |
4150 | wxIconLocation *result; | |
ae8162c8 | 4151 | bool temp1 = false ; |
d14a1e28 | 4152 | PyObject * obj0 = 0 ; |
994141e6 | 4153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4154 | char *kwnames[] = { |
4155 | (char *) "filename",(char *) "num", NULL | |
4156 | }; | |
4157 | ||
994141e6 | 4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4159 | if (obj0) { |
7eae615b RD |
4160 | { |
4161 | arg1 = wxString_in_helper(obj0); | |
4162 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4163 | temp1 = true; |
7eae615b | 4164 | } |
d14a1e28 | 4165 | } |
994141e6 | 4166 | if (obj1) { |
c32bde28 | 4167 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4168 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4169 | } |
d14a1e28 RD |
4170 | { |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
15afbcd0 | 4177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
4178 | { |
4179 | if (temp1) | |
4180 | delete arg1; | |
4181 | } | |
d14a1e28 RD |
4182 | return resultobj; |
4183 | fail: | |
7eae615b RD |
4184 | { |
4185 | if (temp1) | |
4186 | delete arg1; | |
4187 | } | |
d14a1e28 RD |
4188 | return NULL; |
4189 | } | |
4190 | ||
4191 | ||
c32bde28 | 4192 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4193 | PyObject *resultobj; |
4194 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4195 | PyObject * obj0 = 0 ; | |
4196 | char *kwnames[] = { | |
4197 | (char *) "self", NULL | |
4198 | }; | |
4199 | ||
4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4203 | { |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | delete arg1; | |
4206 | ||
4207 | wxPyEndAllowThreads(__tstate); | |
4208 | if (PyErr_Occurred()) SWIG_fail; | |
4209 | } | |
4210 | Py_INCREF(Py_None); resultobj = Py_None; | |
4211 | return resultobj; | |
4212 | fail: | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
c32bde28 | 4217 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4218 | PyObject *resultobj; |
4219 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4220 | bool result; | |
4221 | PyObject * obj0 = 0 ; | |
4222 | char *kwnames[] = { | |
4223 | (char *) "self", NULL | |
4224 | }; | |
4225 | ||
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4229 | { |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4f89f6a3 RD |
4236 | { |
4237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4238 | } | |
d14a1e28 RD |
4239 | return resultobj; |
4240 | fail: | |
4241 | return NULL; | |
4242 | } | |
4243 | ||
4244 | ||
c32bde28 | 4245 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4246 | PyObject *resultobj; |
4247 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4248 | wxString *arg2 = 0 ; | |
ae8162c8 | 4249 | bool temp2 = false ; |
d14a1e28 RD |
4250 | PyObject * obj0 = 0 ; |
4251 | PyObject * obj1 = 0 ; | |
4252 | char *kwnames[] = { | |
4253 | (char *) "self",(char *) "filename", NULL | |
4254 | }; | |
4255 | ||
4256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4259 | { |
4260 | arg2 = wxString_in_helper(obj1); | |
4261 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4262 | temp2 = true; |
d14a1e28 RD |
4263 | } |
4264 | { | |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | (arg1)->SetFileName((wxString const &)*arg2); | |
4267 | ||
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | Py_INCREF(Py_None); resultobj = Py_None; | |
4272 | { | |
4273 | if (temp2) | |
4274 | delete arg2; | |
4275 | } | |
4276 | return resultobj; | |
4277 | fail: | |
4278 | { | |
4279 | if (temp2) | |
4280 | delete arg2; | |
4281 | } | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
c32bde28 | 4286 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4287 | PyObject *resultobj; |
4288 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4289 | wxString *result; | |
4290 | PyObject * obj0 = 0 ; | |
4291 | char *kwnames[] = { | |
4292 | (char *) "self", NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4298 | { |
4299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4300 | { | |
4301 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4302 | result = (wxString *) &_result_ref; | |
4303 | } | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
cc6dd355 RD |
4308 | { |
4309 | #if wxUSE_UNICODE | |
4310 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4311 | #else | |
4312 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4313 | #endif | |
4314 | } | |
d14a1e28 RD |
4315 | return resultobj; |
4316 | fail: | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
c32bde28 | 4321 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4322 | PyObject *resultobj; |
4323 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4324 | int arg2 ; | |
4325 | PyObject * obj0 = 0 ; | |
994141e6 | 4326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4327 | char *kwnames[] = { |
4328 | (char *) "self",(char *) "num", NULL | |
4329 | }; | |
4330 | ||
994141e6 | 4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4334 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4335 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4336 | { |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | wxIconLocation_SetIndex(arg1,arg2); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | Py_INCREF(Py_None); resultobj = Py_None; | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
4347 | } | |
4348 | ||
4349 | ||
c32bde28 | 4350 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4351 | PyObject *resultobj; |
4352 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4353 | int result; | |
4354 | PyObject * obj0 = 0 ; | |
4355 | char *kwnames[] = { | |
4356 | (char *) "self", NULL | |
4357 | }; | |
4358 | ||
4359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4362 | { |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4364 | result = (int)wxIconLocation_GetIndex(arg1); | |
4365 | ||
4366 | wxPyEndAllowThreads(__tstate); | |
4367 | if (PyErr_Occurred()) SWIG_fail; | |
4368 | } | |
c32bde28 | 4369 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4370 | return resultobj; |
4371 | fail: | |
4372 | return NULL; | |
4373 | } | |
4374 | ||
4375 | ||
c32bde28 | 4376 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4377 | PyObject *obj; |
4378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4379 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4380 | Py_INCREF(obj); | |
4381 | return Py_BuildValue((char *)""); | |
4382 | } | |
c32bde28 | 4383 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4384 | PyObject *resultobj; |
4385 | wxIconBundle *result; | |
4386 | char *kwnames[] = { | |
4387 | NULL | |
4388 | }; | |
4389 | ||
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | result = (wxIconBundle *)new wxIconBundle(); | |
4394 | ||
4395 | wxPyEndAllowThreads(__tstate); | |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
4397 | } | |
15afbcd0 | 4398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4399 | return resultobj; |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
c32bde28 | 4405 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4406 | PyObject *resultobj; |
4407 | wxString *arg1 = 0 ; | |
4408 | long arg2 ; | |
4409 | wxIconBundle *result; | |
ae8162c8 | 4410 | bool temp1 = false ; |
d14a1e28 | 4411 | PyObject * obj0 = 0 ; |
994141e6 | 4412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4413 | char *kwnames[] = { |
4414 | (char *) "file",(char *) "type", NULL | |
4415 | }; | |
4416 | ||
994141e6 | 4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4418 | { |
4419 | arg1 = wxString_in_helper(obj0); | |
4420 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4421 | temp1 = true; |
d14a1e28 | 4422 | } |
c32bde28 | 4423 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 4424 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4425 | { |
4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4427 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4428 | ||
4429 | wxPyEndAllowThreads(__tstate); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
15afbcd0 | 4432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4433 | { |
4434 | if (temp1) | |
4435 | delete arg1; | |
4436 | } | |
4437 | return resultobj; | |
4438 | fail: | |
4439 | { | |
4440 | if (temp1) | |
4441 | delete arg1; | |
4442 | } | |
4443 | return NULL; | |
4444 | } | |
4445 | ||
4446 | ||
c32bde28 | 4447 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4448 | PyObject *resultobj; |
4449 | wxIcon *arg1 = 0 ; | |
4450 | wxIconBundle *result; | |
4451 | PyObject * obj0 = 0 ; | |
4452 | char *kwnames[] = { | |
4453 | (char *) "icon", NULL | |
4454 | }; | |
4455 | ||
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4459 | SWIG_fail; | |
d14a1e28 | 4460 | if (arg1 == NULL) { |
15afbcd0 RD |
4461 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4462 | SWIG_fail; | |
d14a1e28 RD |
4463 | } |
4464 | { | |
4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4466 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4467 | ||
4468 | wxPyEndAllowThreads(__tstate); | |
4469 | if (PyErr_Occurred()) SWIG_fail; | |
4470 | } | |
15afbcd0 | 4471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4472 | return resultobj; |
4473 | fail: | |
4474 | return NULL; | |
4475 | } | |
4476 | ||
4477 | ||
c32bde28 | 4478 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4479 | PyObject *resultobj; |
4480 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | char *kwnames[] = { | |
4483 | (char *) "self", NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4489 | { |
4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4491 | delete arg1; | |
4492 | ||
4493 | wxPyEndAllowThreads(__tstate); | |
4494 | if (PyErr_Occurred()) SWIG_fail; | |
4495 | } | |
4496 | Py_INCREF(Py_None); resultobj = Py_None; | |
4497 | return resultobj; | |
4498 | fail: | |
4499 | return NULL; | |
4500 | } | |
4501 | ||
4502 | ||
c32bde28 | 4503 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4504 | PyObject *resultobj; |
4505 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4506 | wxIcon *arg2 = 0 ; | |
4507 | PyObject * obj0 = 0 ; | |
4508 | PyObject * obj1 = 0 ; | |
4509 | char *kwnames[] = { | |
4510 | (char *) "self",(char *) "icon", NULL | |
4511 | }; | |
4512 | ||
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4518 | SWIG_fail; | |
d14a1e28 | 4519 | if (arg2 == NULL) { |
15afbcd0 RD |
4520 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4521 | SWIG_fail; | |
d14a1e28 RD |
4522 | } |
4523 | { | |
4524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4525 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4526 | ||
4527 | wxPyEndAllowThreads(__tstate); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | } | |
4530 | Py_INCREF(Py_None); resultobj = Py_None; | |
4531 | return resultobj; | |
4532 | fail: | |
4533 | return NULL; | |
4534 | } | |
4535 | ||
4536 | ||
c32bde28 | 4537 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4538 | PyObject *resultobj; |
4539 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4540 | wxString *arg2 = 0 ; | |
4541 | long arg3 ; | |
ae8162c8 | 4542 | bool temp2 = false ; |
d14a1e28 RD |
4543 | PyObject * obj0 = 0 ; |
4544 | PyObject * obj1 = 0 ; | |
994141e6 | 4545 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4546 | char *kwnames[] = { |
4547 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4548 | }; | |
4549 | ||
994141e6 | 4550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4553 | { |
4554 | arg2 = wxString_in_helper(obj1); | |
4555 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4556 | temp2 = true; |
d14a1e28 | 4557 | } |
c32bde28 | 4558 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 4559 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4560 | { |
4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4562 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4563 | ||
4564 | wxPyEndAllowThreads(__tstate); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
4567 | Py_INCREF(Py_None); resultobj = Py_None; | |
4568 | { | |
4569 | if (temp2) | |
4570 | delete arg2; | |
4571 | } | |
4572 | return resultobj; | |
4573 | fail: | |
4574 | { | |
4575 | if (temp2) | |
4576 | delete arg2; | |
4577 | } | |
4578 | return NULL; | |
4579 | } | |
4580 | ||
4581 | ||
c32bde28 | 4582 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4583 | PyObject *resultobj; |
4584 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4585 | wxSize *arg2 = 0 ; | |
4586 | wxIcon *result; | |
4587 | wxSize temp2 ; | |
4588 | PyObject * obj0 = 0 ; | |
4589 | PyObject * obj1 = 0 ; | |
4590 | char *kwnames[] = { | |
4591 | (char *) "self",(char *) "size", NULL | |
4592 | }; | |
4593 | ||
4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4597 | { |
4598 | arg2 = &temp2; | |
4599 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4600 | } | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | { | |
4604 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4605 | result = (wxIcon *) &_result_ref; | |
4606 | } | |
4607 | ||
4608 | wxPyEndAllowThreads(__tstate); | |
4609 | if (PyErr_Occurred()) SWIG_fail; | |
4610 | } | |
4276dc52 RD |
4611 | { |
4612 | wxIcon* resultptr = new wxIcon(*result); | |
4613 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4614 | } | |
d14a1e28 RD |
4615 | return resultobj; |
4616 | fail: | |
4617 | return NULL; | |
4618 | } | |
4619 | ||
4620 | ||
c32bde28 | 4621 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4622 | PyObject *obj; |
4623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4624 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4625 | Py_INCREF(obj); | |
4626 | return Py_BuildValue((char *)""); | |
4627 | } | |
c32bde28 | 4628 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4629 | PyObject *resultobj; |
4630 | wxString *arg1 = (wxString *) 0 ; | |
4631 | long arg2 ; | |
4632 | int arg3 = (int) 0 ; | |
4633 | int arg4 = (int) 0 ; | |
4634 | wxCursor *result; | |
ae8162c8 | 4635 | bool temp1 = false ; |
d14a1e28 | 4636 | PyObject * obj0 = 0 ; |
994141e6 RD |
4637 | PyObject * obj1 = 0 ; |
4638 | PyObject * obj2 = 0 ; | |
4639 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4640 | char *kwnames[] = { |
15afbcd0 | 4641 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4642 | }; |
4643 | ||
994141e6 | 4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4645 | { |
4646 | arg1 = wxString_in_helper(obj0); | |
4647 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4648 | temp1 = true; |
7eae615b | 4649 | } |
c32bde28 | 4650 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 4651 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4652 | if (obj2) { |
c32bde28 | 4653 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4654 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4655 | } |
4656 | if (obj3) { | |
c32bde28 | 4657 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 4658 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4659 | } |
d14a1e28 | 4660 | { |
e3b71cb8 | 4661 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4663 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4664 | ||
4665 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4666 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4667 | } |
15afbcd0 | 4668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
7eae615b RD |
4669 | { |
4670 | if (temp1) | |
4671 | delete arg1; | |
4672 | } | |
d14a1e28 RD |
4673 | return resultobj; |
4674 | fail: | |
7eae615b RD |
4675 | { |
4676 | if (temp1) | |
4677 | delete arg1; | |
4678 | } | |
d14a1e28 RD |
4679 | return NULL; |
4680 | } | |
4681 | ||
4682 | ||
c32bde28 | 4683 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4684 | PyObject *resultobj; |
4685 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4686 | PyObject * obj0 = 0 ; | |
4687 | char *kwnames[] = { | |
4688 | (char *) "self", NULL | |
4689 | }; | |
4690 | ||
4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4694 | { |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | delete arg1; | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | Py_INCREF(Py_None); resultobj = Py_None; | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
c32bde28 | 4708 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4709 | PyObject *resultobj; |
4710 | int arg1 ; | |
4711 | wxCursor *result; | |
994141e6 | 4712 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4713 | char *kwnames[] = { |
4714 | (char *) "id", NULL | |
4715 | }; | |
4716 | ||
994141e6 | 4717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
c32bde28 | 4718 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 4719 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4720 | { |
e3b71cb8 | 4721 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4723 | result = (wxCursor *)new wxCursor(arg1); | |
4724 | ||
4725 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4726 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4727 | } |
15afbcd0 | 4728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4729 | return resultobj; |
4730 | fail: | |
4731 | return NULL; | |
4732 | } | |
4733 | ||
4734 | ||
c32bde28 | 4735 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4736 | PyObject *resultobj; |
4737 | wxImage *arg1 = 0 ; | |
4738 | wxCursor *result; | |
4739 | PyObject * obj0 = 0 ; | |
4740 | char *kwnames[] = { | |
4741 | (char *) "image", NULL | |
4742 | }; | |
4743 | ||
4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4746 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4747 | SWIG_fail; | |
d14a1e28 | 4748 | if (arg1 == NULL) { |
15afbcd0 RD |
4749 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4750 | SWIG_fail; | |
d14a1e28 RD |
4751 | } |
4752 | { | |
e3b71cb8 | 4753 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4755 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4756 | ||
4757 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4758 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4759 | } |
15afbcd0 | 4760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4761 | return resultobj; |
4762 | fail: | |
4763 | return NULL; | |
4764 | } | |
4765 | ||
4766 | ||
c32bde28 | 4767 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4768 | PyObject *resultobj; |
4769 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4770 | bool result; | |
4771 | PyObject * obj0 = 0 ; | |
4772 | char *kwnames[] = { | |
4773 | (char *) "self", NULL | |
4774 | }; | |
4775 | ||
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4779 | { |
4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4781 | result = (bool)(arg1)->Ok(); | |
4782 | ||
4783 | wxPyEndAllowThreads(__tstate); | |
4784 | if (PyErr_Occurred()) SWIG_fail; | |
4785 | } | |
4f89f6a3 RD |
4786 | { |
4787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4788 | } | |
d14a1e28 RD |
4789 | return resultobj; |
4790 | fail: | |
4791 | return NULL; | |
4792 | } | |
4793 | ||
4794 | ||
c32bde28 | 4795 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4796 | PyObject *obj; |
4797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4798 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4799 | Py_INCREF(obj); | |
4800 | return Py_BuildValue((char *)""); | |
4801 | } | |
c32bde28 | 4802 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4803 | PyObject *resultobj; |
e811c8ce RD |
4804 | int arg1 = (int) 0 ; |
4805 | int arg2 = (int) 0 ; | |
4806 | int arg3 = (int) 0 ; | |
4807 | int arg4 = (int) 0 ; | |
d14a1e28 | 4808 | wxRegion *result; |
994141e6 RD |
4809 | PyObject * obj0 = 0 ; |
4810 | PyObject * obj1 = 0 ; | |
4811 | PyObject * obj2 = 0 ; | |
4812 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4813 | char *kwnames[] = { |
4814 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4815 | }; | |
4816 | ||
994141e6 RD |
4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4818 | if (obj0) { | |
c32bde28 | 4819 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 4820 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4821 | } |
4822 | if (obj1) { | |
c32bde28 | 4823 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4824 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4825 | } |
4826 | if (obj2) { | |
c32bde28 | 4827 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4828 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4829 | } |
4830 | if (obj3) { | |
c32bde28 | 4831 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 4832 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4833 | } |
d14a1e28 | 4834 | { |
e3b71cb8 | 4835 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4837 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4838 | ||
4839 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4840 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4841 | } |
15afbcd0 | 4842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4843 | return resultobj; |
4844 | fail: | |
4845 | return NULL; | |
4846 | } | |
4847 | ||
4848 | ||
c32bde28 | 4849 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4850 | PyObject *resultobj; |
4851 | wxBitmap *arg1 = 0 ; | |
e6ffcedd RD |
4852 | wxRegion *result; |
4853 | PyObject * obj0 = 0 ; | |
4854 | char *kwnames[] = { | |
4855 | (char *) "bmp", NULL | |
4856 | }; | |
4857 | ||
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
4859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4861 | SWIG_fail; | |
4862 | if (arg1 == NULL) { | |
4863 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4864 | SWIG_fail; | |
4865 | } | |
4866 | { | |
4867 | if (!wxPyCheckForApp()) SWIG_fail; | |
4868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4869 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
4870 | ||
4871 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4872 | if (PyErr_Occurred()) SWIG_fail; |
e6ffcedd RD |
4873 | } |
4874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4875 | return resultobj; | |
4876 | fail: | |
4877 | return NULL; | |
4878 | } | |
4879 | ||
4880 | ||
c32bde28 | 4881 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
e6ffcedd RD |
4882 | PyObject *resultobj; |
4883 | wxBitmap *arg1 = 0 ; | |
4884 | wxColour *arg2 = 0 ; | |
d14a1e28 RD |
4885 | int arg3 = (int) 0 ; |
4886 | wxRegion *result; | |
4887 | wxColour temp2 ; | |
4888 | PyObject * obj0 = 0 ; | |
4889 | PyObject * obj1 = 0 ; | |
994141e6 | 4890 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4891 | char *kwnames[] = { |
4892 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4893 | }; | |
4894 | ||
e6ffcedd | 4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4897 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4898 | SWIG_fail; | |
d14a1e28 | 4899 | if (arg1 == NULL) { |
15afbcd0 RD |
4900 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4901 | SWIG_fail; | |
d14a1e28 | 4902 | } |
e6ffcedd RD |
4903 | { |
4904 | arg2 = &temp2; | |
4905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 4906 | } |
994141e6 | 4907 | if (obj2) { |
c32bde28 | 4908 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4909 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4910 | } |
d14a1e28 | 4911 | { |
e3b71cb8 | 4912 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4914 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4917 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4918 | } |
15afbcd0 | 4919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4920 | return resultobj; |
4921 | fail: | |
4922 | return NULL; | |
4923 | } | |
4924 | ||
4925 | ||
c32bde28 | 4926 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4927 | PyObject *resultobj; |
4928 | int arg1 ; | |
4929 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4930 | int arg3 = (int) wxWINDING_RULE ; | |
4931 | wxRegion *result; | |
4932 | PyObject * obj0 = 0 ; | |
994141e6 | 4933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4934 | char *kwnames[] = { |
4935 | (char *) "points",(char *) "fillStyle", NULL | |
4936 | }; | |
4937 | ||
994141e6 | 4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4939 | { |
4940 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4941 | if (arg2 == NULL) SWIG_fail; | |
4942 | } | |
994141e6 | 4943 | if (obj1) { |
c32bde28 | 4944 | arg3 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4945 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4946 | } |
d14a1e28 | 4947 | { |
e3b71cb8 | 4948 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4950 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4951 | ||
4952 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4953 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4954 | } |
15afbcd0 | 4955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4956 | { |
4957 | if (arg2) delete [] arg2; | |
4958 | } | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | { | |
4962 | if (arg2) delete [] arg2; | |
4963 | } | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
c32bde28 | 4968 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4969 | PyObject *resultobj; |
4970 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4971 | PyObject * obj0 = 0 ; | |
4972 | char *kwnames[] = { | |
4973 | (char *) "self", NULL | |
4974 | }; | |
4975 | ||
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4979 | { |
4980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4981 | delete arg1; | |
4982 | ||
4983 | wxPyEndAllowThreads(__tstate); | |
4984 | if (PyErr_Occurred()) SWIG_fail; | |
4985 | } | |
4986 | Py_INCREF(Py_None); resultobj = Py_None; | |
4987 | return resultobj; | |
4988 | fail: | |
4989 | return NULL; | |
4990 | } | |
4991 | ||
4992 | ||
c32bde28 | 4993 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4994 | PyObject *resultobj; |
4995 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4996 | PyObject * obj0 = 0 ; | |
4997 | char *kwnames[] = { | |
4998 | (char *) "self", NULL | |
4999 | }; | |
5000 | ||
5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5004 | { |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5006 | (arg1)->Clear(); | |
5007 | ||
5008 | wxPyEndAllowThreads(__tstate); | |
5009 | if (PyErr_Occurred()) SWIG_fail; | |
5010 | } | |
5011 | Py_INCREF(Py_None); resultobj = Py_None; | |
5012 | return resultobj; | |
5013 | fail: | |
5014 | return NULL; | |
5015 | } | |
5016 | ||
5017 | ||
c32bde28 | 5018 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5019 | PyObject *resultobj; |
5020 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5021 | int arg2 ; |
5022 | int arg3 ; | |
d14a1e28 RD |
5023 | bool result; |
5024 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5025 | PyObject * obj1 = 0 ; |
5026 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5027 | char *kwnames[] = { |
5028 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5029 | }; | |
5030 | ||
994141e6 | 5031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5034 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5035 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5036 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5037 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5038 | { |
5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5040 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5041 | ||
5042 | wxPyEndAllowThreads(__tstate); | |
5043 | if (PyErr_Occurred()) SWIG_fail; | |
5044 | } | |
4f89f6a3 RD |
5045 | { |
5046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5047 | } | |
d14a1e28 RD |
5048 | return resultobj; |
5049 | fail: | |
5050 | return NULL; | |
5051 | } | |
5052 | ||
5053 | ||
c32bde28 | 5054 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5055 | PyObject *resultobj; |
5056 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5057 | int arg2 ; |
5058 | int arg3 ; | |
d14a1e28 RD |
5059 | int result; |
5060 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5061 | PyObject * obj1 = 0 ; |
5062 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5063 | char *kwnames[] = { |
5064 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5065 | }; | |
5066 | ||
994141e6 | 5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5070 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5071 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5072 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5074 | { |
5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5076 | result = (int)(arg1)->Contains(arg2,arg3); | |
5077 | ||
5078 | wxPyEndAllowThreads(__tstate); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
c32bde28 | 5081 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5082 | return resultobj; |
5083 | fail: | |
5084 | return NULL; | |
5085 | } | |
5086 | ||
5087 | ||
c32bde28 | 5088 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5089 | PyObject *resultobj; |
5090 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5091 | wxPoint *arg2 = 0 ; | |
5092 | int result; | |
5093 | wxPoint temp2 ; | |
5094 | PyObject * obj0 = 0 ; | |
5095 | PyObject * obj1 = 0 ; | |
5096 | char *kwnames[] = { | |
5097 | (char *) "self",(char *) "pt", NULL | |
5098 | }; | |
5099 | ||
5100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5103 | { |
5104 | arg2 = &temp2; | |
5105 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5106 | } | |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5110 | ||
5111 | wxPyEndAllowThreads(__tstate); | |
5112 | if (PyErr_Occurred()) SWIG_fail; | |
5113 | } | |
c32bde28 | 5114 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5115 | return resultobj; |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
c32bde28 | 5121 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5122 | PyObject *resultobj; |
5123 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5124 | wxRect *arg2 = 0 ; | |
5125 | int result; | |
5126 | wxRect temp2 ; | |
5127 | PyObject * obj0 = 0 ; | |
5128 | PyObject * obj1 = 0 ; | |
5129 | char *kwnames[] = { | |
5130 | (char *) "self",(char *) "rect", NULL | |
5131 | }; | |
5132 | ||
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5136 | { |
5137 | arg2 = &temp2; | |
5138 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5139 | } | |
5140 | { | |
5141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5142 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5143 | ||
5144 | wxPyEndAllowThreads(__tstate); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | } | |
c32bde28 | 5147 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5148 | return resultobj; |
5149 | fail: | |
5150 | return NULL; | |
5151 | } | |
5152 | ||
5153 | ||
c32bde28 | 5154 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5155 | PyObject *resultobj; |
5156 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5157 | int arg2 ; |
5158 | int arg3 ; | |
5159 | int arg4 ; | |
5160 | int arg5 ; | |
d14a1e28 RD |
5161 | int result; |
5162 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5163 | PyObject * obj1 = 0 ; |
5164 | PyObject * obj2 = 0 ; | |
5165 | PyObject * obj3 = 0 ; | |
5166 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5167 | char *kwnames[] = { |
5168 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5169 | }; | |
5170 | ||
994141e6 | 5171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5174 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5175 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5176 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5177 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5178 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5179 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5180 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5181 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5182 | { |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
c32bde28 | 5189 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5190 | return resultobj; |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
c32bde28 | 5196 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5197 | PyObject *resultobj; |
5198 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5199 | wxRect result; | |
5200 | PyObject * obj0 = 0 ; | |
5201 | char *kwnames[] = { | |
5202 | (char *) "self", NULL | |
5203 | }; | |
5204 | ||
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5208 | { |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = (arg1)->GetBox(); | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
5215 | { | |
5216 | wxRect * resultptr; | |
5217 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 5218 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5219 | } |
5220 | return resultobj; | |
5221 | fail: | |
5222 | return NULL; | |
5223 | } | |
5224 | ||
5225 | ||
c32bde28 | 5226 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5227 | PyObject *resultobj; |
5228 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5229 | int arg2 ; |
5230 | int arg3 ; | |
5231 | int arg4 ; | |
5232 | int arg5 ; | |
d14a1e28 RD |
5233 | bool result; |
5234 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5235 | PyObject * obj1 = 0 ; |
5236 | PyObject * obj2 = 0 ; | |
5237 | PyObject * obj3 = 0 ; | |
5238 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5239 | char *kwnames[] = { |
5240 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5241 | }; | |
5242 | ||
994141e6 | 5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5246 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5247 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5248 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5249 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5250 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5251 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5252 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5253 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5254 | { |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5257 | ||
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
4f89f6a3 RD |
5261 | { |
5262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5263 | } | |
d14a1e28 RD |
5264 | return resultobj; |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
c32bde28 | 5270 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5271 | PyObject *resultobj; |
5272 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5273 | wxRect *arg2 = 0 ; | |
5274 | bool result; | |
5275 | wxRect temp2 ; | |
5276 | PyObject * obj0 = 0 ; | |
5277 | PyObject * obj1 = 0 ; | |
5278 | char *kwnames[] = { | |
5279 | (char *) "self",(char *) "rect", NULL | |
5280 | }; | |
5281 | ||
5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5285 | { |
5286 | arg2 = &temp2; | |
5287 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5288 | } | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5291 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5292 | ||
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
4f89f6a3 RD |
5296 | { |
5297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5298 | } | |
d14a1e28 RD |
5299 | return resultobj; |
5300 | fail: | |
5301 | return NULL; | |
5302 | } | |
5303 | ||
5304 | ||
c32bde28 | 5305 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5306 | PyObject *resultobj; |
5307 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5308 | wxRegion *arg2 = 0 ; | |
5309 | bool result; | |
5310 | PyObject * obj0 = 0 ; | |
5311 | PyObject * obj1 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self",(char *) "region", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5319 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5320 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5321 | SWIG_fail; | |
d14a1e28 | 5322 | if (arg2 == NULL) { |
15afbcd0 RD |
5323 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5324 | SWIG_fail; | |
d14a1e28 RD |
5325 | } |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
4f89f6a3 RD |
5333 | { |
5334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5335 | } | |
d14a1e28 RD |
5336 | return resultobj; |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
c32bde28 | 5342 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5343 | PyObject *resultobj; |
5344 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5345 | bool result; | |
5346 | PyObject * obj0 = 0 ; | |
5347 | char *kwnames[] = { | |
5348 | (char *) "self", NULL | |
5349 | }; | |
5350 | ||
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5354 | { |
5355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5356 | result = (bool)(arg1)->IsEmpty(); | |
5357 | ||
5358 | wxPyEndAllowThreads(__tstate); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | } | |
4f89f6a3 RD |
5361 | { |
5362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5363 | } | |
d14a1e28 RD |
5364 | return resultobj; |
5365 | fail: | |
5366 | return NULL; | |
5367 | } | |
5368 | ||
5369 | ||
c32bde28 | 5370 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5371 | PyObject *resultobj; |
5372 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5373 | int arg2 ; |
5374 | int arg3 ; | |
5375 | int arg4 ; | |
5376 | int arg5 ; | |
d14a1e28 RD |
5377 | bool result; |
5378 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5379 | PyObject * obj1 = 0 ; |
5380 | PyObject * obj2 = 0 ; | |
5381 | PyObject * obj3 = 0 ; | |
5382 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5383 | char *kwnames[] = { |
5384 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5385 | }; | |
5386 | ||
994141e6 | 5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5390 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5391 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5392 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5393 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5394 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5395 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5396 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5397 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5398 | { |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
4f89f6a3 RD |
5405 | { |
5406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5407 | } | |
d14a1e28 RD |
5408 | return resultobj; |
5409 | fail: | |
5410 | return NULL; | |
5411 | } | |
5412 | ||
5413 | ||
c32bde28 | 5414 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5415 | PyObject *resultobj; |
5416 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5417 | wxRect *arg2 = 0 ; | |
5418 | bool result; | |
5419 | wxRect temp2 ; | |
5420 | PyObject * obj0 = 0 ; | |
5421 | PyObject * obj1 = 0 ; | |
5422 | char *kwnames[] = { | |
5423 | (char *) "self",(char *) "rect", NULL | |
5424 | }; | |
5425 | ||
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5429 | { |
5430 | arg2 = &temp2; | |
5431 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5432 | } | |
5433 | { | |
5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5435 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5436 | ||
5437 | wxPyEndAllowThreads(__tstate); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
4f89f6a3 RD |
5440 | { |
5441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5442 | } | |
d14a1e28 RD |
5443 | return resultobj; |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
c32bde28 | 5449 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5450 | PyObject *resultobj; |
5451 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5452 | wxRegion *arg2 = 0 ; | |
5453 | bool result; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | PyObject * obj1 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self",(char *) "region", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5465 | SWIG_fail; | |
d14a1e28 | 5466 | if (arg2 == NULL) { |
15afbcd0 RD |
5467 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5468 | SWIG_fail; | |
d14a1e28 RD |
5469 | } |
5470 | { | |
5471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5472 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5473 | ||
5474 | wxPyEndAllowThreads(__tstate); | |
5475 | if (PyErr_Occurred()) SWIG_fail; | |
5476 | } | |
4f89f6a3 RD |
5477 | { |
5478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5479 | } | |
d14a1e28 RD |
5480 | return resultobj; |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
c32bde28 | 5486 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5487 | PyObject *resultobj; |
5488 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5489 | int arg2 ; |
5490 | int arg3 ; | |
5491 | int arg4 ; | |
5492 | int arg5 ; | |
d14a1e28 RD |
5493 | bool result; |
5494 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5495 | PyObject * obj1 = 0 ; |
5496 | PyObject * obj2 = 0 ; | |
5497 | PyObject * obj3 = 0 ; | |
5498 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5499 | char *kwnames[] = { |
5500 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5501 | }; | |
5502 | ||
994141e6 | 5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5506 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5507 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5508 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5509 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5510 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5511 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5512 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5513 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5514 | { |
5515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5516 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5517 | ||
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
4f89f6a3 RD |
5521 | { |
5522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5523 | } | |
d14a1e28 RD |
5524 | return resultobj; |
5525 | fail: | |
5526 | return NULL; | |
5527 | } | |
5528 | ||
5529 | ||
c32bde28 | 5530 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5531 | PyObject *resultobj; |
5532 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5533 | wxRect *arg2 = 0 ; | |
5534 | bool result; | |
5535 | wxRect temp2 ; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | PyObject * obj1 = 0 ; | |
5538 | char *kwnames[] = { | |
5539 | (char *) "self",(char *) "rect", NULL | |
5540 | }; | |
5541 | ||
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5545 | { |
5546 | arg2 = &temp2; | |
5547 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5548 | } | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5551 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
4f89f6a3 RD |
5556 | { |
5557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5558 | } | |
d14a1e28 RD |
5559 | return resultobj; |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
c32bde28 | 5565 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5566 | PyObject *resultobj; |
5567 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5568 | wxRegion *arg2 = 0 ; | |
5569 | bool result; | |
5570 | PyObject * obj0 = 0 ; | |
5571 | PyObject * obj1 = 0 ; | |
5572 | char *kwnames[] = { | |
5573 | (char *) "self",(char *) "region", NULL | |
5574 | }; | |
5575 | ||
5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5580 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5581 | SWIG_fail; | |
d14a1e28 | 5582 | if (arg2 == NULL) { |
15afbcd0 RD |
5583 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5584 | SWIG_fail; | |
d14a1e28 RD |
5585 | } |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5589 | ||
5590 | wxPyEndAllowThreads(__tstate); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
4f89f6a3 RD |
5593 | { |
5594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5595 | } | |
d14a1e28 RD |
5596 | return resultobj; |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
c32bde28 | 5602 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5603 | PyObject *resultobj; |
5604 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5605 | int arg2 ; |
5606 | int arg3 ; | |
5607 | int arg4 ; | |
5608 | int arg5 ; | |
d14a1e28 RD |
5609 | bool result; |
5610 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5611 | PyObject * obj1 = 0 ; |
5612 | PyObject * obj2 = 0 ; | |
5613 | PyObject * obj3 = 0 ; | |
5614 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5615 | char *kwnames[] = { |
5616 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5617 | }; | |
5618 | ||
994141e6 | 5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5622 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5623 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5624 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5625 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5626 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5627 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5628 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5629 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5630 | { |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5632 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5633 | ||
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
4f89f6a3 RD |
5637 | { |
5638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5639 | } | |
d14a1e28 RD |
5640 | return resultobj; |
5641 | fail: | |
5642 | return NULL; | |
5643 | } | |
5644 | ||
5645 | ||
c32bde28 | 5646 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5647 | PyObject *resultobj; |
5648 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5649 | wxRect *arg2 = 0 ; | |
5650 | bool result; | |
5651 | wxRect temp2 ; | |
5652 | PyObject * obj0 = 0 ; | |
5653 | PyObject * obj1 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self",(char *) "rect", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5661 | { |
5662 | arg2 = &temp2; | |
5663 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5664 | } | |
5665 | { | |
5666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5667 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5668 | ||
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
4f89f6a3 RD |
5672 | { |
5673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5674 | } | |
d14a1e28 RD |
5675 | return resultobj; |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
c32bde28 | 5681 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5682 | PyObject *resultobj; |
5683 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5684 | wxRegion *arg2 = 0 ; | |
5685 | bool result; | |
5686 | PyObject * obj0 = 0 ; | |
5687 | PyObject * obj1 = 0 ; | |
5688 | char *kwnames[] = { | |
5689 | (char *) "self",(char *) "region", NULL | |
5690 | }; | |
5691 | ||
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5696 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5697 | SWIG_fail; | |
d14a1e28 | 5698 | if (arg2 == NULL) { |
15afbcd0 RD |
5699 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5700 | SWIG_fail; | |
d14a1e28 RD |
5701 | } |
5702 | { | |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5705 | ||
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
4f89f6a3 RD |
5709 | { |
5710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5711 | } | |
d14a1e28 RD |
5712 | return resultobj; |
5713 | fail: | |
5714 | return NULL; | |
5715 | } | |
5716 | ||
5717 | ||
c32bde28 | 5718 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5719 | PyObject *resultobj; |
5720 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5721 | SwigValueWrapper< wxBitmap > result; | |
5722 | PyObject * obj0 = 0 ; | |
5723 | char *kwnames[] = { | |
5724 | (char *) "self", NULL | |
5725 | }; | |
5726 | ||
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5730 | { |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | result = (arg1)->ConvertToBitmap(); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | { | |
5738 | wxBitmap * resultptr; | |
5739 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5740 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5741 | } |
5742 | return resultobj; | |
5743 | fail: | |
5744 | return NULL; | |
5745 | } | |
5746 | ||
5747 | ||
c32bde28 | 5748 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5749 | PyObject *resultobj; |
5750 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5751 | wxBitmap *arg2 = 0 ; | |
e6ffcedd RD |
5752 | bool result; |
5753 | PyObject * obj0 = 0 ; | |
5754 | PyObject * obj1 = 0 ; | |
5755 | char *kwnames[] = { | |
5756 | (char *) "self",(char *) "bmp", NULL | |
5757 | }; | |
5758 | ||
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5763 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5764 | SWIG_fail; | |
5765 | if (arg2 == NULL) { | |
5766 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5767 | SWIG_fail; | |
5768 | } | |
5769 | { | |
5770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5771 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
5772 | ||
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | { | |
5777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5778 | } | |
5779 | return resultobj; | |
5780 | fail: | |
5781 | return NULL; | |
5782 | } | |
5783 | ||
5784 | ||
c32bde28 | 5785 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
e6ffcedd RD |
5786 | PyObject *resultobj; |
5787 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5788 | wxBitmap *arg2 = 0 ; | |
5789 | wxColour *arg3 = 0 ; | |
d14a1e28 RD |
5790 | int arg4 = (int) 0 ; |
5791 | bool result; | |
5792 | wxColour temp3 ; | |
5793 | PyObject * obj0 = 0 ; | |
5794 | PyObject * obj1 = 0 ; | |
5795 | PyObject * obj2 = 0 ; | |
994141e6 | 5796 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5797 | char *kwnames[] = { |
5798 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5799 | }; | |
5800 | ||
e6ffcedd | 5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5806 | SWIG_fail; | |
d14a1e28 | 5807 | if (arg2 == NULL) { |
15afbcd0 RD |
5808 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5809 | SWIG_fail; | |
d14a1e28 | 5810 | } |
e6ffcedd RD |
5811 | { |
5812 | arg3 = &temp3; | |
5813 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 5814 | } |
994141e6 | 5815 | if (obj3) { |
c32bde28 | 5816 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5817 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5818 | } |
d14a1e28 RD |
5819 | { |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
4f89f6a3 RD |
5826 | { |
5827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5828 | } | |
d14a1e28 RD |
5829 | return resultobj; |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
c32bde28 | 5835 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5836 | PyObject *obj; |
5837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5838 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5839 | Py_INCREF(obj); | |
5840 | return Py_BuildValue((char *)""); | |
5841 | } | |
c32bde28 | 5842 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5843 | PyObject *resultobj; |
5844 | wxRegion *arg1 = 0 ; | |
5845 | wxRegionIterator *result; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | char *kwnames[] = { | |
5848 | (char *) "region", NULL | |
5849 | }; | |
5850 | ||
5851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5854 | SWIG_fail; | |
d14a1e28 | 5855 | if (arg1 == NULL) { |
15afbcd0 RD |
5856 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5857 | SWIG_fail; | |
d14a1e28 RD |
5858 | } |
5859 | { | |
e3b71cb8 | 5860 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5862 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5863 | ||
5864 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5865 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5866 | } |
15afbcd0 | 5867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
5868 | return resultobj; |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
c32bde28 | 5874 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5875 | PyObject *resultobj; |
5876 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5877 | PyObject * obj0 = 0 ; | |
5878 | char *kwnames[] = { | |
5879 | (char *) "self", NULL | |
5880 | }; | |
5881 | ||
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5885 | { |
5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5887 | delete arg1; | |
5888 | ||
5889 | wxPyEndAllowThreads(__tstate); | |
5890 | if (PyErr_Occurred()) SWIG_fail; | |
5891 | } | |
5892 | Py_INCREF(Py_None); resultobj = Py_None; | |
5893 | return resultobj; | |
5894 | fail: | |
5895 | return NULL; | |
5896 | } | |
5897 | ||
5898 | ||
c32bde28 | 5899 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5900 | PyObject *resultobj; |
5901 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5902 | int result; |
d14a1e28 RD |
5903 | PyObject * obj0 = 0 ; |
5904 | char *kwnames[] = { | |
5905 | (char *) "self", NULL | |
5906 | }; | |
5907 | ||
5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5911 | { |
5912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5913 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5914 | |
5915 | wxPyEndAllowThreads(__tstate); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
5917 | } | |
c32bde28 | 5918 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5919 | return resultobj; |
5920 | fail: | |
5921 | return NULL; | |
5922 | } | |
5923 | ||
5924 | ||
c32bde28 | 5925 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5926 | PyObject *resultobj; |
5927 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5928 | int result; |
d14a1e28 RD |
5929 | PyObject * obj0 = 0 ; |
5930 | char *kwnames[] = { | |
5931 | (char *) "self", NULL | |
5932 | }; | |
5933 | ||
5934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5937 | { |
5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5939 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5940 | |
5941 | wxPyEndAllowThreads(__tstate); | |
5942 | if (PyErr_Occurred()) SWIG_fail; | |
5943 | } | |
c32bde28 | 5944 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5945 | return resultobj; |
5946 | fail: | |
5947 | return NULL; | |
5948 | } | |
5949 | ||
5950 | ||
c32bde28 | 5951 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5952 | PyObject *resultobj; |
5953 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5954 | int result; |
d14a1e28 RD |
5955 | PyObject * obj0 = 0 ; |
5956 | char *kwnames[] = { | |
5957 | (char *) "self", NULL | |
5958 | }; | |
5959 | ||
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5963 | { |
5964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5965 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5966 | |
5967 | wxPyEndAllowThreads(__tstate); | |
5968 | if (PyErr_Occurred()) SWIG_fail; | |
5969 | } | |
c32bde28 | 5970 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5971 | return resultobj; |
5972 | fail: | |
5973 | return NULL; | |
5974 | } | |
5975 | ||
5976 | ||
c32bde28 | 5977 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5978 | PyObject *resultobj; |
5979 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5980 | int result; |
d14a1e28 RD |
5981 | PyObject * obj0 = 0 ; |
5982 | char *kwnames[] = { | |
5983 | (char *) "self", NULL | |
5984 | }; | |
5985 | ||
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5989 | { |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5991 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5992 | |
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
c32bde28 | 5996 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5997 | return resultobj; |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
c32bde28 | 6003 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6004 | PyObject *resultobj; |
6005 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 6006 | int result; |
d14a1e28 RD |
6007 | PyObject * obj0 = 0 ; |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6015 | { |
6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 6017 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
6018 | |
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
c32bde28 | 6022 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6023 | return resultobj; |
6024 | fail: | |
6025 | return NULL; | |
6026 | } | |
6027 | ||
6028 | ||
c32bde28 | 6029 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6030 | PyObject *resultobj; |
6031 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 6032 | int result; |
d14a1e28 RD |
6033 | PyObject * obj0 = 0 ; |
6034 | char *kwnames[] = { | |
6035 | (char *) "self", NULL | |
6036 | }; | |
6037 | ||
6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6041 | { |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 6043 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
6044 | |
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
c32bde28 | 6048 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6049 | return resultobj; |
6050 | fail: | |
6051 | return NULL; | |
6052 | } | |
6053 | ||
6054 | ||
c32bde28 | 6055 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6056 | PyObject *resultobj; |
6057 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6058 | wxRect result; | |
6059 | PyObject * obj0 = 0 ; | |
6060 | char *kwnames[] = { | |
6061 | (char *) "self", NULL | |
6062 | }; | |
6063 | ||
6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6067 | { |
6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6069 | result = (arg1)->GetRect(); | |
6070 | ||
6071 | wxPyEndAllowThreads(__tstate); | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | wxRect * resultptr; | |
6076 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 6077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
6078 | } |
6079 | return resultobj; | |
6080 | fail: | |
6081 | return NULL; | |
6082 | } | |
6083 | ||
6084 | ||
c32bde28 | 6085 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6086 | PyObject *resultobj; |
6087 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6088 | bool result; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | char *kwnames[] = { | |
6091 | (char *) "self", NULL | |
6092 | }; | |
6093 | ||
6094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6097 | { |
6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6099 | result = (bool)(arg1)->HaveRects(); | |
6100 | ||
6101 | wxPyEndAllowThreads(__tstate); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | } | |
4f89f6a3 RD |
6104 | { |
6105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6106 | } | |
d14a1e28 RD |
6107 | return resultobj; |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
c32bde28 | 6113 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6114 | PyObject *resultobj; |
6115 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | char *kwnames[] = { | |
6118 | (char *) "self", NULL | |
6119 | }; | |
6120 | ||
6121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6124 | { |
6125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6126 | (arg1)->Reset(); | |
6127 | ||
6128 | wxPyEndAllowThreads(__tstate); | |
6129 | if (PyErr_Occurred()) SWIG_fail; | |
6130 | } | |
6131 | Py_INCREF(Py_None); resultobj = Py_None; | |
6132 | return resultobj; | |
6133 | fail: | |
6134 | return NULL; | |
6135 | } | |
6136 | ||
6137 | ||
c32bde28 | 6138 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6139 | PyObject *resultobj; |
6140 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6141 | PyObject * obj0 = 0 ; | |
6142 | char *kwnames[] = { | |
6143 | (char *) "self", NULL | |
6144 | }; | |
6145 | ||
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6149 | { |
6150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6151 | wxRegionIterator_Next(arg1); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
6156 | Py_INCREF(Py_None); resultobj = Py_None; | |
6157 | return resultobj; | |
6158 | fail: | |
6159 | return NULL; | |
6160 | } | |
6161 | ||
6162 | ||
c32bde28 | 6163 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6164 | PyObject *resultobj; |
6165 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6166 | bool result; | |
6167 | PyObject * obj0 = 0 ; | |
6168 | char *kwnames[] = { | |
6169 | (char *) "self", NULL | |
6170 | }; | |
6171 | ||
6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6175 | { |
6176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6177 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6178 | ||
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
6181 | } | |
4f89f6a3 RD |
6182 | { |
6183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6184 | } | |
d14a1e28 RD |
6185 | return resultobj; |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
c32bde28 | 6191 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6192 | PyObject *obj; |
6193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6194 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6195 | Py_INCREF(obj); | |
6196 | return Py_BuildValue((char *)""); | |
6197 | } | |
c32bde28 | 6198 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6199 | PyObject *resultobj; |
6200 | wxNativeFontInfo *result; | |
6201 | char *kwnames[] = { | |
6202 | NULL | |
6203 | }; | |
6204 | ||
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6206 | { | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6209 | ||
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
15afbcd0 | 6213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
6214 | return resultobj; |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
c32bde28 | 6220 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6221 | PyObject *resultobj; |
6222 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6231 | { |
6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6233 | delete arg1; | |
6234 | ||
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
6238 | Py_INCREF(Py_None); resultobj = Py_None; | |
6239 | return resultobj; | |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
c32bde28 | 6245 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6246 | PyObject *resultobj; |
6247 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6248 | PyObject * obj0 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "self", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6256 | { |
6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6258 | (arg1)->Init(); | |
6259 | ||
6260 | wxPyEndAllowThreads(__tstate); | |
6261 | if (PyErr_Occurred()) SWIG_fail; | |
6262 | } | |
6263 | Py_INCREF(Py_None); resultobj = Py_None; | |
6264 | return resultobj; | |
6265 | fail: | |
6266 | return NULL; | |
6267 | } | |
6268 | ||
6269 | ||
c32bde28 | 6270 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6271 | PyObject *resultobj; |
6272 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6273 | wxFont *arg2 = 0 ; | |
6274 | PyObject * obj0 = 0 ; | |
6275 | PyObject * obj1 = 0 ; | |
6276 | char *kwnames[] = { | |
6277 | (char *) "self",(char *) "font", NULL | |
6278 | }; | |
6279 | ||
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6283 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6285 | SWIG_fail; | |
d14a1e28 | 6286 | if (arg2 == NULL) { |
15afbcd0 RD |
6287 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6288 | SWIG_fail; | |
d14a1e28 RD |
6289 | } |
6290 | { | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6293 | ||
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
6297 | Py_INCREF(Py_None); resultobj = Py_None; | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c32bde28 | 6304 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6305 | PyObject *resultobj; |
6306 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6307 | int result; | |
6308 | PyObject * obj0 = 0 ; | |
6309 | char *kwnames[] = { | |
6310 | (char *) "self", NULL | |
6311 | }; | |
6312 | ||
6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6316 | { |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6319 | ||
6320 | wxPyEndAllowThreads(__tstate); | |
6321 | if (PyErr_Occurred()) SWIG_fail; | |
6322 | } | |
c32bde28 | 6323 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6324 | return resultobj; |
6325 | fail: | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
c32bde28 | 6330 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6331 | PyObject *resultobj; |
6332 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6333 | int result; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "self", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6342 | { |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
c32bde28 | 6349 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6350 | return resultobj; |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
c32bde28 | 6356 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6357 | PyObject *resultobj; |
6358 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6359 | int result; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "self", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6368 | { |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
c32bde28 | 6375 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6376 | return resultobj; |
6377 | fail: | |
6378 | return NULL; | |
6379 | } | |
6380 | ||
6381 | ||
c32bde28 | 6382 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6383 | PyObject *resultobj; |
6384 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6385 | bool result; | |
6386 | PyObject * obj0 = 0 ; | |
6387 | char *kwnames[] = { | |
6388 | (char *) "self", NULL | |
6389 | }; | |
6390 | ||
6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6394 | { |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
4f89f6a3 RD |
6401 | { |
6402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6403 | } | |
d14a1e28 RD |
6404 | return resultobj; |
6405 | fail: | |
6406 | return NULL; | |
6407 | } | |
6408 | ||
6409 | ||
c32bde28 | 6410 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6411 | PyObject *resultobj; |
6412 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6413 | wxString result; | |
6414 | PyObject * obj0 = 0 ; | |
6415 | char *kwnames[] = { | |
6416 | (char *) "self", NULL | |
6417 | }; | |
6418 | ||
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6422 | { |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6424 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6425 | ||
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | } | |
6429 | { | |
6430 | #if wxUSE_UNICODE | |
6431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6432 | #else | |
6433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6434 | #endif | |
6435 | } | |
6436 | return resultobj; | |
6437 | fail: | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
c32bde28 | 6442 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6443 | PyObject *resultobj; |
6444 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6445 | int result; | |
6446 | PyObject * obj0 = 0 ; | |
6447 | char *kwnames[] = { | |
6448 | (char *) "self", NULL | |
6449 | }; | |
6450 | ||
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6454 | { |
6455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6456 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6457 | ||
6458 | wxPyEndAllowThreads(__tstate); | |
6459 | if (PyErr_Occurred()) SWIG_fail; | |
6460 | } | |
c32bde28 | 6461 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6462 | return resultobj; |
6463 | fail: | |
6464 | return NULL; | |
6465 | } | |
6466 | ||
6467 | ||
c32bde28 | 6468 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6469 | PyObject *resultobj; |
6470 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6471 | int result; | |
6472 | PyObject * obj0 = 0 ; | |
6473 | char *kwnames[] = { | |
6474 | (char *) "self", NULL | |
6475 | }; | |
6476 | ||
6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6480 | { |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6483 | ||
6484 | wxPyEndAllowThreads(__tstate); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
c32bde28 | 6487 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6488 | return resultobj; |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
c32bde28 | 6494 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6495 | PyObject *resultobj; |
6496 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6497 | int arg2 ; | |
6498 | PyObject * obj0 = 0 ; | |
994141e6 | 6499 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6500 | char *kwnames[] = { |
6501 | (char *) "self",(char *) "pointsize", NULL | |
6502 | }; | |
6503 | ||
994141e6 | 6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6507 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6508 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6509 | { |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | (arg1)->SetPointSize(arg2); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | Py_INCREF(Py_None); resultobj = Py_None; | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
c32bde28 | 6523 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6524 | PyObject *resultobj; |
6525 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6526 | int arg2 ; | |
6527 | PyObject * obj0 = 0 ; | |
994141e6 | 6528 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6529 | char *kwnames[] = { |
6530 | (char *) "self",(char *) "style", NULL | |
6531 | }; | |
6532 | ||
994141e6 | 6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",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; | |
c32bde28 | 6536 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6537 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6538 | { |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6540 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6541 | ||
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | Py_INCREF(Py_None); resultobj = Py_None; | |
6546 | return resultobj; | |
6547 | fail: | |
6548 | return NULL; | |
6549 | } | |
6550 | ||
6551 | ||
c32bde28 | 6552 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6553 | PyObject *resultobj; |
6554 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6555 | int arg2 ; | |
6556 | PyObject * obj0 = 0 ; | |
994141e6 | 6557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6558 | char *kwnames[] = { |
6559 | (char *) "self",(char *) "weight", NULL | |
6560 | }; | |
6561 | ||
994141e6 | 6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6565 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6566 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6567 | { |
6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6569 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6570 | ||
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
6574 | Py_INCREF(Py_None); resultobj = Py_None; | |
6575 | return resultobj; | |
6576 | fail: | |
6577 | return NULL; | |
6578 | } | |
6579 | ||
6580 | ||
c32bde28 | 6581 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6582 | PyObject *resultobj; |
6583 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6584 | bool arg2 ; | |
6585 | PyObject * obj0 = 0 ; | |
6586 | PyObject * obj1 = 0 ; | |
6587 | char *kwnames[] = { | |
6588 | (char *) "self",(char *) "underlined", NULL | |
6589 | }; | |
6590 | ||
6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6594 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 6595 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6596 | { |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | (arg1)->SetUnderlined(arg2); | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | Py_INCREF(Py_None); resultobj = Py_None; | |
6604 | return resultobj; | |
6605 | fail: | |
6606 | return NULL; | |
6607 | } | |
6608 | ||
6609 | ||
c32bde28 | 6610 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6611 | PyObject *resultobj; |
6612 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6613 | wxString arg2 ; | |
d14a1e28 RD |
6614 | PyObject * obj0 = 0 ; |
6615 | PyObject * obj1 = 0 ; | |
6616 | char *kwnames[] = { | |
6617 | (char *) "self",(char *) "facename", NULL | |
6618 | }; | |
6619 | ||
6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
6623 | { |
6624 | wxString* sptr = wxString_in_helper(obj1); | |
6625 | if (sptr == NULL) SWIG_fail; | |
6626 | arg2 = *sptr; | |
6627 | delete sptr; | |
6628 | } | |
d14a1e28 RD |
6629 | { |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | (arg1)->SetFaceName(arg2); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | Py_INCREF(Py_None); resultobj = Py_None; | |
6637 | return resultobj; | |
6638 | fail: | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
c32bde28 | 6643 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6644 | PyObject *resultobj; |
6645 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6646 | int arg2 ; | |
6647 | PyObject * obj0 = 0 ; | |
994141e6 | 6648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6649 | char *kwnames[] = { |
6650 | (char *) "self",(char *) "family", NULL | |
6651 | }; | |
6652 | ||
994141e6 | 6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6656 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6657 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6658 | { |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
6665 | Py_INCREF(Py_None); resultobj = Py_None; | |
6666 | return resultobj; | |
6667 | fail: | |
6668 | return NULL; | |
6669 | } | |
6670 | ||
6671 | ||
c32bde28 | 6672 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6673 | PyObject *resultobj; |
6674 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6675 | int arg2 ; | |
6676 | PyObject * obj0 = 0 ; | |
994141e6 | 6677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6678 | char *kwnames[] = { |
6679 | (char *) "self",(char *) "encoding", NULL | |
6680 | }; | |
6681 | ||
994141e6 | 6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6685 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6686 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6687 | { |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | Py_INCREF(Py_None); resultobj = Py_None; | |
6695 | return resultobj; | |
6696 | fail: | |
6697 | return NULL; | |
6698 | } | |
6699 | ||
6700 | ||
c32bde28 | 6701 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6702 | PyObject *resultobj; |
6703 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6704 | wxString *arg2 = 0 ; | |
6705 | bool result; | |
ae8162c8 | 6706 | bool temp2 = false ; |
d14a1e28 RD |
6707 | PyObject * obj0 = 0 ; |
6708 | PyObject * obj1 = 0 ; | |
6709 | char *kwnames[] = { | |
6710 | (char *) "self",(char *) "s", NULL | |
6711 | }; | |
6712 | ||
6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6716 | { |
6717 | arg2 = wxString_in_helper(obj1); | |
6718 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6719 | temp2 = true; |
d14a1e28 RD |
6720 | } |
6721 | { | |
6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6723 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6724 | ||
6725 | wxPyEndAllowThreads(__tstate); | |
6726 | if (PyErr_Occurred()) SWIG_fail; | |
6727 | } | |
4f89f6a3 RD |
6728 | { |
6729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6730 | } | |
d14a1e28 RD |
6731 | { |
6732 | if (temp2) | |
6733 | delete arg2; | |
6734 | } | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | { | |
6738 | if (temp2) | |
6739 | delete arg2; | |
6740 | } | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
c32bde28 | 6745 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6746 | PyObject *resultobj; |
6747 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6748 | wxString result; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | char *kwnames[] = { | |
6751 | (char *) "self", NULL | |
6752 | }; | |
6753 | ||
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6757 | { |
6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6759 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6760 | ||
6761 | wxPyEndAllowThreads(__tstate); | |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
6763 | } | |
6764 | { | |
6765 | #if wxUSE_UNICODE | |
6766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6767 | #else | |
6768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6769 | #endif | |
6770 | } | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
c32bde28 | 6777 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6778 | PyObject *resultobj; |
6779 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6780 | wxString result; | |
6781 | PyObject * obj0 = 0 ; | |
6782 | char *kwnames[] = { | |
6783 | (char *) "self", NULL | |
6784 | }; | |
6785 | ||
6786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6789 | { |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | result = wxNativeFontInfo___str__(arg1); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) SWIG_fail; | |
6795 | } | |
6796 | { | |
6797 | #if wxUSE_UNICODE | |
6798 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6799 | #else | |
6800 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6801 | #endif | |
6802 | } | |
6803 | return resultobj; | |
6804 | fail: | |
6805 | return NULL; | |
6806 | } | |
6807 | ||
6808 | ||
c32bde28 | 6809 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6810 | PyObject *resultobj; |
6811 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6812 | wxString *arg2 = 0 ; | |
6813 | bool result; | |
ae8162c8 | 6814 | bool temp2 = false ; |
d14a1e28 RD |
6815 | PyObject * obj0 = 0 ; |
6816 | PyObject * obj1 = 0 ; | |
6817 | char *kwnames[] = { | |
6818 | (char *) "self",(char *) "s", NULL | |
6819 | }; | |
6820 | ||
6821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6824 | { |
6825 | arg2 = wxString_in_helper(obj1); | |
6826 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6827 | temp2 = true; |
d14a1e28 RD |
6828 | } |
6829 | { | |
6830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6831 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6832 | ||
6833 | wxPyEndAllowThreads(__tstate); | |
6834 | if (PyErr_Occurred()) SWIG_fail; | |
6835 | } | |
4f89f6a3 RD |
6836 | { |
6837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6838 | } | |
d14a1e28 RD |
6839 | { |
6840 | if (temp2) | |
6841 | delete arg2; | |
6842 | } | |
6843 | return resultobj; | |
6844 | fail: | |
6845 | { | |
6846 | if (temp2) | |
6847 | delete arg2; | |
6848 | } | |
6849 | return NULL; | |
6850 | } | |
6851 | ||
6852 | ||
c32bde28 | 6853 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6854 | PyObject *resultobj; |
6855 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6856 | wxString result; | |
6857 | PyObject * obj0 = 0 ; | |
6858 | char *kwnames[] = { | |
6859 | (char *) "self", NULL | |
6860 | }; | |
6861 | ||
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6865 | { |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6867 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
6872 | { | |
6873 | #if wxUSE_UNICODE | |
6874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6875 | #else | |
6876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6877 | #endif | |
6878 | } | |
6879 | return resultobj; | |
6880 | fail: | |
6881 | return NULL; | |
6882 | } | |
6883 | ||
6884 | ||
c32bde28 | 6885 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6886 | PyObject *obj; |
6887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6888 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6889 | Py_INCREF(obj); | |
6890 | return Py_BuildValue((char *)""); | |
6891 | } | |
c32bde28 | 6892 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6893 | PyObject *resultobj; |
6894 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6895 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 6896 | bool temp2 = false ; |
d14a1e28 RD |
6897 | PyObject * obj0 = 0 ; |
6898 | PyObject * obj1 = 0 ; | |
6899 | char *kwnames[] = { | |
6900 | (char *) "self",(char *) "facename", NULL | |
6901 | }; | |
6902 | ||
6903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
6906 | { |
6907 | arg2 = wxString_in_helper(obj1); | |
6908 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6909 | temp2 = true; |
7eae615b | 6910 | } |
196addbf | 6911 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6912 | |
6913 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6914 | { |
6915 | if (temp2) | |
6916 | delete arg2; | |
6917 | } | |
d14a1e28 RD |
6918 | return resultobj; |
6919 | fail: | |
7eae615b RD |
6920 | { |
6921 | if (temp2) | |
6922 | delete arg2; | |
6923 | } | |
d14a1e28 RD |
6924 | return NULL; |
6925 | } | |
6926 | ||
6927 | ||
c32bde28 | 6928 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6929 | PyObject *resultobj; |
6930 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6931 | wxString *result; |
d14a1e28 RD |
6932 | PyObject * obj0 = 0 ; |
6933 | char *kwnames[] = { | |
6934 | (char *) "self", NULL | |
6935 | }; | |
6936 | ||
6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 6940 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6941 | |
6942 | { | |
6943 | #if wxUSE_UNICODE | |
196addbf | 6944 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6945 | #else |
196addbf | 6946 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6947 | #endif |
6948 | } | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
c32bde28 | 6955 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6956 | PyObject *resultobj; |
6957 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6958 | int arg2 ; | |
6959 | PyObject * obj0 = 0 ; | |
994141e6 | 6960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6961 | char *kwnames[] = { |
6962 | (char *) "self",(char *) "encoding", NULL | |
6963 | }; | |
6964 | ||
994141e6 | 6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6968 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6970 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6971 | ||
6972 | Py_INCREF(Py_None); resultobj = Py_None; | |
6973 | return resultobj; | |
6974 | fail: | |
6975 | return NULL; | |
6976 | } | |
6977 | ||
6978 | ||
c32bde28 | 6979 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6980 | PyObject *resultobj; |
6981 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6982 | int result; | |
6983 | PyObject * obj0 = 0 ; | |
6984 | char *kwnames[] = { | |
6985 | (char *) "self", NULL | |
6986 | }; | |
6987 | ||
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6991 | result = (int) ((arg1)->encoding); |
6992 | ||
c32bde28 | 6993 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6994 | return resultobj; |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
c32bde28 | 7000 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7001 | PyObject *resultobj; |
7002 | wxNativeEncodingInfo *result; | |
7003 | char *kwnames[] = { | |
7004 | NULL | |
7005 | }; | |
7006 | ||
7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
15afbcd0 | 7015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
7016 | return resultobj; |
7017 | fail: | |
7018 | return NULL; | |
7019 | } | |
7020 | ||
7021 | ||
c32bde28 | 7022 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7023 | PyObject *resultobj; |
7024 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7025 | PyObject * obj0 = 0 ; | |
7026 | char *kwnames[] = { | |
7027 | (char *) "self", NULL | |
7028 | }; | |
7029 | ||
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7033 | { |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | delete arg1; | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | Py_INCREF(Py_None); resultobj = Py_None; | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
c32bde28 | 7047 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7048 | PyObject *resultobj; |
7049 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7050 | wxString *arg2 = 0 ; | |
7051 | bool result; | |
ae8162c8 | 7052 | bool temp2 = false ; |
d14a1e28 RD |
7053 | PyObject * obj0 = 0 ; |
7054 | PyObject * obj1 = 0 ; | |
7055 | char *kwnames[] = { | |
7056 | (char *) "self",(char *) "s", NULL | |
7057 | }; | |
7058 | ||
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7062 | { |
7063 | arg2 = wxString_in_helper(obj1); | |
7064 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7065 | temp2 = true; |
d14a1e28 RD |
7066 | } |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
4f89f6a3 RD |
7074 | { |
7075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7076 | } | |
d14a1e28 RD |
7077 | { |
7078 | if (temp2) | |
7079 | delete arg2; | |
7080 | } | |
7081 | return resultobj; | |
7082 | fail: | |
7083 | { | |
7084 | if (temp2) | |
7085 | delete arg2; | |
7086 | } | |
7087 | return NULL; | |
7088 | } | |
7089 | ||
7090 | ||
c32bde28 | 7091 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7092 | PyObject *resultobj; |
7093 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7094 | wxString result; | |
7095 | PyObject * obj0 = 0 ; | |
7096 | char *kwnames[] = { | |
7097 | (char *) "self", NULL | |
7098 | }; | |
7099 | ||
7100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7103 | { |
7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7105 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | { | |
7111 | #if wxUSE_UNICODE | |
7112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7113 | #else | |
7114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7115 | #endif | |
7116 | } | |
7117 | return resultobj; | |
7118 | fail: | |
7119 | return NULL; | |
7120 | } | |
7121 | ||
7122 | ||
c32bde28 | 7123 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7124 | PyObject *obj; |
7125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7126 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7127 | Py_INCREF(obj); | |
7128 | return Py_BuildValue((char *)""); | |
7129 | } | |
c32bde28 | 7130 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7131 | PyObject *resultobj; |
7132 | int arg1 ; | |
7133 | wxNativeEncodingInfo *result; | |
994141e6 | 7134 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7135 | char *kwnames[] = { |
7136 | (char *) "encoding", NULL | |
7137 | }; | |
7138 | ||
994141e6 | 7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
c32bde28 | 7140 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7141 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
7142 | { |
7143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7144 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
7145 | |
7146 | wxPyEndAllowThreads(__tstate); | |
7147 | if (PyErr_Occurred()) SWIG_fail; | |
7148 | } | |
15afbcd0 | 7149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
7150 | return resultobj; |
7151 | fail: | |
7152 | return NULL; | |
7153 | } | |
7154 | ||
7155 | ||
c32bde28 | 7156 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7157 | PyObject *resultobj; |
7158 | wxNativeEncodingInfo *arg1 = 0 ; | |
7159 | bool result; | |
7160 | PyObject * obj0 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "info", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7167 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7168 | SWIG_fail; | |
d14a1e28 | 7169 | if (arg1 == NULL) { |
15afbcd0 RD |
7170 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7171 | SWIG_fail; | |
d14a1e28 RD |
7172 | } |
7173 | { | |
7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7175 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7176 | ||
7177 | wxPyEndAllowThreads(__tstate); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
4f89f6a3 RD |
7180 | { |
7181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7182 | } | |
d14a1e28 RD |
7183 | return resultobj; |
7184 | fail: | |
7185 | return NULL; | |
7186 | } | |
7187 | ||
7188 | ||
c32bde28 | 7189 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7190 | PyObject *resultobj; |
7191 | wxFontMapper *result; | |
7192 | char *kwnames[] = { | |
7193 | NULL | |
7194 | }; | |
7195 | ||
7196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7197 | { | |
7198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7199 | result = (wxFontMapper *)new wxFontMapper(); | |
7200 | ||
7201 | wxPyEndAllowThreads(__tstate); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
15afbcd0 | 7204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
7205 | return resultobj; |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
c32bde28 | 7211 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7212 | PyObject *resultobj; |
7213 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7214 | PyObject * obj0 = 0 ; | |
7215 | char *kwnames[] = { | |
7216 | (char *) "self", NULL | |
7217 | }; | |
7218 | ||
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7222 | { |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | delete arg1; | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | Py_INCREF(Py_None); resultobj = Py_None; | |
7230 | return resultobj; | |
7231 | fail: | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
c32bde28 | 7236 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7237 | PyObject *resultobj; |
7238 | wxFontMapper *result; | |
7239 | char *kwnames[] = { | |
7240 | NULL | |
7241 | }; | |
7242 | ||
7243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7244 | { | |
7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7246 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7247 | ||
7248 | wxPyEndAllowThreads(__tstate); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
15afbcd0 | 7251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
7252 | return resultobj; |
7253 | fail: | |
7254 | return NULL; | |
7255 | } | |
7256 | ||
7257 | ||
c32bde28 | 7258 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7259 | PyObject *resultobj; |
7260 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7261 | wxFontMapper *result; | |
7262 | PyObject * obj0 = 0 ; | |
7263 | char *kwnames[] = { | |
7264 | (char *) "mapper", NULL | |
7265 | }; | |
7266 | ||
7267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7270 | { |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
15afbcd0 | 7277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
7278 | return resultobj; |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
c32bde28 | 7284 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7285 | PyObject *resultobj; |
7286 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7287 | wxString *arg2 = 0 ; | |
ae8162c8 | 7288 | bool arg3 = (bool) true ; |
d14a1e28 | 7289 | int result; |
ae8162c8 | 7290 | bool temp2 = false ; |
d14a1e28 RD |
7291 | PyObject * obj0 = 0 ; |
7292 | PyObject * obj1 = 0 ; | |
7293 | PyObject * obj2 = 0 ; | |
7294 | char *kwnames[] = { | |
7295 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7296 | }; | |
7297 | ||
7298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7301 | { |
7302 | arg2 = wxString_in_helper(obj1); | |
7303 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7304 | temp2 = true; |
d14a1e28 RD |
7305 | } |
7306 | if (obj2) { | |
c32bde28 | 7307 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 7308 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7309 | } |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
c32bde28 | 7317 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7318 | { |
7319 | if (temp2) | |
7320 | delete arg2; | |
7321 | } | |
7322 | return resultobj; | |
7323 | fail: | |
7324 | { | |
7325 | if (temp2) | |
7326 | delete arg2; | |
7327 | } | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
c32bde28 | 7332 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7333 | PyObject *resultobj; |
7334 | size_t result; | |
7335 | char *kwnames[] = { | |
7336 | NULL | |
7337 | }; | |
7338 | ||
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
c32bde28 | 7347 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
7348 | return resultobj; |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
c32bde28 | 7354 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7355 | PyObject *resultobj; |
7356 | size_t arg1 ; | |
7357 | int result; | |
7358 | PyObject * obj0 = 0 ; | |
7359 | char *kwnames[] = { | |
7360 | (char *) "n", NULL | |
7361 | }; | |
7362 | ||
7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7364 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
15afbcd0 | 7365 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7366 | { |
7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7368 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7369 | ||
7370 | wxPyEndAllowThreads(__tstate); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | } | |
c32bde28 | 7373 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7374 | return resultobj; |
7375 | fail: | |
7376 | return NULL; | |
7377 | } | |
7378 | ||
7379 | ||
c32bde28 | 7380 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7381 | PyObject *resultobj; |
7382 | int arg1 ; | |
7383 | wxString result; | |
994141e6 | 7384 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7385 | char *kwnames[] = { |
7386 | (char *) "encoding", NULL | |
7387 | }; | |
7388 | ||
994141e6 | 7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
c32bde28 | 7390 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7391 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7392 | { |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7395 | ||
7396 | wxPyEndAllowThreads(__tstate); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
7399 | { | |
7400 | #if wxUSE_UNICODE | |
7401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7402 | #else | |
7403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7404 | #endif | |
7405 | } | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
c32bde28 | 7412 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7413 | PyObject *resultobj; |
7414 | int arg1 ; | |
7415 | wxString result; | |
994141e6 | 7416 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7417 | char *kwnames[] = { |
7418 | (char *) "encoding", NULL | |
7419 | }; | |
7420 | ||
994141e6 | 7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
c32bde28 | 7422 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7423 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7424 | { |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | { | |
7432 | #if wxUSE_UNICODE | |
7433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7434 | #else | |
7435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7436 | #endif | |
7437 | } | |
7438 | return resultobj; | |
7439 | fail: | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
c32bde28 | 7444 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
7445 | PyObject *resultobj; |
7446 | wxString *arg1 = 0 ; | |
7447 | int result; | |
ae8162c8 | 7448 | bool temp1 = false ; |
b2df227b RD |
7449 | PyObject * obj0 = 0 ; |
7450 | char *kwnames[] = { | |
7451 | (char *) "name", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7455 | { | |
7456 | arg1 = wxString_in_helper(obj0); | |
7457 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7458 | temp1 = true; |
b2df227b RD |
7459 | } |
7460 | { | |
7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7462 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7463 | ||
7464 | wxPyEndAllowThreads(__tstate); | |
7465 | if (PyErr_Occurred()) SWIG_fail; | |
7466 | } | |
c32bde28 | 7467 | resultobj = SWIG_From_int((int)result); |
b2df227b RD |
7468 | { |
7469 | if (temp1) | |
7470 | delete arg1; | |
7471 | } | |
7472 | return resultobj; | |
7473 | fail: | |
7474 | { | |
7475 | if (temp1) | |
7476 | delete arg1; | |
7477 | } | |
7478 | return NULL; | |
7479 | } | |
7480 | ||
7481 | ||
c32bde28 | 7482 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7483 | PyObject *resultobj; |
7484 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7485 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7486 | PyObject * obj0 = 0 ; | |
7487 | PyObject * obj1 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self",(char *) "config", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7497 | { |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | (arg1)->SetConfig(arg2); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | Py_INCREF(Py_None); resultobj = Py_None; | |
7505 | return resultobj; | |
7506 | fail: | |
7507 | return NULL; | |
7508 | } | |
7509 | ||
7510 | ||
c32bde28 | 7511 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7512 | PyObject *resultobj; |
7513 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7514 | wxString *arg2 = 0 ; | |
ae8162c8 | 7515 | bool temp2 = false ; |
d14a1e28 RD |
7516 | PyObject * obj0 = 0 ; |
7517 | PyObject * obj1 = 0 ; | |
7518 | char *kwnames[] = { | |
7519 | (char *) "self",(char *) "prefix", NULL | |
7520 | }; | |
7521 | ||
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7525 | { |
7526 | arg2 = wxString_in_helper(obj1); | |
7527 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7528 | temp2 = true; |
d14a1e28 RD |
7529 | } |
7530 | { | |
7531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7532 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7533 | ||
7534 | wxPyEndAllowThreads(__tstate); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | } | |
7537 | Py_INCREF(Py_None); resultobj = Py_None; | |
7538 | { | |
7539 | if (temp2) | |
7540 | delete arg2; | |
7541 | } | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | { | |
7545 | if (temp2) | |
7546 | delete arg2; | |
7547 | } | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
c32bde28 | 7552 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7553 | PyObject *resultobj; |
7554 | wxString result; | |
7555 | char *kwnames[] = { | |
7556 | NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7560 | { | |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = wxFontMapper::GetDefaultConfigPath(); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | { | |
7568 | #if wxUSE_UNICODE | |
7569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7570 | #else | |
7571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7572 | #endif | |
7573 | } | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
c32bde28 | 7580 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7581 | PyObject *resultobj; |
7582 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7583 | int arg2 ; | |
7584 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7585 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 7586 | bool arg4 = (bool) true ; |
d14a1e28 | 7587 | PyObject *result; |
ae8162c8 | 7588 | bool temp3 = false ; |
d14a1e28 | 7589 | PyObject * obj0 = 0 ; |
994141e6 | 7590 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7591 | PyObject * obj2 = 0 ; |
7592 | PyObject * obj3 = 0 ; | |
7593 | char *kwnames[] = { | |
7594 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7595 | }; | |
7596 | ||
994141e6 | 7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7600 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7601 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7602 | if (obj2) { |
7603 | { | |
7604 | arg3 = wxString_in_helper(obj2); | |
7605 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7606 | temp3 = true; |
d14a1e28 RD |
7607 | } |
7608 | } | |
7609 | if (obj3) { | |
c32bde28 | 7610 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 7611 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7612 | } |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | resultobj = result; | |
7621 | { | |
7622 | if (temp3) | |
7623 | delete arg3; | |
7624 | } | |
7625 | return resultobj; | |
7626 | fail: | |
7627 | { | |
7628 | if (temp3) | |
7629 | delete arg3; | |
7630 | } | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
c32bde28 | 7635 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7636 | PyObject *resultobj; |
7637 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7638 | int arg2 ; | |
7639 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7640 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7641 | bool result; | |
ae8162c8 | 7642 | bool temp3 = false ; |
d14a1e28 | 7643 | PyObject * obj0 = 0 ; |
994141e6 | 7644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7645 | PyObject * obj2 = 0 ; |
7646 | char *kwnames[] = { | |
7647 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7648 | }; | |
7649 | ||
994141e6 | 7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7653 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7655 | if (obj2) { |
7656 | { | |
7657 | arg3 = wxString_in_helper(obj2); | |
7658 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7659 | temp3 = true; |
d14a1e28 RD |
7660 | } |
7661 | } | |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
4f89f6a3 RD |
7669 | { |
7670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7671 | } | |
d14a1e28 RD |
7672 | { |
7673 | if (temp3) | |
7674 | delete arg3; | |
7675 | } | |
7676 | return resultobj; | |
7677 | fail: | |
7678 | { | |
7679 | if (temp3) | |
7680 | delete arg3; | |
7681 | } | |
7682 | return NULL; | |
7683 | } | |
7684 | ||
7685 | ||
c32bde28 | 7686 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7687 | PyObject *resultobj; |
7688 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7689 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7690 | PyObject * obj0 = 0 ; | |
7691 | PyObject * obj1 = 0 ; | |
7692 | char *kwnames[] = { | |
7693 | (char *) "self",(char *) "parent", NULL | |
7694 | }; | |
7695 | ||
7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7701 | { |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7703 | (arg1)->SetDialogParent(arg2); | |
7704 | ||
7705 | wxPyEndAllowThreads(__tstate); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
7708 | Py_INCREF(Py_None); resultobj = Py_None; | |
7709 | return resultobj; | |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
c32bde28 | 7715 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7716 | PyObject *resultobj; |
7717 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7718 | wxString *arg2 = 0 ; | |
ae8162c8 | 7719 | bool temp2 = false ; |
d14a1e28 RD |
7720 | PyObject * obj0 = 0 ; |
7721 | PyObject * obj1 = 0 ; | |
7722 | char *kwnames[] = { | |
7723 | (char *) "self",(char *) "title", NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7729 | { |
7730 | arg2 = wxString_in_helper(obj1); | |
7731 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7732 | temp2 = true; |
d14a1e28 RD |
7733 | } |
7734 | { | |
7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7736 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
7741 | Py_INCREF(Py_None); resultobj = Py_None; | |
7742 | { | |
7743 | if (temp2) | |
7744 | delete arg2; | |
7745 | } | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | { | |
7749 | if (temp2) | |
7750 | delete arg2; | |
7751 | } | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
c32bde28 | 7756 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7757 | PyObject *obj; |
7758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7759 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7760 | Py_INCREF(obj); | |
7761 | return Py_BuildValue((char *)""); | |
7762 | } | |
c32bde28 | 7763 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7764 | PyObject *resultobj; |
7765 | int arg1 ; | |
7766 | int arg2 ; | |
7767 | int arg3 ; | |
7768 | int arg4 ; | |
ae8162c8 | 7769 | bool arg5 = (bool) false ; |
d14a1e28 RD |
7770 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7771 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7772 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7773 | wxFont *result; | |
ae8162c8 | 7774 | bool temp6 = false ; |
994141e6 RD |
7775 | PyObject * obj0 = 0 ; |
7776 | PyObject * obj1 = 0 ; | |
7777 | PyObject * obj2 = 0 ; | |
7778 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7779 | PyObject * obj4 = 0 ; |
7780 | PyObject * obj5 = 0 ; | |
994141e6 | 7781 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7782 | char *kwnames[] = { |
7783 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7784 | }; | |
7785 | ||
994141e6 | 7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 7787 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7788 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7789 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7790 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7791 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7792 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7793 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 7794 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7795 | if (obj4) { |
c32bde28 | 7796 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 7797 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7798 | } |
7799 | if (obj5) { | |
7800 | { | |
7801 | arg6 = wxString_in_helper(obj5); | |
7802 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 7803 | temp6 = true; |
d14a1e28 RD |
7804 | } |
7805 | } | |
994141e6 | 7806 | if (obj6) { |
c32bde28 | 7807 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 7808 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7809 | } |
d14a1e28 | 7810 | { |
e3b71cb8 | 7811 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7813 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7814 | ||
7815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7816 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7817 | } |
15afbcd0 | 7818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7819 | { |
7820 | if (temp6) | |
7821 | delete arg6; | |
7822 | } | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | { | |
7826 | if (temp6) | |
7827 | delete arg6; | |
7828 | } | |
7829 | return NULL; | |
7830 | } | |
7831 | ||
7832 | ||
c32bde28 | 7833 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7834 | PyObject *resultobj; |
7835 | wxFont *arg1 = (wxFont *) 0 ; | |
7836 | PyObject * obj0 = 0 ; | |
7837 | char *kwnames[] = { | |
7838 | (char *) "self", NULL | |
7839 | }; | |
7840 | ||
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7844 | { |
7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7846 | delete arg1; | |
7847 | ||
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | Py_INCREF(Py_None); resultobj = Py_None; | |
7852 | return resultobj; | |
7853 | fail: | |
7854 | return NULL; | |
7855 | } | |
7856 | ||
7857 | ||
c32bde28 | 7858 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7859 | PyObject *resultobj; |
7860 | wxNativeFontInfo *arg1 = 0 ; | |
7861 | wxFont *result; | |
7862 | PyObject * obj0 = 0 ; | |
7863 | char *kwnames[] = { | |
7864 | (char *) "info", NULL | |
7865 | }; | |
7866 | ||
7867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7870 | SWIG_fail; | |
d14a1e28 | 7871 | if (arg1 == NULL) { |
15afbcd0 RD |
7872 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7873 | SWIG_fail; | |
d14a1e28 RD |
7874 | } |
7875 | { | |
e3b71cb8 | 7876 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7878 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7879 | ||
7880 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7881 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7882 | } |
15afbcd0 | 7883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7884 | return resultobj; |
7885 | fail: | |
7886 | return NULL; | |
7887 | } | |
7888 | ||
7889 | ||
c32bde28 | 7890 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7891 | PyObject *resultobj; |
7892 | wxString *arg1 = 0 ; | |
7893 | wxFont *result; | |
ae8162c8 | 7894 | bool temp1 = false ; |
d14a1e28 RD |
7895 | PyObject * obj0 = 0 ; |
7896 | char *kwnames[] = { | |
7897 | (char *) "info", NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7901 | { | |
7902 | arg1 = wxString_in_helper(obj0); | |
7903 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7904 | temp1 = true; |
d14a1e28 RD |
7905 | } |
7906 | { | |
e3b71cb8 | 7907 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7909 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7912 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7913 | } |
15afbcd0 | 7914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7915 | { |
7916 | if (temp1) | |
7917 | delete arg1; | |
7918 | } | |
7919 | return resultobj; | |
7920 | fail: | |
7921 | { | |
7922 | if (temp1) | |
7923 | delete arg1; | |
7924 | } | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
c32bde28 | 7929 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7930 | PyObject *resultobj; |
7931 | int arg1 ; | |
7932 | int arg2 ; | |
7933 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7934 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7935 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7936 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7937 | wxFont *result; | |
ae8162c8 | 7938 | bool temp4 = false ; |
994141e6 RD |
7939 | PyObject * obj0 = 0 ; |
7940 | PyObject * obj1 = 0 ; | |
7941 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7942 | PyObject * obj3 = 0 ; |
994141e6 | 7943 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7944 | char *kwnames[] = { |
7945 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7946 | }; | |
7947 | ||
994141e6 | 7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
c32bde28 | 7949 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7950 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7951 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7952 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7953 | if (obj2) { |
c32bde28 | 7954 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7955 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7956 | } |
d14a1e28 RD |
7957 | if (obj3) { |
7958 | { | |
7959 | arg4 = wxString_in_helper(obj3); | |
7960 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 7961 | temp4 = true; |
d14a1e28 RD |
7962 | } |
7963 | } | |
994141e6 | 7964 | if (obj4) { |
c32bde28 | 7965 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 7966 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7967 | } |
d14a1e28 | 7968 | { |
e3b71cb8 | 7969 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7971 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7974 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7975 | } |
15afbcd0 | 7976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7977 | { |
7978 | if (temp4) | |
7979 | delete arg4; | |
7980 | } | |
7981 | return resultobj; | |
7982 | fail: | |
7983 | { | |
7984 | if (temp4) | |
7985 | delete arg4; | |
7986 | } | |
7987 | return NULL; | |
7988 | } | |
7989 | ||
7990 | ||
b6294124 RD |
7991 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7992 | PyObject *resultobj; | |
7993 | wxSize *arg1 = 0 ; | |
7994 | int arg2 ; | |
7995 | int arg3 ; | |
7996 | int arg4 ; | |
7997 | bool arg5 = (bool) false ; | |
7998 | wxString const &arg6_defvalue = wxEmptyString ; | |
7999 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8000 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8001 | wxFont *result; | |
8002 | wxSize temp1 ; | |
8003 | bool temp6 = false ; | |
8004 | PyObject * obj0 = 0 ; | |
8005 | PyObject * obj1 = 0 ; | |
8006 | PyObject * obj2 = 0 ; | |
8007 | PyObject * obj3 = 0 ; | |
8008 | PyObject * obj4 = 0 ; | |
8009 | PyObject * obj5 = 0 ; | |
8010 | PyObject * obj6 = 0 ; | |
8011 | char *kwnames[] = { | |
8012 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
8013 | }; | |
8014 | ||
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8016 | { | |
8017 | arg1 = &temp1; | |
8018 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
8019 | } | |
8020 | arg2 = (int)SWIG_As_int(obj1); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | arg3 = (int)SWIG_As_int(obj2); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | arg4 = (int)SWIG_As_int(obj3); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | if (obj4) { | |
8027 | arg5 = (bool)SWIG_As_bool(obj4); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | if (obj5) { | |
8031 | { | |
8032 | arg6 = wxString_in_helper(obj5); | |
8033 | if (arg6 == NULL) SWIG_fail; | |
8034 | temp6 = true; | |
8035 | } | |
8036 | } | |
8037 | if (obj6) { | |
8038 | arg7 = (int)SWIG_As_int(obj6); | |
8039 | if (PyErr_Occurred()) SWIG_fail; | |
8040 | } | |
8041 | { | |
8042 | if (!wxPyCheckForApp()) SWIG_fail; | |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8045 | ||
8046 | wxPyEndAllowThreads(__tstate); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
8049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8050 | { | |
8051 | if (temp6) | |
8052 | delete arg6; | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | { | |
8057 | if (temp6) | |
8058 | delete arg6; | |
8059 | } | |
8060 | return NULL; | |
8061 | } | |
8062 | ||
8063 | ||
c32bde28 | 8064 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8065 | PyObject *resultobj; |
8066 | wxFont *arg1 = (wxFont *) 0 ; | |
8067 | bool result; | |
8068 | PyObject * obj0 = 0 ; | |
8069 | char *kwnames[] = { | |
8070 | (char *) "self", NULL | |
8071 | }; | |
8072 | ||
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8076 | { |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8078 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8079 | ||
8080 | wxPyEndAllowThreads(__tstate); | |
8081 | if (PyErr_Occurred()) SWIG_fail; | |
8082 | } | |
4f89f6a3 RD |
8083 | { |
8084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8085 | } | |
d14a1e28 RD |
8086 | return resultobj; |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
c32bde28 | 8092 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8093 | PyObject *resultobj; |
8094 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 8095 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8096 | bool result; |
8097 | PyObject * obj0 = 0 ; | |
8098 | PyObject * obj1 = 0 ; | |
8099 | char *kwnames[] = { | |
22faec7d | 8100 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8101 | }; |
8102 | ||
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8108 | { |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 8110 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8111 | |
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
4f89f6a3 RD |
8115 | { |
8116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8117 | } | |
d14a1e28 RD |
8118 | return resultobj; |
8119 | fail: | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
c32bde28 | 8124 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8125 | PyObject *resultobj; |
8126 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 8127 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8128 | bool result; |
8129 | PyObject * obj0 = 0 ; | |
8130 | PyObject * obj1 = 0 ; | |
8131 | char *kwnames[] = { | |
22faec7d | 8132 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8133 | }; |
8134 | ||
8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8138 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8140 | { |
8141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 8142 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8143 | |
8144 | wxPyEndAllowThreads(__tstate); | |
8145 | if (PyErr_Occurred()) SWIG_fail; | |
8146 | } | |
4f89f6a3 RD |
8147 | { |
8148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8149 | } | |
d14a1e28 RD |
8150 | return resultobj; |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
c32bde28 | 8156 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8157 | PyObject *resultobj; |
8158 | wxFont *arg1 = (wxFont *) 0 ; | |
8159 | int result; | |
8160 | PyObject * obj0 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8168 | { |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
c32bde28 | 8175 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8176 | return resultobj; |
8177 | fail: | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
b6294124 RD |
8182 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8183 | PyObject *resultobj; | |
8184 | wxFont *arg1 = (wxFont *) 0 ; | |
8185 | wxSize result; | |
8186 | PyObject * obj0 = 0 ; | |
8187 | char *kwnames[] = { | |
8188 | (char *) "self", NULL | |
8189 | }; | |
8190 | ||
8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; | |
8192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | { | |
8202 | wxSize * resultptr; | |
8203 | resultptr = new wxSize((wxSize &) result); | |
8204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8205 | } | |
8206 | return resultobj; | |
8207 | fail: | |
8208 | return NULL; | |
8209 | } | |
8210 | ||
8211 | ||
8212 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
8213 | PyObject *resultobj; | |
8214 | wxFont *arg1 = (wxFont *) 0 ; | |
8215 | bool result; | |
8216 | PyObject * obj0 = 0 ; | |
8217 | char *kwnames[] = { | |
8218 | (char *) "self", NULL | |
8219 | }; | |
8220 | ||
8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; | |
8222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8224 | { | |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8226 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
8227 | ||
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
8231 | { | |
8232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8233 | } | |
8234 | return resultobj; | |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
c32bde28 | 8240 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8241 | PyObject *resultobj; |
8242 | wxFont *arg1 = (wxFont *) 0 ; | |
8243 | int result; | |
8244 | PyObject * obj0 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "self", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8252 | { |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | } | |
c32bde28 | 8259 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8260 | return resultobj; |
8261 | fail: | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
c32bde28 | 8266 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8267 | PyObject *resultobj; |
8268 | wxFont *arg1 = (wxFont *) 0 ; | |
8269 | int result; | |
8270 | PyObject * obj0 = 0 ; | |
8271 | char *kwnames[] = { | |
8272 | (char *) "self", NULL | |
8273 | }; | |
8274 | ||
8275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8278 | { |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
c32bde28 | 8285 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8286 | return resultobj; |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
c32bde28 | 8292 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8293 | PyObject *resultobj; |
8294 | wxFont *arg1 = (wxFont *) 0 ; | |
8295 | int result; | |
8296 | PyObject * obj0 = 0 ; | |
8297 | char *kwnames[] = { | |
8298 | (char *) "self", NULL | |
8299 | }; | |
8300 | ||
8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8304 | { |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
c32bde28 | 8311 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8312 | return resultobj; |
8313 | fail: | |
8314 | return NULL; | |
8315 | } | |
8316 | ||
8317 | ||
c32bde28 | 8318 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8319 | PyObject *resultobj; |
8320 | wxFont *arg1 = (wxFont *) 0 ; | |
8321 | bool result; | |
8322 | PyObject * obj0 = 0 ; | |
8323 | char *kwnames[] = { | |
8324 | (char *) "self", NULL | |
8325 | }; | |
8326 | ||
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8330 | { |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8332 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8333 | ||
8334 | wxPyEndAllowThreads(__tstate); | |
8335 | if (PyErr_Occurred()) SWIG_fail; | |
8336 | } | |
4f89f6a3 RD |
8337 | { |
8338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8339 | } | |
d14a1e28 RD |
8340 | return resultobj; |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
c32bde28 | 8346 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8347 | PyObject *resultobj; |
8348 | wxFont *arg1 = (wxFont *) 0 ; | |
8349 | wxString result; | |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8358 | { |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | { | |
8366 | #if wxUSE_UNICODE | |
8367 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8368 | #else | |
8369 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8370 | #endif | |
8371 | } | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
c32bde28 | 8378 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8379 | PyObject *resultobj; |
8380 | wxFont *arg1 = (wxFont *) 0 ; | |
8381 | int result; | |
8382 | PyObject * obj0 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "self", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8390 | { |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8393 | ||
8394 | wxPyEndAllowThreads(__tstate); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
c32bde28 | 8397 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8398 | return resultobj; |
8399 | fail: | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
c32bde28 | 8404 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8405 | PyObject *resultobj; |
8406 | wxFont *arg1 = (wxFont *) 0 ; | |
8407 | wxNativeFontInfo *result; | |
8408 | PyObject * obj0 = 0 ; | |
8409 | char *kwnames[] = { | |
8410 | (char *) "self", NULL | |
8411 | }; | |
8412 | ||
8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8416 | { |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
15afbcd0 | 8423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
8424 | return resultobj; |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
c32bde28 | 8430 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8431 | PyObject *resultobj; |
8432 | wxFont *arg1 = (wxFont *) 0 ; | |
8433 | bool result; | |
8434 | PyObject * obj0 = 0 ; | |
8435 | char *kwnames[] = { | |
8436 | (char *) "self", NULL | |
8437 | }; | |
8438 | ||
8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8442 | { |
8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8444 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8445 | ||
8446 | wxPyEndAllowThreads(__tstate); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
4f89f6a3 RD |
8449 | { |
8450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8451 | } | |
d14a1e28 RD |
8452 | return resultobj; |
8453 | fail: | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
c32bde28 | 8458 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8459 | PyObject *resultobj; |
8460 | wxFont *arg1 = (wxFont *) 0 ; | |
8461 | wxString result; | |
8462 | PyObject * obj0 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8470 | { |
8471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8472 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8473 | ||
8474 | wxPyEndAllowThreads(__tstate); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
8477 | { | |
8478 | #if wxUSE_UNICODE | |
8479 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8480 | #else | |
8481 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8482 | #endif | |
8483 | } | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
c32bde28 | 8490 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8491 | PyObject *resultobj; |
8492 | wxFont *arg1 = (wxFont *) 0 ; | |
8493 | wxString result; | |
8494 | PyObject * obj0 = 0 ; | |
8495 | char *kwnames[] = { | |
8496 | (char *) "self", NULL | |
8497 | }; | |
8498 | ||
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8502 | { |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | { | |
8510 | #if wxUSE_UNICODE | |
8511 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8512 | #else | |
8513 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8514 | #endif | |
8515 | } | |
8516 | return resultobj; | |
8517 | fail: | |
8518 | return NULL; | |
8519 | } | |
8520 | ||
8521 | ||
c32bde28 | 8522 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8523 | PyObject *resultobj; |
8524 | wxFont *arg1 = (wxFont *) 0 ; | |
8525 | int arg2 ; | |
8526 | PyObject * obj0 = 0 ; | |
994141e6 | 8527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8528 | char *kwnames[] = { |
8529 | (char *) "self",(char *) "pointSize", NULL | |
8530 | }; | |
8531 | ||
994141e6 | 8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8535 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8536 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8537 | { |
8538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8539 | (arg1)->SetPointSize(arg2); | |
8540 | ||
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | Py_INCREF(Py_None); resultobj = Py_None; | |
8545 | return resultobj; | |
8546 | fail: | |
8547 | return NULL; | |
8548 | } | |
8549 | ||
8550 | ||
b6294124 RD |
8551 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8552 | PyObject *resultobj; | |
8553 | wxFont *arg1 = (wxFont *) 0 ; | |
8554 | wxSize *arg2 = 0 ; | |
8555 | wxSize temp2 ; | |
8556 | PyObject * obj0 = 0 ; | |
8557 | PyObject * obj1 = 0 ; | |
8558 | char *kwnames[] = { | |
8559 | (char *) "self",(char *) "pixelSize", NULL | |
8560 | }; | |
8561 | ||
8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
8563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8565 | { | |
8566 | arg2 = &temp2; | |
8567 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8568 | } | |
8569 | { | |
8570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8571 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
8572 | ||
8573 | wxPyEndAllowThreads(__tstate); | |
8574 | if (PyErr_Occurred()) SWIG_fail; | |
8575 | } | |
8576 | Py_INCREF(Py_None); resultobj = Py_None; | |
8577 | return resultobj; | |
8578 | fail: | |
8579 | return NULL; | |
8580 | } | |
8581 | ||
8582 | ||
c32bde28 | 8583 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8584 | PyObject *resultobj; |
8585 | wxFont *arg1 = (wxFont *) 0 ; | |
8586 | int arg2 ; | |
8587 | PyObject * obj0 = 0 ; | |
994141e6 | 8588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8589 | char *kwnames[] = { |
8590 | (char *) "self",(char *) "family", NULL | |
8591 | }; | |
8592 | ||
994141e6 | 8593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8596 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8597 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8598 | { |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | (arg1)->SetFamily(arg2); | |
8601 | ||
8602 | wxPyEndAllowThreads(__tstate); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
8605 | Py_INCREF(Py_None); resultobj = Py_None; | |
8606 | return resultobj; | |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
c32bde28 | 8612 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8613 | PyObject *resultobj; |
8614 | wxFont *arg1 = (wxFont *) 0 ; | |
8615 | int arg2 ; | |
8616 | PyObject * obj0 = 0 ; | |
994141e6 | 8617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8618 | char *kwnames[] = { |
8619 | (char *) "self",(char *) "style", NULL | |
8620 | }; | |
8621 | ||
994141e6 | 8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8625 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8627 | { |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | (arg1)->SetStyle(arg2); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
8634 | Py_INCREF(Py_None); resultobj = Py_None; | |
8635 | return resultobj; | |
8636 | fail: | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
c32bde28 | 8641 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8642 | PyObject *resultobj; |
8643 | wxFont *arg1 = (wxFont *) 0 ; | |
8644 | int arg2 ; | |
8645 | PyObject * obj0 = 0 ; | |
994141e6 | 8646 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8647 | char *kwnames[] = { |
8648 | (char *) "self",(char *) "weight", NULL | |
8649 | }; | |
8650 | ||
994141e6 | 8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8654 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8655 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8656 | { |
8657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8658 | (arg1)->SetWeight(arg2); | |
8659 | ||
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | Py_INCREF(Py_None); resultobj = Py_None; | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
c32bde28 | 8670 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8671 | PyObject *resultobj; |
8672 | wxFont *arg1 = (wxFont *) 0 ; | |
8673 | wxString *arg2 = 0 ; | |
ae8162c8 | 8674 | bool temp2 = false ; |
d14a1e28 RD |
8675 | PyObject * obj0 = 0 ; |
8676 | PyObject * obj1 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self",(char *) "faceName", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8684 | { |
8685 | arg2 = wxString_in_helper(obj1); | |
8686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8687 | temp2 = true; |
d14a1e28 RD |
8688 | } |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8692 | ||
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | Py_INCREF(Py_None); resultobj = Py_None; | |
8697 | { | |
8698 | if (temp2) | |
8699 | delete arg2; | |
8700 | } | |
8701 | return resultobj; | |
8702 | fail: | |
8703 | { | |
8704 | if (temp2) | |
8705 | delete arg2; | |
8706 | } | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
c32bde28 | 8711 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8712 | PyObject *resultobj; |
8713 | wxFont *arg1 = (wxFont *) 0 ; | |
8714 | bool arg2 ; | |
8715 | PyObject * obj0 = 0 ; | |
8716 | PyObject * obj1 = 0 ; | |
8717 | char *kwnames[] = { | |
8718 | (char *) "self",(char *) "underlined", NULL | |
8719 | }; | |
8720 | ||
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8724 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 8725 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8726 | { |
8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8728 | (arg1)->SetUnderlined(arg2); | |
8729 | ||
8730 | wxPyEndAllowThreads(__tstate); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
8732 | } | |
8733 | Py_INCREF(Py_None); resultobj = Py_None; | |
8734 | return resultobj; | |
8735 | fail: | |
8736 | return NULL; | |
8737 | } | |
8738 | ||
8739 | ||
c32bde28 | 8740 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8741 | PyObject *resultobj; |
8742 | wxFont *arg1 = (wxFont *) 0 ; | |
8743 | int arg2 ; | |
8744 | PyObject * obj0 = 0 ; | |
994141e6 | 8745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8746 | char *kwnames[] = { |
8747 | (char *) "self",(char *) "encoding", NULL | |
8748 | }; | |
8749 | ||
994141e6 | 8750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8753 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8754 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8755 | { |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
8762 | Py_INCREF(Py_None); resultobj = Py_None; | |
8763 | return resultobj; | |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
c32bde28 | 8769 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8770 | PyObject *resultobj; |
8771 | wxFont *arg1 = (wxFont *) 0 ; | |
8772 | wxNativeFontInfo *arg2 = 0 ; | |
8773 | PyObject * obj0 = 0 ; | |
8774 | PyObject * obj1 = 0 ; | |
8775 | char *kwnames[] = { | |
8776 | (char *) "self",(char *) "info", NULL | |
8777 | }; | |
8778 | ||
8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8784 | SWIG_fail; | |
d14a1e28 | 8785 | if (arg2 == NULL) { |
15afbcd0 RD |
8786 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8787 | SWIG_fail; | |
d14a1e28 RD |
8788 | } |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | Py_INCREF(Py_None); resultobj = Py_None; | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
c32bde28 | 8803 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8804 | PyObject *resultobj; |
8805 | wxFont *arg1 = (wxFont *) 0 ; | |
8806 | wxString *arg2 = 0 ; | |
ae8162c8 | 8807 | bool temp2 = false ; |
d14a1e28 RD |
8808 | PyObject * obj0 = 0 ; |
8809 | PyObject * obj1 = 0 ; | |
8810 | char *kwnames[] = { | |
8811 | (char *) "self",(char *) "info", NULL | |
8812 | }; | |
8813 | ||
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8817 | { |
8818 | arg2 = wxString_in_helper(obj1); | |
8819 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8820 | temp2 = true; |
d14a1e28 RD |
8821 | } |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8825 | ||
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
8829 | Py_INCREF(Py_None); resultobj = Py_None; | |
8830 | { | |
8831 | if (temp2) | |
8832 | delete arg2; | |
8833 | } | |
8834 | return resultobj; | |
8835 | fail: | |
8836 | { | |
8837 | if (temp2) | |
8838 | delete arg2; | |
8839 | } | |
8840 | return NULL; | |
8841 | } | |
8842 | ||
8843 | ||
c32bde28 | 8844 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8845 | PyObject *resultobj; |
8846 | wxFont *arg1 = (wxFont *) 0 ; | |
8847 | wxString *arg2 = 0 ; | |
ae8162c8 | 8848 | bool temp2 = false ; |
d14a1e28 RD |
8849 | PyObject * obj0 = 0 ; |
8850 | PyObject * obj1 = 0 ; | |
8851 | char *kwnames[] = { | |
8852 | (char *) "self",(char *) "info", NULL | |
8853 | }; | |
8854 | ||
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8858 | { |
8859 | arg2 = wxString_in_helper(obj1); | |
8860 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8861 | temp2 = true; |
d14a1e28 RD |
8862 | } |
8863 | { | |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
8870 | Py_INCREF(Py_None); resultobj = Py_None; | |
8871 | { | |
8872 | if (temp2) | |
8873 | delete arg2; | |
8874 | } | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | { | |
8878 | if (temp2) | |
8879 | delete arg2; | |
8880 | } | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
c32bde28 | 8885 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8886 | PyObject *resultobj; |
8887 | wxFont *arg1 = (wxFont *) 0 ; | |
8888 | wxString result; | |
8889 | PyObject * obj0 = 0 ; | |
8890 | char *kwnames[] = { | |
8891 | (char *) "self", NULL | |
8892 | }; | |
8893 | ||
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8897 | { |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8900 | ||
8901 | wxPyEndAllowThreads(__tstate); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8904 | { | |
8905 | #if wxUSE_UNICODE | |
8906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8907 | #else | |
8908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8909 | #endif | |
8910 | } | |
8911 | return resultobj; | |
8912 | fail: | |
8913 | return NULL; | |
8914 | } | |
8915 | ||
8916 | ||
c32bde28 | 8917 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8918 | PyObject *resultobj; |
8919 | wxFont *arg1 = (wxFont *) 0 ; | |
8920 | wxString result; | |
8921 | PyObject * obj0 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "self", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8929 | { |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
8936 | { | |
8937 | #if wxUSE_UNICODE | |
8938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8939 | #else | |
8940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8941 | #endif | |
8942 | } | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
c32bde28 | 8949 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8950 | PyObject *resultobj; |
8951 | wxFont *arg1 = (wxFont *) 0 ; | |
8952 | wxString result; | |
8953 | PyObject * obj0 = 0 ; | |
8954 | char *kwnames[] = { | |
8955 | (char *) "self", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8961 | { |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | { | |
8969 | #if wxUSE_UNICODE | |
8970 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8971 | #else | |
8972 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8973 | #endif | |
8974 | } | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
c32bde28 | 8981 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8982 | PyObject *resultobj; |
8983 | wxFont *arg1 = (wxFont *) 0 ; | |
ae8162c8 | 8984 | bool arg2 = (bool) true ; |
d14a1e28 RD |
8985 | PyObject * obj0 = 0 ; |
8986 | PyObject * obj1 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self",(char *) "no", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8994 | if (obj1) { |
c32bde28 | 8995 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 8996 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8997 | } |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | (arg1)->SetNoAntiAliasing(arg2); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | Py_INCREF(Py_None); resultobj = Py_None; | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
c32bde28 | 9012 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9013 | PyObject *resultobj; |
9014 | wxFont *arg1 = (wxFont *) 0 ; | |
9015 | bool result; | |
9016 | PyObject * obj0 = 0 ; | |
9017 | char *kwnames[] = { | |
9018 | (char *) "self", NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9024 | { |
9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0dcf9a74 | 9026 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d14a1e28 RD |
9027 | |
9028 | wxPyEndAllowThreads(__tstate); | |
9029 | if (PyErr_Occurred()) SWIG_fail; | |
9030 | } | |
4f89f6a3 RD |
9031 | { |
9032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9033 | } | |
d14a1e28 RD |
9034 | return resultobj; |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
c32bde28 | 9040 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9041 | PyObject *resultobj; |
9042 | int result; | |
9043 | char *kwnames[] = { | |
9044 | NULL | |
9045 | }; | |
9046 | ||
9047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9048 | { | |
e3b71cb8 | 9049 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9051 | result = (int)wxFont::GetDefaultEncoding(); | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9055 | } |
c32bde28 | 9056 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9057 | return resultobj; |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
c32bde28 | 9063 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9064 | PyObject *resultobj; |
9065 | int arg1 ; | |
994141e6 | 9066 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9067 | char *kwnames[] = { |
9068 | (char *) "encoding", NULL | |
9069 | }; | |
9070 | ||
994141e6 | 9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
c32bde28 | 9072 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9074 | { |
e3b71cb8 | 9075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9077 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9078 | ||
9079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9081 | } |
9082 | Py_INCREF(Py_None); resultobj = Py_None; | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
c32bde28 | 9089 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9090 | PyObject *obj; |
9091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9092 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9093 | Py_INCREF(obj); | |
9094 | return Py_BuildValue((char *)""); | |
9095 | } | |
c32bde28 | 9096 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9097 | PyObject *resultobj; |
9098 | wxPyFontEnumerator *result; | |
9099 | char *kwnames[] = { | |
9100 | NULL | |
9101 | }; | |
9102 | ||
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9104 | { | |
e3b71cb8 | 9105 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9107 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9108 | ||
9109 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9110 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9111 | } |
15afbcd0 | 9112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
9113 | return resultobj; |
9114 | fail: | |
9115 | return NULL; | |
9116 | } | |
9117 | ||
9118 | ||
c32bde28 | 9119 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9120 | PyObject *resultobj; |
9121 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9122 | PyObject * obj0 = 0 ; | |
9123 | char *kwnames[] = { | |
9124 | (char *) "self", NULL | |
9125 | }; | |
9126 | ||
9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9130 | { |
9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9132 | delete arg1; | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
9137 | Py_INCREF(Py_None); resultobj = Py_None; | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
c32bde28 | 9144 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9145 | PyObject *resultobj; |
9146 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9147 | PyObject *arg2 = (PyObject *) 0 ; | |
9148 | PyObject *arg3 = (PyObject *) 0 ; | |
9149 | bool arg4 ; | |
9150 | PyObject * obj0 = 0 ; | |
9151 | PyObject * obj1 = 0 ; | |
9152 | PyObject * obj2 = 0 ; | |
9153 | PyObject * obj3 = 0 ; | |
9154 | char *kwnames[] = { | |
9155 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9156 | }; | |
9157 | ||
9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9161 | arg2 = obj1; |
9162 | arg3 = obj2; | |
c32bde28 | 9163 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 9164 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9165 | { |
9166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9167 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9168 | ||
9169 | wxPyEndAllowThreads(__tstate); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | } | |
9172 | Py_INCREF(Py_None); resultobj = Py_None; | |
9173 | return resultobj; | |
9174 | fail: | |
9175 | return NULL; | |
9176 | } | |
9177 | ||
9178 | ||
c32bde28 | 9179 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9180 | PyObject *resultobj; |
9181 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9182 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
ae8162c8 | 9183 | bool arg3 = (bool) false ; |
d14a1e28 RD |
9184 | bool result; |
9185 | PyObject * obj0 = 0 ; | |
994141e6 | 9186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9187 | PyObject * obj2 = 0 ; |
9188 | char *kwnames[] = { | |
9189 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9190 | }; | |
9191 | ||
994141e6 | 9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9195 | if (obj1) { |
c32bde28 | 9196 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9197 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9198 | } |
d14a1e28 | 9199 | if (obj2) { |
c32bde28 | 9200 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 9201 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9202 | } |
9203 | { | |
9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9205 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9206 | ||
9207 | wxPyEndAllowThreads(__tstate); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
4f89f6a3 RD |
9210 | { |
9211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9212 | } | |
d14a1e28 RD |
9213 | return resultobj; |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
c32bde28 | 9219 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9220 | PyObject *resultobj; |
9221 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9222 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9223 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9224 | bool result; | |
ae8162c8 | 9225 | bool temp2 = false ; |
d14a1e28 RD |
9226 | PyObject * obj0 = 0 ; |
9227 | PyObject * obj1 = 0 ; | |
9228 | char *kwnames[] = { | |
9229 | (char *) "self",(char *) "facename", NULL | |
9230 | }; | |
9231 | ||
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9235 | if (obj1) { |
9236 | { | |
9237 | arg2 = wxString_in_helper(obj1); | |
9238 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9239 | temp2 = true; |
d14a1e28 RD |
9240 | } |
9241 | } | |
9242 | { | |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9245 | ||
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
4f89f6a3 RD |
9249 | { |
9250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9251 | } | |
d14a1e28 RD |
9252 | { |
9253 | if (temp2) | |
9254 | delete arg2; | |
9255 | } | |
9256 | return resultobj; | |
9257 | fail: | |
9258 | { | |
9259 | if (temp2) | |
9260 | delete arg2; | |
9261 | } | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c32bde28 | 9266 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9267 | PyObject *resultobj; |
9268 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9269 | PyObject *result; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | char *kwnames[] = { | |
9272 | (char *) "self", NULL | |
9273 | }; | |
9274 | ||
9275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9278 | { |
9279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9280 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9281 | ||
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | resultobj = result; | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
c32bde28 | 9292 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9293 | PyObject *resultobj; |
9294 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9295 | PyObject *result; | |
9296 | PyObject * obj0 = 0 ; | |
9297 | char *kwnames[] = { | |
9298 | (char *) "self", NULL | |
9299 | }; | |
9300 | ||
9301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9304 | { |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | } | |
9311 | resultobj = result; | |
9312 | return resultobj; | |
9313 | fail: | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
c32bde28 | 9318 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9319 | PyObject *obj; |
9320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9321 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9322 | Py_INCREF(obj); | |
9323 | return Py_BuildValue((char *)""); | |
9324 | } | |
c32bde28 | 9325 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9326 | PyObject *resultobj; |
9327 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9328 | int arg2 ; | |
9329 | PyObject * obj0 = 0 ; | |
994141e6 | 9330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9331 | char *kwnames[] = { |
9332 | (char *) "self",(char *) "Language", NULL | |
9333 | }; | |
9334 | ||
994141e6 | 9335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9338 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9340 | if (arg1) (arg1)->Language = arg2; |
9341 | ||
9342 | Py_INCREF(Py_None); resultobj = Py_None; | |
9343 | return resultobj; | |
9344 | fail: | |
9345 | return NULL; | |
9346 | } | |
9347 | ||
9348 | ||
c32bde28 | 9349 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9350 | PyObject *resultobj; |
9351 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9352 | int result; | |
9353 | PyObject * obj0 = 0 ; | |
9354 | char *kwnames[] = { | |
9355 | (char *) "self", NULL | |
9356 | }; | |
9357 | ||
9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9361 | result = (int) ((arg1)->Language); |
9362 | ||
c32bde28 | 9363 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9364 | return resultobj; |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
c32bde28 | 9370 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9371 | PyObject *resultobj; |
9372 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9373 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 9374 | bool temp2 = false ; |
d14a1e28 RD |
9375 | PyObject * obj0 = 0 ; |
9376 | PyObject * obj1 = 0 ; | |
9377 | char *kwnames[] = { | |
9378 | (char *) "self",(char *) "CanonicalName", NULL | |
9379 | }; | |
9380 | ||
9381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
9384 | { |
9385 | arg2 = wxString_in_helper(obj1); | |
9386 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9387 | temp2 = true; |
7eae615b | 9388 | } |
196addbf | 9389 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
9390 | |
9391 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
9392 | { |
9393 | if (temp2) | |
9394 | delete arg2; | |
9395 | } | |
d14a1e28 RD |
9396 | return resultobj; |
9397 | fail: | |
7eae615b RD |
9398 | { |
9399 | if (temp2) | |
9400 | delete arg2; | |
9401 | } | |
d14a1e28 RD |
9402 | return NULL; |
9403 | } | |
9404 | ||
9405 | ||
c32bde28 | 9406 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9407 | PyObject *resultobj; |
9408 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9409 | wxString *result; |
d14a1e28 RD |
9410 | PyObject * obj0 = 0 ; |
9411 | char *kwnames[] = { | |
9412 | (char *) "self", NULL | |
9413 | }; | |
9414 | ||
9415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 9418 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
9419 | |
9420 | { | |
9421 | #if wxUSE_UNICODE | |
196addbf | 9422 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9423 | #else |
196addbf | 9424 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9425 | #endif |
9426 | } | |
9427 | return resultobj; | |
9428 | fail: | |
9429 | return NULL; | |
9430 | } | |
9431 | ||
9432 | ||
c32bde28 | 9433 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9434 | PyObject *resultobj; |
9435 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9436 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 9437 | bool temp2 = false ; |
d14a1e28 RD |
9438 | PyObject * obj0 = 0 ; |
9439 | PyObject * obj1 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "self",(char *) "Description", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
9447 | { |
9448 | arg2 = wxString_in_helper(obj1); | |
9449 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9450 | temp2 = true; |
7eae615b | 9451 | } |
196addbf | 9452 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
9453 | |
9454 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
9455 | { |
9456 | if (temp2) | |
9457 | delete arg2; | |
9458 | } | |
d14a1e28 RD |
9459 | return resultobj; |
9460 | fail: | |
7eae615b RD |
9461 | { |
9462 | if (temp2) | |
9463 | delete arg2; | |
9464 | } | |
d14a1e28 RD |
9465 | return NULL; |
9466 | } | |
9467 | ||
9468 | ||
c32bde28 | 9469 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9470 | PyObject *resultobj; |
9471 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9472 | wxString *result; |
d14a1e28 RD |
9473 | PyObject * obj0 = 0 ; |
9474 | char *kwnames[] = { | |
9475 | (char *) "self", NULL | |
9476 | }; | |
9477 | ||
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 9481 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
9482 | |
9483 | { | |
9484 | #if wxUSE_UNICODE | |
196addbf | 9485 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9486 | #else |
196addbf | 9487 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9488 | #endif |
9489 | } | |
9490 | return resultobj; | |
9491 | fail: | |
9492 | return NULL; | |
9493 | } | |
9494 | ||
9495 | ||
c32bde28 | 9496 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9497 | PyObject *obj; |
9498 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9499 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9500 | Py_INCREF(obj); | |
9501 | return Py_BuildValue((char *)""); | |
9502 | } | |
c32bde28 | 9503 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9504 | PyObject *resultobj; |
41e2b43e | 9505 | int arg1 = (int) -1 ; |
d14a1e28 RD |
9506 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9507 | wxLocale *result; | |
994141e6 RD |
9508 | PyObject * obj0 = 0 ; |
9509 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9510 | char *kwnames[] = { |
9511 | (char *) "language",(char *) "flags", NULL | |
9512 | }; | |
9513 | ||
994141e6 RD |
9514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
9515 | if (obj0) { | |
c32bde28 | 9516 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9517 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9518 | } |
9519 | if (obj1) { | |
c32bde28 | 9520 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9521 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9522 | } |
d14a1e28 RD |
9523 | { |
9524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 9525 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d14a1e28 RD |
9526 | |
9527 | wxPyEndAllowThreads(__tstate); | |
9528 | if (PyErr_Occurred()) SWIG_fail; | |
9529 | } | |
15afbcd0 | 9530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
9531 | return resultobj; |
9532 | fail: | |
9533 | return NULL; | |
9534 | } | |
9535 | ||
9536 | ||
c32bde28 | 9537 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9538 | PyObject *resultobj; |
9539 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9548 | { |
9549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9550 | delete arg1; | |
9551 | ||
9552 | wxPyEndAllowThreads(__tstate); | |
9553 | if (PyErr_Occurred()) SWIG_fail; | |
9554 | } | |
9555 | Py_INCREF(Py_None); resultobj = Py_None; | |
9556 | return resultobj; | |
9557 | fail: | |
9558 | return NULL; | |
9559 | } | |
9560 | ||
9561 | ||
c32bde28 | 9562 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9563 | PyObject *resultobj; |
9564 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9565 | wxString *arg2 = 0 ; | |
9566 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9567 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9568 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9569 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
ae8162c8 RD |
9570 | bool arg5 = (bool) true ; |
9571 | bool arg6 = (bool) false ; | |
d14a1e28 | 9572 | bool result; |
ae8162c8 RD |
9573 | bool temp2 = false ; |
9574 | bool temp3 = false ; | |
9575 | bool temp4 = false ; | |
d14a1e28 RD |
9576 | PyObject * obj0 = 0 ; |
9577 | PyObject * obj1 = 0 ; | |
9578 | PyObject * obj2 = 0 ; | |
9579 | PyObject * obj3 = 0 ; | |
9580 | PyObject * obj4 = 0 ; | |
9581 | PyObject * obj5 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
9587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9589 | { |
9590 | arg2 = wxString_in_helper(obj1); | |
9591 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9592 | temp2 = true; |
d14a1e28 RD |
9593 | } |
9594 | if (obj2) { | |
9595 | { | |
9596 | arg3 = wxString_in_helper(obj2); | |
9597 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9598 | temp3 = true; |
d14a1e28 RD |
9599 | } |
9600 | } | |
9601 | if (obj3) { | |
9602 | { | |
9603 | arg4 = wxString_in_helper(obj3); | |
9604 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9605 | temp4 = true; |
d14a1e28 RD |
9606 | } |
9607 | } | |
9608 | if (obj4) { | |
c32bde28 | 9609 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 9610 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9611 | } |
9612 | if (obj5) { | |
c32bde28 | 9613 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 9614 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9615 | } |
9616 | { | |
9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a68b8331 | 9618 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d14a1e28 RD |
9619 | |
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
4f89f6a3 RD |
9623 | { |
9624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9625 | } | |
d14a1e28 RD |
9626 | { |
9627 | if (temp2) | |
9628 | delete arg2; | |
9629 | } | |
9630 | { | |
9631 | if (temp3) | |
9632 | delete arg3; | |
9633 | } | |
9634 | { | |
9635 | if (temp4) | |
9636 | delete arg4; | |
9637 | } | |
9638 | return resultobj; | |
9639 | fail: | |
9640 | { | |
9641 | if (temp2) | |
9642 | delete arg2; | |
9643 | } | |
9644 | { | |
9645 | if (temp3) | |
9646 | delete arg3; | |
9647 | } | |
9648 | { | |
9649 | if (temp4) | |
9650 | delete arg4; | |
9651 | } | |
9652 | return NULL; | |
9653 | } | |
9654 | ||
9655 | ||
c32bde28 | 9656 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9657 | PyObject *resultobj; |
9658 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9659 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9660 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9661 | bool result; | |
9662 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9663 | PyObject * obj1 = 0 ; |
9664 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9665 | char *kwnames[] = { |
9666 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9667 | }; | |
9668 | ||
994141e6 | 9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9672 | if (obj1) { |
c32bde28 | 9673 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9674 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9675 | } |
9676 | if (obj2) { | |
c32bde28 | 9677 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9678 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9679 | } |
d14a1e28 RD |
9680 | { |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a68b8331 | 9682 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); |
d14a1e28 RD |
9683 | |
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
4f89f6a3 RD |
9687 | { |
9688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9689 | } | |
d14a1e28 RD |
9690 | return resultobj; |
9691 | fail: | |
9692 | return NULL; | |
9693 | } | |
9694 | ||
9695 | ||
c32bde28 | 9696 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9697 | PyObject *resultobj; |
9698 | int result; | |
9699 | char *kwnames[] = { | |
9700 | NULL | |
9701 | }; | |
9702 | ||
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | result = (int)wxLocale::GetSystemLanguage(); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
c32bde28 | 9711 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9712 | return resultobj; |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
c32bde28 | 9718 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9719 | PyObject *resultobj; |
9720 | int result; | |
9721 | char *kwnames[] = { | |
9722 | NULL | |
9723 | }; | |
9724 | ||
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9726 | { | |
9727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9728 | result = (int)wxLocale::GetSystemEncoding(); | |
9729 | ||
9730 | wxPyEndAllowThreads(__tstate); | |
9731 | if (PyErr_Occurred()) SWIG_fail; | |
9732 | } | |
c32bde28 | 9733 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9734 | return resultobj; |
9735 | fail: | |
9736 | return NULL; | |
9737 | } | |
9738 | ||
9739 | ||
c32bde28 | 9740 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9741 | PyObject *resultobj; |
9742 | wxString result; | |
9743 | char *kwnames[] = { | |
9744 | NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = wxLocale::GetSystemEncodingName(); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | { | |
9756 | #if wxUSE_UNICODE | |
9757 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9758 | #else | |
9759 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9760 | #endif | |
9761 | } | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
c32bde28 | 9768 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9769 | PyObject *resultobj; |
9770 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9771 | bool result; | |
9772 | PyObject * obj0 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self", NULL | |
9775 | }; | |
9776 | ||
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9780 | { |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
4f89f6a3 RD |
9787 | { |
9788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9789 | } | |
d14a1e28 RD |
9790 | return resultobj; |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
c32bde28 | 9796 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9797 | PyObject *resultobj; |
9798 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9799 | wxString result; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "self", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9808 | { |
9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9810 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9811 | ||
9812 | wxPyEndAllowThreads(__tstate); | |
9813 | if (PyErr_Occurred()) SWIG_fail; | |
9814 | } | |
9815 | { | |
9816 | #if wxUSE_UNICODE | |
9817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9818 | #else | |
9819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9820 | #endif | |
9821 | } | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
c32bde28 | 9828 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9829 | PyObject *resultobj; |
9830 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9831 | int result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9840 | { |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
c32bde28 | 9847 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9848 | return resultobj; |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
c32bde28 | 9854 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9855 | PyObject *resultobj; |
9856 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9857 | wxString result; | |
9858 | PyObject * obj0 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9866 | { |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9869 | ||
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | { | |
9874 | #if wxUSE_UNICODE | |
9875 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9876 | #else | |
9877 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9878 | #endif | |
9879 | } | |
9880 | return resultobj; | |
9881 | fail: | |
9882 | return NULL; | |
9883 | } | |
9884 | ||
9885 | ||
c32bde28 | 9886 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9887 | PyObject *resultobj; |
9888 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9889 | wxString result; | |
9890 | PyObject * obj0 = 0 ; | |
9891 | char *kwnames[] = { | |
9892 | (char *) "self", NULL | |
9893 | }; | |
9894 | ||
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9898 | { |
9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9900 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9901 | ||
9902 | wxPyEndAllowThreads(__tstate); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
9905 | { | |
9906 | #if wxUSE_UNICODE | |
9907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9908 | #else | |
9909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9910 | #endif | |
9911 | } | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
c32bde28 | 9918 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9919 | PyObject *resultobj; |
9920 | wxString *arg1 = 0 ; | |
ae8162c8 | 9921 | bool temp1 = false ; |
d14a1e28 RD |
9922 | PyObject * obj0 = 0 ; |
9923 | char *kwnames[] = { | |
9924 | (char *) "prefix", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9928 | { | |
9929 | arg1 = wxString_in_helper(obj0); | |
9930 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9931 | temp1 = true; |
d14a1e28 RD |
9932 | } |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | Py_INCREF(Py_None); resultobj = Py_None; | |
9941 | { | |
9942 | if (temp1) | |
9943 | delete arg1; | |
9944 | } | |
9945 | return resultobj; | |
9946 | fail: | |
9947 | { | |
9948 | if (temp1) | |
9949 | delete arg1; | |
9950 | } | |
9951 | return NULL; | |
9952 | } | |
9953 | ||
9954 | ||
c32bde28 | 9955 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9956 | PyObject *resultobj; |
9957 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9958 | wxString *arg2 = 0 ; | |
9959 | bool result; | |
ae8162c8 | 9960 | bool temp2 = false ; |
d14a1e28 RD |
9961 | PyObject * obj0 = 0 ; |
9962 | PyObject * obj1 = 0 ; | |
9963 | char *kwnames[] = { | |
9964 | (char *) "self",(char *) "szDomain", NULL | |
9965 | }; | |
9966 | ||
9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9970 | { |
9971 | arg2 = wxString_in_helper(obj1); | |
9972 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9973 | temp2 = true; |
d14a1e28 RD |
9974 | } |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
4f89f6a3 RD |
9982 | { |
9983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9984 | } | |
d14a1e28 RD |
9985 | { |
9986 | if (temp2) | |
9987 | delete arg2; | |
9988 | } | |
9989 | return resultobj; | |
9990 | fail: | |
9991 | { | |
9992 | if (temp2) | |
9993 | delete arg2; | |
9994 | } | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
c32bde28 | 9999 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10000 | PyObject *resultobj; |
10001 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10002 | wxString *arg2 = 0 ; | |
10003 | bool result; | |
ae8162c8 | 10004 | bool temp2 = false ; |
d14a1e28 RD |
10005 | PyObject * obj0 = 0 ; |
10006 | PyObject * obj1 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self",(char *) "szDomain", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10014 | { |
10015 | arg2 = wxString_in_helper(obj1); | |
10016 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10017 | temp2 = true; |
d14a1e28 RD |
10018 | } |
10019 | { | |
10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10021 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10022 | ||
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) SWIG_fail; | |
10025 | } | |
4f89f6a3 RD |
10026 | { |
10027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10028 | } | |
d14a1e28 RD |
10029 | { |
10030 | if (temp2) | |
10031 | delete arg2; | |
10032 | } | |
10033 | return resultobj; | |
10034 | fail: | |
10035 | { | |
10036 | if (temp2) | |
10037 | delete arg2; | |
10038 | } | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
c32bde28 | 10043 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10044 | PyObject *resultobj; |
10045 | int arg1 ; | |
10046 | wxLanguageInfo *result; | |
994141e6 | 10047 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10048 | char *kwnames[] = { |
10049 | (char *) "lang", NULL | |
10050 | }; | |
10051 | ||
994141e6 | 10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
c32bde28 | 10053 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10055 | { |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
15afbcd0 | 10062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10063 | return resultobj; |
10064 | fail: | |
10065 | return NULL; | |
10066 | } | |
10067 | ||
10068 | ||
c32bde28 | 10069 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10070 | PyObject *resultobj; |
10071 | int arg1 ; | |
10072 | wxString result; | |
994141e6 | 10073 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10074 | char *kwnames[] = { |
10075 | (char *) "lang", NULL | |
10076 | }; | |
10077 | ||
994141e6 | 10078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
c32bde28 | 10079 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10081 | { |
10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10083 | result = wxLocale::GetLanguageName(arg1); | |
10084 | ||
10085 | wxPyEndAllowThreads(__tstate); | |
10086 | if (PyErr_Occurred()) SWIG_fail; | |
10087 | } | |
10088 | { | |
10089 | #if wxUSE_UNICODE | |
10090 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10091 | #else | |
10092 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10093 | #endif | |
10094 | } | |
10095 | return resultobj; | |
10096 | fail: | |
10097 | return NULL; | |
10098 | } | |
10099 | ||
10100 | ||
c32bde28 | 10101 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10102 | PyObject *resultobj; |
10103 | wxString *arg1 = 0 ; | |
10104 | wxLanguageInfo *result; | |
ae8162c8 | 10105 | bool temp1 = false ; |
d14a1e28 RD |
10106 | PyObject * obj0 = 0 ; |
10107 | char *kwnames[] = { | |
10108 | (char *) "locale", NULL | |
10109 | }; | |
10110 | ||
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10112 | { | |
10113 | arg1 = wxString_in_helper(obj0); | |
10114 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10115 | temp1 = true; |
d14a1e28 RD |
10116 | } |
10117 | { | |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10119 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10120 | ||
10121 | wxPyEndAllowThreads(__tstate); | |
10122 | if (PyErr_Occurred()) SWIG_fail; | |
10123 | } | |
15afbcd0 | 10124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10125 | { |
10126 | if (temp1) | |
10127 | delete arg1; | |
10128 | } | |
10129 | return resultobj; | |
10130 | fail: | |
10131 | { | |
10132 | if (temp1) | |
10133 | delete arg1; | |
10134 | } | |
10135 | return NULL; | |
10136 | } | |
10137 | ||
10138 | ||
c32bde28 | 10139 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10140 | PyObject *resultobj; |
10141 | wxLanguageInfo *arg1 = 0 ; | |
10142 | PyObject * obj0 = 0 ; | |
10143 | char *kwnames[] = { | |
10144 | (char *) "info", NULL | |
10145 | }; | |
10146 | ||
10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
10149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10150 | SWIG_fail; | |
d14a1e28 | 10151 | if (arg1 == NULL) { |
15afbcd0 RD |
10152 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10153 | SWIG_fail; | |
d14a1e28 RD |
10154 | } |
10155 | { | |
10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10157 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10158 | ||
10159 | wxPyEndAllowThreads(__tstate); | |
10160 | if (PyErr_Occurred()) SWIG_fail; | |
10161 | } | |
10162 | Py_INCREF(Py_None); resultobj = Py_None; | |
10163 | return resultobj; | |
10164 | fail: | |
10165 | return NULL; | |
10166 | } | |
10167 | ||
10168 | ||
c32bde28 | 10169 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10170 | PyObject *resultobj; |
10171 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10172 | wxString *arg2 = 0 ; | |
10173 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10174 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10175 | wxString result; | |
ae8162c8 RD |
10176 | bool temp2 = false ; |
10177 | bool temp3 = false ; | |
d14a1e28 RD |
10178 | PyObject * obj0 = 0 ; |
10179 | PyObject * obj1 = 0 ; | |
10180 | PyObject * obj2 = 0 ; | |
10181 | char *kwnames[] = { | |
10182 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10183 | }; | |
10184 | ||
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10188 | { |
10189 | arg2 = wxString_in_helper(obj1); | |
10190 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10191 | temp2 = true; |
d14a1e28 RD |
10192 | } |
10193 | if (obj2) { | |
10194 | { | |
10195 | arg3 = wxString_in_helper(obj2); | |
10196 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10197 | temp3 = true; |
d14a1e28 RD |
10198 | } |
10199 | } | |
10200 | { | |
10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10202 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10203 | ||
10204 | wxPyEndAllowThreads(__tstate); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | { | |
10208 | #if wxUSE_UNICODE | |
10209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10210 | #else | |
10211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10212 | #endif | |
10213 | } | |
10214 | { | |
10215 | if (temp2) | |
10216 | delete arg2; | |
10217 | } | |
10218 | { | |
10219 | if (temp3) | |
10220 | delete arg3; | |
10221 | } | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | { | |
10225 | if (temp2) | |
10226 | delete arg2; | |
10227 | } | |
10228 | { | |
10229 | if (temp3) | |
10230 | delete arg3; | |
10231 | } | |
10232 | return NULL; | |
10233 | } | |
10234 | ||
10235 | ||
c32bde28 | 10236 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10237 | PyObject *resultobj; |
10238 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10239 | wxString *result; | |
10240 | PyObject * obj0 = 0 ; | |
10241 | char *kwnames[] = { | |
10242 | (char *) "self", NULL | |
10243 | }; | |
10244 | ||
10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10248 | { |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10250 | { | |
10251 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10252 | result = (wxString *) &_result_ref; | |
10253 | } | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
cc6dd355 RD |
10258 | { |
10259 | #if wxUSE_UNICODE | |
10260 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10261 | #else | |
10262 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10263 | #endif | |
10264 | } | |
d14a1e28 RD |
10265 | return resultobj; |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
c32bde28 | 10271 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10272 | PyObject *obj; |
10273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10274 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10275 | Py_INCREF(obj); | |
10276 | return Py_BuildValue((char *)""); | |
10277 | } | |
c32bde28 | 10278 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10279 | PyObject *resultobj; |
10280 | wxLocale *result; | |
10281 | char *kwnames[] = { | |
10282 | NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10286 | { | |
10287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10288 | result = (wxLocale *)wxGetLocale(); | |
10289 | ||
10290 | wxPyEndAllowThreads(__tstate); | |
10291 | if (PyErr_Occurred()) SWIG_fail; | |
10292 | } | |
15afbcd0 | 10293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
10294 | return resultobj; |
10295 | fail: | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
c32bde28 | 10300 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
10301 | PyObject *resultobj; |
10302 | wxString *arg1 = 0 ; | |
10303 | wxString result; | |
ae8162c8 | 10304 | bool temp1 = false ; |
d14a1e28 RD |
10305 | PyObject * obj0 = 0 ; |
10306 | ||
10307 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10308 | { | |
10309 | arg1 = wxString_in_helper(obj0); | |
10310 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10311 | temp1 = true; |
d14a1e28 RD |
10312 | } |
10313 | { | |
10314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10315 | result = wxGetTranslation((wxString const &)*arg1); | |
10316 | ||
10317 | wxPyEndAllowThreads(__tstate); | |
10318 | if (PyErr_Occurred()) SWIG_fail; | |
10319 | } | |
10320 | { | |
10321 | #if wxUSE_UNICODE | |
10322 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10323 | #else | |
10324 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10325 | #endif | |
10326 | } | |
10327 | { | |
10328 | if (temp1) | |
10329 | delete arg1; | |
10330 | } | |
10331 | return resultobj; | |
10332 | fail: | |
10333 | { | |
10334 | if (temp1) | |
10335 | delete arg1; | |
10336 | } | |
10337 | return NULL; | |
10338 | } | |
10339 | ||
10340 | ||
c32bde28 | 10341 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
10342 | PyObject *resultobj; |
10343 | wxString *arg1 = 0 ; | |
10344 | wxString *arg2 = 0 ; | |
10345 | size_t arg3 ; | |
10346 | wxString result; | |
ae8162c8 RD |
10347 | bool temp1 = false ; |
10348 | bool temp2 = false ; | |
d14a1e28 RD |
10349 | PyObject * obj0 = 0 ; |
10350 | PyObject * obj1 = 0 ; | |
10351 | PyObject * obj2 = 0 ; | |
10352 | ||
10353 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10354 | { | |
10355 | arg1 = wxString_in_helper(obj0); | |
10356 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10357 | temp1 = true; |
d14a1e28 RD |
10358 | } |
10359 | { | |
10360 | arg2 = wxString_in_helper(obj1); | |
10361 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10362 | temp2 = true; |
d14a1e28 | 10363 | } |
c32bde28 | 10364 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
15afbcd0 | 10365 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10366 | { |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
10373 | { | |
10374 | #if wxUSE_UNICODE | |
10375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10376 | #else | |
10377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10378 | #endif | |
10379 | } | |
10380 | { | |
10381 | if (temp1) | |
10382 | delete arg1; | |
10383 | } | |
10384 | { | |
10385 | if (temp2) | |
10386 | delete arg2; | |
10387 | } | |
10388 | return resultobj; | |
10389 | fail: | |
10390 | { | |
10391 | if (temp1) | |
10392 | delete arg1; | |
10393 | } | |
10394 | { | |
10395 | if (temp2) | |
10396 | delete arg2; | |
10397 | } | |
10398 | return NULL; | |
10399 | } | |
10400 | ||
10401 | ||
10402 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10403 | int argc; | |
10404 | PyObject *argv[4]; | |
10405 | int ii; | |
10406 | ||
10407 | argc = PyObject_Length(args); | |
10408 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10409 | argv[ii] = PyTuple_GetItem(args,ii); | |
10410 | } | |
10411 | if (argc == 1) { | |
10412 | int _v; | |
10413 | { | |
4d5c3d91 | 10414 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10415 | } |
10416 | if (_v) { | |
10417 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10418 | } | |
10419 | } | |
10420 | if (argc == 3) { | |
10421 | int _v; | |
10422 | { | |
4d5c3d91 | 10423 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10424 | } |
10425 | if (_v) { | |
10426 | { | |
4d5c3d91 | 10427 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
10428 | } |
10429 | if (_v) { | |
c32bde28 | 10430 | _v = SWIG_Check_unsigned_SS_long(argv[2]); |
d14a1e28 RD |
10431 | if (_v) { |
10432 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10433 | } | |
10434 | } | |
10435 | } | |
10436 | } | |
10437 | ||
10438 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10439 | return NULL; | |
10440 | } | |
10441 | ||
10442 | ||
c32bde28 | 10443 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10444 | PyObject *resultobj; |
10445 | wxEncodingConverter *result; | |
10446 | char *kwnames[] = { | |
10447 | NULL | |
10448 | }; | |
10449 | ||
10450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10451 | { | |
10452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10453 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10454 | ||
10455 | wxPyEndAllowThreads(__tstate); | |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
10457 | } | |
15afbcd0 | 10458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
10459 | return resultobj; |
10460 | fail: | |
10461 | return NULL; | |
10462 | } | |
10463 | ||
10464 | ||
c32bde28 | 10465 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10466 | PyObject *resultobj; |
10467 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10476 | { |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | delete arg1; | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | Py_INCREF(Py_None); resultobj = Py_None; | |
10484 | return resultobj; | |
10485 | fail: | |
10486 | return NULL; | |
10487 | } | |
10488 | ||
10489 | ||
c32bde28 | 10490 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10491 | PyObject *resultobj; |
10492 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10493 | int arg2 ; | |
10494 | int arg3 ; | |
10495 | int arg4 = (int) wxCONVERT_STRICT ; | |
10496 | bool result; | |
10497 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10498 | PyObject * obj1 = 0 ; |
10499 | PyObject * obj2 = 0 ; | |
10500 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10501 | char *kwnames[] = { |
10502 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10503 | }; | |
10504 | ||
994141e6 | 10505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10508 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10509 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10510 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10511 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10512 | if (obj3) { |
c32bde28 | 10513 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10514 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10515 | } |
d14a1e28 RD |
10516 | { |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
4f89f6a3 RD |
10523 | { |
10524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10525 | } | |
d14a1e28 RD |
10526 | return resultobj; |
10527 | fail: | |
10528 | return NULL; | |
10529 | } | |
10530 | ||
10531 | ||
c32bde28 | 10532 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10533 | PyObject *resultobj; |
10534 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10535 | wxString *arg2 = 0 ; | |
10536 | wxString result; | |
ae8162c8 | 10537 | bool temp2 = false ; |
d14a1e28 RD |
10538 | PyObject * obj0 = 0 ; |
10539 | PyObject * obj1 = 0 ; | |
10540 | char *kwnames[] = { | |
10541 | (char *) "self",(char *) "input", NULL | |
10542 | }; | |
10543 | ||
10544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10547 | { |
10548 | arg2 = wxString_in_helper(obj1); | |
10549 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10550 | temp2 = true; |
d14a1e28 RD |
10551 | } |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | result = (arg1)->Convert((wxString const &)*arg2); | |
10555 | ||
10556 | wxPyEndAllowThreads(__tstate); | |
10557 | if (PyErr_Occurred()) SWIG_fail; | |
10558 | } | |
10559 | { | |
10560 | #if wxUSE_UNICODE | |
10561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10562 | #else | |
10563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10564 | #endif | |
10565 | } | |
10566 | { | |
10567 | if (temp2) | |
10568 | delete arg2; | |
10569 | } | |
10570 | return resultobj; | |
10571 | fail: | |
10572 | { | |
10573 | if (temp2) | |
10574 | delete arg2; | |
10575 | } | |
10576 | return NULL; | |
10577 | } | |
10578 | ||
10579 | ||
c32bde28 | 10580 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10581 | PyObject *resultobj; |
10582 | int arg1 ; | |
10583 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10584 | wxFontEncodingArray result; | |
994141e6 RD |
10585 | PyObject * obj0 = 0 ; |
10586 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10587 | char *kwnames[] = { |
10588 | (char *) "enc",(char *) "platform", NULL | |
10589 | }; | |
10590 | ||
994141e6 | 10591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
c32bde28 | 10592 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10593 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10594 | if (obj1) { |
c32bde28 | 10595 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10596 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10597 | } |
d14a1e28 RD |
10598 | { |
10599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10600 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10601 | ||
10602 | wxPyEndAllowThreads(__tstate); | |
10603 | if (PyErr_Occurred()) SWIG_fail; | |
10604 | } | |
10605 | { | |
10606 | resultobj = PyList_New(0); | |
10607 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10608 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10609 | PyList_Append(resultobj, number); | |
10610 | Py_DECREF(number); | |
10611 | } | |
10612 | } | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
c32bde28 | 10619 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10620 | PyObject *resultobj; |
10621 | int arg1 ; | |
10622 | wxFontEncodingArray result; | |
994141e6 | 10623 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10624 | char *kwnames[] = { |
10625 | (char *) "enc", NULL | |
10626 | }; | |
10627 | ||
994141e6 | 10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
c32bde28 | 10629 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10630 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10631 | { |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | { | |
10639 | resultobj = PyList_New(0); | |
10640 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10641 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10642 | PyList_Append(resultobj, number); | |
10643 | Py_DECREF(number); | |
10644 | } | |
10645 | } | |
10646 | return resultobj; | |
10647 | fail: | |
10648 | return NULL; | |
10649 | } | |
10650 | ||
10651 | ||
c32bde28 | 10652 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10653 | PyObject *resultobj; |
10654 | int arg1 ; | |
10655 | int arg2 ; | |
10656 | bool result; | |
994141e6 RD |
10657 | PyObject * obj0 = 0 ; |
10658 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10659 | char *kwnames[] = { |
10660 | (char *) "encIn",(char *) "encOut", NULL | |
10661 | }; | |
10662 | ||
994141e6 | 10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
c32bde28 | 10664 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10665 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10666 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10667 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10668 | { |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10670 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10671 | ||
10672 | wxPyEndAllowThreads(__tstate); | |
10673 | if (PyErr_Occurred()) SWIG_fail; | |
10674 | } | |
4f89f6a3 RD |
10675 | { |
10676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10677 | } | |
d14a1e28 RD |
10678 | return resultobj; |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
c32bde28 | 10684 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10685 | PyObject *obj; |
10686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10687 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10688 | Py_INCREF(obj); | |
10689 | return Py_BuildValue((char *)""); | |
10690 | } | |
c32bde28 | 10691 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10692 | PyObject *resultobj; |
10693 | wxDC *arg1 = (wxDC *) 0 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | char *kwnames[] = { | |
10696 | (char *) "self", NULL | |
10697 | }; | |
10698 | ||
10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10702 | { |
10703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10704 | delete arg1; | |
10705 | ||
10706 | wxPyEndAllowThreads(__tstate); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
10708 | } | |
10709 | Py_INCREF(Py_None); resultobj = Py_None; | |
10710 | return resultobj; | |
10711 | fail: | |
10712 | return NULL; | |
10713 | } | |
10714 | ||
10715 | ||
c32bde28 | 10716 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10717 | PyObject *resultobj; |
10718 | wxDC *arg1 = (wxDC *) 0 ; | |
10719 | PyObject * obj0 = 0 ; | |
10720 | char *kwnames[] = { | |
10721 | (char *) "self", NULL | |
10722 | }; | |
10723 | ||
10724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10727 | { |
10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10729 | (arg1)->BeginDrawing(); | |
10730 | ||
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | Py_INCREF(Py_None); resultobj = Py_None; | |
10735 | return resultobj; | |
10736 | fail: | |
10737 | return NULL; | |
10738 | } | |
10739 | ||
10740 | ||
c32bde28 | 10741 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10742 | PyObject *resultobj; |
10743 | wxDC *arg1 = (wxDC *) 0 ; | |
10744 | PyObject * obj0 = 0 ; | |
10745 | char *kwnames[] = { | |
10746 | (char *) "self", NULL | |
10747 | }; | |
10748 | ||
10749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10752 | { |
10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10754 | (arg1)->EndDrawing(); | |
10755 | ||
10756 | wxPyEndAllowThreads(__tstate); | |
10757 | if (PyErr_Occurred()) SWIG_fail; | |
10758 | } | |
10759 | Py_INCREF(Py_None); resultobj = Py_None; | |
10760 | return resultobj; | |
10761 | fail: | |
10762 | return NULL; | |
10763 | } | |
10764 | ||
10765 | ||
c32bde28 | 10766 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10767 | PyObject *resultobj; |
10768 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10769 | int arg2 ; |
10770 | int arg3 ; | |
d14a1e28 RD |
10771 | wxColour *arg4 = 0 ; |
10772 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10773 | bool result; | |
10774 | wxColour temp4 ; | |
10775 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10776 | PyObject * obj1 = 0 ; |
10777 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10778 | PyObject * obj3 = 0 ; |
994141e6 | 10779 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10780 | char *kwnames[] = { |
10781 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10782 | }; | |
10783 | ||
03e37cd5 | 10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10787 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10788 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10789 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10790 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10791 | { |
10792 | arg4 = &temp4; | |
10793 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10794 | } | |
994141e6 | 10795 | if (obj4) { |
c32bde28 | 10796 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10797 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10798 | } |
d14a1e28 RD |
10799 | { |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
4f89f6a3 RD |
10806 | { |
10807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10808 | } | |
d14a1e28 RD |
10809 | return resultobj; |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
c32bde28 | 10815 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10816 | PyObject *resultobj; |
10817 | wxDC *arg1 = (wxDC *) 0 ; | |
10818 | wxPoint *arg2 = 0 ; | |
10819 | wxColour *arg3 = 0 ; | |
10820 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10821 | bool result; | |
10822 | wxPoint temp2 ; | |
10823 | wxColour temp3 ; | |
10824 | PyObject * obj0 = 0 ; | |
10825 | PyObject * obj1 = 0 ; | |
10826 | PyObject * obj2 = 0 ; | |
994141e6 | 10827 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10828 | char *kwnames[] = { |
10829 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10830 | }; | |
10831 | ||
03e37cd5 | 10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10835 | { |
10836 | arg2 = &temp2; | |
10837 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10838 | } | |
10839 | { | |
10840 | arg3 = &temp3; | |
10841 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10842 | } | |
994141e6 | 10843 | if (obj3) { |
c32bde28 | 10844 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10845 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10846 | } |
d14a1e28 RD |
10847 | { |
10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10849 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10850 | ||
10851 | wxPyEndAllowThreads(__tstate); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
4f89f6a3 RD |
10854 | { |
10855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10856 | } | |
d14a1e28 RD |
10857 | return resultobj; |
10858 | fail: | |
10859 | return NULL; | |
10860 | } | |
10861 | ||
10862 | ||
c32bde28 | 10863 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10864 | PyObject *resultobj; |
10865 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10866 | int arg2 ; |
10867 | int arg3 ; | |
d14a1e28 RD |
10868 | wxColour result; |
10869 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10870 | PyObject * obj1 = 0 ; |
10871 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10872 | char *kwnames[] = { |
10873 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10874 | }; | |
10875 | ||
03e37cd5 | 10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10879 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10880 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10881 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10882 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10883 | { |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10885 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d14a1e28 RD |
10886 | |
10887 | wxPyEndAllowThreads(__tstate); | |
10888 | if (PyErr_Occurred()) SWIG_fail; | |
10889 | } | |
10890 | { | |
10891 | wxColour * resultptr; | |
10892 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10894 | } |
10895 | return resultobj; | |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
c32bde28 | 10901 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10902 | PyObject *resultobj; |
10903 | wxDC *arg1 = (wxDC *) 0 ; | |
10904 | wxPoint *arg2 = 0 ; | |
10905 | wxColour result; | |
10906 | wxPoint temp2 ; | |
10907 | PyObject * obj0 = 0 ; | |
10908 | PyObject * obj1 = 0 ; | |
10909 | char *kwnames[] = { | |
10910 | (char *) "self",(char *) "pt", NULL | |
10911 | }; | |
10912 | ||
03e37cd5 | 10913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10916 | { |
10917 | arg2 = &temp2; | |
10918 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10922 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
10923 | |
10924 | wxPyEndAllowThreads(__tstate); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
10927 | { | |
10928 | wxColour * resultptr; | |
10929 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10931 | } |
10932 | return resultobj; | |
10933 | fail: | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
c32bde28 | 10938 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10939 | PyObject *resultobj; |
10940 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10941 | int arg2 ; |
10942 | int arg3 ; | |
10943 | int arg4 ; | |
10944 | int arg5 ; | |
d14a1e28 | 10945 | PyObject * obj0 = 0 ; |
994141e6 RD |
10946 | PyObject * obj1 = 0 ; |
10947 | PyObject * obj2 = 0 ; | |
10948 | PyObject * obj3 = 0 ; | |
10949 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10950 | char *kwnames[] = { |
10951 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10952 | }; | |
10953 | ||
03e37cd5 | 10954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10957 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10958 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10959 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10960 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10961 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10962 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10963 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10964 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10965 | { |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
10972 | Py_INCREF(Py_None); resultobj = Py_None; | |
10973 | return resultobj; | |
10974 | fail: | |
10975 | return NULL; | |
10976 | } | |
10977 | ||
10978 | ||
c32bde28 | 10979 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10980 | PyObject *resultobj; |
10981 | wxDC *arg1 = (wxDC *) 0 ; | |
10982 | wxPoint *arg2 = 0 ; | |
10983 | wxPoint *arg3 = 0 ; | |
10984 | wxPoint temp2 ; | |
10985 | wxPoint temp3 ; | |
10986 | PyObject * obj0 = 0 ; | |
10987 | PyObject * obj1 = 0 ; | |
10988 | PyObject * obj2 = 0 ; | |
10989 | char *kwnames[] = { | |
10990 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10991 | }; | |
10992 | ||
03e37cd5 | 10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10996 | { |
10997 | arg2 = &temp2; | |
10998 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10999 | } | |
11000 | { | |
11001 | arg3 = &temp3; | |
11002 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11003 | } | |
11004 | { | |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
11011 | Py_INCREF(Py_None); resultobj = Py_None; | |
11012 | return resultobj; | |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
c32bde28 | 11018 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11019 | PyObject *resultobj; |
11020 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11021 | int arg2 ; |
11022 | int arg3 ; | |
d14a1e28 | 11023 | PyObject * obj0 = 0 ; |
994141e6 RD |
11024 | PyObject * obj1 = 0 ; |
11025 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11026 | char *kwnames[] = { |
11027 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11028 | }; | |
11029 | ||
03e37cd5 | 11030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11033 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11034 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11035 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11036 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11037 | { |
11038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11039 | (arg1)->CrossHair(arg2,arg3); | |
11040 | ||
11041 | wxPyEndAllowThreads(__tstate); | |
11042 | if (PyErr_Occurred()) SWIG_fail; | |
11043 | } | |
11044 | Py_INCREF(Py_None); resultobj = Py_None; | |
11045 | return resultobj; | |
11046 | fail: | |
11047 | return NULL; | |
11048 | } | |
11049 | ||
11050 | ||
c32bde28 | 11051 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11052 | PyObject *resultobj; |
11053 | wxDC *arg1 = (wxDC *) 0 ; | |
11054 | wxPoint *arg2 = 0 ; | |
11055 | wxPoint temp2 ; | |
11056 | PyObject * obj0 = 0 ; | |
11057 | PyObject * obj1 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "self",(char *) "pt", NULL | |
11060 | }; | |
11061 | ||
03e37cd5 | 11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11065 | { |
11066 | arg2 = &temp2; | |
11067 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11068 | } | |
11069 | { | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) SWIG_fail; | |
11075 | } | |
11076 | Py_INCREF(Py_None); resultobj = Py_None; | |
11077 | return resultobj; | |
11078 | fail: | |
11079 | return NULL; | |
11080 | } | |
11081 | ||
11082 | ||
c32bde28 | 11083 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11084 | PyObject *resultobj; |
11085 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11086 | int arg2 ; |
11087 | int arg3 ; | |
11088 | int arg4 ; | |
11089 | int arg5 ; | |
11090 | int arg6 ; | |
11091 | int arg7 ; | |
d14a1e28 | 11092 | PyObject * obj0 = 0 ; |
994141e6 RD |
11093 | PyObject * obj1 = 0 ; |
11094 | PyObject * obj2 = 0 ; | |
11095 | PyObject * obj3 = 0 ; | |
11096 | PyObject * obj4 = 0 ; | |
11097 | PyObject * obj5 = 0 ; | |
11098 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
11099 | char *kwnames[] = { |
11100 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11101 | }; | |
11102 | ||
03e37cd5 | 11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
11104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11106 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11107 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11108 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11109 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11110 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11111 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11112 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11113 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11114 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 11115 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11116 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11117 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11118 | { |
11119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11120 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11121 | ||
11122 | wxPyEndAllowThreads(__tstate); | |
11123 | if (PyErr_Occurred()) SWIG_fail; | |
11124 | } | |
11125 | Py_INCREF(Py_None); resultobj = Py_None; | |
11126 | return resultobj; | |
11127 | fail: | |
11128 | return NULL; | |
11129 | } | |
11130 | ||
11131 | ||
c32bde28 | 11132 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11133 | PyObject *resultobj; |
11134 | wxDC *arg1 = (wxDC *) 0 ; | |
11135 | wxPoint *arg2 = 0 ; | |
11136 | wxPoint *arg3 = 0 ; | |
11137 | wxPoint *arg4 = 0 ; | |
11138 | wxPoint temp2 ; | |
11139 | wxPoint temp3 ; | |
11140 | wxPoint temp4 ; | |
11141 | PyObject * obj0 = 0 ; | |
11142 | PyObject * obj1 = 0 ; | |
11143 | PyObject * obj2 = 0 ; | |
11144 | PyObject * obj3 = 0 ; | |
11145 | char *kwnames[] = { | |
f5b96ee1 | 11146 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d14a1e28 RD |
11147 | }; |
11148 | ||
03e37cd5 | 11149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11152 | { |
11153 | arg2 = &temp2; | |
11154 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11155 | } | |
11156 | { | |
11157 | arg3 = &temp3; | |
11158 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | arg4 = &temp4; | |
11162 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | Py_INCREF(Py_None); resultobj = Py_None; | |
11172 | return resultobj; | |
11173 | fail: | |
11174 | return NULL; | |
11175 | } | |
11176 | ||
11177 | ||
c32bde28 | 11178 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11179 | PyObject *resultobj; |
11180 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11181 | int arg2 ; |
11182 | int arg3 ; | |
11183 | int arg4 ; | |
11184 | int arg5 ; | |
d14a1e28 | 11185 | PyObject * obj0 = 0 ; |
994141e6 RD |
11186 | PyObject * obj1 = 0 ; |
11187 | PyObject * obj2 = 0 ; | |
11188 | PyObject * obj3 = 0 ; | |
11189 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11190 | char *kwnames[] = { |
11191 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11192 | }; | |
11193 | ||
03e37cd5 | 11194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11197 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11198 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11199 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11200 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11201 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11202 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11203 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11204 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11205 | { |
11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11207 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11208 | ||
11209 | wxPyEndAllowThreads(__tstate); | |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
11212 | Py_INCREF(Py_None); resultobj = Py_None; | |
11213 | return resultobj; | |
11214 | fail: | |
11215 | return NULL; | |
11216 | } | |
11217 | ||
11218 | ||
c32bde28 | 11219 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11220 | PyObject *resultobj; |
11221 | wxDC *arg1 = (wxDC *) 0 ; | |
11222 | wxRect *arg2 = 0 ; | |
11223 | wxRect temp2 ; | |
11224 | PyObject * obj0 = 0 ; | |
11225 | PyObject * obj1 = 0 ; | |
11226 | char *kwnames[] = { | |
11227 | (char *) "self",(char *) "rect", NULL | |
11228 | }; | |
11229 | ||
03e37cd5 | 11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11233 | { |
11234 | arg2 = &temp2; | |
11235 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11236 | } | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | Py_INCREF(Py_None); resultobj = Py_None; | |
11245 | return resultobj; | |
11246 | fail: | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
c32bde28 | 11251 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11252 | PyObject *resultobj; |
11253 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11254 | int arg2 ; |
11255 | int arg3 ; | |
11256 | int arg4 ; | |
11257 | int arg5 ; | |
d14a1e28 RD |
11258 | double arg6 ; |
11259 | double arg7 ; | |
11260 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11261 | PyObject * obj1 = 0 ; |
11262 | PyObject * obj2 = 0 ; | |
11263 | PyObject * obj3 = 0 ; | |
11264 | PyObject * obj4 = 0 ; | |
11265 | PyObject * obj5 = 0 ; | |
11266 | PyObject * obj6 = 0 ; | |
d14a1e28 | 11267 | char *kwnames[] = { |
f5b96ee1 | 11268 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
11269 | }; |
11270 | ||
03e37cd5 | 11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
11272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11274 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11275 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11276 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11277 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11278 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11279 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11280 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11281 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11282 | arg6 = (double)SWIG_As_double(obj5); |
15afbcd0 | 11283 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11284 | arg7 = (double)SWIG_As_double(obj6); |
15afbcd0 | 11285 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11286 | { |
11287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11288 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11289 | ||
11290 | wxPyEndAllowThreads(__tstate); | |
11291 | if (PyErr_Occurred()) SWIG_fail; | |
11292 | } | |
11293 | Py_INCREF(Py_None); resultobj = Py_None; | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | return NULL; | |
11297 | } | |
11298 | ||
11299 | ||
c32bde28 | 11300 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11301 | PyObject *resultobj; |
11302 | wxDC *arg1 = (wxDC *) 0 ; | |
11303 | wxPoint *arg2 = 0 ; | |
11304 | wxSize *arg3 = 0 ; | |
11305 | double arg4 ; | |
11306 | double arg5 ; | |
11307 | wxPoint temp2 ; | |
11308 | wxSize temp3 ; | |
11309 | PyObject * obj0 = 0 ; | |
11310 | PyObject * obj1 = 0 ; | |
11311 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11312 | PyObject * obj3 = 0 ; |
11313 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11314 | char *kwnames[] = { |
f5b96ee1 | 11315 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
11316 | }; |
11317 | ||
03e37cd5 | 11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11321 | { |
11322 | arg2 = &temp2; | |
11323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11324 | } | |
11325 | { | |
11326 | arg3 = &temp3; | |
11327 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11328 | } | |
c32bde28 | 11329 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 11330 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11331 | arg5 = (double)SWIG_As_double(obj4); |
15afbcd0 | 11332 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11333 | { |
11334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11335 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11336 | ||
11337 | wxPyEndAllowThreads(__tstate); | |
11338 | if (PyErr_Occurred()) SWIG_fail; | |
11339 | } | |
11340 | Py_INCREF(Py_None); resultobj = Py_None; | |
11341 | return resultobj; | |
11342 | fail: | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
c32bde28 | 11347 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11348 | PyObject *resultobj; |
11349 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11350 | int arg2 ; |
11351 | int arg3 ; | |
d14a1e28 | 11352 | PyObject * obj0 = 0 ; |
994141e6 RD |
11353 | PyObject * obj1 = 0 ; |
11354 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11355 | char *kwnames[] = { |
11356 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11357 | }; | |
11358 | ||
03e37cd5 | 11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11362 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11363 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11364 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11365 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11366 | { |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | (arg1)->DrawPoint(arg2,arg3); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | Py_INCREF(Py_None); resultobj = Py_None; | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
c32bde28 | 11380 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11381 | PyObject *resultobj; |
11382 | wxDC *arg1 = (wxDC *) 0 ; | |
11383 | wxPoint *arg2 = 0 ; | |
11384 | wxPoint temp2 ; | |
11385 | PyObject * obj0 = 0 ; | |
11386 | PyObject * obj1 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self",(char *) "pt", NULL | |
11389 | }; | |
11390 | ||
03e37cd5 | 11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11394 | { |
11395 | arg2 = &temp2; | |
11396 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | Py_INCREF(Py_None); resultobj = Py_None; | |
11406 | return resultobj; | |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
c32bde28 | 11412 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11413 | PyObject *resultobj; |
11414 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11415 | int arg2 ; |
11416 | int arg3 ; | |
11417 | int arg4 ; | |
11418 | int arg5 ; | |
d14a1e28 | 11419 | PyObject * obj0 = 0 ; |
994141e6 RD |
11420 | PyObject * obj1 = 0 ; |
11421 | PyObject * obj2 = 0 ; | |
11422 | PyObject * obj3 = 0 ; | |
11423 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11424 | char *kwnames[] = { |
11425 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11426 | }; | |
11427 | ||
03e37cd5 | 11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11431 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11432 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11433 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11434 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11435 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11436 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11437 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11438 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11439 | { |
11440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11441 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11442 | ||
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | Py_INCREF(Py_None); resultobj = Py_None; | |
11447 | return resultobj; | |
11448 | fail: | |
11449 | return NULL; | |
11450 | } | |
11451 | ||
11452 | ||
c32bde28 | 11453 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11454 | PyObject *resultobj; |
11455 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11456 | wxRect *arg2 = 0 ; |
11457 | wxRect temp2 ; | |
d14a1e28 RD |
11458 | PyObject * obj0 = 0 ; |
11459 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11460 | char *kwnames[] = { |
03e37cd5 | 11461 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11462 | }; |
11463 | ||
03e37cd5 | 11464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11467 | { |
11468 | arg2 = &temp2; | |
03e37cd5 | 11469 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11470 | } |
11471 | { | |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11473 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d14a1e28 RD |
11474 | |
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | Py_INCREF(Py_None); resultobj = Py_None; | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
c32bde28 | 11485 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11486 | PyObject *resultobj; |
11487 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11488 | wxPoint *arg2 = 0 ; |
11489 | wxSize *arg3 = 0 ; | |
11490 | wxPoint temp2 ; | |
11491 | wxSize temp3 ; | |
d14a1e28 RD |
11492 | PyObject * obj0 = 0 ; |
11493 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11494 | PyObject * obj2 = 0 ; |
d14a1e28 | 11495 | char *kwnames[] = { |
03e37cd5 | 11496 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11497 | }; |
11498 | ||
03e37cd5 | 11499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11502 | { |
11503 | arg2 = &temp2; | |
03e37cd5 RD |
11504 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11505 | } | |
11506 | { | |
11507 | arg3 = &temp3; | |
11508 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11509 | } |
11510 | { | |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11512 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11513 | |
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
11517 | Py_INCREF(Py_None); resultobj = Py_None; | |
11518 | return resultobj; | |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
c32bde28 | 11524 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11525 | PyObject *resultobj; |
11526 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11527 | int arg2 ; |
11528 | int arg3 ; | |
11529 | int arg4 ; | |
11530 | int arg5 ; | |
d14a1e28 RD |
11531 | double arg6 ; |
11532 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11533 | PyObject * obj1 = 0 ; |
11534 | PyObject * obj2 = 0 ; | |
11535 | PyObject * obj3 = 0 ; | |
11536 | PyObject * obj4 = 0 ; | |
11537 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11538 | char *kwnames[] = { |
11539 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11540 | }; | |
11541 | ||
03e37cd5 | 11542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
11543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11545 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11546 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11547 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11548 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11549 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11550 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11551 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11552 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11553 | arg6 = (double)SWIG_As_double(obj5); |
15afbcd0 | 11554 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11555 | { |
11556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11557 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11558 | ||
11559 | wxPyEndAllowThreads(__tstate); | |
11560 | if (PyErr_Occurred()) SWIG_fail; | |
11561 | } | |
11562 | Py_INCREF(Py_None); resultobj = Py_None; | |
11563 | return resultobj; | |
11564 | fail: | |
11565 | return NULL; | |
11566 | } | |
11567 | ||
11568 | ||
c32bde28 | 11569 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11570 | PyObject *resultobj; |
11571 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11572 | wxRect *arg2 = 0 ; |
11573 | double arg3 ; | |
11574 | wxRect temp2 ; | |
d14a1e28 RD |
11575 | PyObject * obj0 = 0 ; |
11576 | PyObject * obj1 = 0 ; | |
11577 | PyObject * obj2 = 0 ; | |
11578 | char *kwnames[] = { | |
03e37cd5 | 11579 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d14a1e28 RD |
11580 | }; |
11581 | ||
03e37cd5 | 11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11585 | { |
11586 | arg2 = &temp2; | |
03e37cd5 | 11587 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11588 | } |
c32bde28 | 11589 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 11590 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11591 | { |
11592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11593 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
11594 | |
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | Py_INCREF(Py_None); resultobj = Py_None; | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
c32bde28 | 11605 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11606 | PyObject *resultobj; |
11607 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11608 | wxPoint *arg2 = 0 ; |
11609 | wxSize *arg3 = 0 ; | |
11610 | double arg4 ; | |
11611 | wxPoint temp2 ; | |
11612 | wxSize temp3 ; | |
d14a1e28 RD |
11613 | PyObject * obj0 = 0 ; |
11614 | PyObject * obj1 = 0 ; | |
994141e6 | 11615 | PyObject * obj2 = 0 ; |
03e37cd5 | 11616 | PyObject * obj3 = 0 ; |
d14a1e28 | 11617 | char *kwnames[] = { |
03e37cd5 | 11618 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d14a1e28 RD |
11619 | }; |
11620 | ||
03e37cd5 | 11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11624 | { |
11625 | arg2 = &temp2; | |
03e37cd5 | 11626 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11627 | } |
03e37cd5 RD |
11628 | { |
11629 | arg3 = &temp3; | |
11630 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11631 | } | |
c32bde28 | 11632 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 11633 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11634 | { |
11635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11636 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d14a1e28 RD |
11637 | |
11638 | wxPyEndAllowThreads(__tstate); | |
11639 | if (PyErr_Occurred()) SWIG_fail; | |
11640 | } | |
11641 | Py_INCREF(Py_None); resultobj = Py_None; | |
11642 | return resultobj; | |
11643 | fail: | |
11644 | return NULL; | |
11645 | } | |
11646 | ||
11647 | ||
c32bde28 | 11648 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11649 | PyObject *resultobj; |
11650 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11651 | int arg2 ; |
11652 | int arg3 ; | |
11653 | int arg4 ; | |
d14a1e28 | 11654 | PyObject * obj0 = 0 ; |
994141e6 RD |
11655 | PyObject * obj1 = 0 ; |
11656 | PyObject * obj2 = 0 ; | |
11657 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11658 | char *kwnames[] = { |
11659 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11660 | }; | |
11661 | ||
03e37cd5 | 11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11665 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11666 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11667 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11668 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11669 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11670 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11671 | { |
11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11673 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11674 | ||
11675 | wxPyEndAllowThreads(__tstate); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | } | |
11678 | Py_INCREF(Py_None); resultobj = Py_None; | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
c32bde28 | 11685 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11686 | PyObject *resultobj; |
11687 | wxDC *arg1 = (wxDC *) 0 ; | |
11688 | wxPoint *arg2 = 0 ; | |
e811c8ce | 11689 | int arg3 ; |
d14a1e28 RD |
11690 | wxPoint temp2 ; |
11691 | PyObject * obj0 = 0 ; | |
11692 | PyObject * obj1 = 0 ; | |
994141e6 | 11693 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11694 | char *kwnames[] = { |
11695 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11696 | }; | |
11697 | ||
03e37cd5 | 11698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11701 | { |
11702 | arg2 = &temp2; | |
11703 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11704 | } | |
c32bde28 | 11705 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11706 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11707 | { |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | Py_INCREF(Py_None); resultobj = Py_None; | |
11715 | return resultobj; | |
11716 | fail: | |
11717 | return NULL; | |
11718 | } | |
11719 | ||
11720 | ||
c32bde28 | 11721 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11722 | PyObject *resultobj; |
11723 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11724 | int arg2 ; |
11725 | int arg3 ; | |
11726 | int arg4 ; | |
11727 | int arg5 ; | |
d14a1e28 | 11728 | PyObject * obj0 = 0 ; |
994141e6 RD |
11729 | PyObject * obj1 = 0 ; |
11730 | PyObject * obj2 = 0 ; | |
11731 | PyObject * obj3 = 0 ; | |
11732 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11733 | char *kwnames[] = { |
11734 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11735 | }; | |
11736 | ||
03e37cd5 | 11737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11740 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11741 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11742 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11743 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11744 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11745 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11746 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11747 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11748 | { |
11749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11750 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11751 | ||
11752 | wxPyEndAllowThreads(__tstate); | |
11753 | if (PyErr_Occurred()) SWIG_fail; | |
11754 | } | |
11755 | Py_INCREF(Py_None); resultobj = Py_None; | |
11756 | return resultobj; | |
11757 | fail: | |
11758 | return NULL; | |
11759 | } | |
11760 | ||
11761 | ||
c32bde28 | 11762 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11763 | PyObject *resultobj; |
11764 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11765 | wxRect *arg2 = 0 ; |
11766 | wxRect temp2 ; | |
d14a1e28 RD |
11767 | PyObject * obj0 = 0 ; |
11768 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11769 | char *kwnames[] = { |
03e37cd5 | 11770 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11771 | }; |
11772 | ||
03e37cd5 | 11773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11776 | { |
11777 | arg2 = &temp2; | |
03e37cd5 | 11778 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11779 | } |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11782 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d14a1e28 RD |
11783 | |
11784 | wxPyEndAllowThreads(__tstate); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
11787 | Py_INCREF(Py_None); resultobj = Py_None; | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | return NULL; | |
11791 | } | |
11792 | ||
11793 | ||
c32bde28 | 11794 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11795 | PyObject *resultobj; |
11796 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11797 | wxPoint *arg2 = 0 ; |
11798 | wxSize *arg3 = 0 ; | |
11799 | wxPoint temp2 ; | |
11800 | wxSize temp3 ; | |
d14a1e28 RD |
11801 | PyObject * obj0 = 0 ; |
11802 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11803 | PyObject * obj2 = 0 ; |
d14a1e28 | 11804 | char *kwnames[] = { |
03e37cd5 | 11805 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11806 | }; |
11807 | ||
03e37cd5 | 11808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11811 | { |
11812 | arg2 = &temp2; | |
03e37cd5 RD |
11813 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11814 | } | |
11815 | { | |
11816 | arg3 = &temp3; | |
11817 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11818 | } |
11819 | { | |
11820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11821 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11822 | |
11823 | wxPyEndAllowThreads(__tstate); | |
11824 | if (PyErr_Occurred()) SWIG_fail; | |
11825 | } | |
11826 | Py_INCREF(Py_None); resultobj = Py_None; | |
11827 | return resultobj; | |
11828 | fail: | |
11829 | return NULL; | |
11830 | } | |
11831 | ||
11832 | ||
c32bde28 | 11833 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11834 | PyObject *resultobj; |
11835 | wxDC *arg1 = (wxDC *) 0 ; | |
11836 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11837 | int arg3 ; |
11838 | int arg4 ; | |
d14a1e28 RD |
11839 | PyObject * obj0 = 0 ; |
11840 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11841 | PyObject * obj2 = 0 ; |
11842 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11843 | char *kwnames[] = { |
11844 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11845 | }; | |
11846 | ||
03e37cd5 | 11847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11852 | SWIG_fail; | |
d14a1e28 | 11853 | if (arg2 == NULL) { |
15afbcd0 RD |
11854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11855 | SWIG_fail; | |
994141e6 | 11856 | } |
c32bde28 | 11857 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11858 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11859 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11860 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11861 | { |
11862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11863 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11864 | ||
11865 | wxPyEndAllowThreads(__tstate); | |
11866 | if (PyErr_Occurred()) SWIG_fail; | |
11867 | } | |
11868 | Py_INCREF(Py_None); resultobj = Py_None; | |
11869 | return resultobj; | |
11870 | fail: | |
11871 | return NULL; | |
11872 | } | |
11873 | ||
11874 | ||
c32bde28 | 11875 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11876 | PyObject *resultobj; |
11877 | wxDC *arg1 = (wxDC *) 0 ; | |
11878 | wxIcon *arg2 = 0 ; | |
11879 | wxPoint *arg3 = 0 ; | |
11880 | wxPoint temp3 ; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | PyObject * obj1 = 0 ; | |
11883 | PyObject * obj2 = 0 ; | |
11884 | char *kwnames[] = { | |
11885 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11886 | }; | |
11887 | ||
03e37cd5 | 11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11893 | SWIG_fail; | |
d14a1e28 | 11894 | if (arg2 == NULL) { |
15afbcd0 RD |
11895 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11896 | SWIG_fail; | |
d14a1e28 RD |
11897 | } |
11898 | { | |
11899 | arg3 = &temp3; | |
11900 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11901 | } | |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | Py_INCREF(Py_None); resultobj = Py_None; | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
c32bde28 | 11916 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11917 | PyObject *resultobj; |
11918 | wxDC *arg1 = (wxDC *) 0 ; | |
11919 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11920 | int arg3 ; |
11921 | int arg4 ; | |
ae8162c8 | 11922 | bool arg5 = (bool) false ; |
d14a1e28 RD |
11923 | PyObject * obj0 = 0 ; |
11924 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11925 | PyObject * obj2 = 0 ; |
11926 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11927 | PyObject * obj4 = 0 ; |
11928 | char *kwnames[] = { | |
11929 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11930 | }; | |
11931 | ||
03e37cd5 | 11932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11937 | SWIG_fail; | |
d14a1e28 | 11938 | if (arg2 == NULL) { |
15afbcd0 RD |
11939 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11940 | SWIG_fail; | |
994141e6 | 11941 | } |
c32bde28 | 11942 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11943 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11944 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11945 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11946 | if (obj4) { |
c32bde28 | 11947 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 11948 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11949 | } |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | Py_INCREF(Py_None); resultobj = Py_None; | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
c32bde28 | 11964 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11965 | PyObject *resultobj; |
11966 | wxDC *arg1 = (wxDC *) 0 ; | |
11967 | wxBitmap *arg2 = 0 ; | |
11968 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 11969 | bool arg4 = (bool) false ; |
d14a1e28 RD |
11970 | wxPoint temp3 ; |
11971 | PyObject * obj0 = 0 ; | |
11972 | PyObject * obj1 = 0 ; | |
11973 | PyObject * obj2 = 0 ; | |
11974 | PyObject * obj3 = 0 ; | |
11975 | char *kwnames[] = { | |
11976 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11977 | }; | |
11978 | ||
03e37cd5 | 11979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11984 | SWIG_fail; | |
d14a1e28 | 11985 | if (arg2 == NULL) { |
15afbcd0 RD |
11986 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11987 | SWIG_fail; | |
d14a1e28 RD |
11988 | } |
11989 | { | |
11990 | arg3 = &temp3; | |
11991 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11992 | } | |
11993 | if (obj3) { | |
c32bde28 | 11994 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 11995 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11996 | } |
11997 | { | |
11998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11999 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12000 | ||
12001 | wxPyEndAllowThreads(__tstate); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
12004 | Py_INCREF(Py_None); resultobj = Py_None; | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | return NULL; | |
12008 | } | |
12009 | ||
12010 | ||
c32bde28 | 12011 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12012 | PyObject *resultobj; |
12013 | wxDC *arg1 = (wxDC *) 0 ; | |
12014 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12015 | int arg3 ; |
12016 | int arg4 ; | |
ae8162c8 | 12017 | bool temp2 = false ; |
d14a1e28 RD |
12018 | PyObject * obj0 = 0 ; |
12019 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12020 | PyObject * obj2 = 0 ; |
12021 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12022 | char *kwnames[] = { |
12023 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12024 | }; | |
12025 | ||
03e37cd5 | 12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12029 | { |
12030 | arg2 = wxString_in_helper(obj1); | |
12031 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12032 | temp2 = true; |
d14a1e28 | 12033 | } |
c32bde28 | 12034 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12035 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12036 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12037 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12038 | { |
12039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12040 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12041 | ||
12042 | wxPyEndAllowThreads(__tstate); | |
12043 | if (PyErr_Occurred()) SWIG_fail; | |
12044 | } | |
12045 | Py_INCREF(Py_None); resultobj = Py_None; | |
12046 | { | |
12047 | if (temp2) | |
12048 | delete arg2; | |
12049 | } | |
12050 | return resultobj; | |
12051 | fail: | |
12052 | { | |
12053 | if (temp2) | |
12054 | delete arg2; | |
12055 | } | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
c32bde28 | 12060 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12061 | PyObject *resultobj; |
12062 | wxDC *arg1 = (wxDC *) 0 ; | |
12063 | wxString *arg2 = 0 ; | |
12064 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12065 | bool temp2 = false ; |
d14a1e28 RD |
12066 | wxPoint temp3 ; |
12067 | PyObject * obj0 = 0 ; | |
12068 | PyObject * obj1 = 0 ; | |
12069 | PyObject * obj2 = 0 ; | |
12070 | char *kwnames[] = { | |
12071 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12072 | }; | |
12073 | ||
03e37cd5 | 12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12077 | { |
12078 | arg2 = wxString_in_helper(obj1); | |
12079 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12080 | temp2 = true; |
d14a1e28 RD |
12081 | } |
12082 | { | |
12083 | arg3 = &temp3; | |
12084 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12085 | } | |
12086 | { | |
12087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12088 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12089 | ||
12090 | wxPyEndAllowThreads(__tstate); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
12093 | Py_INCREF(Py_None); resultobj = Py_None; | |
12094 | { | |
12095 | if (temp2) | |
12096 | delete arg2; | |
12097 | } | |
12098 | return resultobj; | |
12099 | fail: | |
12100 | { | |
12101 | if (temp2) | |
12102 | delete arg2; | |
12103 | } | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
c32bde28 | 12108 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12109 | PyObject *resultobj; |
12110 | wxDC *arg1 = (wxDC *) 0 ; | |
12111 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12112 | int arg3 ; |
12113 | int arg4 ; | |
d14a1e28 | 12114 | double arg5 ; |
ae8162c8 | 12115 | bool temp2 = false ; |
d14a1e28 RD |
12116 | PyObject * obj0 = 0 ; |
12117 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12118 | PyObject * obj2 = 0 ; |
12119 | PyObject * obj3 = 0 ; | |
12120 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12121 | char *kwnames[] = { |
12122 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12123 | }; | |
12124 | ||
03e37cd5 | 12125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12128 | { |
12129 | arg2 = wxString_in_helper(obj1); | |
12130 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12131 | temp2 = true; |
d14a1e28 | 12132 | } |
c32bde28 | 12133 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12134 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12135 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12136 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12137 | arg5 = (double)SWIG_As_double(obj4); |
15afbcd0 | 12138 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12139 | { |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12142 | ||
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | Py_INCREF(Py_None); resultobj = Py_None; | |
12147 | { | |
12148 | if (temp2) | |
12149 | delete arg2; | |
12150 | } | |
12151 | return resultobj; | |
12152 | fail: | |
12153 | { | |
12154 | if (temp2) | |
12155 | delete arg2; | |
12156 | } | |
12157 | return NULL; | |
12158 | } | |
12159 | ||
12160 | ||
c32bde28 | 12161 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12162 | PyObject *resultobj; |
12163 | wxDC *arg1 = (wxDC *) 0 ; | |
12164 | wxString *arg2 = 0 ; | |
12165 | wxPoint *arg3 = 0 ; | |
12166 | double arg4 ; | |
ae8162c8 | 12167 | bool temp2 = false ; |
d14a1e28 RD |
12168 | wxPoint temp3 ; |
12169 | PyObject * obj0 = 0 ; | |
12170 | PyObject * obj1 = 0 ; | |
12171 | PyObject * obj2 = 0 ; | |
994141e6 | 12172 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
12173 | char *kwnames[] = { |
12174 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12175 | }; | |
12176 | ||
03e37cd5 | 12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12180 | { |
12181 | arg2 = wxString_in_helper(obj1); | |
12182 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12183 | temp2 = true; |
d14a1e28 RD |
12184 | } |
12185 | { | |
12186 | arg3 = &temp3; | |
12187 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12188 | } | |
c32bde28 | 12189 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 12190 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12191 | { |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | { | |
12200 | if (temp2) | |
12201 | delete arg2; | |
12202 | } | |
12203 | return resultobj; | |
12204 | fail: | |
12205 | { | |
12206 | if (temp2) | |
12207 | delete arg2; | |
12208 | } | |
12209 | return NULL; | |
12210 | } | |
12211 | ||
12212 | ||
c32bde28 | 12213 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12214 | PyObject *resultobj; |
12215 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12216 | int arg2 ; |
12217 | int arg3 ; | |
12218 | int arg4 ; | |
12219 | int arg5 ; | |
d14a1e28 | 12220 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
12221 | int arg7 ; |
12222 | int arg8 ; | |
d14a1e28 | 12223 | int arg9 = (int) wxCOPY ; |
ae8162c8 | 12224 | bool arg10 = (bool) false ; |
e811c8ce RD |
12225 | int arg11 = (int) -1 ; |
12226 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
12227 | bool result; |
12228 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12229 | PyObject * obj1 = 0 ; |
12230 | PyObject * obj2 = 0 ; | |
12231 | PyObject * obj3 = 0 ; | |
12232 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12233 | PyObject * obj5 = 0 ; |
994141e6 RD |
12234 | PyObject * obj6 = 0 ; |
12235 | PyObject * obj7 = 0 ; | |
12236 | PyObject * obj8 = 0 ; | |
d14a1e28 | 12237 | PyObject * obj9 = 0 ; |
994141e6 RD |
12238 | PyObject * obj10 = 0 ; |
12239 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
12240 | char *kwnames[] = { |
12241 | (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 | |
12242 | }; | |
12243 | ||
03e37cd5 | 12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
15afbcd0 RD |
12245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12247 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12248 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12249 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12250 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12251 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12252 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12253 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 RD |
12254 | if (PyErr_Occurred()) SWIG_fail; |
12255 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12257 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 12258 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12259 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 12260 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12261 | if (obj8) { |
c32bde28 | 12262 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 12263 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12264 | } |
d14a1e28 | 12265 | if (obj9) { |
c32bde28 | 12266 | arg10 = (bool)SWIG_As_bool(obj9); |
15afbcd0 | 12267 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12268 | } |
12269 | if (obj10) { | |
c32bde28 | 12270 | arg11 = (int)SWIG_As_int(obj10); |
15afbcd0 | 12271 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12272 | } |
12273 | if (obj11) { | |
c32bde28 | 12274 | arg12 = (int)SWIG_As_int(obj11); |
15afbcd0 | 12275 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12276 | } |
12277 | { | |
12278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12279 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12280 | ||
12281 | wxPyEndAllowThreads(__tstate); | |
12282 | if (PyErr_Occurred()) SWIG_fail; | |
12283 | } | |
4f89f6a3 RD |
12284 | { |
12285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12286 | } | |
d14a1e28 RD |
12287 | return resultobj; |
12288 | fail: | |
12289 | return NULL; | |
12290 | } | |
12291 | ||
12292 | ||
c32bde28 | 12293 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12294 | PyObject *resultobj; |
12295 | wxDC *arg1 = (wxDC *) 0 ; | |
12296 | wxPoint *arg2 = 0 ; | |
12297 | wxSize *arg3 = 0 ; | |
12298 | wxDC *arg4 = (wxDC *) 0 ; | |
12299 | wxPoint *arg5 = 0 ; | |
12300 | int arg6 = (int) wxCOPY ; | |
ae8162c8 | 12301 | bool arg7 = (bool) false ; |
d14a1e28 RD |
12302 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12303 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12304 | bool result; | |
12305 | wxPoint temp2 ; | |
12306 | wxSize temp3 ; | |
12307 | wxPoint temp5 ; | |
12308 | wxPoint temp8 ; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | PyObject * obj1 = 0 ; | |
12311 | PyObject * obj2 = 0 ; | |
12312 | PyObject * obj3 = 0 ; | |
12313 | PyObject * obj4 = 0 ; | |
994141e6 | 12314 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12315 | PyObject * obj6 = 0 ; |
12316 | PyObject * obj7 = 0 ; | |
12317 | char *kwnames[] = { | |
12318 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12319 | }; | |
12320 | ||
03e37cd5 | 12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12324 | { |
12325 | arg2 = &temp2; | |
12326 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12327 | } | |
12328 | { | |
12329 | arg3 = &temp3; | |
12330 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12331 | } | |
15afbcd0 RD |
12332 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
12333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12334 | { |
12335 | arg5 = &temp5; | |
12336 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12337 | } | |
994141e6 | 12338 | if (obj5) { |
c32bde28 | 12339 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 12340 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12341 | } |
d14a1e28 | 12342 | if (obj6) { |
c32bde28 | 12343 | arg7 = (bool)SWIG_As_bool(obj6); |
15afbcd0 | 12344 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12345 | } |
12346 | if (obj7) { | |
12347 | { | |
12348 | arg8 = &temp8; | |
12349 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12350 | } | |
12351 | } | |
12352 | { | |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
4f89f6a3 RD |
12359 | { |
12360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12361 | } | |
d14a1e28 RD |
12362 | return resultobj; |
12363 | fail: | |
12364 | return NULL; | |
12365 | } | |
12366 | ||
12367 | ||
c32bde28 | 12368 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12369 | PyObject *resultobj; |
12370 | wxDC *arg1 = (wxDC *) 0 ; | |
12371 | int arg2 ; | |
03e37cd5 RD |
12372 | int arg3 ; |
12373 | int arg4 ; | |
12374 | int arg5 ; | |
d14a1e28 RD |
12375 | PyObject * obj0 = 0 ; |
12376 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12377 | PyObject * obj2 = 0 ; |
12378 | PyObject * obj3 = 0 ; | |
03e37cd5 | 12379 | PyObject * obj4 = 0 ; |
d14a1e28 | 12380 | char *kwnames[] = { |
03e37cd5 | 12381 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
12382 | }; |
12383 | ||
03e37cd5 | 12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12387 | arg2 = (int)SWIG_As_int(obj1); |
03e37cd5 | 12388 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12389 | arg3 = (int)SWIG_As_int(obj2); |
03e37cd5 | 12390 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12391 | arg4 = (int)SWIG_As_int(obj3); |
03e37cd5 | 12392 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12393 | arg5 = (int)SWIG_As_int(obj4); |
03e37cd5 | 12394 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12395 | { |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 12397 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
12398 | |
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
12403 | return resultobj; |
12404 | fail: | |
d14a1e28 RD |
12405 | return NULL; |
12406 | } | |
12407 | ||
12408 | ||
c32bde28 | 12409 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12410 | PyObject *resultobj; |
12411 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
12412 | wxPoint *arg2 = 0 ; |
12413 | wxSize *arg3 = 0 ; | |
12414 | wxPoint temp2 ; | |
12415 | wxSize temp3 ; | |
d14a1e28 RD |
12416 | PyObject * obj0 = 0 ; |
12417 | PyObject * obj1 = 0 ; | |
994141e6 | 12418 | PyObject * obj2 = 0 ; |
d14a1e28 | 12419 | char *kwnames[] = { |
03e37cd5 | 12420 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
12421 | }; |
12422 | ||
03e37cd5 | 12423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12426 | { |
03e37cd5 RD |
12427 | arg2 = &temp2; |
12428 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 12429 | } |
03e37cd5 RD |
12430 | { |
12431 | arg3 = &temp3; | |
12432 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 12433 | } |
d14a1e28 RD |
12434 | { |
12435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 12436 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
12437 | |
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
12441 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
12442 | return resultobj; |
12443 | fail: | |
d14a1e28 RD |
12444 | return NULL; |
12445 | } | |
12446 | ||
12447 | ||
c32bde28 | 12448 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12449 | PyObject *resultobj; |
12450 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 | 12451 | wxRegion *arg2 = 0 ; |
d14a1e28 RD |
12452 | PyObject * obj0 = 0 ; |
12453 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12454 | char *kwnames[] = { |
03e37cd5 | 12455 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
12456 | }; |
12457 | ||
03e37cd5 RD |
12458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
12459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12463 | SWIG_fail; | |
12464 | if (arg2 == NULL) { | |
12465 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12466 | SWIG_fail; | |
12467 | } | |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12471 | ||
12472 | wxPyEndAllowThreads(__tstate); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | Py_INCREF(Py_None); resultobj = Py_None; | |
12476 | return resultobj; | |
12477 | fail: | |
12478 | return NULL; | |
12479 | } | |
12480 | ||
12481 | ||
c32bde28 | 12482 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12483 | PyObject *resultobj; |
12484 | wxDC *arg1 = (wxDC *) 0 ; | |
12485 | wxRect *arg2 = 0 ; | |
12486 | wxRect temp2 ; | |
12487 | PyObject * obj0 = 0 ; | |
12488 | PyObject * obj1 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self",(char *) "rect", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12496 | { | |
12497 | arg2 = &temp2; | |
12498 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12499 | } | |
12500 | { | |
12501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12502 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12503 | ||
12504 | wxPyEndAllowThreads(__tstate); | |
12505 | if (PyErr_Occurred()) SWIG_fail; | |
12506 | } | |
12507 | Py_INCREF(Py_None); resultobj = Py_None; | |
12508 | return resultobj; | |
12509 | fail: | |
12510 | return NULL; | |
12511 | } | |
12512 | ||
12513 | ||
c32bde28 | 12514 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12515 | PyObject *resultobj; |
12516 | wxDC *arg1 = (wxDC *) 0 ; | |
12517 | int arg2 ; | |
12518 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12519 | int arg4 = (int) 0 ; | |
12520 | int arg5 = (int) 0 ; | |
12521 | PyObject * obj0 = 0 ; | |
12522 | PyObject * obj1 = 0 ; | |
12523 | PyObject * obj2 = 0 ; | |
12524 | PyObject * obj3 = 0 ; | |
12525 | char *kwnames[] = { | |
12526 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12527 | }; | |
12528 | ||
12529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12532 | { | |
12533 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12534 | if (arg3 == NULL) SWIG_fail; | |
12535 | } | |
12536 | if (obj2) { | |
c32bde28 | 12537 | arg4 = (int)SWIG_As_int(obj2); |
03e37cd5 RD |
12538 | if (PyErr_Occurred()) SWIG_fail; |
12539 | } | |
12540 | if (obj3) { | |
c32bde28 | 12541 | arg5 = (int)SWIG_As_int(obj3); |
03e37cd5 RD |
12542 | if (PyErr_Occurred()) SWIG_fail; |
12543 | } | |
12544 | { | |
12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12546 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12547 | ||
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | Py_INCREF(Py_None); resultobj = Py_None; | |
12552 | { | |
12553 | if (arg3) delete [] arg3; | |
12554 | } | |
12555 | return resultobj; | |
12556 | fail: | |
12557 | { | |
12558 | if (arg3) delete [] arg3; | |
12559 | } | |
12560 | return NULL; | |
12561 | } | |
12562 | ||
12563 | ||
c32bde28 | 12564 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12565 | PyObject *resultobj; |
12566 | wxDC *arg1 = (wxDC *) 0 ; | |
12567 | int arg2 ; | |
12568 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12569 | int arg4 = (int) 0 ; | |
12570 | int arg5 = (int) 0 ; | |
12571 | int arg6 = (int) wxODDEVEN_RULE ; | |
12572 | PyObject * obj0 = 0 ; | |
12573 | PyObject * obj1 = 0 ; | |
12574 | PyObject * obj2 = 0 ; | |
12575 | PyObject * obj3 = 0 ; | |
12576 | PyObject * obj4 = 0 ; | |
12577 | char *kwnames[] = { | |
12578 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12579 | }; | |
12580 | ||
12581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12584 | { | |
12585 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12586 | if (arg3 == NULL) SWIG_fail; | |
12587 | } | |
12588 | if (obj2) { | |
c32bde28 | 12589 | arg4 = (int)SWIG_As_int(obj2); |
03e37cd5 RD |
12590 | if (PyErr_Occurred()) SWIG_fail; |
12591 | } | |
12592 | if (obj3) { | |
c32bde28 | 12593 | arg5 = (int)SWIG_As_int(obj3); |
03e37cd5 RD |
12594 | if (PyErr_Occurred()) SWIG_fail; |
12595 | } | |
12596 | if (obj4) { | |
c32bde28 | 12597 | arg6 = (int)SWIG_As_int(obj4); |
03e37cd5 RD |
12598 | if (PyErr_Occurred()) SWIG_fail; |
12599 | } | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12603 | ||
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | Py_INCREF(Py_None); resultobj = Py_None; | |
12608 | { | |
12609 | if (arg3) delete [] arg3; | |
12610 | } | |
12611 | return resultobj; | |
12612 | fail: | |
12613 | { | |
12614 | if (arg3) delete [] arg3; | |
12615 | } | |
12616 | return NULL; | |
12617 | } | |
12618 | ||
12619 | ||
c32bde28 | 12620 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12621 | PyObject *resultobj; |
12622 | wxDC *arg1 = (wxDC *) 0 ; | |
12623 | wxString *arg2 = 0 ; | |
12624 | wxRect *arg3 = 0 ; | |
12625 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12626 | int arg5 = (int) -1 ; | |
ae8162c8 | 12627 | bool temp2 = false ; |
03e37cd5 RD |
12628 | wxRect temp3 ; |
12629 | PyObject * obj0 = 0 ; | |
12630 | PyObject * obj1 = 0 ; | |
12631 | PyObject * obj2 = 0 ; | |
12632 | PyObject * obj3 = 0 ; | |
12633 | PyObject * obj4 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
12639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12641 | { |
12642 | arg2 = wxString_in_helper(obj1); | |
12643 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12644 | temp2 = true; |
d14a1e28 RD |
12645 | } |
12646 | { | |
12647 | arg3 = &temp3; | |
12648 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12649 | } | |
994141e6 | 12650 | if (obj3) { |
c32bde28 | 12651 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12652 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12653 | } |
12654 | if (obj4) { | |
c32bde28 | 12655 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 12656 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12657 | } |
12658 | { | |
12659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12660 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
12661 | |
12662 | wxPyEndAllowThreads(__tstate); | |
12663 | if (PyErr_Occurred()) SWIG_fail; | |
12664 | } | |
12665 | Py_INCREF(Py_None); resultobj = Py_None; | |
12666 | { | |
12667 | if (temp2) | |
12668 | delete arg2; | |
12669 | } | |
12670 | return resultobj; | |
12671 | fail: | |
12672 | { | |
12673 | if (temp2) | |
12674 | delete arg2; | |
12675 | } | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
c32bde28 | 12680 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12681 | PyObject *resultobj; |
12682 | wxDC *arg1 = (wxDC *) 0 ; | |
12683 | wxString *arg2 = 0 ; | |
12684 | wxBitmap *arg3 = 0 ; | |
12685 | wxRect *arg4 = 0 ; | |
12686 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12687 | int arg6 = (int) -1 ; | |
12688 | wxRect result; | |
ae8162c8 | 12689 | bool temp2 = false ; |
d14a1e28 RD |
12690 | wxRect temp4 ; |
12691 | PyObject * obj0 = 0 ; | |
12692 | PyObject * obj1 = 0 ; | |
12693 | PyObject * obj2 = 0 ; | |
12694 | PyObject * obj3 = 0 ; | |
994141e6 RD |
12695 | PyObject * obj4 = 0 ; |
12696 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12697 | char *kwnames[] = { |
12698 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12699 | }; | |
12700 | ||
994141e6 | 12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
12702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12704 | { |
12705 | arg2 = wxString_in_helper(obj1); | |
12706 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12707 | temp2 = true; |
d14a1e28 | 12708 | } |
15afbcd0 RD |
12709 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
12710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12711 | SWIG_fail; | |
d14a1e28 | 12712 | if (arg3 == NULL) { |
15afbcd0 RD |
12713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12714 | SWIG_fail; | |
d14a1e28 RD |
12715 | } |
12716 | { | |
12717 | arg4 = &temp4; | |
12718 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12719 | } | |
994141e6 | 12720 | if (obj4) { |
c32bde28 | 12721 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 12722 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12723 | } |
12724 | if (obj5) { | |
c32bde28 | 12725 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 12726 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12727 | } |
d14a1e28 RD |
12728 | { |
12729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12730 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12731 | ||
12732 | wxPyEndAllowThreads(__tstate); | |
12733 | if (PyErr_Occurred()) SWIG_fail; | |
12734 | } | |
12735 | { | |
12736 | wxRect * resultptr; | |
12737 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12738 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12739 | } |
12740 | { | |
12741 | if (temp2) | |
12742 | delete arg2; | |
12743 | } | |
12744 | return resultobj; | |
12745 | fail: | |
12746 | { | |
12747 | if (temp2) | |
12748 | delete arg2; | |
12749 | } | |
12750 | return NULL; | |
12751 | } | |
12752 | ||
12753 | ||
c32bde28 | 12754 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12755 | PyObject *resultobj; |
12756 | wxDC *arg1 = (wxDC *) 0 ; | |
12757 | int arg2 ; | |
12758 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12759 | PyObject * obj0 = 0 ; | |
12760 | PyObject * obj1 = 0 ; | |
12761 | char *kwnames[] = { | |
12762 | (char *) "self",(char *) "points", NULL | |
12763 | }; | |
12764 | ||
12765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12768 | { |
12769 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12770 | if (arg3 == NULL) SWIG_fail; | |
12771 | } | |
12772 | { | |
12773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12774 | (arg1)->DrawSpline(arg2,arg3); | |
12775 | ||
12776 | wxPyEndAllowThreads(__tstate); | |
12777 | if (PyErr_Occurred()) SWIG_fail; | |
12778 | } | |
12779 | Py_INCREF(Py_None); resultobj = Py_None; | |
12780 | { | |
12781 | if (arg3) delete [] arg3; | |
12782 | } | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | { | |
12786 | if (arg3) delete [] arg3; | |
12787 | } | |
12788 | return NULL; | |
12789 | } | |
12790 | ||
12791 | ||
c32bde28 | 12792 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12793 | PyObject *resultobj; |
12794 | wxDC *arg1 = (wxDC *) 0 ; | |
12795 | PyObject * obj0 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12803 | { |
12804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12805 | (arg1)->Clear(); | |
12806 | ||
12807 | wxPyEndAllowThreads(__tstate); | |
12808 | if (PyErr_Occurred()) SWIG_fail; | |
12809 | } | |
12810 | Py_INCREF(Py_None); resultobj = Py_None; | |
12811 | return resultobj; | |
12812 | fail: | |
12813 | return NULL; | |
12814 | } | |
12815 | ||
12816 | ||
c32bde28 | 12817 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12818 | PyObject *resultobj; |
12819 | wxDC *arg1 = (wxDC *) 0 ; | |
12820 | wxString *arg2 = 0 ; | |
12821 | bool result; | |
ae8162c8 | 12822 | bool temp2 = false ; |
d14a1e28 RD |
12823 | PyObject * obj0 = 0 ; |
12824 | PyObject * obj1 = 0 ; | |
12825 | char *kwnames[] = { | |
12826 | (char *) "self",(char *) "message", NULL | |
12827 | }; | |
12828 | ||
12829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12832 | { |
12833 | arg2 = wxString_in_helper(obj1); | |
12834 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12835 | temp2 = true; |
d14a1e28 RD |
12836 | } |
12837 | { | |
12838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12839 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12840 | ||
12841 | wxPyEndAllowThreads(__tstate); | |
12842 | if (PyErr_Occurred()) SWIG_fail; | |
12843 | } | |
4f89f6a3 RD |
12844 | { |
12845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12846 | } | |
d14a1e28 RD |
12847 | { |
12848 | if (temp2) | |
12849 | delete arg2; | |
12850 | } | |
12851 | return resultobj; | |
12852 | fail: | |
12853 | { | |
12854 | if (temp2) | |
12855 | delete arg2; | |
12856 | } | |
12857 | return NULL; | |
12858 | } | |
12859 | ||
12860 | ||
c32bde28 | 12861 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12862 | PyObject *resultobj; |
12863 | wxDC *arg1 = (wxDC *) 0 ; | |
12864 | PyObject * obj0 = 0 ; | |
12865 | char *kwnames[] = { | |
12866 | (char *) "self", NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12872 | { |
12873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12874 | (arg1)->EndDoc(); | |
12875 | ||
12876 | wxPyEndAllowThreads(__tstate); | |
12877 | if (PyErr_Occurred()) SWIG_fail; | |
12878 | } | |
12879 | Py_INCREF(Py_None); resultobj = Py_None; | |
12880 | return resultobj; | |
12881 | fail: | |
12882 | return NULL; | |
12883 | } | |
12884 | ||
12885 | ||
c32bde28 | 12886 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12887 | PyObject *resultobj; |
12888 | wxDC *arg1 = (wxDC *) 0 ; | |
12889 | PyObject * obj0 = 0 ; | |
12890 | char *kwnames[] = { | |
12891 | (char *) "self", NULL | |
12892 | }; | |
12893 | ||
12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12897 | { |
12898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12899 | (arg1)->StartPage(); | |
12900 | ||
12901 | wxPyEndAllowThreads(__tstate); | |
12902 | if (PyErr_Occurred()) SWIG_fail; | |
12903 | } | |
12904 | Py_INCREF(Py_None); resultobj = Py_None; | |
12905 | return resultobj; | |
12906 | fail: | |
12907 | return NULL; | |
12908 | } | |
12909 | ||
12910 | ||
c32bde28 | 12911 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12912 | PyObject *resultobj; |
12913 | wxDC *arg1 = (wxDC *) 0 ; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | char *kwnames[] = { | |
12916 | (char *) "self", NULL | |
12917 | }; | |
12918 | ||
12919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12922 | { |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | (arg1)->EndPage(); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | Py_INCREF(Py_None); resultobj = Py_None; | |
12930 | return resultobj; | |
12931 | fail: | |
12932 | return NULL; | |
12933 | } | |
12934 | ||
12935 | ||
c32bde28 | 12936 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12937 | PyObject *resultobj; |
12938 | wxDC *arg1 = (wxDC *) 0 ; | |
12939 | wxFont *arg2 = 0 ; | |
12940 | PyObject * obj0 = 0 ; | |
12941 | PyObject * obj1 = 0 ; | |
12942 | char *kwnames[] = { | |
12943 | (char *) "self",(char *) "font", NULL | |
12944 | }; | |
12945 | ||
12946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12951 | SWIG_fail; | |
d14a1e28 | 12952 | if (arg2 == NULL) { |
15afbcd0 RD |
12953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12954 | SWIG_fail; | |
d14a1e28 RD |
12955 | } |
12956 | { | |
12957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12958 | (arg1)->SetFont((wxFont const &)*arg2); | |
12959 | ||
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | Py_INCREF(Py_None); resultobj = Py_None; | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
c32bde28 | 12970 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12971 | PyObject *resultobj; |
12972 | wxDC *arg1 = (wxDC *) 0 ; | |
12973 | wxPen *arg2 = 0 ; | |
12974 | PyObject * obj0 = 0 ; | |
12975 | PyObject * obj1 = 0 ; | |
12976 | char *kwnames[] = { | |
12977 | (char *) "self",(char *) "pen", NULL | |
12978 | }; | |
12979 | ||
12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12983 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12985 | SWIG_fail; | |
d14a1e28 | 12986 | if (arg2 == NULL) { |
15afbcd0 RD |
12987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12988 | SWIG_fail; | |
d14a1e28 RD |
12989 | } |
12990 | { | |
12991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12992 | (arg1)->SetPen((wxPen const &)*arg2); | |
12993 | ||
12994 | wxPyEndAllowThreads(__tstate); | |
12995 | if (PyErr_Occurred()) SWIG_fail; | |
12996 | } | |
12997 | Py_INCREF(Py_None); resultobj = Py_None; | |
12998 | return resultobj; | |
12999 | fail: | |
13000 | return NULL; | |
13001 | } | |
13002 | ||
13003 | ||
c32bde28 | 13004 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13005 | PyObject *resultobj; |
13006 | wxDC *arg1 = (wxDC *) 0 ; | |
13007 | wxBrush *arg2 = 0 ; | |
13008 | PyObject * obj0 = 0 ; | |
13009 | PyObject * obj1 = 0 ; | |
13010 | char *kwnames[] = { | |
13011 | (char *) "self",(char *) "brush", NULL | |
13012 | }; | |
13013 | ||
13014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13019 | SWIG_fail; | |
d14a1e28 | 13020 | if (arg2 == NULL) { |
15afbcd0 RD |
13021 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13022 | SWIG_fail; | |
d14a1e28 RD |
13023 | } |
13024 | { | |
13025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13026 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13027 | ||
13028 | wxPyEndAllowThreads(__tstate); | |
13029 | if (PyErr_Occurred()) SWIG_fail; | |
13030 | } | |
13031 | Py_INCREF(Py_None); resultobj = Py_None; | |
13032 | return resultobj; | |
13033 | fail: | |
13034 | return NULL; | |
13035 | } | |
13036 | ||
13037 | ||
c32bde28 | 13038 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13039 | PyObject *resultobj; |
13040 | wxDC *arg1 = (wxDC *) 0 ; | |
13041 | wxBrush *arg2 = 0 ; | |
13042 | PyObject * obj0 = 0 ; | |
13043 | PyObject * obj1 = 0 ; | |
13044 | char *kwnames[] = { | |
13045 | (char *) "self",(char *) "brush", NULL | |
13046 | }; | |
13047 | ||
13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13053 | SWIG_fail; | |
d14a1e28 | 13054 | if (arg2 == NULL) { |
15afbcd0 RD |
13055 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13056 | SWIG_fail; | |
d14a1e28 RD |
13057 | } |
13058 | { | |
13059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13060 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13061 | ||
13062 | wxPyEndAllowThreads(__tstate); | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | } | |
13065 | Py_INCREF(Py_None); resultobj = Py_None; | |
13066 | return resultobj; | |
13067 | fail: | |
13068 | return NULL; | |
13069 | } | |
13070 | ||
13071 | ||
c32bde28 | 13072 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13073 | PyObject *resultobj; |
13074 | wxDC *arg1 = (wxDC *) 0 ; | |
13075 | int arg2 ; | |
13076 | PyObject * obj0 = 0 ; | |
994141e6 | 13077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13078 | char *kwnames[] = { |
13079 | (char *) "self",(char *) "mode", NULL | |
13080 | }; | |
13081 | ||
994141e6 | 13082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13085 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13086 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13087 | { |
13088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13089 | (arg1)->SetBackgroundMode(arg2); | |
13090 | ||
13091 | wxPyEndAllowThreads(__tstate); | |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
13093 | } | |
13094 | Py_INCREF(Py_None); resultobj = Py_None; | |
13095 | return resultobj; | |
13096 | fail: | |
13097 | return NULL; | |
13098 | } | |
13099 | ||
13100 | ||
c32bde28 | 13101 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13102 | PyObject *resultobj; |
13103 | wxDC *arg1 = (wxDC *) 0 ; | |
13104 | wxPalette *arg2 = 0 ; | |
13105 | PyObject * obj0 = 0 ; | |
13106 | PyObject * obj1 = 0 ; | |
13107 | char *kwnames[] = { | |
13108 | (char *) "self",(char *) "palette", NULL | |
13109 | }; | |
13110 | ||
13111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13116 | SWIG_fail; | |
d14a1e28 | 13117 | if (arg2 == NULL) { |
15afbcd0 RD |
13118 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13119 | SWIG_fail; | |
d14a1e28 RD |
13120 | } |
13121 | { | |
13122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13123 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13124 | ||
13125 | wxPyEndAllowThreads(__tstate); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | } | |
13128 | Py_INCREF(Py_None); resultobj = Py_None; | |
13129 | return resultobj; | |
13130 | fail: | |
13131 | return NULL; | |
13132 | } | |
13133 | ||
13134 | ||
c32bde28 | 13135 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13136 | PyObject *resultobj; |
13137 | wxDC *arg1 = (wxDC *) 0 ; | |
13138 | PyObject * obj0 = 0 ; | |
13139 | char *kwnames[] = { | |
13140 | (char *) "self", NULL | |
13141 | }; | |
13142 | ||
13143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13146 | { |
13147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13148 | (arg1)->DestroyClippingRegion(); | |
13149 | ||
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | Py_INCREF(Py_None); resultobj = Py_None; | |
13154 | return resultobj; | |
13155 | fail: | |
13156 | return NULL; | |
13157 | } | |
13158 | ||
13159 | ||
c32bde28 | 13160 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13161 | PyObject *resultobj; |
13162 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13163 | int *arg2 = (int *) 0 ; |
13164 | int *arg3 = (int *) 0 ; | |
13165 | int *arg4 = (int *) 0 ; | |
13166 | int *arg5 = (int *) 0 ; | |
13167 | int temp2 ; | |
c32bde28 | 13168 | int res2 = 0 ; |
e811c8ce | 13169 | int temp3 ; |
c32bde28 | 13170 | int res3 = 0 ; |
e811c8ce | 13171 | int temp4 ; |
c32bde28 | 13172 | int res4 = 0 ; |
e811c8ce | 13173 | int temp5 ; |
c32bde28 | 13174 | int res5 = 0 ; |
d14a1e28 RD |
13175 | PyObject * obj0 = 0 ; |
13176 | char *kwnames[] = { | |
13177 | (char *) "self", NULL | |
13178 | }; | |
13179 | ||
c32bde28 RD |
13180 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13181 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13182 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13183 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 13184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13187 | { |
13188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13189 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13190 | ||
13191 | wxPyEndAllowThreads(__tstate); | |
13192 | if (PyErr_Occurred()) SWIG_fail; | |
13193 | } | |
13194 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13195 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13196 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13197 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13198 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13199 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13200 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13201 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13202 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13203 | return resultobj; |
13204 | fail: | |
13205 | return NULL; | |
13206 | } | |
13207 | ||
13208 | ||
c32bde28 | 13209 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13210 | PyObject *resultobj; |
13211 | wxDC *arg1 = (wxDC *) 0 ; | |
13212 | wxRect result; | |
13213 | PyObject * obj0 = 0 ; | |
13214 | char *kwnames[] = { | |
13215 | (char *) "self", NULL | |
13216 | }; | |
13217 | ||
13218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13221 | { |
13222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13223 | result = wxDC_GetClippingRect(arg1); | |
13224 | ||
13225 | wxPyEndAllowThreads(__tstate); | |
13226 | if (PyErr_Occurred()) SWIG_fail; | |
13227 | } | |
13228 | { | |
13229 | wxRect * resultptr; | |
13230 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 13231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
13232 | } |
13233 | return resultobj; | |
13234 | fail: | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
c32bde28 | 13239 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13240 | PyObject *resultobj; |
13241 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 13242 | int result; |
d14a1e28 RD |
13243 | PyObject * obj0 = 0 ; |
13244 | char *kwnames[] = { | |
13245 | (char *) "self", NULL | |
13246 | }; | |
13247 | ||
13248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13251 | { |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13253 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
13254 | |
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
c32bde28 | 13258 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13259 | return resultobj; |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
c32bde28 | 13265 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13266 | PyObject *resultobj; |
13267 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 13268 | int result; |
d14a1e28 RD |
13269 | PyObject * obj0 = 0 ; |
13270 | char *kwnames[] = { | |
13271 | (char *) "self", NULL | |
13272 | }; | |
13273 | ||
13274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13277 | { |
13278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13279 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
13280 | |
13281 | wxPyEndAllowThreads(__tstate); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | } | |
c32bde28 | 13284 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13285 | return resultobj; |
13286 | fail: | |
13287 | return NULL; | |
13288 | } | |
13289 | ||
13290 | ||
c32bde28 | 13291 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13292 | PyObject *resultobj; |
13293 | wxDC *arg1 = (wxDC *) 0 ; | |
13294 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13295 | int *arg3 = (int *) 0 ; |
13296 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 13297 | bool temp2 = false ; |
e811c8ce | 13298 | int temp3 ; |
c32bde28 | 13299 | int res3 = 0 ; |
e811c8ce | 13300 | int temp4 ; |
c32bde28 | 13301 | int res4 = 0 ; |
d14a1e28 RD |
13302 | PyObject * obj0 = 0 ; |
13303 | PyObject * obj1 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self",(char *) "string", NULL | |
13306 | }; | |
13307 | ||
c32bde28 RD |
13308 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13309 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13313 | { |
13314 | arg2 = wxString_in_helper(obj1); | |
13315 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13316 | temp2 = true; |
d14a1e28 RD |
13317 | } |
13318 | { | |
13319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13320 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13321 | ||
13322 | wxPyEndAllowThreads(__tstate); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | } | |
13325 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13326 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13327 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13328 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13329 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13330 | { |
13331 | if (temp2) | |
13332 | delete arg2; | |
13333 | } | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | { | |
13337 | if (temp2) | |
13338 | delete arg2; | |
13339 | } | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
c32bde28 | 13344 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13345 | PyObject *resultobj; |
13346 | wxDC *arg1 = (wxDC *) 0 ; | |
13347 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13348 | int *arg3 = (int *) 0 ; |
13349 | int *arg4 = (int *) 0 ; | |
13350 | int *arg5 = (int *) 0 ; | |
13351 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 13352 | wxFont *arg7 = (wxFont *) NULL ; |
ae8162c8 | 13353 | bool temp2 = false ; |
e811c8ce | 13354 | int temp3 ; |
c32bde28 | 13355 | int res3 = 0 ; |
e811c8ce | 13356 | int temp4 ; |
c32bde28 | 13357 | int res4 = 0 ; |
e811c8ce | 13358 | int temp5 ; |
c32bde28 | 13359 | int res5 = 0 ; |
e811c8ce | 13360 | int temp6 ; |
c32bde28 | 13361 | int res6 = 0 ; |
d14a1e28 RD |
13362 | PyObject * obj0 = 0 ; |
13363 | PyObject * obj1 = 0 ; | |
13364 | PyObject * obj2 = 0 ; | |
13365 | char *kwnames[] = { | |
13366 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13367 | }; | |
13368 | ||
c32bde28 RD |
13369 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13370 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13371 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13372 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d14a1e28 | 13373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13376 | { |
13377 | arg2 = wxString_in_helper(obj1); | |
13378 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13379 | temp2 = true; |
d14a1e28 RD |
13380 | } |
13381 | if (obj2) { | |
15afbcd0 RD |
13382 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
13383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13384 | } |
13385 | { | |
13386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13387 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13388 | ||
13389 | wxPyEndAllowThreads(__tstate); | |
13390 | if (PyErr_Occurred()) SWIG_fail; | |
13391 | } | |
13392 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13393 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13394 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13395 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13396 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13397 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13398 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13399 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
13400 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13401 | { |
13402 | if (temp2) | |
13403 | delete arg2; | |
13404 | } | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | { | |
13408 | if (temp2) | |
13409 | delete arg2; | |
13410 | } | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
c32bde28 | 13415 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13416 | PyObject *resultobj; |
13417 | wxDC *arg1 = (wxDC *) 0 ; | |
13418 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13419 | int *arg3 = (int *) 0 ; |
13420 | int *arg4 = (int *) 0 ; | |
13421 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 13422 | wxFont *arg6 = (wxFont *) NULL ; |
ae8162c8 | 13423 | bool temp2 = false ; |
e811c8ce | 13424 | int temp3 ; |
c32bde28 | 13425 | int res3 = 0 ; |
e811c8ce | 13426 | int temp4 ; |
c32bde28 | 13427 | int res4 = 0 ; |
e811c8ce | 13428 | int temp5 ; |
c32bde28 | 13429 | int res5 = 0 ; |
d14a1e28 RD |
13430 | PyObject * obj0 = 0 ; |
13431 | PyObject * obj1 = 0 ; | |
13432 | PyObject * obj2 = 0 ; | |
13433 | char *kwnames[] = { | |
13434 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13435 | }; | |
13436 | ||
c32bde28 RD |
13437 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13438 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13439 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 13440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13443 | { |
13444 | arg2 = wxString_in_helper(obj1); | |
13445 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13446 | temp2 = true; |
d14a1e28 RD |
13447 | } |
13448 | if (obj2) { | |
15afbcd0 RD |
13449 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
13450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13451 | } |
13452 | { | |
13453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13454 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13455 | ||
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
13459 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13460 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13461 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13462 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13463 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13464 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13465 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13466 | { |
13467 | if (temp2) | |
13468 | delete arg2; | |
13469 | } | |
13470 | return resultobj; | |
13471 | fail: | |
13472 | { | |
13473 | if (temp2) | |
13474 | delete arg2; | |
13475 | } | |
13476 | return NULL; | |
13477 | } | |
13478 | ||
13479 | ||
c32bde28 | 13480 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
db914595 RD |
13481 | PyObject *resultobj; |
13482 | wxDC *arg1 = (wxDC *) 0 ; | |
13483 | wxString *arg2 = 0 ; | |
13484 | wxArrayInt result; | |
ae8162c8 | 13485 | bool temp2 = false ; |
db914595 RD |
13486 | PyObject * obj0 = 0 ; |
13487 | PyObject * obj1 = 0 ; | |
13488 | char *kwnames[] = { | |
13489 | (char *) "self",(char *) "text", NULL | |
13490 | }; | |
13491 | ||
13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
13495 | { |
13496 | arg2 = wxString_in_helper(obj1); | |
13497 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13498 | temp2 = true; |
db914595 RD |
13499 | } |
13500 | { | |
13501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13502 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13503 | ||
13504 | wxPyEndAllowThreads(__tstate); | |
13505 | if (PyErr_Occurred()) SWIG_fail; | |
13506 | } | |
13507 | { | |
13508 | resultobj = PyList_New(0); | |
13509 | size_t idx; | |
13510 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13511 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13512 | PyList_Append(resultobj, val); | |
13513 | Py_DECREF(val); | |
13514 | } | |
13515 | } | |
13516 | { | |
13517 | if (temp2) | |
13518 | delete arg2; | |
13519 | } | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | { | |
13523 | if (temp2) | |
13524 | delete arg2; | |
13525 | } | |
13526 | return NULL; | |
13527 | } | |
13528 | ||
13529 | ||
c32bde28 | 13530 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
322913ce RD |
13531 | PyObject *resultobj; |
13532 | wxDC *arg1 = (wxDC *) 0 ; | |
13533 | wxSize result; | |
13534 | PyObject * obj0 = 0 ; | |
13535 | char *kwnames[] = { | |
13536 | (char *) "self", NULL | |
13537 | }; | |
13538 | ||
13539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
13542 | { |
13543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13544 | result = (arg1)->GetSize(); | |
13545 | ||
13546 | wxPyEndAllowThreads(__tstate); | |
13547 | if (PyErr_Occurred()) SWIG_fail; | |
13548 | } | |
13549 | { | |
13550 | wxSize * resultptr; | |
13551 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
322913ce RD |
13553 | } |
13554 | return resultobj; | |
13555 | fail: | |
13556 | return NULL; | |
13557 | } | |
13558 | ||
13559 | ||
c32bde28 | 13560 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13561 | PyObject *resultobj; |
13562 | wxDC *arg1 = (wxDC *) 0 ; | |
13563 | int *arg2 = (int *) 0 ; | |
13564 | int *arg3 = (int *) 0 ; | |
13565 | int temp2 ; | |
c32bde28 | 13566 | int res2 = 0 ; |
d14a1e28 | 13567 | int temp3 ; |
c32bde28 | 13568 | int res3 = 0 ; |
d14a1e28 RD |
13569 | PyObject * obj0 = 0 ; |
13570 | char *kwnames[] = { | |
13571 | (char *) "self", NULL | |
13572 | }; | |
13573 | ||
c32bde28 RD |
13574 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13575 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 13576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13579 | { |
13580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13581 | (arg1)->GetSize(arg2,arg3); | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
13586 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13587 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13588 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13589 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13590 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13591 | return resultobj; |
13592 | fail: | |
13593 | return NULL; | |
13594 | } | |
13595 | ||
13596 | ||
c32bde28 | 13597 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13598 | PyObject *resultobj; |
13599 | wxDC *arg1 = (wxDC *) 0 ; | |
13600 | wxSize result; | |
13601 | PyObject * obj0 = 0 ; | |
13602 | char *kwnames[] = { | |
13603 | (char *) "self", NULL | |
13604 | }; | |
13605 | ||
322913ce | 13606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13609 | { |
13610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13611 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13612 | |
13613 | wxPyEndAllowThreads(__tstate); | |
13614 | if (PyErr_Occurred()) SWIG_fail; | |
13615 | } | |
13616 | { | |
13617 | wxSize * resultptr; | |
13618 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13620 | } |
13621 | return resultobj; | |
13622 | fail: | |
13623 | return NULL; | |
13624 | } | |
13625 | ||
13626 | ||
c32bde28 | 13627 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13628 | PyObject *resultobj; |
13629 | wxDC *arg1 = (wxDC *) 0 ; | |
13630 | int *arg2 = (int *) 0 ; | |
13631 | int *arg3 = (int *) 0 ; | |
13632 | int temp2 ; | |
c32bde28 | 13633 | int res2 = 0 ; |
d14a1e28 | 13634 | int temp3 ; |
c32bde28 | 13635 | int res3 = 0 ; |
d14a1e28 RD |
13636 | PyObject * obj0 = 0 ; |
13637 | char *kwnames[] = { | |
13638 | (char *) "self", NULL | |
13639 | }; | |
13640 | ||
c32bde28 RD |
13641 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13642 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 13643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13646 | { |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
13653 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13654 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13655 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13656 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13657 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13658 | return resultobj; |
13659 | fail: | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
c32bde28 | 13664 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13665 | PyObject *resultobj; |
13666 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13667 | int arg2 ; |
13668 | int result; | |
d14a1e28 | 13669 | PyObject * obj0 = 0 ; |
994141e6 | 13670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13671 | char *kwnames[] = { |
13672 | (char *) "self",(char *) "x", NULL | |
13673 | }; | |
13674 | ||
994141e6 | 13675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13678 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13679 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13680 | { |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13682 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13683 | |
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
c32bde28 | 13687 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13688 | return resultobj; |
13689 | fail: | |
13690 | return NULL; | |
13691 | } | |
13692 | ||
13693 | ||
c32bde28 | 13694 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13695 | PyObject *resultobj; |
13696 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13697 | int arg2 ; |
13698 | int result; | |
d14a1e28 | 13699 | PyObject * obj0 = 0 ; |
994141e6 | 13700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13701 | char *kwnames[] = { |
13702 | (char *) "self",(char *) "y", NULL | |
13703 | }; | |
13704 | ||
994141e6 | 13705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13708 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13709 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13710 | { |
13711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13712 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13713 | |
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
c32bde28 | 13717 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13718 | return resultobj; |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
c32bde28 | 13724 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13725 | PyObject *resultobj; |
13726 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13727 | int arg2 ; |
13728 | int result; | |
d14a1e28 | 13729 | PyObject * obj0 = 0 ; |
994141e6 | 13730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13731 | char *kwnames[] = { |
13732 | (char *) "self",(char *) "x", NULL | |
13733 | }; | |
13734 | ||
994141e6 | 13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13738 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13739 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13740 | { |
13741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13742 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13743 | |
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
c32bde28 | 13747 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13748 | return resultobj; |
13749 | fail: | |
13750 | return NULL; | |
13751 | } | |
13752 | ||
13753 | ||
c32bde28 | 13754 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13755 | PyObject *resultobj; |
13756 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13757 | int arg2 ; |
13758 | int result; | |
d14a1e28 | 13759 | PyObject * obj0 = 0 ; |
994141e6 | 13760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13761 | char *kwnames[] = { |
13762 | (char *) "self",(char *) "y", NULL | |
13763 | }; | |
13764 | ||
994141e6 | 13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13768 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13769 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13770 | { |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13772 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13773 | |
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
c32bde28 | 13777 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13778 | return resultobj; |
13779 | fail: | |
13780 | return NULL; | |
13781 | } | |
13782 | ||
13783 | ||
c32bde28 | 13784 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13785 | PyObject *resultobj; |
13786 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13787 | int arg2 ; |
13788 | int result; | |
d14a1e28 | 13789 | PyObject * obj0 = 0 ; |
994141e6 | 13790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13791 | char *kwnames[] = { |
13792 | (char *) "self",(char *) "x", NULL | |
13793 | }; | |
13794 | ||
994141e6 | 13795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13798 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13799 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13800 | { |
13801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13802 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13803 | |
13804 | wxPyEndAllowThreads(__tstate); | |
13805 | if (PyErr_Occurred()) SWIG_fail; | |
13806 | } | |
c32bde28 | 13807 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13808 | return resultobj; |
13809 | fail: | |
13810 | return NULL; | |
13811 | } | |
13812 | ||
13813 | ||
c32bde28 | 13814 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13815 | PyObject *resultobj; |
13816 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13817 | int arg2 ; |
13818 | int result; | |
d14a1e28 | 13819 | PyObject * obj0 = 0 ; |
994141e6 | 13820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13821 | char *kwnames[] = { |
13822 | (char *) "self",(char *) "y", NULL | |
13823 | }; | |
13824 | ||
994141e6 | 13825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13828 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13829 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13830 | { |
13831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13832 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13833 | |
13834 | wxPyEndAllowThreads(__tstate); | |
13835 | if (PyErr_Occurred()) SWIG_fail; | |
13836 | } | |
c32bde28 | 13837 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13838 | return resultobj; |
13839 | fail: | |
13840 | return NULL; | |
13841 | } | |
13842 | ||
13843 | ||
c32bde28 | 13844 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13845 | PyObject *resultobj; |
13846 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13847 | int arg2 ; |
13848 | int result; | |
d14a1e28 | 13849 | PyObject * obj0 = 0 ; |
994141e6 | 13850 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13851 | char *kwnames[] = { |
13852 | (char *) "self",(char *) "x", NULL | |
13853 | }; | |
13854 | ||
994141e6 | 13855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13858 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13859 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13860 | { |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13862 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13863 | |
13864 | wxPyEndAllowThreads(__tstate); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | } | |
c32bde28 | 13867 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13868 | return resultobj; |
13869 | fail: | |
13870 | return NULL; | |
13871 | } | |
13872 | ||
13873 | ||
c32bde28 | 13874 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13875 | PyObject *resultobj; |
13876 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13877 | int arg2 ; |
13878 | int result; | |
d14a1e28 | 13879 | PyObject * obj0 = 0 ; |
994141e6 | 13880 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13881 | char *kwnames[] = { |
13882 | (char *) "self",(char *) "y", NULL | |
13883 | }; | |
13884 | ||
994141e6 | 13885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13888 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13889 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13890 | { |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13892 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13893 | |
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
c32bde28 | 13897 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13898 | return resultobj; |
13899 | fail: | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
c32bde28 | 13904 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13905 | PyObject *resultobj; |
13906 | wxDC *arg1 = (wxDC *) 0 ; | |
13907 | bool result; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | char *kwnames[] = { | |
13910 | (char *) "self", NULL | |
13911 | }; | |
13912 | ||
13913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13916 | { |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13919 | ||
13920 | wxPyEndAllowThreads(__tstate); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | } | |
4f89f6a3 RD |
13923 | { |
13924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13925 | } | |
d14a1e28 RD |
13926 | return resultobj; |
13927 | fail: | |
13928 | return NULL; | |
13929 | } | |
13930 | ||
13931 | ||
c32bde28 | 13932 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13933 | PyObject *resultobj; |
13934 | wxDC *arg1 = (wxDC *) 0 ; | |
13935 | bool result; | |
13936 | PyObject * obj0 = 0 ; | |
13937 | char *kwnames[] = { | |
13938 | (char *) "self", NULL | |
13939 | }; | |
13940 | ||
13941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13944 | { |
13945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13946 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13947 | ||
13948 | wxPyEndAllowThreads(__tstate); | |
13949 | if (PyErr_Occurred()) SWIG_fail; | |
13950 | } | |
4f89f6a3 RD |
13951 | { |
13952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13953 | } | |
d14a1e28 RD |
13954 | return resultobj; |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
c32bde28 | 13960 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13961 | PyObject *resultobj; |
13962 | wxDC *arg1 = (wxDC *) 0 ; | |
13963 | int result; | |
13964 | PyObject * obj0 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13972 | { |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
c32bde28 | 13979 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13980 | return resultobj; |
13981 | fail: | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
c32bde28 | 13986 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13987 | PyObject *resultobj; |
13988 | wxDC *arg1 = (wxDC *) 0 ; | |
13989 | wxSize result; | |
13990 | PyObject * obj0 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",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(); | |
14000 | result = ((wxDC const *)arg1)->GetPPI(); | |
14001 | ||
14002 | wxPyEndAllowThreads(__tstate); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
14005 | { | |
14006 | wxSize * resultptr; | |
14007 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14009 | } |
14010 | return resultobj; | |
14011 | fail: | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
c32bde28 | 14016 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14017 | PyObject *resultobj; |
14018 | wxDC *arg1 = (wxDC *) 0 ; | |
14019 | bool result; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | char *kwnames[] = { | |
14022 | (char *) "self", NULL | |
14023 | }; | |
14024 | ||
14025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14028 | { |
14029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14030 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14031 | ||
14032 | wxPyEndAllowThreads(__tstate); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
4f89f6a3 RD |
14035 | { |
14036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14037 | } | |
d14a1e28 RD |
14038 | return resultobj; |
14039 | fail: | |
14040 | return NULL; | |
14041 | } | |
14042 | ||
14043 | ||
c32bde28 | 14044 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14045 | PyObject *resultobj; |
14046 | wxDC *arg1 = (wxDC *) 0 ; | |
14047 | int result; | |
14048 | PyObject * obj0 = 0 ; | |
14049 | char *kwnames[] = { | |
14050 | (char *) "self", NULL | |
14051 | }; | |
14052 | ||
14053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14056 | { |
14057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14058 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14059 | ||
14060 | wxPyEndAllowThreads(__tstate); | |
14061 | if (PyErr_Occurred()) SWIG_fail; | |
14062 | } | |
c32bde28 | 14063 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14064 | return resultobj; |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
c32bde28 | 14070 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14071 | PyObject *resultobj; |
14072 | wxDC *arg1 = (wxDC *) 0 ; | |
14073 | wxBrush *result; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | char *kwnames[] = { | |
14076 | (char *) "self", NULL | |
14077 | }; | |
14078 | ||
14079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14082 | { |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | { | |
14085 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14086 | result = (wxBrush *) &_result_ref; | |
14087 | } | |
14088 | ||
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
4276dc52 RD |
14092 | { |
14093 | wxBrush* resultptr = new wxBrush(*result); | |
14094 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14095 | } | |
d14a1e28 RD |
14096 | return resultobj; |
14097 | fail: | |
14098 | return NULL; | |
14099 | } | |
14100 | ||
14101 | ||
c32bde28 | 14102 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14103 | PyObject *resultobj; |
14104 | wxDC *arg1 = (wxDC *) 0 ; | |
14105 | wxBrush *result; | |
14106 | PyObject * obj0 = 0 ; | |
14107 | char *kwnames[] = { | |
14108 | (char *) "self", NULL | |
14109 | }; | |
14110 | ||
14111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14114 | { |
14115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14116 | { | |
14117 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14118 | result = (wxBrush *) &_result_ref; | |
14119 | } | |
14120 | ||
14121 | wxPyEndAllowThreads(__tstate); | |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | } | |
4276dc52 RD |
14124 | { |
14125 | wxBrush* resultptr = new wxBrush(*result); | |
14126 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14127 | } | |
d14a1e28 RD |
14128 | return resultobj; |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
c32bde28 | 14134 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14135 | PyObject *resultobj; |
14136 | wxDC *arg1 = (wxDC *) 0 ; | |
14137 | wxFont *result; | |
14138 | PyObject * obj0 = 0 ; | |
14139 | char *kwnames[] = { | |
14140 | (char *) "self", NULL | |
14141 | }; | |
14142 | ||
14143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14146 | { |
14147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14148 | { | |
14149 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14150 | result = (wxFont *) &_result_ref; | |
14151 | } | |
14152 | ||
14153 | wxPyEndAllowThreads(__tstate); | |
14154 | if (PyErr_Occurred()) SWIG_fail; | |
14155 | } | |
4276dc52 RD |
14156 | { |
14157 | wxFont* resultptr = new wxFont(*result); | |
14158 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14159 | } | |
d14a1e28 RD |
14160 | return resultobj; |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
c32bde28 | 14166 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14167 | PyObject *resultobj; |
14168 | wxDC *arg1 = (wxDC *) 0 ; | |
14169 | wxPen *result; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | char *kwnames[] = { | |
14172 | (char *) "self", NULL | |
14173 | }; | |
14174 | ||
14175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14178 | { |
14179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14180 | { | |
14181 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14182 | result = (wxPen *) &_result_ref; | |
14183 | } | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
4276dc52 RD |
14188 | { |
14189 | wxPen* resultptr = new wxPen(*result); | |
14190 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14191 | } | |
d14a1e28 RD |
14192 | return resultobj; |
14193 | fail: | |
14194 | return NULL; | |
14195 | } | |
14196 | ||
14197 | ||
c32bde28 | 14198 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14199 | PyObject *resultobj; |
14200 | wxDC *arg1 = (wxDC *) 0 ; | |
14201 | wxColour *result; | |
14202 | PyObject * obj0 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14210 | { |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | { | |
14213 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14214 | result = (wxColour *) &_result_ref; | |
14215 | } | |
14216 | ||
14217 | wxPyEndAllowThreads(__tstate); | |
14218 | if (PyErr_Occurred()) SWIG_fail; | |
14219 | } | |
15afbcd0 | 14220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14221 | return resultobj; |
14222 | fail: | |
14223 | return NULL; | |
14224 | } | |
14225 | ||
14226 | ||
c32bde28 | 14227 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14228 | PyObject *resultobj; |
14229 | wxDC *arg1 = (wxDC *) 0 ; | |
14230 | wxColour *result; | |
14231 | PyObject * obj0 = 0 ; | |
14232 | char *kwnames[] = { | |
14233 | (char *) "self", NULL | |
14234 | }; | |
14235 | ||
14236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14239 | { |
14240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14241 | { | |
14242 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14243 | result = (wxColour *) &_result_ref; | |
14244 | } | |
14245 | ||
14246 | wxPyEndAllowThreads(__tstate); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | } | |
15afbcd0 | 14249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14250 | return resultobj; |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
c32bde28 | 14256 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14257 | PyObject *resultobj; |
14258 | wxDC *arg1 = (wxDC *) 0 ; | |
14259 | wxColour *arg2 = 0 ; | |
14260 | wxColour temp2 ; | |
14261 | PyObject * obj0 = 0 ; | |
14262 | PyObject * obj1 = 0 ; | |
14263 | char *kwnames[] = { | |
14264 | (char *) "self",(char *) "colour", NULL | |
14265 | }; | |
14266 | ||
14267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14270 | { |
14271 | arg2 = &temp2; | |
14272 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14273 | } | |
14274 | { | |
14275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14276 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14277 | ||
14278 | wxPyEndAllowThreads(__tstate); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
14281 | Py_INCREF(Py_None); resultobj = Py_None; | |
14282 | return resultobj; | |
14283 | fail: | |
14284 | return NULL; | |
14285 | } | |
14286 | ||
14287 | ||
c32bde28 | 14288 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14289 | PyObject *resultobj; |
14290 | wxDC *arg1 = (wxDC *) 0 ; | |
14291 | wxColour *arg2 = 0 ; | |
14292 | wxColour temp2 ; | |
14293 | PyObject * obj0 = 0 ; | |
14294 | PyObject * obj1 = 0 ; | |
14295 | char *kwnames[] = { | |
14296 | (char *) "self",(char *) "colour", NULL | |
14297 | }; | |
14298 | ||
14299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14302 | { |
14303 | arg2 = &temp2; | |
14304 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14305 | } | |
14306 | { | |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
14313 | Py_INCREF(Py_None); resultobj = Py_None; | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
c32bde28 | 14320 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14321 | PyObject *resultobj; |
14322 | wxDC *arg1 = (wxDC *) 0 ; | |
14323 | int result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14332 | { |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
c32bde28 | 14339 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14340 | return resultobj; |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
c32bde28 | 14346 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14347 | PyObject *resultobj; |
14348 | wxDC *arg1 = (wxDC *) 0 ; | |
14349 | int arg2 ; | |
14350 | PyObject * obj0 = 0 ; | |
994141e6 | 14351 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14352 | char *kwnames[] = { |
14353 | (char *) "self",(char *) "mode", NULL | |
14354 | }; | |
14355 | ||
994141e6 | 14356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14359 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14360 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14361 | { |
14362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14363 | (arg1)->SetMapMode(arg2); | |
14364 | ||
14365 | wxPyEndAllowThreads(__tstate); | |
14366 | if (PyErr_Occurred()) SWIG_fail; | |
14367 | } | |
14368 | Py_INCREF(Py_None); resultobj = Py_None; | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | return NULL; | |
14372 | } | |
14373 | ||
14374 | ||
c32bde28 | 14375 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14376 | PyObject *resultobj; |
14377 | wxDC *arg1 = (wxDC *) 0 ; | |
14378 | double *arg2 = (double *) 0 ; | |
14379 | double *arg3 = (double *) 0 ; | |
14380 | double temp2 ; | |
c32bde28 | 14381 | int res2 = 0 ; |
d14a1e28 | 14382 | double temp3 ; |
c32bde28 | 14383 | int res3 = 0 ; |
d14a1e28 RD |
14384 | PyObject * obj0 = 0 ; |
14385 | char *kwnames[] = { | |
14386 | (char *) "self", NULL | |
14387 | }; | |
14388 | ||
c32bde28 RD |
14389 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14390 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 14391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14394 | { |
14395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14396 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14397 | ||
14398 | wxPyEndAllowThreads(__tstate); | |
14399 | if (PyErr_Occurred()) SWIG_fail; | |
14400 | } | |
14401 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14402 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14403 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14404 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14405 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
c32bde28 | 14412 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14413 | PyObject *resultobj; |
14414 | wxDC *arg1 = (wxDC *) 0 ; | |
14415 | double arg2 ; | |
14416 | double arg3 ; | |
14417 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14418 | PyObject * obj1 = 0 ; |
14419 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14420 | char *kwnames[] = { |
14421 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14422 | }; | |
14423 | ||
994141e6 | 14424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14427 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 14428 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14429 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 14430 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14431 | { |
14432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14433 | (arg1)->SetUserScale(arg2,arg3); | |
14434 | ||
14435 | wxPyEndAllowThreads(__tstate); | |
14436 | if (PyErr_Occurred()) SWIG_fail; | |
14437 | } | |
14438 | Py_INCREF(Py_None); resultobj = Py_None; | |
14439 | return resultobj; | |
14440 | fail: | |
14441 | return NULL; | |
14442 | } | |
14443 | ||
14444 | ||
c32bde28 | 14445 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14446 | PyObject *resultobj; |
14447 | wxDC *arg1 = (wxDC *) 0 ; | |
14448 | double *arg2 = (double *) 0 ; | |
14449 | double *arg3 = (double *) 0 ; | |
14450 | double temp2 ; | |
c32bde28 | 14451 | int res2 = 0 ; |
d14a1e28 | 14452 | double temp3 ; |
c32bde28 | 14453 | int res3 = 0 ; |
d14a1e28 RD |
14454 | PyObject * obj0 = 0 ; |
14455 | char *kwnames[] = { | |
14456 | (char *) "self", NULL | |
14457 | }; | |
14458 | ||
c32bde28 RD |
14459 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14460 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14464 | { |
14465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14466 | (arg1)->GetLogicalScale(arg2,arg3); | |
14467 | ||
14468 | wxPyEndAllowThreads(__tstate); | |
14469 | if (PyErr_Occurred()) SWIG_fail; | |
14470 | } | |
14471 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14472 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14473 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14474 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14475 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
14476 | return resultobj; |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
c32bde28 | 14482 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14483 | PyObject *resultobj; |
14484 | wxDC *arg1 = (wxDC *) 0 ; | |
14485 | double arg2 ; | |
14486 | double arg3 ; | |
14487 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14488 | PyObject * obj1 = 0 ; |
14489 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14490 | char *kwnames[] = { |
14491 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14492 | }; | |
14493 | ||
994141e6 | 14494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14497 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 14498 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14499 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 14500 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14501 | { |
14502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14503 | (arg1)->SetLogicalScale(arg2,arg3); | |
14504 | ||
14505 | wxPyEndAllowThreads(__tstate); | |
14506 | if (PyErr_Occurred()) SWIG_fail; | |
14507 | } | |
14508 | Py_INCREF(Py_None); resultobj = Py_None; | |
14509 | return resultobj; | |
14510 | fail: | |
14511 | return NULL; | |
14512 | } | |
14513 | ||
14514 | ||
c32bde28 | 14515 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14516 | PyObject *resultobj; |
14517 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14518 | wxPoint result; |
d14a1e28 RD |
14519 | PyObject * obj0 = 0 ; |
14520 | char *kwnames[] = { | |
14521 | (char *) "self", NULL | |
14522 | }; | |
14523 | ||
322913ce | 14524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14527 | { |
14528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14529 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14530 | |
14531 | wxPyEndAllowThreads(__tstate); | |
14532 | if (PyErr_Occurred()) SWIG_fail; | |
14533 | } | |
d14a1e28 | 14534 | { |
322913ce RD |
14535 | wxPoint * resultptr; |
14536 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14537 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14538 | } |
14539 | return resultobj; | |
14540 | fail: | |
14541 | return NULL; | |
14542 | } | |
14543 | ||
14544 | ||
c32bde28 | 14545 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14546 | PyObject *resultobj; |
14547 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14548 | int *arg2 = (int *) 0 ; |
14549 | int *arg3 = (int *) 0 ; | |
14550 | int temp2 ; | |
c32bde28 | 14551 | int res2 = 0 ; |
322913ce | 14552 | int temp3 ; |
c32bde28 | 14553 | int res3 = 0 ; |
d14a1e28 RD |
14554 | PyObject * obj0 = 0 ; |
14555 | char *kwnames[] = { | |
14556 | (char *) "self", NULL | |
14557 | }; | |
14558 | ||
c32bde28 RD |
14559 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14560 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14564 | { |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14566 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14567 | |
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
322913ce | 14571 | Py_INCREF(Py_None); resultobj = Py_None; |
c32bde28 RD |
14572 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14573 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14574 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14575 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
14576 | return resultobj; |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
c32bde28 | 14582 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14583 | PyObject *resultobj; |
14584 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14585 | int arg2 ; |
14586 | int arg3 ; | |
d14a1e28 | 14587 | PyObject * obj0 = 0 ; |
994141e6 RD |
14588 | PyObject * obj1 = 0 ; |
14589 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14590 | char *kwnames[] = { |
14591 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14592 | }; | |
14593 | ||
994141e6 | 14594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14597 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14598 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14599 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14601 | { |
14602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14603 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14604 | ||
14605 | wxPyEndAllowThreads(__tstate); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
14608 | Py_INCREF(Py_None); resultobj = Py_None; | |
14609 | return resultobj; | |
14610 | fail: | |
14611 | return NULL; | |
14612 | } | |
14613 | ||
14614 | ||
c32bde28 | 14615 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14616 | PyObject *resultobj; |
14617 | wxDC *arg1 = (wxDC *) 0 ; | |
14618 | wxPoint *arg2 = 0 ; | |
14619 | wxPoint temp2 ; | |
14620 | PyObject * obj0 = 0 ; | |
14621 | PyObject * obj1 = 0 ; | |
14622 | char *kwnames[] = { | |
14623 | (char *) "self",(char *) "point", NULL | |
14624 | }; | |
14625 | ||
14626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14629 | { | |
14630 | arg2 = &temp2; | |
14631 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14632 | } | |
14633 | { | |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14636 | ||
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
14640 | Py_INCREF(Py_None); resultobj = Py_None; | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
c32bde28 | 14647 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14648 | PyObject *resultobj; |
14649 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14650 | wxPoint result; |
d14a1e28 RD |
14651 | PyObject * obj0 = 0 ; |
14652 | char *kwnames[] = { | |
14653 | (char *) "self", NULL | |
14654 | }; | |
14655 | ||
322913ce | 14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14659 | { |
14660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14661 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14662 | |
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
d14a1e28 | 14666 | { |
322913ce RD |
14667 | wxPoint * resultptr; |
14668 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14670 | } |
14671 | return resultobj; | |
14672 | fail: | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
c32bde28 | 14677 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14678 | PyObject *resultobj; |
14679 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14680 | int *arg2 = (int *) 0 ; |
14681 | int *arg3 = (int *) 0 ; | |
14682 | int temp2 ; | |
c32bde28 | 14683 | int res2 = 0 ; |
322913ce | 14684 | int temp3 ; |
c32bde28 | 14685 | int res3 = 0 ; |
d14a1e28 RD |
14686 | PyObject * obj0 = 0 ; |
14687 | char *kwnames[] = { | |
14688 | (char *) "self", NULL | |
14689 | }; | |
14690 | ||
c32bde28 RD |
14691 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14692 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14696 | { |
14697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14698 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14699 | |
14700 | wxPyEndAllowThreads(__tstate); | |
14701 | if (PyErr_Occurred()) SWIG_fail; | |
14702 | } | |
322913ce | 14703 | Py_INCREF(Py_None); resultobj = Py_None; |
c32bde28 RD |
14704 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14705 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14706 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14707 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
14708 | return resultobj; |
14709 | fail: | |
14710 | return NULL; | |
14711 | } | |
14712 | ||
14713 | ||
c32bde28 | 14714 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14715 | PyObject *resultobj; |
14716 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14717 | int arg2 ; |
14718 | int arg3 ; | |
d14a1e28 | 14719 | PyObject * obj0 = 0 ; |
994141e6 RD |
14720 | PyObject * obj1 = 0 ; |
14721 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14722 | char *kwnames[] = { |
14723 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14724 | }; | |
14725 | ||
994141e6 | 14726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14729 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14730 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14731 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14732 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14733 | { |
14734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14735 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14736 | ||
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | Py_INCREF(Py_None); resultobj = Py_None; | |
14741 | return resultobj; | |
14742 | fail: | |
14743 | return NULL; | |
14744 | } | |
14745 | ||
14746 | ||
c32bde28 | 14747 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14748 | PyObject *resultobj; |
14749 | wxDC *arg1 = (wxDC *) 0 ; | |
14750 | wxPoint *arg2 = 0 ; | |
14751 | wxPoint temp2 ; | |
14752 | PyObject * obj0 = 0 ; | |
14753 | PyObject * obj1 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "self",(char *) "point", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14761 | { | |
14762 | arg2 = &temp2; | |
14763 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14764 | } | |
14765 | { | |
14766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14767 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14768 | ||
14769 | wxPyEndAllowThreads(__tstate); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
14771 | } | |
14772 | Py_INCREF(Py_None); resultobj = Py_None; | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
c32bde28 | 14779 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14780 | PyObject *resultobj; |
14781 | wxDC *arg1 = (wxDC *) 0 ; | |
14782 | bool arg2 ; | |
14783 | bool arg3 ; | |
14784 | PyObject * obj0 = 0 ; | |
14785 | PyObject * obj1 = 0 ; | |
14786 | PyObject * obj2 = 0 ; | |
14787 | char *kwnames[] = { | |
14788 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14789 | }; | |
14790 | ||
14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14794 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14795 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14796 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 14797 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14798 | { |
14799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14800 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14801 | ||
14802 | wxPyEndAllowThreads(__tstate); | |
14803 | if (PyErr_Occurred()) SWIG_fail; | |
14804 | } | |
14805 | Py_INCREF(Py_None); resultobj = Py_None; | |
14806 | return resultobj; | |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
c32bde28 | 14812 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14813 | PyObject *resultobj; |
14814 | wxDC *arg1 = (wxDC *) 0 ; | |
14815 | int result; | |
14816 | PyObject * obj0 = 0 ; | |
14817 | char *kwnames[] = { | |
14818 | (char *) "self", NULL | |
14819 | }; | |
14820 | ||
14821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14824 | { |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
c32bde28 | 14831 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14832 | return resultobj; |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
c32bde28 | 14838 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14839 | PyObject *resultobj; |
14840 | wxDC *arg1 = (wxDC *) 0 ; | |
14841 | int arg2 ; | |
14842 | PyObject * obj0 = 0 ; | |
994141e6 | 14843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14844 | char *kwnames[] = { |
14845 | (char *) "self",(char *) "function", NULL | |
14846 | }; | |
14847 | ||
994141e6 | 14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14851 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14852 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14853 | { |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | (arg1)->SetLogicalFunction(arg2); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | Py_INCREF(Py_None); resultobj = Py_None; | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
c32bde28 | 14867 | static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14868 | PyObject *resultobj; |
14869 | wxDC *arg1 = (wxDC *) 0 ; | |
14870 | bool arg2 ; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | PyObject * obj1 = 0 ; | |
14873 | char *kwnames[] = { | |
f5b96ee1 | 14874 | (char *) "self",(char *) "optimize", NULL |
d14a1e28 RD |
14875 | }; |
14876 | ||
14877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14880 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14881 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14882 | { |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | (arg1)->SetOptimization(arg2); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | Py_INCREF(Py_None); resultobj = Py_None; | |
14890 | return resultobj; | |
14891 | fail: | |
14892 | return NULL; | |
14893 | } | |
14894 | ||
14895 | ||
c32bde28 | 14896 | static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14897 | PyObject *resultobj; |
14898 | wxDC *arg1 = (wxDC *) 0 ; | |
14899 | bool result; | |
14900 | PyObject * obj0 = 0 ; | |
14901 | char *kwnames[] = { | |
14902 | (char *) "self", NULL | |
14903 | }; | |
14904 | ||
14905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14908 | { |
14909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14910 | result = (bool)(arg1)->GetOptimization(); | |
14911 | ||
14912 | wxPyEndAllowThreads(__tstate); | |
14913 | if (PyErr_Occurred()) SWIG_fail; | |
14914 | } | |
4f89f6a3 RD |
14915 | { |
14916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14917 | } | |
d14a1e28 RD |
14918 | return resultobj; |
14919 | fail: | |
14920 | return NULL; | |
14921 | } | |
14922 | ||
14923 | ||
c32bde28 | 14924 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14925 | PyObject *resultobj; |
14926 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14927 | int arg2 ; |
14928 | int arg3 ; | |
d14a1e28 | 14929 | PyObject * obj0 = 0 ; |
994141e6 RD |
14930 | PyObject * obj1 = 0 ; |
14931 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14932 | char *kwnames[] = { |
14933 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14934 | }; | |
14935 | ||
994141e6 | 14936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14939 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14940 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14941 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14942 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14943 | { |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
14950 | Py_INCREF(Py_None); resultobj = Py_None; | |
14951 | return resultobj; | |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
c32bde28 | 14957 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14958 | PyObject *resultobj; |
14959 | wxDC *arg1 = (wxDC *) 0 ; | |
14960 | wxPoint *arg2 = 0 ; | |
14961 | wxPoint temp2 ; | |
14962 | PyObject * obj0 = 0 ; | |
14963 | PyObject * obj1 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "self",(char *) "point", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14971 | { | |
14972 | arg2 = &temp2; | |
14973 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14974 | } | |
14975 | { | |
14976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14977 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
14978 | ||
14979 | wxPyEndAllowThreads(__tstate); | |
14980 | if (PyErr_Occurred()) SWIG_fail; | |
14981 | } | |
14982 | Py_INCREF(Py_None); resultobj = Py_None; | |
14983 | return resultobj; | |
14984 | fail: | |
14985 | return NULL; | |
14986 | } | |
14987 | ||
14988 | ||
c32bde28 | 14989 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14990 | PyObject *resultobj; |
14991 | wxDC *arg1 = (wxDC *) 0 ; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | char *kwnames[] = { | |
14994 | (char *) "self", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15000 | { |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | (arg1)->ResetBoundingBox(); | |
15003 | ||
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
15007 | Py_INCREF(Py_None); resultobj = Py_None; | |
15008 | return resultobj; | |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
c32bde28 | 15014 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15015 | PyObject *resultobj; |
15016 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 15017 | int result; |
d14a1e28 RD |
15018 | PyObject * obj0 = 0 ; |
15019 | char *kwnames[] = { | |
15020 | (char *) "self", NULL | |
15021 | }; | |
15022 | ||
15023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15026 | { |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15028 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
15029 | |
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
c32bde28 | 15033 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15034 | return resultobj; |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
c32bde28 | 15040 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15041 | PyObject *resultobj; |
15042 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 15043 | int result; |
d14a1e28 RD |
15044 | PyObject * obj0 = 0 ; |
15045 | char *kwnames[] = { | |
15046 | (char *) "self", NULL | |
15047 | }; | |
15048 | ||
15049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15052 | { |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15054 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
15055 | |
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
c32bde28 | 15059 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15060 | return resultobj; |
15061 | fail: | |
15062 | return NULL; | |
15063 | } | |
15064 | ||
15065 | ||
c32bde28 | 15066 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15067 | PyObject *resultobj; |
15068 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 15069 | int result; |
d14a1e28 RD |
15070 | PyObject * obj0 = 0 ; |
15071 | char *kwnames[] = { | |
15072 | (char *) "self", NULL | |
15073 | }; | |
15074 | ||
15075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15078 | { |
15079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15080 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
15081 | |
15082 | wxPyEndAllowThreads(__tstate); | |
15083 | if (PyErr_Occurred()) SWIG_fail; | |
15084 | } | |
c32bde28 | 15085 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15086 | return resultobj; |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
c32bde28 | 15092 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15093 | PyObject *resultobj; |
15094 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 15095 | int result; |
d14a1e28 RD |
15096 | PyObject * obj0 = 0 ; |
15097 | char *kwnames[] = { | |
15098 | (char *) "self", NULL | |
15099 | }; | |
15100 | ||
15101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15104 | { |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15106 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
15107 | |
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
c32bde28 | 15111 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15112 | return resultobj; |
15113 | fail: | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
c32bde28 | 15118 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15119 | PyObject *resultobj; |
15120 | wxDC *arg1 = (wxDC *) 0 ; | |
15121 | int *arg2 = (int *) 0 ; | |
15122 | int *arg3 = (int *) 0 ; | |
15123 | int *arg4 = (int *) 0 ; | |
15124 | int *arg5 = (int *) 0 ; | |
15125 | int temp2 ; | |
c32bde28 | 15126 | int res2 = 0 ; |
d14a1e28 | 15127 | int temp3 ; |
c32bde28 | 15128 | int res3 = 0 ; |
d14a1e28 | 15129 | int temp4 ; |
c32bde28 | 15130 | int res4 = 0 ; |
d14a1e28 | 15131 | int temp5 ; |
c32bde28 | 15132 | int res5 = 0 ; |
d14a1e28 RD |
15133 | PyObject * obj0 = 0 ; |
15134 | char *kwnames[] = { | |
15135 | (char *) "self", NULL | |
15136 | }; | |
15137 | ||
c32bde28 RD |
15138 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15139 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15140 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15141 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 15142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15145 | { |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15147 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15148 | ||
15149 | wxPyEndAllowThreads(__tstate); | |
15150 | if (PyErr_Occurred()) SWIG_fail; | |
15151 | } | |
15152 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15153 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15154 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15155 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15156 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15157 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15158 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15159 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15160 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15161 | return resultobj; |
15162 | fail: | |
15163 | return NULL; | |
15164 | } | |
15165 | ||
15166 | ||
c32bde28 | 15167 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15168 | PyObject *resultobj; |
15169 | wxDC *arg1 = (wxDC *) 0 ; | |
15170 | PyObject *arg2 = (PyObject *) 0 ; | |
15171 | PyObject *arg3 = (PyObject *) 0 ; | |
15172 | PyObject *arg4 = (PyObject *) 0 ; | |
15173 | PyObject *result; | |
15174 | PyObject * obj0 = 0 ; | |
15175 | PyObject * obj1 = 0 ; | |
15176 | PyObject * obj2 = 0 ; | |
15177 | PyObject * obj3 = 0 ; | |
15178 | char *kwnames[] = { | |
15179 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15180 | }; | |
15181 | ||
15182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15185 | arg2 = obj1; |
15186 | arg3 = obj2; | |
15187 | arg4 = obj3; | |
15188 | { | |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | resultobj = result; | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
c32bde28 | 15202 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15203 | PyObject *resultobj; |
15204 | wxDC *arg1 = (wxDC *) 0 ; | |
15205 | PyObject *arg2 = (PyObject *) 0 ; | |
15206 | PyObject *arg3 = (PyObject *) 0 ; | |
15207 | PyObject *arg4 = (PyObject *) 0 ; | |
15208 | PyObject *result; | |
15209 | PyObject * obj0 = 0 ; | |
15210 | PyObject * obj1 = 0 ; | |
15211 | PyObject * obj2 = 0 ; | |
15212 | PyObject * obj3 = 0 ; | |
15213 | char *kwnames[] = { | |
15214 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15220 | arg2 = obj1; |
15221 | arg3 = obj2; | |
15222 | arg4 = obj3; | |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | resultobj = result; | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
c32bde28 | 15237 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15238 | PyObject *resultobj; |
15239 | wxDC *arg1 = (wxDC *) 0 ; | |
15240 | PyObject *arg2 = (PyObject *) 0 ; | |
15241 | PyObject *arg3 = (PyObject *) 0 ; | |
15242 | PyObject *arg4 = (PyObject *) 0 ; | |
15243 | PyObject *result; | |
15244 | PyObject * obj0 = 0 ; | |
15245 | PyObject * obj1 = 0 ; | |
15246 | PyObject * obj2 = 0 ; | |
15247 | PyObject * obj3 = 0 ; | |
15248 | char *kwnames[] = { | |
15249 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15250 | }; | |
15251 | ||
15252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15255 | arg2 = obj1; |
15256 | arg3 = obj2; | |
15257 | arg4 = obj3; | |
15258 | { | |
15259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15260 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15261 | ||
15262 | wxPyEndAllowThreads(__tstate); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | } | |
15265 | resultobj = result; | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | return NULL; | |
15269 | } | |
15270 | ||
15271 | ||
c32bde28 | 15272 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15273 | PyObject *resultobj; |
15274 | wxDC *arg1 = (wxDC *) 0 ; | |
15275 | PyObject *arg2 = (PyObject *) 0 ; | |
15276 | PyObject *arg3 = (PyObject *) 0 ; | |
15277 | PyObject *arg4 = (PyObject *) 0 ; | |
15278 | PyObject *result; | |
15279 | PyObject * obj0 = 0 ; | |
15280 | PyObject * obj1 = 0 ; | |
15281 | PyObject * obj2 = 0 ; | |
15282 | PyObject * obj3 = 0 ; | |
15283 | char *kwnames[] = { | |
15284 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15285 | }; | |
15286 | ||
15287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15290 | arg2 = obj1; |
15291 | arg3 = obj2; | |
15292 | arg4 = obj3; | |
15293 | { | |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15296 | ||
15297 | wxPyEndAllowThreads(__tstate); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | } | |
15300 | resultobj = result; | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | return NULL; | |
15304 | } | |
15305 | ||
15306 | ||
c32bde28 | 15307 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15308 | PyObject *resultobj; |
15309 | wxDC *arg1 = (wxDC *) 0 ; | |
15310 | PyObject *arg2 = (PyObject *) 0 ; | |
15311 | PyObject *arg3 = (PyObject *) 0 ; | |
15312 | PyObject *arg4 = (PyObject *) 0 ; | |
15313 | PyObject *result; | |
15314 | PyObject * obj0 = 0 ; | |
15315 | PyObject * obj1 = 0 ; | |
15316 | PyObject * obj2 = 0 ; | |
15317 | PyObject * obj3 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15325 | arg2 = obj1; |
15326 | arg3 = obj2; | |
15327 | arg4 = obj3; | |
15328 | { | |
15329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15330 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15331 | ||
15332 | wxPyEndAllowThreads(__tstate); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | } | |
15335 | resultobj = result; | |
15336 | return resultobj; | |
15337 | fail: | |
15338 | return NULL; | |
15339 | } | |
15340 | ||
15341 | ||
c32bde28 | 15342 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15343 | PyObject *resultobj; |
15344 | wxDC *arg1 = (wxDC *) 0 ; | |
15345 | PyObject *arg2 = (PyObject *) 0 ; | |
15346 | PyObject *arg3 = (PyObject *) 0 ; | |
15347 | PyObject *arg4 = (PyObject *) 0 ; | |
15348 | PyObject *arg5 = (PyObject *) 0 ; | |
15349 | PyObject *result; | |
15350 | PyObject * obj0 = 0 ; | |
15351 | PyObject * obj1 = 0 ; | |
15352 | PyObject * obj2 = 0 ; | |
15353 | PyObject * obj3 = 0 ; | |
15354 | PyObject * obj4 = 0 ; | |
15355 | char *kwnames[] = { | |
15356 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15357 | }; | |
15358 | ||
15359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
15360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15362 | arg2 = obj1; |
15363 | arg3 = obj2; | |
15364 | arg4 = obj3; | |
15365 | arg5 = obj4; | |
15366 | { | |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15369 | ||
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
15373 | resultobj = result; | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
c32bde28 | 15380 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15381 | PyObject *obj; |
15382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15383 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15384 | Py_INCREF(obj); | |
15385 | return Py_BuildValue((char *)""); | |
15386 | } | |
c32bde28 | 15387 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15388 | PyObject *resultobj; |
15389 | wxMemoryDC *result; | |
15390 | char *kwnames[] = { | |
15391 | NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15395 | { | |
e3b71cb8 | 15396 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15398 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15399 | ||
15400 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15401 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15402 | } |
15afbcd0 | 15403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15404 | return resultobj; |
15405 | fail: | |
15406 | return NULL; | |
15407 | } | |
15408 | ||
15409 | ||
c32bde28 | 15410 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15411 | PyObject *resultobj; |
15412 | wxDC *arg1 = (wxDC *) 0 ; | |
15413 | wxMemoryDC *result; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | char *kwnames[] = { | |
15416 | (char *) "oldDC", NULL | |
15417 | }; | |
15418 | ||
15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15422 | { |
e3b71cb8 | 15423 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15425 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15426 | ||
15427 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15428 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15429 | } |
15afbcd0 | 15430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15431 | return resultobj; |
15432 | fail: | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
c32bde28 | 15437 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15438 | PyObject *resultobj; |
15439 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15440 | wxBitmap *arg2 = 0 ; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | PyObject * obj1 = 0 ; | |
15443 | char *kwnames[] = { | |
15444 | (char *) "self",(char *) "bitmap", NULL | |
15445 | }; | |
15446 | ||
15447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
15449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15452 | SWIG_fail; | |
d14a1e28 | 15453 | if (arg2 == NULL) { |
15afbcd0 RD |
15454 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15455 | SWIG_fail; | |
d14a1e28 RD |
15456 | } |
15457 | { | |
15458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15459 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15460 | ||
15461 | wxPyEndAllowThreads(__tstate); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | Py_INCREF(Py_None); resultobj = Py_None; | |
15465 | return resultobj; | |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
c32bde28 | 15471 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15472 | PyObject *obj; |
15473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15474 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15475 | Py_INCREF(obj); | |
15476 | return Py_BuildValue((char *)""); | |
15477 | } | |
c32bde28 | 15478 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
15479 | PyObject *resultobj; |
15480 | wxDC *arg1 = (wxDC *) 0 ; | |
15481 | wxBitmap *arg2 = 0 ; | |
15482 | wxBufferedDC *result; | |
15483 | PyObject * obj0 = 0 ; | |
15484 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15485 | |
3adfb63b | 15486 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15490 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15491 | SWIG_fail; | |
d14a1e28 | 15492 | if (arg2 == NULL) { |
15afbcd0 RD |
15493 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15494 | SWIG_fail; | |
d14a1e28 RD |
15495 | } |
15496 | { | |
e3b71cb8 | 15497 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15499 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15500 | ||
15501 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15502 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15503 | } |
15afbcd0 | 15504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15505 | return resultobj; |
15506 | fail: | |
15507 | return NULL; | |
15508 | } | |
15509 | ||
15510 | ||
c32bde28 | 15511 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
15512 | PyObject *resultobj; |
15513 | wxDC *arg1 = (wxDC *) 0 ; | |
15514 | wxSize *arg2 = 0 ; | |
15515 | wxBufferedDC *result; | |
15516 | wxSize temp2 ; | |
15517 | PyObject * obj0 = 0 ; | |
15518 | PyObject * obj1 = 0 ; | |
3adfb63b | 15519 | |
e498079e | 15520 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15523 | { |
15524 | arg2 = &temp2; | |
15525 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15526 | } | |
3adfb63b | 15527 | { |
e3b71cb8 | 15528 | if (!wxPyCheckForApp()) SWIG_fail; |
3adfb63b | 15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e498079e | 15530 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
3adfb63b RD |
15531 | |
15532 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15533 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b | 15534 | } |
15afbcd0 | 15535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
3adfb63b RD |
15536 | return resultobj; |
15537 | fail: | |
15538 | return NULL; | |
15539 | } | |
15540 | ||
15541 | ||
15542 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15543 | int argc; | |
e498079e | 15544 | PyObject *argv[3]; |
3adfb63b RD |
15545 | int ii; |
15546 | ||
15547 | argc = PyObject_Length(args); | |
e498079e | 15548 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
3adfb63b RD |
15549 | argv[ii] = PyTuple_GetItem(args,ii); |
15550 | } | |
15551 | if (argc == 2) { | |
15552 | int _v; | |
15553 | { | |
15554 | void *ptr; | |
15afbcd0 | 15555 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
15556 | _v = 0; |
15557 | PyErr_Clear(); | |
15558 | } else { | |
15559 | _v = 1; | |
15560 | } | |
15561 | } | |
15562 | if (_v) { | |
15563 | { | |
15564 | void *ptr; | |
15afbcd0 | 15565 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
3adfb63b RD |
15566 | _v = 0; |
15567 | PyErr_Clear(); | |
15568 | } else { | |
15569 | _v = 1; | |
15570 | } | |
15571 | } | |
15572 | if (_v) { | |
15573 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15574 | } | |
15575 | } | |
15576 | } | |
e498079e | 15577 | if (argc == 2) { |
3adfb63b RD |
15578 | int _v; |
15579 | { | |
15580 | void *ptr; | |
15afbcd0 | 15581 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
15582 | _v = 0; |
15583 | PyErr_Clear(); | |
15584 | } else { | |
15585 | _v = 1; | |
15586 | } | |
15587 | } | |
15588 | if (_v) { | |
15589 | { | |
15590 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15591 | } | |
15592 | if (_v) { | |
e498079e | 15593 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
3adfb63b RD |
15594 | } |
15595 | } | |
15596 | } | |
15597 | ||
15598 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
c32bde28 | 15603 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15604 | PyObject *resultobj; |
15605 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | char *kwnames[] = { | |
15608 | (char *) "self", NULL | |
15609 | }; | |
15610 | ||
e498079e | 15611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15614 | { |
15615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15616 | delete arg1; |
d14a1e28 RD |
15617 | |
15618 | wxPyEndAllowThreads(__tstate); | |
15619 | if (PyErr_Occurred()) SWIG_fail; | |
15620 | } | |
15621 | Py_INCREF(Py_None); resultobj = Py_None; | |
15622 | return resultobj; | |
15623 | fail: | |
15624 | return NULL; | |
15625 | } | |
15626 | ||
15627 | ||
c32bde28 | 15628 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15629 | PyObject *resultobj; |
e498079e | 15630 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
3adfb63b | 15631 | PyObject * obj0 = 0 ; |
e498079e RD |
15632 | char *kwnames[] = { |
15633 | (char *) "self", NULL | |
15634 | }; | |
3adfb63b | 15635 | |
e498079e | 15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15639 | { |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15641 | (arg1)->UnMask(); |
3adfb63b RD |
15642 | |
15643 | wxPyEndAllowThreads(__tstate); | |
15644 | if (PyErr_Occurred()) SWIG_fail; | |
15645 | } | |
e498079e | 15646 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
15647 | return resultobj; |
15648 | fail: | |
15649 | return NULL; | |
15650 | } | |
15651 | ||
15652 | ||
c32bde28 | 15653 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
e498079e RD |
15654 | PyObject *obj; |
15655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15656 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15657 | Py_INCREF(obj); | |
15658 | return Py_BuildValue((char *)""); | |
15659 | } | |
c32bde28 | 15660 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
15661 | PyObject *resultobj; |
15662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e498079e RD |
15663 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15664 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15665 | wxBufferedPaintDC *result; |
15666 | PyObject * obj0 = 0 ; | |
15667 | PyObject * obj1 = 0 ; | |
e498079e RD |
15668 | char *kwnames[] = { |
15669 | (char *) "window",(char *) "buffer", NULL | |
15670 | }; | |
d14a1e28 | 15671 | |
e498079e | 15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15675 | if (obj1) { |
15afbcd0 RD |
15676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
15677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15678 | SWIG_fail; | |
e498079e | 15679 | if (arg2 == NULL) { |
15afbcd0 RD |
15680 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15681 | SWIG_fail; | |
d14a1e28 RD |
15682 | } |
15683 | } | |
15684 | { | |
e3b71cb8 | 15685 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 15686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e498079e | 15687 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15688 | |
15689 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15690 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15691 | } |
15afbcd0 | 15692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
15693 | return resultobj; |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
c32bde28 | 15699 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15700 | PyObject *obj; |
15701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15702 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15703 | Py_INCREF(obj); | |
15704 | return Py_BuildValue((char *)""); | |
15705 | } | |
c32bde28 | 15706 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15707 | PyObject *resultobj; |
15708 | wxScreenDC *result; | |
15709 | char *kwnames[] = { | |
15710 | NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15714 | { | |
e3b71cb8 | 15715 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15717 | result = (wxScreenDC *)new wxScreenDC(); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15720 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15721 | } |
15afbcd0 | 15722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15723 | return resultobj; |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
c32bde28 | 15729 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15730 | PyObject *resultobj; |
15731 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15733 | bool result; | |
15734 | PyObject * obj0 = 0 ; | |
15735 | PyObject * obj1 = 0 ; | |
15736 | char *kwnames[] = { | |
15737 | (char *) "self",(char *) "window", NULL | |
15738 | }; | |
15739 | ||
15740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15745 | { |
15746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15747 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15748 | ||
15749 | wxPyEndAllowThreads(__tstate); | |
15750 | if (PyErr_Occurred()) SWIG_fail; | |
15751 | } | |
4f89f6a3 RD |
15752 | { |
15753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15754 | } | |
d14a1e28 RD |
15755 | return resultobj; |
15756 | fail: | |
15757 | return NULL; | |
15758 | } | |
15759 | ||
15760 | ||
c32bde28 | 15761 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15762 | PyObject *resultobj; |
15763 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15764 | wxRect *arg2 = (wxRect *) NULL ; | |
15765 | bool result; | |
15766 | PyObject * obj0 = 0 ; | |
15767 | PyObject * obj1 = 0 ; | |
15768 | char *kwnames[] = { | |
15769 | (char *) "self",(char *) "rect", NULL | |
15770 | }; | |
15771 | ||
15772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15775 | if (obj1) { |
15afbcd0 RD |
15776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15778 | } |
15779 | { | |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
4f89f6a3 RD |
15786 | { |
15787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15788 | } | |
d14a1e28 RD |
15789 | return resultobj; |
15790 | fail: | |
15791 | return NULL; | |
15792 | } | |
15793 | ||
15794 | ||
c32bde28 | 15795 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15796 | PyObject *resultobj; |
15797 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15798 | bool result; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | char *kwnames[] = { | |
15801 | (char *) "self", NULL | |
15802 | }; | |
15803 | ||
15804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15807 | { |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15809 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15810 | ||
15811 | wxPyEndAllowThreads(__tstate); | |
15812 | if (PyErr_Occurred()) SWIG_fail; | |
15813 | } | |
4f89f6a3 RD |
15814 | { |
15815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15816 | } | |
d14a1e28 RD |
15817 | return resultobj; |
15818 | fail: | |
15819 | return NULL; | |
15820 | } | |
15821 | ||
15822 | ||
c32bde28 | 15823 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15824 | PyObject *obj; |
15825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15826 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15827 | Py_INCREF(obj); | |
15828 | return Py_BuildValue((char *)""); | |
15829 | } | |
c32bde28 | 15830 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15831 | PyObject *resultobj; |
15832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15833 | wxClientDC *result; | |
15834 | PyObject * obj0 = 0 ; | |
15835 | char *kwnames[] = { | |
15836 | (char *) "win", NULL | |
15837 | }; | |
15838 | ||
15839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15842 | { |
e3b71cb8 | 15843 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15845 | result = (wxClientDC *)new wxClientDC(arg1); | |
15846 | ||
15847 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15848 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15849 | } |
15afbcd0 | 15850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15851 | return resultobj; |
15852 | fail: | |
15853 | return NULL; | |
15854 | } | |
15855 | ||
15856 | ||
c32bde28 | 15857 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15858 | PyObject *obj; |
15859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15860 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15861 | Py_INCREF(obj); | |
15862 | return Py_BuildValue((char *)""); | |
15863 | } | |
c32bde28 | 15864 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15865 | PyObject *resultobj; |
15866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15867 | wxPaintDC *result; | |
15868 | PyObject * obj0 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "win", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15876 | { |
e3b71cb8 | 15877 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15879 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15880 | ||
15881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15882 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15883 | } |
15afbcd0 | 15884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15885 | return resultobj; |
15886 | fail: | |
15887 | return NULL; | |
15888 | } | |
15889 | ||
15890 | ||
c32bde28 | 15891 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15892 | PyObject *obj; |
15893 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15894 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15895 | Py_INCREF(obj); | |
15896 | return Py_BuildValue((char *)""); | |
15897 | } | |
c32bde28 | 15898 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15899 | PyObject *resultobj; |
15900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15901 | wxWindowDC *result; | |
15902 | PyObject * obj0 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "win", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15910 | { |
e3b71cb8 | 15911 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15913 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15914 | ||
15915 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15916 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15917 | } |
15afbcd0 | 15918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
15919 | return resultobj; |
15920 | fail: | |
15921 | return NULL; | |
15922 | } | |
15923 | ||
15924 | ||
c32bde28 | 15925 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15926 | PyObject *obj; |
15927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15928 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15929 | Py_INCREF(obj); | |
15930 | return Py_BuildValue((char *)""); | |
15931 | } | |
c32bde28 | 15932 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15933 | PyObject *resultobj; |
15934 | wxDC *arg1 = 0 ; | |
15935 | bool arg2 ; | |
15936 | wxMirrorDC *result; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | PyObject * obj1 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "dc",(char *) "mirror", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15946 | SWIG_fail; | |
d14a1e28 | 15947 | if (arg1 == NULL) { |
15afbcd0 RD |
15948 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15949 | SWIG_fail; | |
a41e16b6 | 15950 | } |
c32bde28 | 15951 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15952 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15953 | { |
e3b71cb8 | 15954 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15956 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15957 | ||
15958 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15959 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15960 | } |
15afbcd0 | 15961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
15962 | return resultobj; |
15963 | fail: | |
15964 | return NULL; | |
15965 | } | |
15966 | ||
15967 | ||
c32bde28 | 15968 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15969 | PyObject *obj; |
15970 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15971 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15972 | Py_INCREF(obj); | |
15973 | return Py_BuildValue((char *)""); | |
15974 | } | |
c32bde28 | 15975 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15976 | PyObject *resultobj; |
15977 | wxPrintData *arg1 = 0 ; | |
15978 | wxPostScriptDC *result; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "printData", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15987 | SWIG_fail; | |
d14a1e28 | 15988 | if (arg1 == NULL) { |
15afbcd0 RD |
15989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15990 | SWIG_fail; | |
d14a1e28 RD |
15991 | } |
15992 | { | |
e3b71cb8 | 15993 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15995 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15998 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15999 | } |
15afbcd0 | 16000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
16001 | return resultobj; |
16002 | fail: | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
c32bde28 | 16007 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16008 | PyObject *resultobj; |
16009 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16010 | wxPrintData *result; | |
16011 | PyObject * obj0 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16019 | { |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16021 | { | |
16022 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16023 | result = (wxPrintData *) &_result_ref; | |
16024 | } | |
16025 | ||
16026 | wxPyEndAllowThreads(__tstate); | |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
16028 | } | |
15afbcd0 | 16029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
16030 | return resultobj; |
16031 | fail: | |
16032 | return NULL; | |
16033 | } | |
16034 | ||
16035 | ||
c32bde28 | 16036 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16037 | PyObject *resultobj; |
16038 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16039 | wxPrintData *arg2 = 0 ; | |
16040 | PyObject * obj0 = 0 ; | |
16041 | PyObject * obj1 = 0 ; | |
16042 | char *kwnames[] = { | |
16043 | (char *) "self",(char *) "data", NULL | |
16044 | }; | |
16045 | ||
16046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
16048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16051 | SWIG_fail; | |
d14a1e28 | 16052 | if (arg2 == NULL) { |
15afbcd0 RD |
16053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16054 | SWIG_fail; | |
d14a1e28 RD |
16055 | } |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16059 | ||
16060 | wxPyEndAllowThreads(__tstate); | |
16061 | if (PyErr_Occurred()) SWIG_fail; | |
16062 | } | |
16063 | Py_INCREF(Py_None); resultobj = Py_None; | |
16064 | return resultobj; | |
16065 | fail: | |
16066 | return NULL; | |
16067 | } | |
16068 | ||
16069 | ||
c32bde28 | 16070 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16071 | PyObject *resultobj; |
16072 | int arg1 ; | |
994141e6 | 16073 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16074 | char *kwnames[] = { |
16075 | (char *) "ppi", NULL | |
16076 | }; | |
16077 | ||
994141e6 | 16078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
c32bde28 | 16079 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 16080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16081 | { |
16082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16083 | wxPostScriptDC::SetResolution(arg1); | |
16084 | ||
16085 | wxPyEndAllowThreads(__tstate); | |
16086 | if (PyErr_Occurred()) SWIG_fail; | |
16087 | } | |
16088 | Py_INCREF(Py_None); resultobj = Py_None; | |
16089 | return resultobj; | |
16090 | fail: | |
16091 | return NULL; | |
16092 | } | |
16093 | ||
16094 | ||
c32bde28 | 16095 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16096 | PyObject *resultobj; |
16097 | int result; | |
16098 | char *kwnames[] = { | |
16099 | NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | result = (int)wxPostScriptDC::GetResolution(); | |
16106 | ||
16107 | wxPyEndAllowThreads(__tstate); | |
16108 | if (PyErr_Occurred()) SWIG_fail; | |
16109 | } | |
c32bde28 | 16110 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16111 | return resultobj; |
16112 | fail: | |
16113 | return NULL; | |
16114 | } | |
16115 | ||
16116 | ||
c32bde28 | 16117 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16118 | PyObject *obj; |
16119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16120 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16121 | Py_INCREF(obj); | |
16122 | return Py_BuildValue((char *)""); | |
16123 | } | |
c32bde28 | 16124 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16125 | PyObject *resultobj; |
16126 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16127 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16128 | wxMetaFile *result; | |
ae8162c8 | 16129 | bool temp1 = false ; |
d14a1e28 RD |
16130 | PyObject * obj0 = 0 ; |
16131 | char *kwnames[] = { | |
16132 | (char *) "filename", NULL | |
16133 | }; | |
16134 | ||
16135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16136 | if (obj0) { | |
16137 | { | |
16138 | arg1 = wxString_in_helper(obj0); | |
16139 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16140 | temp1 = true; |
d14a1e28 RD |
16141 | } |
16142 | } | |
16143 | { | |
e3b71cb8 | 16144 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16146 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16147 | ||
16148 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16149 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16150 | } |
15afbcd0 | 16151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
16152 | { |
16153 | if (temp1) | |
16154 | delete arg1; | |
16155 | } | |
16156 | return resultobj; | |
16157 | fail: | |
16158 | { | |
16159 | if (temp1) | |
16160 | delete arg1; | |
16161 | } | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
c32bde28 | 16166 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16167 | PyObject *obj; |
16168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16169 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16170 | Py_INCREF(obj); | |
16171 | return Py_BuildValue((char *)""); | |
16172 | } | |
c32bde28 | 16173 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16174 | PyObject *resultobj; |
16175 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16176 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16177 | int arg2 = (int) 0 ; | |
16178 | int arg3 = (int) 0 ; | |
16179 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16180 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16181 | wxMetaFileDC *result; | |
ae8162c8 RD |
16182 | bool temp1 = false ; |
16183 | bool temp4 = false ; | |
d14a1e28 | 16184 | PyObject * obj0 = 0 ; |
994141e6 RD |
16185 | PyObject * obj1 = 0 ; |
16186 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16187 | PyObject * obj3 = 0 ; |
16188 | char *kwnames[] = { | |
16189 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16190 | }; | |
16191 | ||
994141e6 | 16192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
16193 | if (obj0) { |
16194 | { | |
16195 | arg1 = wxString_in_helper(obj0); | |
16196 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16197 | temp1 = true; |
d14a1e28 RD |
16198 | } |
16199 | } | |
994141e6 | 16200 | if (obj1) { |
c32bde28 | 16201 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16202 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16203 | } |
16204 | if (obj2) { | |
c32bde28 | 16205 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 16206 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16207 | } |
d14a1e28 RD |
16208 | if (obj3) { |
16209 | { | |
16210 | arg4 = wxString_in_helper(obj3); | |
16211 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16212 | temp4 = true; |
d14a1e28 RD |
16213 | } |
16214 | } | |
16215 | { | |
e3b71cb8 | 16216 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16218 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16219 | ||
16220 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16221 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16222 | } |
15afbcd0 | 16223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
16224 | { |
16225 | if (temp1) | |
16226 | delete arg1; | |
16227 | } | |
16228 | { | |
16229 | if (temp4) | |
16230 | delete arg4; | |
16231 | } | |
16232 | return resultobj; | |
16233 | fail: | |
16234 | { | |
16235 | if (temp1) | |
16236 | delete arg1; | |
16237 | } | |
16238 | { | |
16239 | if (temp4) | |
16240 | delete arg4; | |
16241 | } | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
c32bde28 | 16246 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16247 | PyObject *obj; |
16248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16249 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16250 | Py_INCREF(obj); | |
16251 | return Py_BuildValue((char *)""); | |
16252 | } | |
c32bde28 | 16253 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16254 | PyObject *resultobj; |
16255 | wxPrintData *arg1 = 0 ; | |
16256 | wxPrinterDC *result; | |
16257 | PyObject * obj0 = 0 ; | |
16258 | char *kwnames[] = { | |
16259 | (char *) "printData", NULL | |
16260 | }; | |
16261 | ||
16262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
16264 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16265 | SWIG_fail; | |
d14a1e28 | 16266 | if (arg1 == NULL) { |
15afbcd0 RD |
16267 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16268 | SWIG_fail; | |
d14a1e28 RD |
16269 | } |
16270 | { | |
e3b71cb8 | 16271 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16273 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16274 | ||
16275 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16276 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16277 | } |
15afbcd0 | 16278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
16279 | return resultobj; |
16280 | fail: | |
16281 | return NULL; | |
16282 | } | |
16283 | ||
16284 | ||
c32bde28 | 16285 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16286 | PyObject *obj; |
16287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16288 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16289 | Py_INCREF(obj); | |
16290 | return Py_BuildValue((char *)""); | |
16291 | } | |
c32bde28 | 16292 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16293 | PyObject *resultobj; |
16294 | int arg1 ; | |
16295 | int arg2 ; | |
ae8162c8 | 16296 | int arg3 = (int) true ; |
d14a1e28 RD |
16297 | int arg4 = (int) 1 ; |
16298 | wxImageList *result; | |
994141e6 RD |
16299 | PyObject * obj0 = 0 ; |
16300 | PyObject * obj1 = 0 ; | |
16301 | PyObject * obj2 = 0 ; | |
16302 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16303 | char *kwnames[] = { |
16304 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16305 | }; | |
16306 | ||
994141e6 | 16307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 16308 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 16309 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 16310 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16311 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16312 | if (obj2) { |
c32bde28 | 16313 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 16314 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16315 | } |
16316 | if (obj3) { | |
c32bde28 | 16317 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 16318 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16319 | } |
d14a1e28 | 16320 | { |
e3b71cb8 | 16321 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16323 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16324 | ||
16325 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16326 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16327 | } |
16328 | { | |
412d302d | 16329 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
16330 | } |
16331 | return resultobj; | |
16332 | fail: | |
16333 | return NULL; | |
16334 | } | |
16335 | ||
16336 | ||
c32bde28 | 16337 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16338 | PyObject *resultobj; |
16339 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16340 | PyObject * obj0 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16348 | { |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | delete arg1; | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | Py_INCREF(Py_None); resultobj = Py_None; | |
16356 | return resultobj; | |
16357 | fail: | |
16358 | return NULL; | |
16359 | } | |
16360 | ||
16361 | ||
c32bde28 | 16362 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16363 | PyObject *resultobj; |
16364 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16365 | wxBitmap *arg2 = 0 ; | |
16366 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16367 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16368 | int result; | |
16369 | PyObject * obj0 = 0 ; | |
16370 | PyObject * obj1 = 0 ; | |
16371 | PyObject * obj2 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16380 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16381 | SWIG_fail; | |
d14a1e28 | 16382 | if (arg2 == NULL) { |
15afbcd0 RD |
16383 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16384 | SWIG_fail; | |
d14a1e28 RD |
16385 | } |
16386 | if (obj2) { | |
15afbcd0 RD |
16387 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
16388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16389 | SWIG_fail; | |
d14a1e28 | 16390 | if (arg3 == NULL) { |
15afbcd0 RD |
16391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16392 | SWIG_fail; | |
d14a1e28 RD |
16393 | } |
16394 | } | |
16395 | { | |
16396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16397 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16398 | ||
16399 | wxPyEndAllowThreads(__tstate); | |
16400 | if (PyErr_Occurred()) SWIG_fail; | |
16401 | } | |
c32bde28 | 16402 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16403 | return resultobj; |
16404 | fail: | |
16405 | return NULL; | |
16406 | } | |
16407 | ||
16408 | ||
c32bde28 | 16409 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16410 | PyObject *resultobj; |
16411 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16412 | wxBitmap *arg2 = 0 ; | |
16413 | wxColour *arg3 = 0 ; | |
16414 | int result; | |
16415 | wxColour temp3 ; | |
16416 | PyObject * obj0 = 0 ; | |
16417 | PyObject * obj1 = 0 ; | |
16418 | PyObject * obj2 = 0 ; | |
16419 | char *kwnames[] = { | |
16420 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16421 | }; | |
16422 | ||
16423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16428 | SWIG_fail; | |
d14a1e28 | 16429 | if (arg2 == NULL) { |
15afbcd0 RD |
16430 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16431 | SWIG_fail; | |
d14a1e28 RD |
16432 | } |
16433 | { | |
16434 | arg3 = &temp3; | |
16435 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16436 | } | |
16437 | { | |
16438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16439 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16440 | ||
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
c32bde28 | 16444 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16445 | return resultobj; |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
c32bde28 | 16451 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16452 | PyObject *resultobj; |
16453 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16454 | wxIcon *arg2 = 0 ; | |
16455 | int result; | |
16456 | PyObject * obj0 = 0 ; | |
16457 | PyObject * obj1 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self",(char *) "icon", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16467 | SWIG_fail; | |
d14a1e28 | 16468 | if (arg2 == NULL) { |
15afbcd0 RD |
16469 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16470 | SWIG_fail; | |
d14a1e28 RD |
16471 | } |
16472 | { | |
16473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16474 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16475 | ||
16476 | wxPyEndAllowThreads(__tstate); | |
16477 | if (PyErr_Occurred()) SWIG_fail; | |
16478 | } | |
c32bde28 | 16479 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16480 | return resultobj; |
16481 | fail: | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
c32bde28 | 16486 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16487 | PyObject *resultobj; |
16488 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16489 | int arg2 ; | |
16490 | wxBitmap *arg3 = 0 ; | |
16491 | bool result; | |
16492 | PyObject * obj0 = 0 ; | |
994141e6 | 16493 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16494 | PyObject * obj2 = 0 ; |
16495 | char *kwnames[] = { | |
16496 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16497 | }; | |
16498 | ||
994141e6 | 16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16502 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
16503 | if (PyErr_Occurred()) SWIG_fail; |
16504 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16506 | SWIG_fail; | |
d14a1e28 | 16507 | if (arg3 == NULL) { |
15afbcd0 RD |
16508 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16509 | SWIG_fail; | |
d14a1e28 RD |
16510 | } |
16511 | { | |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16513 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16514 | ||
16515 | wxPyEndAllowThreads(__tstate); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | } | |
4f89f6a3 RD |
16518 | { |
16519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16520 | } | |
d14a1e28 RD |
16521 | return resultobj; |
16522 | fail: | |
16523 | return NULL; | |
16524 | } | |
16525 | ||
16526 | ||
c32bde28 | 16527 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16528 | PyObject *resultobj; |
16529 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16530 | int arg2 ; | |
16531 | wxDC *arg3 = 0 ; | |
16532 | int arg4 ; | |
16533 | int arg5 ; | |
16534 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
ae8162c8 | 16535 | bool arg7 = (bool) (bool)false ; |
d14a1e28 RD |
16536 | bool result; |
16537 | PyObject * obj0 = 0 ; | |
994141e6 | 16538 | PyObject * obj1 = 0 ; |
d14a1e28 | 16539 | PyObject * obj2 = 0 ; |
994141e6 RD |
16540 | PyObject * obj3 = 0 ; |
16541 | PyObject * obj4 = 0 ; | |
16542 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
16543 | PyObject * obj6 = 0 ; |
16544 | char *kwnames[] = { | |
16545 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16546 | }; | |
16547 | ||
994141e6 | 16548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
16549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16551 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
16552 | if (PyErr_Occurred()) SWIG_fail; |
16553 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16555 | SWIG_fail; | |
d14a1e28 | 16556 | if (arg3 == NULL) { |
15afbcd0 RD |
16557 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16558 | SWIG_fail; | |
994141e6 | 16559 | } |
c32bde28 | 16560 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 16561 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 16562 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 16563 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16564 | if (obj5) { |
c32bde28 | 16565 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 16566 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16567 | } |
d14a1e28 | 16568 | if (obj6) { |
c32bde28 | 16569 | arg7 = (bool)SWIG_As_bool(obj6); |
15afbcd0 | 16570 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16571 | } |
16572 | { | |
16573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16574 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16575 | ||
16576 | wxPyEndAllowThreads(__tstate); | |
16577 | if (PyErr_Occurred()) SWIG_fail; | |
16578 | } | |
4f89f6a3 RD |
16579 | { |
16580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16581 | } | |
d14a1e28 RD |
16582 | return resultobj; |
16583 | fail: | |
16584 | return NULL; | |
16585 | } | |
16586 | ||
16587 | ||
c32bde28 | 16588 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16589 | PyObject *resultobj; |
16590 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16591 | int result; | |
16592 | PyObject * obj0 = 0 ; | |
16593 | char *kwnames[] = { | |
16594 | (char *) "self", NULL | |
16595 | }; | |
16596 | ||
16597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16600 | { |
16601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16602 | result = (int)(arg1)->GetImageCount(); | |
16603 | ||
16604 | wxPyEndAllowThreads(__tstate); | |
16605 | if (PyErr_Occurred()) SWIG_fail; | |
16606 | } | |
c32bde28 | 16607 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16608 | return resultobj; |
16609 | fail: | |
16610 | return NULL; | |
16611 | } | |
16612 | ||
16613 | ||
c32bde28 | 16614 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16615 | PyObject *resultobj; |
16616 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16617 | int arg2 ; | |
16618 | bool result; | |
16619 | PyObject * obj0 = 0 ; | |
994141e6 | 16620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16621 | char *kwnames[] = { |
16622 | (char *) "self",(char *) "index", NULL | |
16623 | }; | |
16624 | ||
994141e6 | 16625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16628 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16629 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16630 | { |
16631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16632 | result = (bool)(arg1)->Remove(arg2); | |
16633 | ||
16634 | wxPyEndAllowThreads(__tstate); | |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | } | |
4f89f6a3 RD |
16637 | { |
16638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16639 | } | |
d14a1e28 RD |
16640 | return resultobj; |
16641 | fail: | |
16642 | return NULL; | |
16643 | } | |
16644 | ||
16645 | ||
c32bde28 | 16646 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16647 | PyObject *resultobj; |
16648 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16649 | bool result; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | char *kwnames[] = { | |
16652 | (char *) "self", NULL | |
16653 | }; | |
16654 | ||
16655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16658 | { |
16659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16660 | result = (bool)(arg1)->RemoveAll(); | |
16661 | ||
16662 | wxPyEndAllowThreads(__tstate); | |
16663 | if (PyErr_Occurred()) SWIG_fail; | |
16664 | } | |
4f89f6a3 RD |
16665 | { |
16666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16667 | } | |
d14a1e28 RD |
16668 | return resultobj; |
16669 | fail: | |
16670 | return NULL; | |
16671 | } | |
16672 | ||
16673 | ||
c32bde28 | 16674 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16675 | PyObject *resultobj; |
16676 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16677 | int arg2 ; | |
16678 | int *arg3 = 0 ; | |
16679 | int *arg4 = 0 ; | |
16680 | int temp3 ; | |
c32bde28 | 16681 | int res3 = 0 ; |
d14a1e28 | 16682 | int temp4 ; |
c32bde28 | 16683 | int res4 = 0 ; |
d14a1e28 | 16684 | PyObject * obj0 = 0 ; |
994141e6 | 16685 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16686 | char *kwnames[] = { |
16687 | (char *) "self",(char *) "index", NULL | |
16688 | }; | |
16689 | ||
c32bde28 RD |
16690 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
16691 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 16692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16695 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16697 | { |
16698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16699 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16700 | ||
16701 | wxPyEndAllowThreads(__tstate); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | } | |
16704 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16705 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
16706 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
16707 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
16708 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16709 | return resultobj; |
16710 | fail: | |
16711 | return NULL; | |
16712 | } | |
16713 | ||
16714 | ||
c32bde28 | 16715 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16716 | PyObject *obj; |
16717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16718 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16719 | Py_INCREF(obj); | |
16720 | return Py_BuildValue((char *)""); | |
16721 | } | |
c32bde28 | 16722 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
994141e6 RD |
16723 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
16724 | return 1; | |
d14a1e28 RD |
16725 | } |
16726 | ||
16727 | ||
994141e6 RD |
16728 | static PyObject *_wrap_NORMAL_FONT_get() { |
16729 | PyObject *pyobj; | |
d14a1e28 | 16730 | |
15afbcd0 | 16731 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16732 | return pyobj; |
d14a1e28 RD |
16733 | } |
16734 | ||
16735 | ||
c32bde28 | 16736 | static int _wrap_SMALL_FONT_set(PyObject *) { |
994141e6 RD |
16737 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
16738 | return 1; | |
d14a1e28 RD |
16739 | } |
16740 | ||
16741 | ||
994141e6 RD |
16742 | static PyObject *_wrap_SMALL_FONT_get() { |
16743 | PyObject *pyobj; | |
d14a1e28 | 16744 | |
15afbcd0 | 16745 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16746 | return pyobj; |
d14a1e28 RD |
16747 | } |
16748 | ||
16749 | ||
c32bde28 | 16750 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
994141e6 RD |
16751 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
16752 | return 1; | |
d14a1e28 | 16753 | } |
994141e6 RD |
16754 | |
16755 | ||
16756 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16757 | PyObject *pyobj; | |
d14a1e28 | 16758 | |
15afbcd0 | 16759 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16760 | return pyobj; |
d14a1e28 RD |
16761 | } |
16762 | ||
16763 | ||
c32bde28 | 16764 | static int _wrap_SWISS_FONT_set(PyObject *) { |
994141e6 RD |
16765 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
16766 | return 1; | |
d14a1e28 RD |
16767 | } |
16768 | ||
16769 | ||
994141e6 RD |
16770 | static PyObject *_wrap_SWISS_FONT_get() { |
16771 | PyObject *pyobj; | |
d14a1e28 | 16772 | |
15afbcd0 | 16773 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16774 | return pyobj; |
d14a1e28 RD |
16775 | } |
16776 | ||
16777 | ||
c32bde28 | 16778 | static int _wrap_RED_PEN_set(PyObject *) { |
994141e6 RD |
16779 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
16780 | return 1; | |
16781 | } | |
16782 | ||
16783 | ||
16784 | static PyObject *_wrap_RED_PEN_get() { | |
16785 | PyObject *pyobj; | |
d14a1e28 | 16786 | |
15afbcd0 | 16787 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16788 | return pyobj; |
d14a1e28 RD |
16789 | } |
16790 | ||
16791 | ||
c32bde28 | 16792 | static int _wrap_CYAN_PEN_set(PyObject *) { |
994141e6 RD |
16793 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
16794 | return 1; | |
d14a1e28 | 16795 | } |
994141e6 RD |
16796 | |
16797 | ||
16798 | static PyObject *_wrap_CYAN_PEN_get() { | |
16799 | PyObject *pyobj; | |
d14a1e28 | 16800 | |
15afbcd0 | 16801 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16802 | return pyobj; |
d14a1e28 RD |
16803 | } |
16804 | ||
16805 | ||
c32bde28 | 16806 | static int _wrap_GREEN_PEN_set(PyObject *) { |
994141e6 RD |
16807 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
16808 | return 1; | |
16809 | } | |
16810 | ||
16811 | ||
16812 | static PyObject *_wrap_GREEN_PEN_get() { | |
16813 | PyObject *pyobj; | |
d14a1e28 | 16814 | |
15afbcd0 | 16815 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16816 | return pyobj; |
d14a1e28 RD |
16817 | } |
16818 | ||
16819 | ||
c32bde28 | 16820 | static int _wrap_BLACK_PEN_set(PyObject *) { |
994141e6 RD |
16821 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
16822 | return 1; | |
16823 | } | |
16824 | ||
16825 | ||
16826 | static PyObject *_wrap_BLACK_PEN_get() { | |
16827 | PyObject *pyobj; | |
d14a1e28 | 16828 | |
15afbcd0 | 16829 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16830 | return pyobj; |
d14a1e28 RD |
16831 | } |
16832 | ||
16833 | ||
c32bde28 | 16834 | static int _wrap_WHITE_PEN_set(PyObject *) { |
994141e6 RD |
16835 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
16836 | return 1; | |
d14a1e28 RD |
16837 | } |
16838 | ||
16839 | ||
994141e6 RD |
16840 | static PyObject *_wrap_WHITE_PEN_get() { |
16841 | PyObject *pyobj; | |
d14a1e28 | 16842 | |
15afbcd0 | 16843 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16844 | return pyobj; |
d14a1e28 RD |
16845 | } |
16846 | ||
16847 | ||
c32bde28 | 16848 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
994141e6 RD |
16849 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
16850 | return 1; | |
d14a1e28 RD |
16851 | } |
16852 | ||
16853 | ||
994141e6 RD |
16854 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16855 | PyObject *pyobj; | |
d14a1e28 | 16856 | |
15afbcd0 | 16857 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16858 | return pyobj; |
d14a1e28 RD |
16859 | } |
16860 | ||
16861 | ||
c32bde28 | 16862 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
994141e6 RD |
16863 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
16864 | return 1; | |
d14a1e28 RD |
16865 | } |
16866 | ||
16867 | ||
994141e6 RD |
16868 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16869 | PyObject *pyobj; | |
d14a1e28 | 16870 | |
15afbcd0 | 16871 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16872 | return pyobj; |
d14a1e28 RD |
16873 | } |
16874 | ||
16875 | ||
c32bde28 | 16876 | static int _wrap_GREY_PEN_set(PyObject *) { |
994141e6 RD |
16877 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
16878 | return 1; | |
d14a1e28 RD |
16879 | } |
16880 | ||
16881 | ||
994141e6 RD |
16882 | static PyObject *_wrap_GREY_PEN_get() { |
16883 | PyObject *pyobj; | |
16884 | ||
15afbcd0 | 16885 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16886 | return pyobj; |
d14a1e28 | 16887 | } |
994141e6 RD |
16888 | |
16889 | ||
c32bde28 | 16890 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
994141e6 | 16891 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
d14a1e28 RD |
16892 | return 1; |
16893 | } | |
16894 | ||
16895 | ||
994141e6 | 16896 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16897 | PyObject *pyobj; |
16898 | ||
15afbcd0 | 16899 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16900 | return pyobj; |
16901 | } | |
16902 | ||
16903 | ||
c32bde28 | 16904 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
994141e6 | 16905 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
d14a1e28 RD |
16906 | return 1; |
16907 | } | |
16908 | ||
16909 | ||
994141e6 | 16910 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16911 | PyObject *pyobj; |
16912 | ||
15afbcd0 | 16913 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16914 | return pyobj; |
16915 | } | |
16916 | ||
16917 | ||
c32bde28 | 16918 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
994141e6 | 16919 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
d14a1e28 RD |
16920 | return 1; |
16921 | } | |
16922 | ||
16923 | ||
994141e6 | 16924 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16925 | PyObject *pyobj; |
16926 | ||
15afbcd0 | 16927 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16928 | return pyobj; |
16929 | } | |
16930 | ||
16931 | ||
c32bde28 | 16932 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
994141e6 | 16933 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
d14a1e28 RD |
16934 | return 1; |
16935 | } | |
16936 | ||
16937 | ||
994141e6 | 16938 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16939 | PyObject *pyobj; |
16940 | ||
15afbcd0 | 16941 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16942 | return pyobj; |
16943 | } | |
16944 | ||
16945 | ||
c32bde28 | 16946 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
994141e6 | 16947 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
d14a1e28 RD |
16948 | return 1; |
16949 | } | |
16950 | ||
16951 | ||
994141e6 | 16952 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16953 | PyObject *pyobj; |
16954 | ||
15afbcd0 | 16955 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16956 | return pyobj; |
16957 | } | |
16958 | ||
16959 | ||
c32bde28 | 16960 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
994141e6 | 16961 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
d14a1e28 RD |
16962 | return 1; |
16963 | } | |
16964 | ||
16965 | ||
994141e6 | 16966 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16967 | PyObject *pyobj; |
16968 | ||
15afbcd0 | 16969 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16970 | return pyobj; |
16971 | } | |
16972 | ||
16973 | ||
c32bde28 | 16974 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
994141e6 | 16975 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
d14a1e28 RD |
16976 | return 1; |
16977 | } | |
16978 | ||
16979 | ||
994141e6 | 16980 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16981 | PyObject *pyobj; |
16982 | ||
15afbcd0 | 16983 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16984 | return pyobj; |
16985 | } | |
16986 | ||
16987 | ||
c32bde28 | 16988 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
994141e6 | 16989 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
d14a1e28 RD |
16990 | return 1; |
16991 | } | |
16992 | ||
16993 | ||
994141e6 | 16994 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16995 | PyObject *pyobj; |
16996 | ||
15afbcd0 | 16997 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16998 | return pyobj; |
16999 | } | |
17000 | ||
17001 | ||
c32bde28 | 17002 | static int _wrap_RED_BRUSH_set(PyObject *) { |
994141e6 | 17003 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
d14a1e28 RD |
17004 | return 1; |
17005 | } | |
17006 | ||
17007 | ||
994141e6 | 17008 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
17009 | PyObject *pyobj; |
17010 | ||
15afbcd0 | 17011 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17012 | return pyobj; |
17013 | } | |
17014 | ||
17015 | ||
c32bde28 | 17016 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
994141e6 | 17017 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
d14a1e28 RD |
17018 | return 1; |
17019 | } | |
17020 | ||
17021 | ||
994141e6 | 17022 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
17023 | PyObject *pyobj; |
17024 | ||
15afbcd0 | 17025 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17026 | return pyobj; |
17027 | } | |
17028 | ||
17029 | ||
c32bde28 | 17030 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
994141e6 | 17031 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17032 | return 1; |
17033 | } | |
17034 | ||
17035 | ||
994141e6 | 17036 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
17037 | PyObject *pyobj; |
17038 | ||
15afbcd0 | 17039 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17040 | return pyobj; |
17041 | } | |
17042 | ||
17043 | ||
c32bde28 | 17044 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
994141e6 | 17045 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17046 | return 1; |
17047 | } | |
17048 | ||
17049 | ||
994141e6 | 17050 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
17051 | PyObject *pyobj; |
17052 | ||
15afbcd0 | 17053 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17054 | return pyobj; |
17055 | } | |
17056 | ||
17057 | ||
c32bde28 | 17058 | static int _wrap_BLACK_set(PyObject *) { |
994141e6 | 17059 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
d14a1e28 RD |
17060 | return 1; |
17061 | } | |
17062 | ||
17063 | ||
994141e6 | 17064 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
17065 | PyObject *pyobj; |
17066 | ||
15afbcd0 | 17067 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17068 | return pyobj; |
17069 | } | |
17070 | ||
17071 | ||
c32bde28 | 17072 | static int _wrap_WHITE_set(PyObject *) { |
994141e6 | 17073 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
d14a1e28 RD |
17074 | return 1; |
17075 | } | |
17076 | ||
17077 | ||
994141e6 | 17078 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
17079 | PyObject *pyobj; |
17080 | ||
15afbcd0 | 17081 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17082 | return pyobj; |
17083 | } | |
17084 | ||
17085 | ||
c32bde28 | 17086 | static int _wrap_RED_set(PyObject *) { |
994141e6 | 17087 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
d14a1e28 RD |
17088 | return 1; |
17089 | } | |
17090 | ||
17091 | ||
994141e6 | 17092 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
17093 | PyObject *pyobj; |
17094 | ||
15afbcd0 | 17095 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17096 | return pyobj; |
17097 | } | |
17098 | ||
17099 | ||
c32bde28 | 17100 | static int _wrap_BLUE_set(PyObject *) { |
994141e6 | 17101 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
d14a1e28 RD |
17102 | return 1; |
17103 | } | |
17104 | ||
17105 | ||
994141e6 | 17106 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
17107 | PyObject *pyobj; |
17108 | ||
15afbcd0 | 17109 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17110 | return pyobj; |
17111 | } | |
17112 | ||
17113 | ||
c32bde28 | 17114 | static int _wrap_GREEN_set(PyObject *) { |
994141e6 | 17115 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
d14a1e28 RD |
17116 | return 1; |
17117 | } | |
17118 | ||
17119 | ||
994141e6 | 17120 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
17121 | PyObject *pyobj; |
17122 | ||
15afbcd0 | 17123 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17124 | return pyobj; |
17125 | } | |
17126 | ||
17127 | ||
c32bde28 | 17128 | static int _wrap_CYAN_set(PyObject *) { |
994141e6 | 17129 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
d14a1e28 RD |
17130 | return 1; |
17131 | } | |
17132 | ||
17133 | ||
994141e6 | 17134 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
17135 | PyObject *pyobj; |
17136 | ||
15afbcd0 | 17137 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17138 | return pyobj; |
17139 | } | |
17140 | ||
17141 | ||
c32bde28 | 17142 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
994141e6 | 17143 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
d14a1e28 RD |
17144 | return 1; |
17145 | } | |
17146 | ||
17147 | ||
994141e6 | 17148 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
17149 | PyObject *pyobj; |
17150 | ||
15afbcd0 | 17151 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17152 | return pyobj; |
17153 | } | |
17154 | ||
17155 | ||
c32bde28 | 17156 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
994141e6 | 17157 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
d14a1e28 RD |
17158 | return 1; |
17159 | } | |
17160 | ||
17161 | ||
994141e6 | 17162 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
17163 | PyObject *pyobj; |
17164 | ||
15afbcd0 | 17165 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17166 | return pyobj; |
17167 | } | |
17168 | ||
17169 | ||
c32bde28 | 17170 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
994141e6 | 17171 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
d14a1e28 RD |
17172 | return 1; |
17173 | } | |
17174 | ||
17175 | ||
994141e6 | 17176 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
17177 | PyObject *pyobj; |
17178 | ||
15afbcd0 | 17179 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17180 | return pyobj; |
17181 | } | |
17182 | ||
17183 | ||
c32bde28 | 17184 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
994141e6 | 17185 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
d14a1e28 RD |
17186 | return 1; |
17187 | } | |
17188 | ||
17189 | ||
994141e6 | 17190 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
17191 | PyObject *pyobj; |
17192 | ||
15afbcd0 | 17193 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17194 | return pyobj; |
17195 | } | |
17196 | ||
17197 | ||
c32bde28 | 17198 | static int _wrap_NullBitmap_set(PyObject *) { |
994141e6 | 17199 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
d14a1e28 RD |
17200 | return 1; |
17201 | } | |
17202 | ||
17203 | ||
994141e6 | 17204 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
17205 | PyObject *pyobj; |
17206 | ||
15afbcd0 | 17207 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
17208 | return pyobj; |
17209 | } | |
17210 | ||
17211 | ||
c32bde28 | 17212 | static int _wrap_NullIcon_set(PyObject *) { |
994141e6 | 17213 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
d14a1e28 RD |
17214 | return 1; |
17215 | } | |
17216 | ||
17217 | ||
994141e6 | 17218 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
17219 | PyObject *pyobj; |
17220 | ||
15afbcd0 | 17221 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
17222 | return pyobj; |
17223 | } | |
17224 | ||
17225 | ||
c32bde28 | 17226 | static int _wrap_NullCursor_set(PyObject *) { |
994141e6 | 17227 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
d14a1e28 RD |
17228 | return 1; |
17229 | } | |
17230 | ||
17231 | ||
994141e6 | 17232 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
17233 | PyObject *pyobj; |
17234 | ||
15afbcd0 | 17235 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17236 | return pyobj; |
17237 | } | |
17238 | ||
17239 | ||
c32bde28 | 17240 | static int _wrap_NullPen_set(PyObject *) { |
994141e6 | 17241 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
d14a1e28 RD |
17242 | return 1; |
17243 | } | |
17244 | ||
17245 | ||
994141e6 | 17246 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
17247 | PyObject *pyobj; |
17248 | ||
15afbcd0 | 17249 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
17250 | return pyobj; |
17251 | } | |
17252 | ||
17253 | ||
c32bde28 | 17254 | static int _wrap_NullBrush_set(PyObject *) { |
994141e6 | 17255 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
d14a1e28 RD |
17256 | return 1; |
17257 | } | |
17258 | ||
17259 | ||
994141e6 | 17260 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
17261 | PyObject *pyobj; |
17262 | ||
15afbcd0 | 17263 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17264 | return pyobj; |
17265 | } | |
17266 | ||
17267 | ||
c32bde28 | 17268 | static int _wrap_NullPalette_set(PyObject *) { |
994141e6 | 17269 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
d14a1e28 RD |
17270 | return 1; |
17271 | } | |
17272 | ||
17273 | ||
994141e6 | 17274 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
17275 | PyObject *pyobj; |
17276 | ||
15afbcd0 | 17277 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
17278 | return pyobj; |
17279 | } | |
17280 | ||
17281 | ||
c32bde28 | 17282 | static int _wrap_NullFont_set(PyObject *) { |
994141e6 | 17283 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
d14a1e28 RD |
17284 | return 1; |
17285 | } | |
17286 | ||
17287 | ||
994141e6 | 17288 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
17289 | PyObject *pyobj; |
17290 | ||
15afbcd0 | 17291 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
17292 | return pyobj; |
17293 | } | |
17294 | ||
17295 | ||
c32bde28 | 17296 | static int _wrap_NullColour_set(PyObject *) { |
994141e6 | 17297 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
d14a1e28 RD |
17298 | return 1; |
17299 | } | |
17300 | ||
17301 | ||
994141e6 | 17302 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
17303 | PyObject *pyobj; |
17304 | ||
15afbcd0 | 17305 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17306 | return pyobj; |
17307 | } | |
17308 | ||
17309 | ||
c32bde28 | 17310 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17311 | PyObject *resultobj; |
17312 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17313 | wxPen *arg2 = (wxPen *) 0 ; | |
17314 | PyObject * obj0 = 0 ; | |
17315 | PyObject * obj1 = 0 ; | |
17316 | char *kwnames[] = { | |
17317 | (char *) "self",(char *) "pen", NULL | |
17318 | }; | |
17319 | ||
17320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17325 | { |
17326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17327 | (arg1)->AddPen(arg2); | |
17328 | ||
17329 | wxPyEndAllowThreads(__tstate); | |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
17331 | } | |
17332 | Py_INCREF(Py_None); resultobj = Py_None; | |
17333 | return resultobj; | |
17334 | fail: | |
17335 | return NULL; | |
d14a1e28 RD |
17336 | } |
17337 | ||
17338 | ||
c32bde28 | 17339 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17340 | PyObject *resultobj; |
17341 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17342 | wxColour *arg2 = 0 ; | |
17343 | int arg3 ; | |
17344 | int arg4 ; | |
17345 | wxPen *result; | |
17346 | wxColour temp2 ; | |
17347 | PyObject * obj0 = 0 ; | |
17348 | PyObject * obj1 = 0 ; | |
17349 | PyObject * obj2 = 0 ; | |
17350 | PyObject * obj3 = 0 ; | |
17351 | char *kwnames[] = { | |
17352 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17353 | }; | |
d14a1e28 | 17354 | |
994141e6 | 17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17358 | { |
17359 | arg2 = &temp2; | |
17360 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17361 | } | |
c32bde28 | 17362 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17363 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17364 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17365 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17366 | { |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
15afbcd0 | 17373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
17374 | return resultobj; |
17375 | fail: | |
17376 | return NULL; | |
d14a1e28 RD |
17377 | } |
17378 | ||
17379 | ||
c32bde28 | 17380 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17381 | PyObject *resultobj; |
17382 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17383 | wxPen *arg2 = (wxPen *) 0 ; | |
17384 | PyObject * obj0 = 0 ; | |
17385 | PyObject * obj1 = 0 ; | |
17386 | char *kwnames[] = { | |
17387 | (char *) "self",(char *) "pen", NULL | |
17388 | }; | |
17389 | ||
17390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17393 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17395 | { |
17396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17397 | (arg1)->RemovePen(arg2); | |
17398 | ||
17399 | wxPyEndAllowThreads(__tstate); | |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
17401 | } | |
17402 | Py_INCREF(Py_None); resultobj = Py_None; | |
17403 | return resultobj; | |
17404 | fail: | |
17405 | return NULL; | |
d14a1e28 RD |
17406 | } |
17407 | ||
17408 | ||
c32bde28 | 17409 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17410 | PyObject *resultobj; |
17411 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17412 | int result; | |
17413 | PyObject * obj0 = 0 ; | |
17414 | char *kwnames[] = { | |
17415 | (char *) "self", NULL | |
17416 | }; | |
d14a1e28 | 17417 | |
994141e6 | 17418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17421 | { |
17422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17423 | result = (int)(arg1)->GetCount(); | |
17424 | ||
17425 | wxPyEndAllowThreads(__tstate); | |
17426 | if (PyErr_Occurred()) SWIG_fail; | |
17427 | } | |
c32bde28 | 17428 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17429 | return resultobj; |
17430 | fail: | |
17431 | return NULL; | |
d14a1e28 RD |
17432 | } |
17433 | ||
17434 | ||
c32bde28 | 17435 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17436 | PyObject *obj; |
17437 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17438 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17439 | Py_INCREF(obj); | |
17440 | return Py_BuildValue((char *)""); | |
17441 | } | |
c32bde28 | 17442 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17443 | PyObject *resultobj; |
17444 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17445 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17446 | PyObject * obj0 = 0 ; | |
17447 | PyObject * obj1 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self",(char *) "brush", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17457 | { |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | (arg1)->AddBrush(arg2); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | Py_INCREF(Py_None); resultobj = Py_None; | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
c32bde28 | 17471 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17472 | PyObject *resultobj; |
17473 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17474 | wxColour *arg2 = 0 ; | |
17475 | int arg3 ; | |
17476 | wxBrush *result; | |
17477 | wxColour temp2 ; | |
17478 | PyObject * obj0 = 0 ; | |
17479 | PyObject * obj1 = 0 ; | |
17480 | PyObject * obj2 = 0 ; | |
17481 | char *kwnames[] = { | |
17482 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17483 | }; | |
17484 | ||
17485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17488 | { |
17489 | arg2 = &temp2; | |
17490 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17491 | } | |
c32bde28 | 17492 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17493 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17494 | { |
17495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17496 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17497 | ||
17498 | wxPyEndAllowThreads(__tstate); | |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
17500 | } | |
15afbcd0 | 17501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
17502 | return resultobj; |
17503 | fail: | |
17504 | return NULL; | |
d14a1e28 RD |
17505 | } |
17506 | ||
17507 | ||
c32bde28 | 17508 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17509 | PyObject *resultobj; |
17510 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17511 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17512 | PyObject * obj0 = 0 ; | |
17513 | PyObject * obj1 = 0 ; | |
17514 | char *kwnames[] = { | |
17515 | (char *) "self",(char *) "brush", NULL | |
17516 | }; | |
d14a1e28 | 17517 | |
994141e6 | 17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | (arg1)->RemoveBrush(arg2); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | Py_INCREF(Py_None); resultobj = Py_None; | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
d14a1e28 RD |
17534 | } |
17535 | ||
17536 | ||
c32bde28 | 17537 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17538 | PyObject *resultobj; |
17539 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17540 | int result; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | char *kwnames[] = { | |
17543 | (char *) "self", NULL | |
17544 | }; | |
d14a1e28 | 17545 | |
994141e6 | 17546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17549 | { |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = (int)(arg1)->GetCount(); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
c32bde28 | 17556 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17557 | return resultobj; |
17558 | fail: | |
17559 | return NULL; | |
d14a1e28 RD |
17560 | } |
17561 | ||
17562 | ||
c32bde28 | 17563 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17564 | PyObject *obj; |
17565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17566 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17567 | Py_INCREF(obj); | |
17568 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17569 | } |
c32bde28 | 17570 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17571 | PyObject *resultobj; |
17572 | wxColourDatabase *result; | |
17573 | char *kwnames[] = { | |
17574 | NULL | |
17575 | }; | |
d14a1e28 | 17576 | |
994141e6 RD |
17577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
17578 | { | |
e3b71cb8 | 17579 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17581 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17584 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17585 | } |
15afbcd0 | 17586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
17587 | return resultobj; |
17588 | fail: | |
17589 | return NULL; | |
d14a1e28 RD |
17590 | } |
17591 | ||
17592 | ||
c32bde28 | 17593 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17594 | PyObject *resultobj; |
17595 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17596 | PyObject * obj0 = 0 ; | |
17597 | char *kwnames[] = { | |
17598 | (char *) "self", NULL | |
17599 | }; | |
d14a1e28 | 17600 | |
994141e6 | 17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17604 | { |
17605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17606 | delete arg1; | |
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; | |
d14a1e28 RD |
17615 | } |
17616 | ||
17617 | ||
c32bde28 | 17618 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17619 | PyObject *resultobj; |
17620 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17621 | wxString *arg2 = 0 ; | |
17622 | wxColour result; | |
ae8162c8 | 17623 | bool temp2 = false ; |
994141e6 RD |
17624 | PyObject * obj0 = 0 ; |
17625 | PyObject * obj1 = 0 ; | |
17626 | char *kwnames[] = { | |
17627 | (char *) "self",(char *) "name", NULL | |
17628 | }; | |
17629 | ||
17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17633 | { |
17634 | arg2 = wxString_in_helper(obj1); | |
17635 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17636 | temp2 = true; |
994141e6 RD |
17637 | } |
17638 | { | |
17639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17640 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17641 | ||
17642 | wxPyEndAllowThreads(__tstate); | |
17643 | if (PyErr_Occurred()) SWIG_fail; | |
17644 | } | |
17645 | { | |
17646 | wxColour * resultptr; | |
17647 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
17649 | } |
17650 | { | |
17651 | if (temp2) | |
17652 | delete arg2; | |
17653 | } | |
17654 | return resultobj; | |
17655 | fail: | |
17656 | { | |
17657 | if (temp2) | |
17658 | delete arg2; | |
17659 | } | |
17660 | return NULL; | |
d14a1e28 RD |
17661 | } |
17662 | ||
17663 | ||
c32bde28 | 17664 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17665 | PyObject *resultobj; |
17666 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17667 | wxColour *arg2 = 0 ; | |
17668 | wxString result; | |
17669 | wxColour temp2 ; | |
17670 | PyObject * obj0 = 0 ; | |
17671 | PyObject * obj1 = 0 ; | |
17672 | char *kwnames[] = { | |
17673 | (char *) "self",(char *) "colour", NULL | |
17674 | }; | |
d14a1e28 | 17675 | |
994141e6 | 17676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17679 | { |
17680 | arg2 = &temp2; | |
17681 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17682 | } | |
17683 | { | |
17684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17685 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17686 | ||
17687 | wxPyEndAllowThreads(__tstate); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
17690 | { | |
17691 | #if wxUSE_UNICODE | |
17692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17693 | #else | |
17694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17695 | #endif | |
17696 | } | |
17697 | return resultobj; | |
17698 | fail: | |
17699 | return NULL; | |
d14a1e28 RD |
17700 | } |
17701 | ||
17702 | ||
c32bde28 | 17703 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17704 | PyObject *resultobj; |
17705 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17706 | wxString *arg2 = 0 ; | |
17707 | wxColour *arg3 = 0 ; | |
ae8162c8 | 17708 | bool temp2 = false ; |
994141e6 RD |
17709 | wxColour temp3 ; |
17710 | PyObject * obj0 = 0 ; | |
17711 | PyObject * obj1 = 0 ; | |
17712 | PyObject * obj2 = 0 ; | |
17713 | char *kwnames[] = { | |
17714 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17720 | { |
17721 | arg2 = wxString_in_helper(obj1); | |
17722 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17723 | temp2 = true; |
994141e6 RD |
17724 | } |
17725 | { | |
17726 | arg3 = &temp3; | |
17727 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17728 | } | |
17729 | { | |
17730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17731 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17732 | ||
17733 | wxPyEndAllowThreads(__tstate); | |
17734 | if (PyErr_Occurred()) SWIG_fail; | |
17735 | } | |
17736 | Py_INCREF(Py_None); resultobj = Py_None; | |
17737 | { | |
17738 | if (temp2) | |
17739 | delete arg2; | |
17740 | } | |
17741 | return resultobj; | |
17742 | fail: | |
17743 | { | |
17744 | if (temp2) | |
17745 | delete arg2; | |
17746 | } | |
17747 | return NULL; | |
d14a1e28 RD |
17748 | } |
17749 | ||
17750 | ||
c32bde28 | 17751 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17752 | PyObject *resultobj; |
17753 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17754 | wxString *arg2 = 0 ; | |
17755 | int arg3 ; | |
17756 | int arg4 ; | |
17757 | int arg5 ; | |
ae8162c8 | 17758 | bool temp2 = false ; |
994141e6 RD |
17759 | PyObject * obj0 = 0 ; |
17760 | PyObject * obj1 = 0 ; | |
17761 | PyObject * obj2 = 0 ; | |
17762 | PyObject * obj3 = 0 ; | |
17763 | PyObject * obj4 = 0 ; | |
17764 | char *kwnames[] = { | |
17765 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17766 | }; | |
d14a1e28 | 17767 | |
994141e6 | 17768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17771 | { |
17772 | arg2 = wxString_in_helper(obj1); | |
17773 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17774 | temp2 = true; |
994141e6 | 17775 | } |
c32bde28 | 17776 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17777 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17778 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17779 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17780 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 17781 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17782 | { |
17783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17784 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17785 | ||
17786 | wxPyEndAllowThreads(__tstate); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | } | |
17789 | Py_INCREF(Py_None); resultobj = Py_None; | |
17790 | { | |
17791 | if (temp2) | |
17792 | delete arg2; | |
17793 | } | |
17794 | return resultobj; | |
17795 | fail: | |
17796 | { | |
17797 | if (temp2) | |
17798 | delete arg2; | |
17799 | } | |
17800 | return NULL; | |
d14a1e28 RD |
17801 | } |
17802 | ||
17803 | ||
c32bde28 | 17804 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17805 | PyObject *obj; |
17806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17807 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17808 | Py_INCREF(obj); | |
17809 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17810 | } |
c32bde28 | 17811 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17812 | PyObject *resultobj; |
17813 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17814 | wxFont *arg2 = (wxFont *) 0 ; | |
17815 | PyObject * obj0 = 0 ; | |
17816 | PyObject * obj1 = 0 ; | |
17817 | char *kwnames[] = { | |
17818 | (char *) "self",(char *) "font", NULL | |
17819 | }; | |
d14a1e28 | 17820 | |
994141e6 | 17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17826 | { |
17827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17828 | (arg1)->AddFont(arg2); | |
17829 | ||
17830 | wxPyEndAllowThreads(__tstate); | |
17831 | if (PyErr_Occurred()) SWIG_fail; | |
17832 | } | |
17833 | Py_INCREF(Py_None); resultobj = Py_None; | |
17834 | return resultobj; | |
17835 | fail: | |
17836 | return NULL; | |
d14a1e28 RD |
17837 | } |
17838 | ||
17839 | ||
c32bde28 | 17840 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17841 | PyObject *resultobj; |
17842 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17843 | int arg2 ; | |
17844 | int arg3 ; | |
17845 | int arg4 ; | |
17846 | int arg5 ; | |
ae8162c8 | 17847 | bool arg6 = (bool) false ; |
994141e6 RD |
17848 | wxString const &arg7_defvalue = wxPyEmptyString ; |
17849 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17850 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17851 | wxFont *result; | |
ae8162c8 | 17852 | bool temp7 = false ; |
994141e6 RD |
17853 | PyObject * obj0 = 0 ; |
17854 | PyObject * obj1 = 0 ; | |
17855 | PyObject * obj2 = 0 ; | |
17856 | PyObject * obj3 = 0 ; | |
17857 | PyObject * obj4 = 0 ; | |
17858 | PyObject * obj5 = 0 ; | |
17859 | PyObject * obj6 = 0 ; | |
17860 | PyObject * obj7 = 0 ; | |
17861 | char *kwnames[] = { | |
17862 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17863 | }; | |
d14a1e28 | 17864 | |
994141e6 | 17865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17868 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17869 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17870 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17871 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17872 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17873 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17874 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 17875 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17876 | if (obj5) { |
c32bde28 | 17877 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 17878 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17879 | } |
17880 | if (obj6) { | |
17881 | { | |
17882 | arg7 = wxString_in_helper(obj6); | |
17883 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17884 | temp7 = true; |
994141e6 RD |
17885 | } |
17886 | } | |
17887 | if (obj7) { | |
c32bde28 | 17888 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 17889 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17890 | } |
17891 | { | |
17892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17893 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17894 | ||
17895 | wxPyEndAllowThreads(__tstate); | |
17896 | if (PyErr_Occurred()) SWIG_fail; | |
17897 | } | |
15afbcd0 | 17898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
17899 | { |
17900 | if (temp7) | |
17901 | delete arg7; | |
17902 | } | |
17903 | return resultobj; | |
17904 | fail: | |
17905 | { | |
17906 | if (temp7) | |
17907 | delete arg7; | |
17908 | } | |
17909 | return NULL; | |
d14a1e28 RD |
17910 | } |
17911 | ||
17912 | ||
c32bde28 | 17913 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17914 | PyObject *resultobj; |
17915 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17916 | wxFont *arg2 = (wxFont *) 0 ; | |
17917 | PyObject * obj0 = 0 ; | |
17918 | PyObject * obj1 = 0 ; | |
17919 | char *kwnames[] = { | |
17920 | (char *) "self",(char *) "font", NULL | |
17921 | }; | |
d14a1e28 | 17922 | |
994141e6 | 17923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17928 | { |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17930 | (arg1)->RemoveFont(arg2); | |
17931 | ||
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | Py_INCREF(Py_None); resultobj = Py_None; | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
d14a1e28 RD |
17939 | } |
17940 | ||
17941 | ||
c32bde28 | 17942 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17943 | PyObject *resultobj; |
17944 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17945 | int result; | |
17946 | PyObject * obj0 = 0 ; | |
17947 | char *kwnames[] = { | |
17948 | (char *) "self", NULL | |
17949 | }; | |
d14a1e28 | 17950 | |
994141e6 | 17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17954 | { |
17955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17956 | result = (int)(arg1)->GetCount(); | |
17957 | ||
17958 | wxPyEndAllowThreads(__tstate); | |
17959 | if (PyErr_Occurred()) SWIG_fail; | |
17960 | } | |
c32bde28 | 17961 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17962 | return resultobj; |
17963 | fail: | |
17964 | return NULL; | |
d14a1e28 RD |
17965 | } |
17966 | ||
17967 | ||
c32bde28 | 17968 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17969 | PyObject *obj; |
17970 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17971 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17972 | Py_INCREF(obj); | |
17973 | return Py_BuildValue((char *)""); | |
17974 | } | |
c32bde28 | 17975 | static int _wrap_TheFontList_set(PyObject *) { |
d14a1e28 RD |
17976 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
17977 | return 1; | |
17978 | } | |
17979 | ||
17980 | ||
17981 | static PyObject *_wrap_TheFontList_get() { | |
17982 | PyObject *pyobj; | |
17983 | ||
15afbcd0 | 17984 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
17985 | return pyobj; |
17986 | } | |
17987 | ||
17988 | ||
c32bde28 | 17989 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
17990 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
17991 | return 1; | |
17992 | } | |
17993 | ||
17994 | ||
17995 | static PyObject *_wrap_ThePenList_get() { | |
17996 | PyObject *pyobj; | |
17997 | ||
15afbcd0 | 17998 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
17999 | return pyobj; |
18000 | } | |
18001 | ||
18002 | ||
c32bde28 | 18003 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
18004 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18005 | return 1; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_TheBrushList_get() { | |
18010 | PyObject *pyobj; | |
18011 | ||
15afbcd0 | 18012 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
18013 | return pyobj; |
18014 | } | |
18015 | ||
18016 | ||
c32bde28 | 18017 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
18018 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18019 | return 1; | |
18020 | } | |
18021 | ||
18022 | ||
18023 | static PyObject *_wrap_TheColourDatabase_get() { | |
18024 | PyObject *pyobj; | |
18025 | ||
15afbcd0 | 18026 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
18027 | return pyobj; |
18028 | } | |
18029 | ||
18030 | ||
c32bde28 | 18031 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18032 | PyObject *resultobj; |
e811c8ce | 18033 | wxEffects *result; |
d14a1e28 | 18034 | char *kwnames[] = { |
e811c8ce | 18035 | NULL |
d14a1e28 RD |
18036 | }; |
18037 | ||
e811c8ce | 18038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
18039 | { |
18040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18041 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
18042 | |
18043 | wxPyEndAllowThreads(__tstate); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
15afbcd0 | 18046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
18047 | return resultobj; |
18048 | fail: | |
18049 | return NULL; | |
18050 | } | |
18051 | ||
18052 | ||
c32bde28 | 18053 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18054 | PyObject *resultobj; |
e811c8ce RD |
18055 | wxEffects *arg1 = (wxEffects *) 0 ; |
18056 | wxColour result; | |
d14a1e28 | 18057 | PyObject * obj0 = 0 ; |
d14a1e28 | 18058 | char *kwnames[] = { |
e811c8ce | 18059 | (char *) "self", NULL |
d14a1e28 RD |
18060 | }; |
18061 | ||
e811c8ce | 18062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18065 | { |
18066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18067 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
18068 | |
18069 | wxPyEndAllowThreads(__tstate); | |
18070 | if (PyErr_Occurred()) SWIG_fail; | |
18071 | } | |
e811c8ce RD |
18072 | { |
18073 | wxColour * resultptr; | |
18074 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18075 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 18076 | } |
d14a1e28 RD |
18077 | return resultobj; |
18078 | fail: | |
18079 | return NULL; | |
18080 | } | |
18081 | ||
18082 | ||
c32bde28 | 18083 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18084 | PyObject *resultobj; |
e811c8ce RD |
18085 | wxEffects *arg1 = (wxEffects *) 0 ; |
18086 | wxColour result; | |
d14a1e28 | 18087 | PyObject * obj0 = 0 ; |
d14a1e28 | 18088 | char *kwnames[] = { |
e811c8ce | 18089 | (char *) "self", NULL |
d14a1e28 RD |
18090 | }; |
18091 | ||
e811c8ce | 18092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18095 | { |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18097 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
18098 | |
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
d14a1e28 | 18102 | { |
e811c8ce RD |
18103 | wxColour * resultptr; |
18104 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18106 | } |
18107 | return resultobj; | |
18108 | fail: | |
d14a1e28 RD |
18109 | return NULL; |
18110 | } | |
18111 | ||
18112 | ||
c32bde28 | 18113 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18114 | PyObject *resultobj; |
e811c8ce RD |
18115 | wxEffects *arg1 = (wxEffects *) 0 ; |
18116 | wxColour result; | |
d14a1e28 | 18117 | PyObject * obj0 = 0 ; |
d14a1e28 | 18118 | char *kwnames[] = { |
e811c8ce | 18119 | (char *) "self", NULL |
d14a1e28 RD |
18120 | }; |
18121 | ||
e811c8ce | 18122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18125 | { |
18126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18127 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
18128 | |
18129 | wxPyEndAllowThreads(__tstate); | |
18130 | if (PyErr_Occurred()) SWIG_fail; | |
18131 | } | |
e811c8ce RD |
18132 | { |
18133 | wxColour * resultptr; | |
18134 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18135 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 18136 | } |
d14a1e28 RD |
18137 | return resultobj; |
18138 | fail: | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
c32bde28 | 18143 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18144 | PyObject *resultobj; |
e811c8ce RD |
18145 | wxEffects *arg1 = (wxEffects *) 0 ; |
18146 | wxColour result; | |
d14a1e28 RD |
18147 | PyObject * obj0 = 0 ; |
18148 | char *kwnames[] = { | |
e811c8ce | 18149 | (char *) "self", NULL |
d14a1e28 RD |
18150 | }; |
18151 | ||
18152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18155 | { |
18156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18157 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18158 | ||
18159 | wxPyEndAllowThreads(__tstate); | |
18160 | if (PyErr_Occurred()) SWIG_fail; | |
18161 | } | |
18162 | { | |
18163 | wxColour * resultptr; | |
18164 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18166 | } |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
c32bde28 | 18173 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18174 | PyObject *resultobj; |
18175 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18176 | wxColour result; | |
18177 | PyObject * obj0 = 0 ; | |
18178 | char *kwnames[] = { | |
18179 | (char *) "self", NULL | |
18180 | }; | |
18181 | ||
18182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18185 | { |
18186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18187 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18188 | ||
18189 | wxPyEndAllowThreads(__tstate); | |
18190 | if (PyErr_Occurred()) SWIG_fail; | |
18191 | } | |
18192 | { | |
18193 | wxColour * resultptr; | |
18194 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18195 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18196 | } |
18197 | return resultobj; | |
18198 | fail: | |
18199 | return NULL; | |
18200 | } | |
18201 | ||
18202 | ||
c32bde28 | 18203 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18204 | PyObject *resultobj; |
18205 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18206 | wxColour *arg2 = 0 ; | |
18207 | wxColour temp2 ; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | PyObject * obj1 = 0 ; | |
18210 | char *kwnames[] = { | |
18211 | (char *) "self",(char *) "c", NULL | |
18212 | }; | |
18213 | ||
18214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18217 | { |
18218 | arg2 = &temp2; | |
18219 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18220 | } | |
18221 | { | |
18222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18223 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18224 | ||
18225 | wxPyEndAllowThreads(__tstate); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | Py_INCREF(Py_None); resultobj = Py_None; | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
c32bde28 | 18235 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18236 | PyObject *resultobj; |
18237 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18238 | wxColour *arg2 = 0 ; | |
18239 | wxColour temp2 ; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | PyObject * obj1 = 0 ; | |
18242 | char *kwnames[] = { | |
18243 | (char *) "self",(char *) "c", NULL | |
18244 | }; | |
18245 | ||
18246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18249 | { |
18250 | arg2 = &temp2; | |
18251 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18252 | } | |
18253 | { | |
18254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18255 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18256 | ||
18257 | wxPyEndAllowThreads(__tstate); | |
18258 | if (PyErr_Occurred()) SWIG_fail; | |
18259 | } | |
18260 | Py_INCREF(Py_None); resultobj = Py_None; | |
18261 | return resultobj; | |
18262 | fail: | |
18263 | return NULL; | |
18264 | } | |
18265 | ||
18266 | ||
c32bde28 | 18267 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18268 | PyObject *resultobj; |
18269 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18270 | wxColour *arg2 = 0 ; | |
18271 | wxColour temp2 ; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | PyObject * obj1 = 0 ; | |
18274 | char *kwnames[] = { | |
18275 | (char *) "self",(char *) "c", NULL | |
18276 | }; | |
18277 | ||
18278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18281 | { |
18282 | arg2 = &temp2; | |
18283 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18284 | } | |
18285 | { | |
18286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18287 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18288 | ||
18289 | wxPyEndAllowThreads(__tstate); | |
18290 | if (PyErr_Occurred()) SWIG_fail; | |
18291 | } | |
18292 | Py_INCREF(Py_None); resultobj = Py_None; | |
18293 | return resultobj; | |
18294 | fail: | |
18295 | return NULL; | |
18296 | } | |
18297 | ||
18298 | ||
c32bde28 | 18299 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18300 | PyObject *resultobj; |
18301 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18302 | wxColour *arg2 = 0 ; | |
18303 | wxColour temp2 ; | |
18304 | PyObject * obj0 = 0 ; | |
18305 | PyObject * obj1 = 0 ; | |
18306 | char *kwnames[] = { | |
18307 | (char *) "self",(char *) "c", NULL | |
18308 | }; | |
18309 | ||
18310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18313 | { |
18314 | arg2 = &temp2; | |
18315 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18316 | } | |
18317 | { | |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18320 | ||
18321 | wxPyEndAllowThreads(__tstate); | |
18322 | if (PyErr_Occurred()) SWIG_fail; | |
18323 | } | |
18324 | Py_INCREF(Py_None); resultobj = Py_None; | |
18325 | return resultobj; | |
18326 | fail: | |
18327 | return NULL; | |
18328 | } | |
18329 | ||
18330 | ||
c32bde28 | 18331 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18332 | PyObject *resultobj; |
18333 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18334 | wxColour *arg2 = 0 ; | |
18335 | wxColour temp2 ; | |
18336 | PyObject * obj0 = 0 ; | |
18337 | PyObject * obj1 = 0 ; | |
18338 | char *kwnames[] = { | |
18339 | (char *) "self",(char *) "c", NULL | |
18340 | }; | |
18341 | ||
18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18345 | { |
18346 | arg2 = &temp2; | |
18347 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18348 | } | |
18349 | { | |
18350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18351 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18352 | ||
18353 | wxPyEndAllowThreads(__tstate); | |
18354 | if (PyErr_Occurred()) SWIG_fail; | |
18355 | } | |
18356 | Py_INCREF(Py_None); resultobj = Py_None; | |
18357 | return resultobj; | |
18358 | fail: | |
18359 | return NULL; | |
18360 | } | |
18361 | ||
18362 | ||
c32bde28 | 18363 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18364 | PyObject *resultobj; |
18365 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18366 | wxColour *arg2 = 0 ; | |
18367 | wxColour *arg3 = 0 ; | |
18368 | wxColour *arg4 = 0 ; | |
18369 | wxColour *arg5 = 0 ; | |
18370 | wxColour *arg6 = 0 ; | |
18371 | wxColour temp2 ; | |
18372 | wxColour temp3 ; | |
18373 | wxColour temp4 ; | |
18374 | wxColour temp5 ; | |
18375 | wxColour temp6 ; | |
18376 | PyObject * obj0 = 0 ; | |
18377 | PyObject * obj1 = 0 ; | |
18378 | PyObject * obj2 = 0 ; | |
18379 | PyObject * obj3 = 0 ; | |
18380 | PyObject * obj4 = 0 ; | |
18381 | PyObject * obj5 = 0 ; | |
18382 | char *kwnames[] = { | |
18383 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18384 | }; | |
18385 | ||
18386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
18387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18389 | { |
18390 | arg2 = &temp2; | |
18391 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18392 | } | |
18393 | { | |
18394 | arg3 = &temp3; | |
18395 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18396 | } | |
18397 | { | |
18398 | arg4 = &temp4; | |
18399 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18400 | } | |
18401 | { | |
18402 | arg5 = &temp5; | |
18403 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18404 | } | |
18405 | { | |
18406 | arg6 = &temp6; | |
18407 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18408 | } | |
18409 | { | |
18410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18411 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18412 | ||
18413 | wxPyEndAllowThreads(__tstate); | |
18414 | if (PyErr_Occurred()) SWIG_fail; | |
18415 | } | |
18416 | Py_INCREF(Py_None); resultobj = Py_None; | |
18417 | return resultobj; | |
18418 | fail: | |
18419 | return NULL; | |
18420 | } | |
18421 | ||
18422 | ||
c32bde28 | 18423 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18424 | PyObject *resultobj; |
18425 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18426 | wxDC *arg2 = 0 ; | |
18427 | wxRect *arg3 = 0 ; | |
18428 | int arg4 = (int) 1 ; | |
18429 | wxRect temp3 ; | |
18430 | PyObject * obj0 = 0 ; | |
18431 | PyObject * obj1 = 0 ; | |
18432 | PyObject * obj2 = 0 ; | |
994141e6 | 18433 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
18434 | char *kwnames[] = { |
18435 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18436 | }; | |
18437 | ||
994141e6 | 18438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18443 | SWIG_fail; | |
d14a1e28 | 18444 | if (arg2 == NULL) { |
15afbcd0 RD |
18445 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18446 | SWIG_fail; | |
d14a1e28 RD |
18447 | } |
18448 | { | |
18449 | arg3 = &temp3; | |
18450 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18451 | } | |
994141e6 | 18452 | if (obj3) { |
c32bde28 | 18453 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 18454 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18455 | } |
d14a1e28 RD |
18456 | { |
18457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18458 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18459 | ||
18460 | wxPyEndAllowThreads(__tstate); | |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
18463 | Py_INCREF(Py_None); resultobj = Py_None; | |
18464 | return resultobj; | |
18465 | fail: | |
18466 | return NULL; | |
18467 | } | |
18468 | ||
18469 | ||
c32bde28 | 18470 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18471 | PyObject *resultobj; |
18472 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18473 | wxRect *arg2 = 0 ; | |
18474 | wxDC *arg3 = 0 ; | |
18475 | wxBitmap *arg4 = 0 ; | |
18476 | bool result; | |
18477 | wxRect temp2 ; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | PyObject * obj1 = 0 ; | |
18480 | PyObject * obj2 = 0 ; | |
18481 | PyObject * obj3 = 0 ; | |
18482 | char *kwnames[] = { | |
18483 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18484 | }; | |
18485 | ||
18486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
18487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18489 | { |
18490 | arg2 = &temp2; | |
18491 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18492 | } | |
15afbcd0 RD |
18493 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
18494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18495 | SWIG_fail; | |
d14a1e28 | 18496 | if (arg3 == NULL) { |
15afbcd0 RD |
18497 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18498 | SWIG_fail; | |
d14a1e28 | 18499 | } |
15afbcd0 RD |
18500 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18502 | SWIG_fail; | |
d14a1e28 | 18503 | if (arg4 == NULL) { |
15afbcd0 RD |
18504 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18505 | SWIG_fail; | |
d14a1e28 RD |
18506 | } |
18507 | { | |
18508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18509 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18510 | ||
18511 | wxPyEndAllowThreads(__tstate); | |
18512 | if (PyErr_Occurred()) SWIG_fail; | |
18513 | } | |
4f89f6a3 RD |
18514 | { |
18515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18516 | } | |
d14a1e28 RD |
18517 | return resultobj; |
18518 | fail: | |
18519 | return NULL; | |
18520 | } | |
18521 | ||
18522 | ||
c32bde28 | 18523 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18524 | PyObject *obj; |
18525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18526 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18527 | Py_INCREF(obj); | |
18528 | return Py_BuildValue((char *)""); | |
18529 | } | |
18530 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
18531 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
18532 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18533 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18534 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18535 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18536 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
18537 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18538 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18539 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18540 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18541 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18542 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18543 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18544 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18545 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18546 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18547 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18548 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18549 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18550 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18551 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18552 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18553 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
18554 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18555 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18556 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18557 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18558 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18559 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
18560 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18561 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18562 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18563 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18564 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18565 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18566 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18567 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18568 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18569 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18570 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18571 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18572 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18573 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18574 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18575 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18576 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18577 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18578 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18579 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
18580 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18581 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18582 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18583 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18584 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18585 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18586 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18587 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18588 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18589 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
18590 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18591 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18592 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18593 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18594 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18595 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18596 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18597 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18598 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18599 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18600 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18601 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18602 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18603 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18604 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18605 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18606 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18607 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18608 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
d3b6e4ff | 18609 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18610 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, |
18611 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18612 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18613 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18614 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18615 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18616 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18617 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
18618 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18619 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
18620 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18621 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18622 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18623 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18624 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18625 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18626 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18627 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18628 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18629 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18630 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18631 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18632 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18633 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18634 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18635 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
18636 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18637 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18638 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18639 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18640 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18641 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18642 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18643 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
18644 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18645 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18646 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18647 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18648 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18649 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18650 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18651 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
18652 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18653 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18654 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18655 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18656 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18657 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
18658 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18659 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18660 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18661 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18662 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18663 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18664 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18665 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18666 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18667 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18668 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18669 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18670 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18671 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18672 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18673 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18674 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18675 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18676 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18677 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18678 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18679 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18680 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18681 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18682 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18683 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18684 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18685 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18686 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
18687 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18688 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18689 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18690 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18691 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18692 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18693 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18694 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18695 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18696 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18697 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18698 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18699 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18700 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
18701 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18702 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18703 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18704 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18705 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18706 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18707 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18708 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18709 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18710 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18711 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18712 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18713 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18714 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18715 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18716 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18717 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18718 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18719 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18720 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18721 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18722 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18723 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18724 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
18725 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18726 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18727 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18728 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18729 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18730 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18731 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18732 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18733 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
18734 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18735 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18736 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18737 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18738 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18739 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18740 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18741 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18742 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18743 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18744 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18745 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18746 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18747 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18748 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18749 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18750 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18751 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18752 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18753 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
18754 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18755 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18756 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18757 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18758 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 | 18759 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18760 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
18761 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18762 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18763 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 RD |
18764 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
18765 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
18766 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
18767 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18768 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18769 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18770 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18771 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18772 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18773 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18774 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18775 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18776 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 | 18777 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18778 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
18779 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18780 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18781 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18782 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18783 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18784 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18785 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18786 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18787 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18788 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18789 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18790 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18791 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18792 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18793 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18794 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
18795 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18796 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18797 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18798 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18799 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18800 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18801 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18802 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
18803 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18804 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18805 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18806 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18807 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18808 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18809 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
18810 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18811 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18812 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18813 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18814 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18815 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18816 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18817 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18818 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18819 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18820 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18821 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18822 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18823 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18824 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18825 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18826 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18827 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18828 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18829 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18830 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18831 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
18832 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18833 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
18834 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18835 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18836 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18837 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18838 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18839 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18840 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18841 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
18842 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18843 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18844 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18845 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18846 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18847 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18848 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18849 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18850 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18851 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18852 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18853 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18854 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18855 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18856 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18857 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18858 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18859 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18860 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18861 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18862 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18863 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18864 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18865 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18866 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18867 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18868 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18869 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18870 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18871 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18872 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18873 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18874 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18875 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18876 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18877 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18878 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18879 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18880 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18881 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18882 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18883 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18884 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18885 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18886 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18887 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18888 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18889 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18890 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18891 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18892 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18893 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18894 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18895 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18896 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18897 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18898 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18899 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18900 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18901 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18902 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18903 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18904 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18905 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18906 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18907 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18908 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18909 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18910 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18911 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18912 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18913 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18914 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18915 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18916 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18917 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18918 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18919 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18920 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18921 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18922 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18923 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18924 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18925 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18926 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18927 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18928 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18929 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18930 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18931 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18932 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18933 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18934 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18935 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18936 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18937 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18938 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18939 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18940 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18941 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18942 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18943 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18944 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18945 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18946 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18947 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18948 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18949 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18950 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18951 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18952 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18953 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18954 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18955 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18956 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18957 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18958 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18959 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18960 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18961 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18962 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18963 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18964 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18965 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18966 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18967 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18968 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18969 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18970 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
18971 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18972 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18973 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18974 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
18975 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
18976 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18977 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18978 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
18979 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18980 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
18981 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18982 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18983 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18984 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18985 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
18986 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18987 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
18988 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18989 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
18990 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18991 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
18992 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18993 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
18994 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18995 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18996 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18997 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18998 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18999 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
19000 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19001 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
19002 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19003 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
19004 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19005 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
19006 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19007 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19008 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19009 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19010 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19011 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19012 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19013 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19014 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19015 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19016 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19017 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
19018 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19019 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19020 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19021 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19022 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
19023 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19024 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19025 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19026 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19027 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19028 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19029 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19030 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19031 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19032 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19033 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19034 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19035 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19036 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19037 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19038 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19039 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19040 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19041 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19042 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19043 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19044 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19045 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19046 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19047 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19048 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19049 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19050 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19051 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19052 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19053 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19054 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19055 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
19056 | }; |
19057 | ||
19058 | ||
19059 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19060 | ||
e811c8ce RD |
19061 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
19062 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19063 | } | |
19064 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19065 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19066 | } | |
19067 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19068 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19069 | } | |
d14a1e28 RD |
19070 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
19071 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19072 | } | |
19073 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19074 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19075 | } | |
d14a1e28 RD |
19076 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
19077 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19078 | } | |
19079 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19080 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19081 | } | |
19082 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19083 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19084 | } | |
19085 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19086 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19087 | } | |
19088 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19089 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19090 | } | |
19091 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19092 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19093 | } | |
19094 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19095 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19096 | } | |
19097 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19098 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19099 | } | |
19100 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19101 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19102 | } | |
19103 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19104 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19105 | } | |
19106 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19107 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19108 | } | |
19109 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19110 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19111 | } | |
19112 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19113 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19114 | } | |
19115 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19116 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19117 | } | |
19118 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19119 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19120 | } | |
19121 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19122 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19123 | } | |
19124 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19125 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19126 | } | |
19127 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19128 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19129 | } | |
19130 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19131 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19132 | } | |
19133 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19134 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19135 | } | |
19136 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19137 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19138 | } | |
19139 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19140 | return (void *)((wxObject *) ((wxDC *) x)); | |
19141 | } | |
19142 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19143 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19144 | } | |
19145 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19146 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19147 | } | |
19148 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19149 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19150 | } | |
19151 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19152 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19153 | } | |
19154 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19155 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19156 | } | |
19157 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19158 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19159 | } | |
19160 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19161 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19162 | } | |
19163 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19164 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19165 | } | |
19166 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19167 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19168 | } | |
19169 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19170 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19171 | } | |
19172 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19173 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19174 | } | |
19175 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19176 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19177 | } | |
19178 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19179 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19180 | } | |
19181 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19182 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19183 | } | |
19184 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19185 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19186 | } | |
19187 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19188 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19189 | } | |
19190 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19191 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19192 | } | |
19193 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19194 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19195 | } | |
19196 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19197 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19198 | } | |
19199 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19200 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19201 | } | |
19202 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19203 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19204 | } | |
19205 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19206 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19207 | } | |
19208 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19209 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19210 | } | |
19211 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19212 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19213 | } | |
19214 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19215 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19216 | } | |
19217 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19218 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19219 | } | |
19220 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19221 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19222 | } | |
19223 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19224 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19225 | } | |
19226 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19227 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19228 | } | |
19229 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19230 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19231 | } | |
19232 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19233 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19234 | } | |
19235 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19236 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19237 | } | |
19238 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19239 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19240 | } | |
19241 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19242 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19243 | } | |
19244 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19245 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19246 | } | |
19247 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19248 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19249 | } | |
19250 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19251 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19252 | } | |
19253 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19254 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19255 | } | |
19256 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19257 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19258 | } | |
19259 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19260 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19261 | } | |
19262 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19263 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19264 | } | |
19265 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19266 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19267 | } | |
19268 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19269 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19270 | } | |
19271 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19272 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19273 | } | |
1e0c8722 RD |
19274 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
19275 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19276 | } | |
d14a1e28 RD |
19277 | static void *_p_wxImageTo_p_wxObject(void *x) { |
19278 | return (void *)((wxObject *) ((wxImage *) x)); | |
19279 | } | |
19280 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19281 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19282 | } | |
d14a1e28 RD |
19283 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
19284 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19285 | } | |
19286 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19287 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19288 | } | |
19289 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19290 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19291 | } | |
19292 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19293 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19294 | } | |
19295 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19296 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19297 | } | |
19298 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19299 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19300 | } | |
19301 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19302 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19303 | } | |
19304 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19305 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19306 | } | |
19307 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19308 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19309 | } | |
19310 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19311 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19312 | } | |
19313 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19314 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19315 | } | |
19316 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19317 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19318 | } | |
19319 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19320 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19321 | } | |
19322 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19323 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19324 | } | |
d14a1e28 RD |
19325 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19326 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19327 | } | |
19328 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19329 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19330 | } | |
19331 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19332 | return (void *)((wxObject *) ((wxMask *) x)); | |
19333 | } | |
19334 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19335 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19336 | } | |
19337 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19338 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19339 | } | |
19340 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19341 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19342 | } | |
19343 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19344 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19345 | } | |
19346 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19347 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19348 | } | |
19349 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19350 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19351 | } | |
19352 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19353 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19354 | } | |
19355 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19356 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19357 | } | |
19358 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19359 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19360 | } | |
19361 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19362 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19363 | } | |
19364 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19365 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19366 | } | |
19367 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19368 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19369 | } | |
19370 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19371 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19372 | } | |
19373 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19374 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19375 | } | |
19376 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19377 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19378 | } | |
19379 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19380 | return (void *)((wxObject *) ((wxColour *) x)); | |
19381 | } | |
19382 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19383 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19384 | } | |
19385 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19386 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19387 | } | |
19388 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19389 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19390 | } | |
e811c8ce RD |
19391 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
19392 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 19393 | } |
e811c8ce RD |
19394 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
19395 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 19396 | } |
e811c8ce RD |
19397 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
19398 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19399 | } | |
19400 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19401 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19402 | } | |
19403 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19404 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19405 | } | |
19406 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19407 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19408 | } | |
19409 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19410 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19411 | } | |
19412 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19413 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19414 | } | |
19415 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19416 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19417 | } | |
19418 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19419 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19420 | } | |
19421 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19422 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19423 | } | |
19424 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19425 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19426 | } | |
e811c8ce RD |
19427 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19428 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19429 | } | |
19430 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19431 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19432 | } | |
19433 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19434 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19435 | } | |
19436 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19437 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19438 | } | |
19439 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19440 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19441 | } | |
19442 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19443 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19444 | } | |
19445 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19446 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19447 | } | |
19448 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19449 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19450 | } | |
15afbcd0 RD |
19451 | 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}}; |
19452 | 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}}; | |
19453 | 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}}; | |
19454 | 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}}; | |
19455 | 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}}; | |
19456 | 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}}; | |
19457 | 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}}; | |
19458 | 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}}; | |
19459 | 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}}; | |
19460 | 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}}; | |
19461 | 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}}; | |
19462 | 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}}; | |
b2df227b | 19463 | 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}}; |
15afbcd0 RD |
19464 | 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}}; |
19465 | 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}}; | |
15afbcd0 RD |
19466 | 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}}; |
19467 | 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}}; | |
19468 | 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}}; | |
19469 | 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}}; | |
19470 | 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}}; | |
19471 | 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}}; | |
19472 | 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}}; | |
66c033b4 | 19473 | 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_wxPCXHandler", _p_wxPCXHandlerTo_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_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_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}}; |
15afbcd0 RD |
19474 | 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}}; |
19475 | 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}}; | |
19476 | 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}}; | |
19477 | 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}}; | |
19478 | 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}}; | |
19479 | 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}}; | |
19480 | 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}}; | |
19481 | 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}}; | |
19482 | 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}}; | |
19483 | 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}}; | |
19484 | 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}}; | |
19485 | 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}}; | |
19486 | 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}}; | |
66c033b4 | 19487 | 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_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}}; |
15afbcd0 RD |
19488 | 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}}; |
19489 | 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}}; | |
19490 | 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}}; | |
b2df227b | 19491 | 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}}; |
66c033b4 | 19492 | 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}}; |
15afbcd0 RD |
19493 | 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}}; |
19494 | 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}}; | |
19495 | 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}}; | |
19496 | 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}}; | |
66c033b4 | 19497 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
19498 | 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}}; |
19499 | 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}}; | |
19500 | 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}}; | |
15afbcd0 RD |
19501 | 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}}; |
19502 | 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}}; | |
19503 | 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}}; | |
19504 | 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}}; | |
19505 | 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 |
19506 | |
19507 | static swig_type_info *swig_types_initial[] = { | |
19508 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
19509 | _swigt__p_wxBrush, |
19510 | _swigt__p_wxColour, | |
d14a1e28 RD |
19511 | _swigt__p_wxDC, |
19512 | _swigt__p_wxMirrorDC, | |
19513 | _swigt__p_byte, | |
19514 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 19515 | _swigt__p_char, |
d14a1e28 RD |
19516 | _swigt__p_wxIconLocation, |
19517 | _swigt__p_wxImage, | |
19518 | _swigt__p_wxMetaFileDC, | |
19519 | _swigt__p_wxMask, | |
b2df227b | 19520 | _swigt__p_wxSize, |
d14a1e28 RD |
19521 | _swigt__p_wxFont, |
19522 | _swigt__p_wxWindow, | |
d14a1e28 RD |
19523 | _swigt__p_double, |
19524 | _swigt__p_wxMemoryDC, | |
19525 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
19526 | _swigt__p_wxEffects, |
19527 | _swigt__p_wxNativeEncodingInfo, | |
19528 | _swigt__p_wxPalette, | |
19529 | _swigt__p_wxBitmap, | |
19530 | _swigt__p_wxObject, | |
19531 | _swigt__p_wxRegionIterator, | |
19532 | _swigt__p_wxRect, | |
19533 | _swigt__p_wxString, | |
19534 | _swigt__p_wxPrinterDC, | |
19535 | _swigt__p_wxIconBundle, | |
19536 | _swigt__p_wxPoint, | |
19537 | _swigt__p_wxDash, | |
19538 | _swigt__p_wxScreenDC, | |
19539 | _swigt__p_wxCursor, | |
19540 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
19541 | _swigt__p_wxBufferedDC, |
19542 | _swigt__p_wxImageList, | |
19543 | _swigt__p_unsigned_char, | |
19544 | _swigt__p_wxGDIObject, | |
d14a1e28 | 19545 | _swigt__p_wxIcon, |
994141e6 | 19546 | _swigt__p_wxLocale, |
d14a1e28 | 19547 | _swigt__p_wxRegion, |
b2df227b | 19548 | _swigt__p_wxLanguageInfo, |
66c033b4 | 19549 | _swigt__p_wxConfigBase, |
d14a1e28 RD |
19550 | _swigt__p_wxWindowDC, |
19551 | _swigt__p_wxPrintData, | |
19552 | _swigt__p_wxBrushList, | |
19553 | _swigt__p_wxFontList, | |
19554 | _swigt__p_wxPen, | |
19555 | _swigt__p_wxBufferedPaintDC, | |
19556 | _swigt__p_wxPaintDC, | |
19557 | _swigt__p_wxPenList, | |
d14a1e28 RD |
19558 | _swigt__p_int, |
19559 | _swigt__p_wxMetaFile, | |
19560 | _swigt__p_wxNativeFontInfo, | |
19561 | _swigt__p_wxEncodingConverter, | |
19562 | _swigt__p_wxColourDatabase, | |
19563 | 0 | |
19564 | }; | |
19565 | ||
19566 | ||
19567 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19568 | ||
19569 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 19570 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
19571 | |
19572 | #ifdef __cplusplus | |
19573 | } | |
19574 | #endif | |
19575 | ||
19576 | #ifdef __cplusplus | |
19577 | extern "C" | |
19578 | #endif | |
19579 | SWIGEXPORT(void) SWIG_init(void) { | |
19580 | static PyObject *SWIG_globals = 0; | |
19581 | static int typeinit = 0; | |
19582 | PyObject *m, *d; | |
19583 | int i; | |
19584 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19585 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19586 | d = PyModule_GetDict(m); | |
19587 | ||
19588 | if (!typeinit) { | |
19589 | for (i = 0; swig_types_initial[i]; i++) { | |
19590 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19591 | } | |
19592 | typeinit = 1; | |
19593 | } | |
19594 | SWIG_InstallConstants(d,swig_const_table); | |
19595 | ||
c32bde28 RD |
19596 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); |
19597 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
19598 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
19599 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
19600 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
19601 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
19602 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
19603 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
19604 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
19605 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
19606 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
19607 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
19608 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
19609 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
19610 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
19611 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
19612 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
19613 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
19614 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
19615 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
19616 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
19617 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
19618 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
19619 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
19620 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
19621 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
19622 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19623 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
19624 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
19625 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
19626 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
19627 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
19628 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
19629 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
19630 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
19631 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
19632 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
19633 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
19634 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
19635 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
19636 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
19637 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
19638 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
19639 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
19640 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
19641 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
19642 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
19643 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
19644 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
19645 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
19646 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
19647 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
19648 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
19649 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
19650 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
19651 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
19652 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
19653 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
19654 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
19655 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
19656 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
19657 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
19658 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
19659 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
19660 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
19661 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
19662 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
19663 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
19664 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
19665 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
19666 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
19667 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
19668 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
19669 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
19670 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
19671 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
19672 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
19673 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
19674 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
19675 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
19676 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
19677 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
19678 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
19679 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
19680 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
19681 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
19682 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
19683 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
19684 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
19685 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
19686 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
19687 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
19688 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
19689 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
19690 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
19691 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
19692 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
19693 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
19694 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
19695 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
19696 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
19697 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
19698 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
19699 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
19700 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
19701 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
19702 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
19703 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
19704 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
19705 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
19706 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
19707 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
19708 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
19709 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
19710 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
19711 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
19712 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
19713 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
19714 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
19715 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
19716 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
19717 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
19718 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
19719 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
19720 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
19721 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
19722 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
19723 | |
19724 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19725 | ||
c32bde28 RD |
19726 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); |
19727 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
19728 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
19729 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
19730 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
19731 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
19732 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
19733 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
19734 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19735 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19736 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19737 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19738 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19739 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19740 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19741 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19742 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19743 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
19744 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
19745 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19746 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19747 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19748 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19749 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
19750 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19751 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
19752 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
19753 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
19754 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
19755 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19756 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
19757 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
19758 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
19759 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
19760 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
19761 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
19762 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
19763 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
19764 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
19765 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
19766 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
19767 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
19768 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
19769 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
19770 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19771 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19772 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19773 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
19774 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19775 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19776 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
19777 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
19778 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
19779 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
19780 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
19781 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19782 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
19783 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
19784 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
19785 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19786 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19787 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19788 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19789 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19790 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19791 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19792 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19793 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19794 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19795 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19796 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19797 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19798 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
19799 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
19800 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
19801 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
19802 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
19803 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
19804 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
19805 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19806 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19807 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19808 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
19809 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
19810 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
19811 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
19812 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
19813 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
19814 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19815 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19816 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19817 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19818 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
19819 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
19820 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
19821 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
19822 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
19823 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
19824 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
19825 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
19826 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
19827 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
19828 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
19829 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
19830 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
19831 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
19832 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
19833 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
19834 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
19835 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19836 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
19837 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
19838 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
19839 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
19840 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19841 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
19842 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
19843 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
19844 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
19845 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
19846 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
19847 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
19848 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
19849 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
19850 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
19851 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
19852 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
19853 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
19854 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
19855 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
19856 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
19857 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
19858 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19859 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19860 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
19861 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
19862 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
19863 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
19864 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
19865 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
19866 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
19867 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
19868 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
19869 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19870 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19871 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
19872 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
19873 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
19874 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
19875 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
19876 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
19877 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19878 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
19879 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
19880 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19881 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
19882 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
19883 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19884 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
19885 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
19886 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
19887 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19888 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
19889 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19890 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19891 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19892 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
19893 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
19894 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
19895 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
19896 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
19897 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
19898 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
19899 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
19900 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
19901 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
19902 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19903 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19904 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
19905 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19906 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19907 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19908 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19909 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19910 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19911 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19912 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19913 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
19914 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19915 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19916 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19917 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
19918 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19919 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19920 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
19921 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19922 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
19923 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
19924 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
19925 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19926 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
19927 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
19928 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
19929 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
19930 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
19931 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
19932 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
19933 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
19934 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
19935 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
19936 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
19937 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
19938 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
19939 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
19940 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
19941 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
19942 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
19943 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19944 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
19945 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19946 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
19947 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
19948 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
19949 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
19950 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
19951 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
19952 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
19953 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
19954 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
19955 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
19956 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
19957 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
19958 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
19959 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
19960 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
19961 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
19962 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
19963 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
19964 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
19965 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
19966 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
19967 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
19968 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
19969 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
19970 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
19971 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
19972 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
19973 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19974 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
19975 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19976 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
19977 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
19978 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19979 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19980 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19981 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19982 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19983 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19984 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19985 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19986 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19987 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19988 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19989 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19990 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19991 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19992 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19993 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19994 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19995 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19996 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19997 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19998 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19999 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20000 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20001 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20002 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20003 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20004 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20005 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20006 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20007 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20008 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20009 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20010 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20011 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20012 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20013 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20014 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20015 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20016 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20017 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20018 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20019 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20020 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20021 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20022 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20023 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20024 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20025 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
20026 | |
20027 | // Work around a chicken/egg problem in drawlist.cpp | |
20028 | wxPyDrawList_SetAPIPtr(); | |
20029 | ||
d14a1e28 RD |
20030 | } |
20031 |