]>
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 | ||
886 | ||
41e2b43e RD |
887 | wxLocale *new_wxLocale(int language,int flags){ |
888 | if (language == -1) | |
889 | return new wxLocale(); | |
890 | else | |
891 | return new wxLocale(language, flags); | |
892 | } | |
d14a1e28 RD |
893 | |
894 | #include "wx/wxPython/pydrawxxx.h" | |
895 | ||
03e37cd5 | 896 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d14a1e28 RD |
897 | wxColour col; |
898 | self->GetPixel(x, y, &col); | |
899 | return col; | |
900 | } | |
03e37cd5 | 901 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d14a1e28 RD |
902 | wxColour col; |
903 | self->GetPixel(pt, &col); | |
904 | return col; | |
905 | } | |
994141e6 | 906 | |
c32bde28 RD |
907 | // See my_fragments.i |
908 | SWIGSTATICINLINE(int) | |
909 | SWIG_AsVal_double(PyObject *obj, double* val) | |
994141e6 | 910 | { |
c32bde28 RD |
911 | if (PyNumber_Check(obj)) { |
912 | if (val) *val = PyFloat_AsDouble(obj); | |
913 | return 1; | |
914 | } | |
69223c70 RD |
915 | else { |
916 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
917 | obj->ob_type->tp_name); | |
918 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
919 | Py_DECREF(errmsg); | |
69223c70 | 920 | } |
c32bde28 | 921 | return 0; |
15afbcd0 RD |
922 | } |
923 | ||
924 | ||
c32bde28 RD |
925 | SWIGSTATICINLINE(double) |
926 | SWIG_As_double(PyObject* obj) | |
15afbcd0 | 927 | { |
c32bde28 RD |
928 | double v; |
929 | if (!SWIG_AsVal_double(obj, &v)) { | |
930 | /* | |
931 | this is needed to make valgrind/purify happier. the other | |
932 | solution is throw an exception, but since this code should work | |
933 | with plain C .... | |
934 | */ | |
935 | memset((void*)&v, 0, sizeof(double)); | |
15afbcd0 | 936 | } |
c32bde28 RD |
937 | return v; |
938 | } | |
939 | ||
940 | ||
941 | SWIGSTATICINLINE(int) | |
942 | SWIG_Check_double(PyObject* obj) | |
943 | { | |
944 | return SWIG_AsVal_double(obj, (double*)0); | |
994141e6 RD |
945 | } |
946 | ||
d14a1e28 RD |
947 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
948 | wxRect rv; | |
949 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
950 | return rv; | |
951 | } | |
c32bde28 | 952 | |
d14a1e28 RD |
953 | wxRect wxDC_GetClippingRect(wxDC *self){ |
954 | wxRect rect; | |
955 | self->GetClippingBox(rect); | |
956 | return rect; | |
957 | } | |
db914595 RD |
958 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
959 | wxArrayInt widths; | |
960 | self->GetPartialTextExtents(text, widths); | |
961 | return widths; | |
962 | } | |
c32bde28 | 963 | |
03e37cd5 RD |
964 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
965 | self->SetLogicalOrigin(point.x, point.y); | |
966 | } | |
967 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
968 | self->SetDeviceOrigin(point.x, point.y); | |
969 | } | |
970 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
971 | self->CalcBoundingBox(point.x, point.y); | |
972 | } | |
d14a1e28 RD |
973 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
974 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
975 | } | |
976 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
977 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
978 | } | |
979 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
980 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
981 | } | |
982 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
983 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
984 | } | |
985 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
986 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
987 | } | |
988 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
989 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
990 | } | |
991 | ||
992 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
993 | *x1 = dc->MinX(); | |
994 | *y1 = dc->MinY(); | |
995 | *x2 = dc->MaxX(); | |
996 | *y2 = dc->MaxY(); | |
997 | } | |
998 | ||
999 | ||
b88bce5f | 1000 | #include <wx/dcbuffer.h> |
b88bce5f | 1001 | |
b88bce5f | 1002 | |
d14a1e28 RD |
1003 | #include <wx/dcps.h> |
1004 | ||
1005 | ||
1006 | class wxMetaFile : public wxObject { | |
1007 | public: | |
1008 | wxMetaFile(const wxString&) | |
39f61e25 | 1009 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1010 | }; |
1011 | ||
1012 | class wxMetaFileDC : public wxClientDC { | |
1013 | public: | |
1014 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 1015 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1016 | }; |
1017 | ||
1018 | ||
1019 | ||
1020 | class wxPrinterDC : public wxClientDC { | |
1021 | public: | |
1022 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 1023 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 1024 | |
d14a1e28 | 1025 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 1026 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1027 | }; |
1028 | ||
1029 | ||
1030 | ||
1031 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1032 | self->AddColour(name, wxColour(red, green, blue)); | |
1033 | } | |
1034 | ||
d14a1e28 RD |
1035 | #include <wx/effects.h> |
1036 | ||
1037 | #ifdef __cplusplus | |
1038 | extern "C" { | |
1039 | #endif | |
c32bde28 | 1040 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1041 | PyObject *resultobj; |
1042 | wxGDIObject *result; | |
1043 | char *kwnames[] = { | |
1044 | NULL | |
1045 | }; | |
1046 | ||
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1048 | { | |
e3b71cb8 | 1049 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1051 | result = (wxGDIObject *)new wxGDIObject(); | |
1052 | ||
1053 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1055 | } |
15afbcd0 | 1056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
1057 | return resultobj; |
1058 | fail: | |
1059 | return NULL; | |
1060 | } | |
1061 | ||
1062 | ||
c32bde28 | 1063 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1064 | PyObject *resultobj; |
1065 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1066 | PyObject * obj0 = 0 ; | |
1067 | char *kwnames[] = { | |
1068 | (char *) "self", NULL | |
1069 | }; | |
1070 | ||
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1074 | { |
1075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1076 | delete arg1; | |
1077 | ||
1078 | wxPyEndAllowThreads(__tstate); | |
1079 | if (PyErr_Occurred()) SWIG_fail; | |
1080 | } | |
1081 | Py_INCREF(Py_None); resultobj = Py_None; | |
1082 | return resultobj; | |
1083 | fail: | |
1084 | return NULL; | |
1085 | } | |
1086 | ||
1087 | ||
c32bde28 | 1088 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1089 | PyObject *resultobj; |
1090 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1091 | bool result; | |
1092 | PyObject * obj0 = 0 ; | |
1093 | char *kwnames[] = { | |
1094 | (char *) "self", NULL | |
1095 | }; | |
1096 | ||
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",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 | result = (bool)(arg1)->GetVisible(); | |
1103 | ||
1104 | wxPyEndAllowThreads(__tstate); | |
1105 | if (PyErr_Occurred()) SWIG_fail; | |
1106 | } | |
4f89f6a3 RD |
1107 | { |
1108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1109 | } | |
d14a1e28 RD |
1110 | return resultobj; |
1111 | fail: | |
1112 | return NULL; | |
1113 | } | |
1114 | ||
1115 | ||
c32bde28 | 1116 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1117 | PyObject *resultobj; |
1118 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1119 | bool arg2 ; | |
1120 | PyObject * obj0 = 0 ; | |
1121 | PyObject * obj1 = 0 ; | |
1122 | char *kwnames[] = { | |
1123 | (char *) "self",(char *) "visible", NULL | |
1124 | }; | |
1125 | ||
1126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1129 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 1130 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1131 | { |
1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1133 | (arg1)->SetVisible(arg2); | |
1134 | ||
1135 | wxPyEndAllowThreads(__tstate); | |
1136 | if (PyErr_Occurred()) SWIG_fail; | |
1137 | } | |
1138 | Py_INCREF(Py_None); resultobj = Py_None; | |
1139 | return resultobj; | |
1140 | fail: | |
1141 | return NULL; | |
1142 | } | |
1143 | ||
1144 | ||
c32bde28 | 1145 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1146 | PyObject *resultobj; |
1147 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1148 | bool result; | |
1149 | PyObject * obj0 = 0 ; | |
1150 | char *kwnames[] = { | |
1151 | (char *) "self", NULL | |
1152 | }; | |
1153 | ||
1154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1157 | { |
1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1159 | result = (bool)(arg1)->IsNull(); | |
1160 | ||
1161 | wxPyEndAllowThreads(__tstate); | |
1162 | if (PyErr_Occurred()) SWIG_fail; | |
1163 | } | |
4f89f6a3 RD |
1164 | { |
1165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1166 | } | |
d14a1e28 RD |
1167 | return resultobj; |
1168 | fail: | |
1169 | return NULL; | |
1170 | } | |
1171 | ||
1172 | ||
c32bde28 | 1173 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1174 | PyObject *obj; |
1175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1176 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1177 | Py_INCREF(obj); | |
1178 | return Py_BuildValue((char *)""); | |
1179 | } | |
c32bde28 | 1180 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 1181 | PyObject *resultobj; |
41e2b43e RD |
1182 | byte arg1 = (byte) 0 ; |
1183 | byte arg2 = (byte) 0 ; | |
1184 | byte arg3 = (byte) 0 ; | |
d14a1e28 RD |
1185 | wxColour *result; |
1186 | PyObject * obj0 = 0 ; | |
1187 | PyObject * obj1 = 0 ; | |
1188 | PyObject * obj2 = 0 ; | |
1189 | char *kwnames[] = { | |
1190 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1191 | }; | |
1192 | ||
1193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1194 | if (obj0) { | |
c32bde28 | 1195 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); |
15afbcd0 | 1196 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1197 | } |
1198 | if (obj1) { | |
c32bde28 | 1199 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1200 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1201 | } |
1202 | if (obj2) { | |
c32bde28 | 1203 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1204 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1205 | } |
1206 | { | |
1207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1208 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1209 | ||
1210 | wxPyEndAllowThreads(__tstate); | |
1211 | if (PyErr_Occurred()) SWIG_fail; | |
1212 | } | |
15afbcd0 | 1213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1214 | return resultobj; |
1215 | fail: | |
1216 | return NULL; | |
1217 | } | |
1218 | ||
1219 | ||
c32bde28 | 1220 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1221 | PyObject *resultobj; |
1222 | wxString *arg1 = 0 ; | |
1223 | wxColour *result; | |
ae8162c8 | 1224 | bool temp1 = false ; |
d14a1e28 RD |
1225 | PyObject * obj0 = 0 ; |
1226 | char *kwnames[] = { | |
1227 | (char *) "colorName", NULL | |
1228 | }; | |
1229 | ||
1230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1231 | { | |
1232 | arg1 = wxString_in_helper(obj0); | |
1233 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 1234 | temp1 = true; |
d14a1e28 RD |
1235 | } |
1236 | { | |
eab6e45e | 1237 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1239 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1240 | ||
1241 | wxPyEndAllowThreads(__tstate); | |
1242 | if (PyErr_Occurred()) SWIG_fail; | |
1243 | } | |
15afbcd0 | 1244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1245 | { |
1246 | if (temp1) | |
1247 | delete arg1; | |
1248 | } | |
1249 | return resultobj; | |
1250 | fail: | |
1251 | { | |
1252 | if (temp1) | |
1253 | delete arg1; | |
1254 | } | |
1255 | return NULL; | |
1256 | } | |
1257 | ||
1258 | ||
c32bde28 | 1259 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1260 | PyObject *resultobj; |
1261 | unsigned long arg1 ; | |
1262 | wxColour *result; | |
1263 | PyObject * obj0 = 0 ; | |
1264 | char *kwnames[] = { | |
1265 | (char *) "colRGB", NULL | |
1266 | }; | |
1267 | ||
1268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
c32bde28 | 1269 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
15afbcd0 | 1270 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1271 | { |
1272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1273 | result = (wxColour *)new wxColour(arg1); | |
1274 | ||
1275 | wxPyEndAllowThreads(__tstate); | |
1276 | if (PyErr_Occurred()) SWIG_fail; | |
1277 | } | |
15afbcd0 | 1278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1279 | return resultobj; |
1280 | fail: | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
c32bde28 | 1285 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1286 | PyObject *resultobj; |
1287 | wxColour *arg1 = (wxColour *) 0 ; | |
1288 | PyObject * obj0 = 0 ; | |
1289 | char *kwnames[] = { | |
1290 | (char *) "self", NULL | |
1291 | }; | |
1292 | ||
1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1296 | { |
1297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1298 | delete arg1; | |
1299 | ||
1300 | wxPyEndAllowThreads(__tstate); | |
1301 | if (PyErr_Occurred()) SWIG_fail; | |
1302 | } | |
1303 | Py_INCREF(Py_None); resultobj = Py_None; | |
1304 | return resultobj; | |
1305 | fail: | |
1306 | return NULL; | |
1307 | } | |
1308 | ||
1309 | ||
c32bde28 | 1310 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1311 | PyObject *resultobj; |
1312 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1313 | byte result; |
d14a1e28 RD |
1314 | PyObject * obj0 = 0 ; |
1315 | char *kwnames[] = { | |
1316 | (char *) "self", NULL | |
1317 | }; | |
1318 | ||
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1322 | { |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1324 | result = (byte)(arg1)->Red(); |
d14a1e28 RD |
1325 | |
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
c32bde28 | 1329 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
1330 | return resultobj; |
1331 | fail: | |
1332 | return NULL; | |
1333 | } | |
1334 | ||
1335 | ||
c32bde28 | 1336 | static PyObject *_wrap_Colour_Green(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_Green",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)->Green(); |
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_Blue(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_Blue",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)->Blue(); |
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_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1389 | PyObject *resultobj; |
1390 | wxColour *arg1 = (wxColour *) 0 ; | |
1391 | bool result; | |
1392 | PyObject * obj0 = 0 ; | |
1393 | char *kwnames[] = { | |
1394 | (char *) "self", NULL | |
1395 | }; | |
1396 | ||
1397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",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(); | |
1402 | result = (bool)(arg1)->Ok(); | |
1403 | ||
1404 | wxPyEndAllowThreads(__tstate); | |
1405 | if (PyErr_Occurred()) SWIG_fail; | |
1406 | } | |
4f89f6a3 RD |
1407 | { |
1408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1409 | } | |
d14a1e28 RD |
1410 | return resultobj; |
1411 | fail: | |
1412 | return NULL; | |
1413 | } | |
1414 | ||
1415 | ||
c32bde28 | 1416 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1417 | PyObject *resultobj; |
1418 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e RD |
1419 | byte arg2 ; |
1420 | byte arg3 ; | |
1421 | byte arg4 ; | |
d14a1e28 RD |
1422 | PyObject * obj0 = 0 ; |
1423 | PyObject * obj1 = 0 ; | |
1424 | PyObject * obj2 = 0 ; | |
1425 | PyObject * obj3 = 0 ; | |
1426 | char *kwnames[] = { | |
1427 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1428 | }; | |
1429 | ||
1430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1433 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1434 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1435 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1436 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1437 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 1438 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1439 | { |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | (arg1)->Set(arg2,arg3,arg4); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | Py_INCREF(Py_None); resultobj = Py_None; | |
1447 | return resultobj; | |
1448 | fail: | |
1449 | return NULL; | |
1450 | } | |
1451 | ||
1452 | ||
c32bde28 | 1453 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1454 | PyObject *resultobj; |
1455 | wxColour *arg1 = (wxColour *) 0 ; | |
1456 | unsigned long arg2 ; | |
1457 | PyObject * obj0 = 0 ; | |
1458 | PyObject * obj1 = 0 ; | |
1459 | char *kwnames[] = { | |
1460 | (char *) "self",(char *) "colRGB", NULL | |
1461 | }; | |
1462 | ||
c9c7117a | 1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1466 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 1467 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1468 | { |
1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1470 | (arg1)->Set(arg2); | |
1471 | ||
1472 | wxPyEndAllowThreads(__tstate); | |
1473 | if (PyErr_Occurred()) SWIG_fail; | |
1474 | } | |
1475 | Py_INCREF(Py_None); resultobj = Py_None; | |
1476 | return resultobj; | |
1477 | fail: | |
1478 | return NULL; | |
1479 | } | |
1480 | ||
1481 | ||
c32bde28 | 1482 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1483 | PyObject *resultobj; |
1484 | wxColour *arg1 = (wxColour *) 0 ; | |
1485 | wxString *arg2 = 0 ; | |
ae8162c8 | 1486 | bool temp2 = false ; |
b88bce5f RD |
1487 | PyObject * obj0 = 0 ; |
1488 | PyObject * obj1 = 0 ; | |
1489 | char *kwnames[] = { | |
1490 | (char *) "self",(char *) "colourName", NULL | |
1491 | }; | |
1492 | ||
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1496 | { |
1497 | arg2 = wxString_in_helper(obj1); | |
1498 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1499 | temp2 = true; |
b88bce5f RD |
1500 | } |
1501 | { | |
1502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1503 | (arg1)->InitFromName((wxString const &)*arg2); | |
1504 | ||
1505 | wxPyEndAllowThreads(__tstate); | |
1506 | if (PyErr_Occurred()) SWIG_fail; | |
1507 | } | |
1508 | Py_INCREF(Py_None); resultobj = Py_None; | |
1509 | { | |
1510 | if (temp2) | |
1511 | delete arg2; | |
1512 | } | |
1513 | return resultobj; | |
1514 | fail: | |
1515 | { | |
1516 | if (temp2) | |
1517 | delete arg2; | |
1518 | } | |
1519 | return NULL; | |
1520 | } | |
1521 | ||
1522 | ||
c32bde28 | 1523 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
b88bce5f RD |
1524 | PyObject *resultobj; |
1525 | wxColour *arg1 = (wxColour *) 0 ; | |
1526 | long result; | |
1527 | PyObject * obj0 = 0 ; | |
1528 | char *kwnames[] = { | |
1529 | (char *) "self", NULL | |
1530 | }; | |
1531 | ||
1532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1535 | { |
1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1537 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1538 | ||
1539 | wxPyEndAllowThreads(__tstate); | |
1540 | if (PyErr_Occurred()) SWIG_fail; | |
1541 | } | |
c32bde28 | 1542 | resultobj = SWIG_From_long((long)result); |
b88bce5f RD |
1543 | return resultobj; |
1544 | fail: | |
1545 | return NULL; | |
1546 | } | |
1547 | ||
1548 | ||
c32bde28 | 1549 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1550 | PyObject *resultobj; |
1551 | wxColour *arg1 = (wxColour *) 0 ; | |
1552 | wxColour *arg2 = 0 ; | |
1553 | bool result; | |
1554 | wxColour temp2 ; | |
1555 | PyObject * obj0 = 0 ; | |
1556 | PyObject * obj1 = 0 ; | |
1557 | char *kwnames[] = { | |
1558 | (char *) "self",(char *) "colour", NULL | |
1559 | }; | |
1560 | ||
1561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1564 | { |
1565 | arg2 = &temp2; | |
1566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1567 | } | |
1568 | { | |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1570 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1571 | ||
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) SWIG_fail; | |
1574 | } | |
4f89f6a3 RD |
1575 | { |
1576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1577 | } | |
d14a1e28 RD |
1578 | return resultobj; |
1579 | fail: | |
1580 | return NULL; | |
1581 | } | |
1582 | ||
1583 | ||
c32bde28 | 1584 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1585 | PyObject *resultobj; |
1586 | wxColour *arg1 = (wxColour *) 0 ; | |
1587 | wxColour *arg2 = 0 ; | |
1588 | bool result; | |
1589 | wxColour temp2 ; | |
1590 | PyObject * obj0 = 0 ; | |
1591 | PyObject * obj1 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self",(char *) "colour", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1599 | { |
1600 | arg2 = &temp2; | |
1601 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1602 | } | |
1603 | { | |
1604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1605 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1606 | ||
1607 | wxPyEndAllowThreads(__tstate); | |
1608 | if (PyErr_Occurred()) SWIG_fail; | |
1609 | } | |
4f89f6a3 RD |
1610 | { |
1611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1612 | } | |
d14a1e28 RD |
1613 | return resultobj; |
1614 | fail: | |
1615 | return NULL; | |
1616 | } | |
1617 | ||
1618 | ||
c32bde28 | 1619 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
1620 | PyObject *resultobj; |
1621 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1622 | PyObject *result; |
c9c7117a | 1623 | PyObject * obj0 = 0 ; |
c9c7117a | 1624 | char *kwnames[] = { |
b88bce5f | 1625 | (char *) "self", NULL |
c9c7117a RD |
1626 | }; |
1627 | ||
b88bce5f | 1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
1631 | { |
1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1633 | result = (PyObject *)wxColour_Get(arg1); |
c9c7117a RD |
1634 | |
1635 | wxPyEndAllowThreads(__tstate); | |
1636 | if (PyErr_Occurred()) SWIG_fail; | |
1637 | } | |
b88bce5f | 1638 | resultobj = result; |
c9c7117a RD |
1639 | return resultobj; |
1640 | fail: | |
c9c7117a RD |
1641 | return NULL; |
1642 | } | |
1643 | ||
1644 | ||
c32bde28 | 1645 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1646 | PyObject *resultobj; |
1647 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1648 | unsigned long result; |
d14a1e28 RD |
1649 | PyObject * obj0 = 0 ; |
1650 | char *kwnames[] = { | |
1651 | (char *) "self", NULL | |
1652 | }; | |
1653 | ||
b88bce5f | 1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1657 | { |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1659 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1660 | |
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
c32bde28 | 1664 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
1665 | return resultobj; |
1666 | fail: | |
1667 | return NULL; | |
1668 | } | |
1669 | ||
1670 | ||
c32bde28 | 1671 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1672 | PyObject *obj; |
1673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1674 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1675 | Py_INCREF(obj); | |
1676 | return Py_BuildValue((char *)""); | |
1677 | } | |
c32bde28 | 1678 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1679 | PyObject *resultobj; |
1680 | int arg1 ; | |
1681 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1682 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1683 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1684 | wxPalette *result; | |
994141e6 | 1685 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1686 | PyObject * obj1 = 0 ; |
1687 | PyObject * obj2 = 0 ; | |
1688 | PyObject * obj3 = 0 ; | |
1689 | char *kwnames[] = { | |
1690 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1691 | }; | |
1692 | ||
994141e6 | 1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 1694 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 RD |
1695 | if (PyErr_Occurred()) SWIG_fail; |
1696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1698 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1700 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 1702 | { |
e3b71cb8 | 1703 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1705 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1706 | ||
1707 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1708 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1709 | } |
15afbcd0 | 1710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1711 | return resultobj; |
1712 | fail: | |
1713 | return NULL; | |
1714 | } | |
1715 | ||
1716 | ||
c32bde28 | 1717 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1718 | PyObject *resultobj; |
1719 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1720 | PyObject * obj0 = 0 ; | |
1721 | char *kwnames[] = { | |
1722 | (char *) "self", NULL | |
1723 | }; | |
1724 | ||
1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1728 | { |
1729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1730 | delete arg1; | |
1731 | ||
1732 | wxPyEndAllowThreads(__tstate); | |
1733 | if (PyErr_Occurred()) SWIG_fail; | |
1734 | } | |
1735 | Py_INCREF(Py_None); resultobj = Py_None; | |
1736 | return resultobj; | |
1737 | fail: | |
1738 | return NULL; | |
1739 | } | |
1740 | ||
1741 | ||
c32bde28 | 1742 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1743 | PyObject *resultobj; |
1744 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1745 | byte arg2 ; | |
1746 | byte arg3 ; | |
1747 | byte arg4 ; | |
1748 | int result; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | PyObject * obj1 = 0 ; | |
1751 | PyObject * obj2 = 0 ; | |
1752 | PyObject * obj3 = 0 ; | |
1753 | char *kwnames[] = { | |
1754 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1755 | }; | |
1756 | ||
1757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1760 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 1761 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1762 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 1763 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1764 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 1765 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1766 | { |
1767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1768 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1769 | ||
1770 | wxPyEndAllowThreads(__tstate); | |
1771 | if (PyErr_Occurred()) SWIG_fail; | |
1772 | } | |
c32bde28 | 1773 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
1774 | return resultobj; |
1775 | fail: | |
1776 | return NULL; | |
1777 | } | |
1778 | ||
1779 | ||
c32bde28 | 1780 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1781 | PyObject *resultobj; |
1782 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1783 | int arg2 ; | |
1784 | byte *arg3 = (byte *) 0 ; | |
1785 | byte *arg4 = (byte *) 0 ; | |
1786 | byte *arg5 = (byte *) 0 ; | |
1787 | bool result; | |
1788 | byte temp3 ; | |
c32bde28 | 1789 | int res3 = 0 ; |
d14a1e28 | 1790 | byte temp4 ; |
c32bde28 | 1791 | int res4 = 0 ; |
d14a1e28 | 1792 | byte temp5 ; |
c32bde28 | 1793 | int res5 = 0 ; |
d14a1e28 | 1794 | PyObject * obj0 = 0 ; |
994141e6 | 1795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1796 | char *kwnames[] = { |
1797 | (char *) "self",(char *) "pixel", NULL | |
1798 | }; | |
1799 | ||
c32bde28 RD |
1800 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
1801 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1802 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
994141e6 | 1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1806 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 1807 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1808 | { |
1809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1810 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1811 | ||
1812 | wxPyEndAllowThreads(__tstate); | |
1813 | if (PyErr_Occurred()) SWIG_fail; | |
1814 | } | |
4f89f6a3 RD |
1815 | { |
1816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1817 | } | |
c32bde28 RD |
1818 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
1819 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1820 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1821 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1822 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1823 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
d14a1e28 RD |
1824 | return resultobj; |
1825 | fail: | |
1826 | return NULL; | |
1827 | } | |
1828 | ||
1829 | ||
c32bde28 | 1830 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1831 | PyObject *resultobj; |
1832 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1833 | bool result; | |
1834 | PyObject * obj0 = 0 ; | |
1835 | char *kwnames[] = { | |
1836 | (char *) "self", NULL | |
1837 | }; | |
1838 | ||
1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1842 | { |
1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1844 | result = (bool)(arg1)->Ok(); | |
1845 | ||
1846 | wxPyEndAllowThreads(__tstate); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | } | |
4f89f6a3 RD |
1849 | { |
1850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1851 | } | |
d14a1e28 RD |
1852 | return resultobj; |
1853 | fail: | |
1854 | return NULL; | |
1855 | } | |
1856 | ||
1857 | ||
c32bde28 | 1858 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1859 | PyObject *obj; |
1860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1861 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1862 | Py_INCREF(obj); | |
1863 | return Py_BuildValue((char *)""); | |
1864 | } | |
c32bde28 | 1865 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1866 | PyObject *resultobj; |
1867 | wxColour *arg1 = 0 ; | |
1868 | int arg2 = (int) 1 ; | |
1869 | int arg3 = (int) wxSOLID ; | |
1870 | wxPen *result; | |
1871 | wxColour temp1 ; | |
1872 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1873 | PyObject * obj1 = 0 ; |
1874 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1875 | char *kwnames[] = { |
1876 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1877 | }; | |
1878 | ||
994141e6 | 1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1880 | { |
1881 | arg1 = &temp1; | |
1882 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1883 | } | |
994141e6 | 1884 | if (obj1) { |
c32bde28 | 1885 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 1886 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
1887 | } |
1888 | if (obj2) { | |
c32bde28 | 1889 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 1890 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1891 | } |
d14a1e28 | 1892 | { |
e3b71cb8 | 1893 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1895 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1896 | ||
1897 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1898 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1899 | } |
15afbcd0 | 1900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1901 | return resultobj; |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
c32bde28 | 1907 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1908 | PyObject *resultobj; |
1909 | wxPen *arg1 = (wxPen *) 0 ; | |
1910 | PyObject * obj0 = 0 ; | |
1911 | char *kwnames[] = { | |
1912 | (char *) "self", NULL | |
1913 | }; | |
1914 | ||
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1918 | { |
1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1920 | delete arg1; | |
1921 | ||
1922 | wxPyEndAllowThreads(__tstate); | |
1923 | if (PyErr_Occurred()) SWIG_fail; | |
1924 | } | |
1925 | Py_INCREF(Py_None); resultobj = Py_None; | |
1926 | return resultobj; | |
1927 | fail: | |
1928 | return NULL; | |
1929 | } | |
1930 | ||
1931 | ||
c32bde28 | 1932 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1933 | PyObject *resultobj; |
1934 | wxPen *arg1 = (wxPen *) 0 ; | |
1935 | int result; | |
1936 | PyObject * obj0 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",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 | result = (int)(arg1)->GetCap(); | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
c32bde28 | 1951 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
1952 | return resultobj; |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
c32bde28 | 1958 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1959 | PyObject *resultobj; |
1960 | wxPen *arg1 = (wxPen *) 0 ; | |
1961 | wxColour result; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | char *kwnames[] = { | |
1964 | (char *) "self", NULL | |
1965 | }; | |
1966 | ||
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",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 = (arg1)->GetColour(); | |
1973 | ||
1974 | wxPyEndAllowThreads(__tstate); | |
1975 | if (PyErr_Occurred()) SWIG_fail; | |
1976 | } | |
1977 | { | |
1978 | wxColour * resultptr; | |
1979 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1981 | } |
1982 | return resultobj; | |
1983 | fail: | |
1984 | return NULL; | |
1985 | } | |
1986 | ||
1987 | ||
c32bde28 | 1988 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1989 | PyObject *resultobj; |
1990 | wxPen *arg1 = (wxPen *) 0 ; | |
1991 | int result; | |
1992 | PyObject * obj0 = 0 ; | |
1993 | char *kwnames[] = { | |
1994 | (char *) "self", NULL | |
1995 | }; | |
1996 | ||
1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2000 | { |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | result = (int)(arg1)->GetJoin(); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
c32bde28 | 2007 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2008 | return resultobj; |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
c32bde28 | 2014 | static PyObject *_wrap_Pen_GetStyle(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_GetStyle",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)->GetStyle(); | |
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_GetWidth(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_GetWidth",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)->GetWidth(); | |
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_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2067 | PyObject *resultobj; |
2068 | wxPen *arg1 = (wxPen *) 0 ; | |
2069 | bool result; | |
2070 | PyObject * obj0 = 0 ; | |
2071 | char *kwnames[] = { | |
2072 | (char *) "self", NULL | |
2073 | }; | |
2074 | ||
2075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",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 = (bool)(arg1)->Ok(); | |
2081 | ||
2082 | wxPyEndAllowThreads(__tstate); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | } | |
4f89f6a3 RD |
2085 | { |
2086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2087 | } | |
d14a1e28 RD |
2088 | return resultobj; |
2089 | fail: | |
2090 | return NULL; | |
2091 | } | |
2092 | ||
2093 | ||
c32bde28 | 2094 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2095 | PyObject *resultobj; |
2096 | wxPen *arg1 = (wxPen *) 0 ; | |
2097 | int arg2 ; | |
2098 | PyObject * obj0 = 0 ; | |
994141e6 | 2099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2100 | char *kwnames[] = { |
2101 | (char *) "self",(char *) "cap_style", NULL | |
2102 | }; | |
2103 | ||
994141e6 | 2104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2107 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2108 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2109 | { |
2110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2111 | (arg1)->SetCap(arg2); | |
2112 | ||
2113 | wxPyEndAllowThreads(__tstate); | |
2114 | if (PyErr_Occurred()) SWIG_fail; | |
2115 | } | |
2116 | Py_INCREF(Py_None); resultobj = Py_None; | |
2117 | return resultobj; | |
2118 | fail: | |
2119 | return NULL; | |
2120 | } | |
2121 | ||
2122 | ||
c32bde28 | 2123 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2124 | PyObject *resultobj; |
2125 | wxPen *arg1 = (wxPen *) 0 ; | |
2126 | wxColour *arg2 = 0 ; | |
2127 | wxColour temp2 ; | |
2128 | PyObject * obj0 = 0 ; | |
2129 | PyObject * obj1 = 0 ; | |
2130 | char *kwnames[] = { | |
2131 | (char *) "self",(char *) "colour", NULL | |
2132 | }; | |
2133 | ||
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2137 | { |
2138 | arg2 = &temp2; | |
2139 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2140 | } | |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | (arg1)->SetColour(*arg2); | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
2148 | Py_INCREF(Py_None); resultobj = Py_None; | |
2149 | return resultobj; | |
2150 | fail: | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
c32bde28 | 2155 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2156 | PyObject *resultobj; |
2157 | wxPen *arg1 = (wxPen *) 0 ; | |
2158 | int arg2 ; | |
2159 | PyObject * obj0 = 0 ; | |
994141e6 | 2160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2161 | char *kwnames[] = { |
2162 | (char *) "self",(char *) "join_style", NULL | |
2163 | }; | |
2164 | ||
994141e6 | 2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2168 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2169 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2170 | { |
2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2172 | (arg1)->SetJoin(arg2); | |
2173 | ||
2174 | wxPyEndAllowThreads(__tstate); | |
2175 | if (PyErr_Occurred()) SWIG_fail; | |
2176 | } | |
2177 | Py_INCREF(Py_None); resultobj = Py_None; | |
2178 | return resultobj; | |
2179 | fail: | |
2180 | return NULL; | |
2181 | } | |
2182 | ||
2183 | ||
c32bde28 | 2184 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2185 | PyObject *resultobj; |
2186 | wxPen *arg1 = (wxPen *) 0 ; | |
2187 | int arg2 ; | |
2188 | PyObject * obj0 = 0 ; | |
994141e6 | 2189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2190 | char *kwnames[] = { |
2191 | (char *) "self",(char *) "style", NULL | |
2192 | }; | |
2193 | ||
994141e6 | 2194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2197 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2198 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2199 | { |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | (arg1)->SetStyle(arg2); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | Py_INCREF(Py_None); resultobj = Py_None; | |
2207 | return resultobj; | |
2208 | fail: | |
2209 | return NULL; | |
2210 | } | |
2211 | ||
2212 | ||
c32bde28 | 2213 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2214 | PyObject *resultobj; |
2215 | wxPen *arg1 = (wxPen *) 0 ; | |
2216 | int arg2 ; | |
2217 | PyObject * obj0 = 0 ; | |
994141e6 | 2218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2219 | char *kwnames[] = { |
2220 | (char *) "self",(char *) "width", NULL | |
2221 | }; | |
2222 | ||
994141e6 | 2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2226 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2228 | { |
2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2230 | (arg1)->SetWidth(arg2); | |
2231 | ||
2232 | wxPyEndAllowThreads(__tstate); | |
2233 | if (PyErr_Occurred()) SWIG_fail; | |
2234 | } | |
2235 | Py_INCREF(Py_None); resultobj = Py_None; | |
2236 | return resultobj; | |
2237 | fail: | |
2238 | return NULL; | |
2239 | } | |
2240 | ||
2241 | ||
c32bde28 | 2242 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2243 | PyObject *resultobj; |
2244 | wxPen *arg1 = (wxPen *) 0 ; | |
2245 | int arg2 ; | |
2246 | wxDash *arg3 = (wxDash *) 0 ; | |
2247 | PyObject * obj0 = 0 ; | |
2248 | PyObject * obj1 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "self",(char *) "dashes", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2256 | { |
2257 | arg2 = PyList_Size(obj1); | |
2258 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2259 | if (arg3 == NULL) SWIG_fail; | |
2260 | } | |
2261 | { | |
2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2263 | (arg1)->SetDashes(arg2,arg3); | |
2264 | ||
2265 | wxPyEndAllowThreads(__tstate); | |
2266 | if (PyErr_Occurred()) SWIG_fail; | |
2267 | } | |
2268 | Py_INCREF(Py_None); resultobj = Py_None; | |
2269 | { | |
2270 | if (arg3) delete [] arg3; | |
2271 | } | |
2272 | return resultobj; | |
2273 | fail: | |
2274 | { | |
2275 | if (arg3) delete [] arg3; | |
2276 | } | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
c32bde28 | 2281 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2282 | PyObject *resultobj; |
2283 | wxPen *arg1 = (wxPen *) 0 ; | |
2284 | PyObject *result; | |
2285 | PyObject * obj0 = 0 ; | |
2286 | char *kwnames[] = { | |
2287 | (char *) "self", NULL | |
2288 | }; | |
2289 | ||
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2293 | { |
2294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2295 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2296 | ||
2297 | wxPyEndAllowThreads(__tstate); | |
2298 | if (PyErr_Occurred()) SWIG_fail; | |
2299 | } | |
2300 | resultobj = result; | |
2301 | return resultobj; | |
2302 | fail: | |
2303 | return NULL; | |
2304 | } | |
2305 | ||
2306 | ||
c32bde28 | 2307 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
22faec7d RD |
2308 | PyObject *resultobj; |
2309 | wxPen *arg1 = (wxPen *) 0 ; | |
66c033b4 RD |
2310 | PyObject *arg2 = (PyObject *) 0 ; |
2311 | PyObject *arg3 = (PyObject *) 0 ; | |
22faec7d RD |
2312 | PyObject * obj0 = 0 ; |
2313 | PyObject * obj1 = 0 ; | |
66c033b4 | 2314 | PyObject * obj2 = 0 ; |
22faec7d | 2315 | char *kwnames[] = { |
66c033b4 | 2316 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
22faec7d RD |
2317 | }; |
2318 | ||
66c033b4 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
66c033b4 RD |
2322 | arg2 = obj1; |
2323 | arg3 = obj2; | |
3adfb63b RD |
2324 | { |
2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2326 | wxPen__SetDashes(arg1,arg2,arg3); |
3adfb63b RD |
2327 | |
2328 | wxPyEndAllowThreads(__tstate); | |
2329 | if (PyErr_Occurred()) SWIG_fail; | |
2330 | } | |
66c033b4 | 2331 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
2332 | return resultobj; |
2333 | fail: | |
2334 | return NULL; | |
2335 | } | |
2336 | ||
2337 | ||
c32bde28 | 2338 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
2339 | PyObject *resultobj; |
2340 | wxPen *arg1 = (wxPen *) 0 ; | |
2341 | int result; | |
2342 | PyObject * obj0 = 0 ; | |
2343 | char *kwnames[] = { | |
2344 | (char *) "self", NULL | |
2345 | }; | |
2346 | ||
2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
2350 | { |
2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2352 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2353 | ||
2354 | wxPyEndAllowThreads(__tstate); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | } | |
c32bde28 | 2357 | resultobj = SWIG_From_int((int)result); |
c9c7117a RD |
2358 | return resultobj; |
2359 | fail: | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
c32bde28 | 2364 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2365 | PyObject *resultobj; |
66c033b4 RD |
2366 | wxPen *arg1 = (wxPen *) 0 ; |
2367 | wxPen *arg2 = (wxPen *) 0 ; | |
2368 | bool result; | |
d14a1e28 | 2369 | PyObject * obj0 = 0 ; |
994141e6 | 2370 | PyObject * obj1 = 0 ; |
d14a1e28 | 2371 | char *kwnames[] = { |
66c033b4 | 2372 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2373 | }; |
2374 | ||
66c033b4 RD |
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2380 | { |
2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2382 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2383 | |
2384 | wxPyEndAllowThreads(__tstate); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
2386 | } | |
d14a1e28 | 2387 | { |
66c033b4 | 2388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2389 | } |
d14a1e28 RD |
2390 | return resultobj; |
2391 | fail: | |
2392 | return NULL; | |
2393 | } | |
2394 | ||
2395 | ||
c32bde28 | 2396 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2397 | PyObject *resultobj; |
66c033b4 RD |
2398 | wxPen *arg1 = (wxPen *) 0 ; |
2399 | wxPen *arg2 = (wxPen *) 0 ; | |
2400 | bool result; | |
d14a1e28 RD |
2401 | PyObject * obj0 = 0 ; |
2402 | PyObject * obj1 = 0 ; | |
2403 | char *kwnames[] = { | |
66c033b4 | 2404 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2405 | }; |
2406 | ||
66c033b4 RD |
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
15afbcd0 | 2411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
2412 | { |
2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2414 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2415 | |
2416 | wxPyEndAllowThreads(__tstate); | |
2417 | if (PyErr_Occurred()) SWIG_fail; | |
2418 | } | |
d14a1e28 | 2419 | { |
66c033b4 | 2420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2421 | } |
2422 | return resultobj; | |
2423 | fail: | |
d14a1e28 RD |
2424 | return NULL; |
2425 | } | |
2426 | ||
2427 | ||
c32bde28 | 2428 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2429 | PyObject *obj; |
2430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
66c033b4 | 2431 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d14a1e28 RD |
2432 | Py_INCREF(obj); |
2433 | return Py_BuildValue((char *)""); | |
2434 | } | |
c32bde28 | 2435 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2436 | PyObject *resultobj; |
2437 | wxColour *arg1 = 0 ; | |
2438 | int arg2 = (int) wxSOLID ; | |
2439 | wxBrush *result; | |
2440 | wxColour temp1 ; | |
2441 | PyObject * obj0 = 0 ; | |
994141e6 | 2442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2443 | char *kwnames[] = { |
2444 | (char *) "colour",(char *) "style", NULL | |
2445 | }; | |
2446 | ||
994141e6 | 2447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2448 | { |
2449 | arg1 = &temp1; | |
2450 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2451 | } | |
994141e6 | 2452 | if (obj1) { |
c32bde28 | 2453 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2454 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2455 | } |
d14a1e28 | 2456 | { |
e3b71cb8 | 2457 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2459 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2460 | ||
2461 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2462 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2463 | } |
15afbcd0 | 2464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2465 | return resultobj; |
2466 | fail: | |
2467 | return NULL; | |
2468 | } | |
2469 | ||
2470 | ||
c32bde28 | 2471 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2472 | PyObject *resultobj; |
2473 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2474 | PyObject * obj0 = 0 ; | |
2475 | char *kwnames[] = { | |
2476 | (char *) "self", NULL | |
2477 | }; | |
2478 | ||
2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2482 | { |
2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2484 | delete arg1; | |
2485 | ||
2486 | wxPyEndAllowThreads(__tstate); | |
2487 | if (PyErr_Occurred()) SWIG_fail; | |
2488 | } | |
2489 | Py_INCREF(Py_None); resultobj = Py_None; | |
2490 | return resultobj; | |
2491 | fail: | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
c32bde28 | 2496 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2497 | PyObject *resultobj; |
2498 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2499 | wxColour *arg2 = 0 ; | |
2500 | wxColour temp2 ; | |
2501 | PyObject * obj0 = 0 ; | |
2502 | PyObject * obj1 = 0 ; | |
2503 | char *kwnames[] = { | |
2504 | (char *) "self",(char *) "col", NULL | |
2505 | }; | |
2506 | ||
2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2510 | { |
2511 | arg2 = &temp2; | |
2512 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2513 | } | |
2514 | { | |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | (arg1)->SetColour((wxColour const &)*arg2); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
2521 | Py_INCREF(Py_None); resultobj = Py_None; | |
2522 | return resultobj; | |
2523 | fail: | |
2524 | return NULL; | |
2525 | } | |
2526 | ||
2527 | ||
c32bde28 | 2528 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2529 | PyObject *resultobj; |
2530 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2531 | int arg2 ; | |
2532 | PyObject * obj0 = 0 ; | |
994141e6 | 2533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2534 | char *kwnames[] = { |
2535 | (char *) "self",(char *) "style", NULL | |
2536 | }; | |
2537 | ||
994141e6 | 2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2541 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2542 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2543 | { |
2544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2545 | (arg1)->SetStyle(arg2); | |
2546 | ||
2547 | wxPyEndAllowThreads(__tstate); | |
2548 | if (PyErr_Occurred()) SWIG_fail; | |
2549 | } | |
2550 | Py_INCREF(Py_None); resultobj = Py_None; | |
2551 | return resultobj; | |
2552 | fail: | |
2553 | return NULL; | |
2554 | } | |
2555 | ||
2556 | ||
c32bde28 | 2557 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2558 | PyObject *resultobj; |
2559 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2560 | wxBitmap *arg2 = 0 ; | |
2561 | PyObject * obj0 = 0 ; | |
2562 | PyObject * obj1 = 0 ; | |
2563 | char *kwnames[] = { | |
2564 | (char *) "self",(char *) "stipple", NULL | |
2565 | }; | |
2566 | ||
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2572 | SWIG_fail; | |
d14a1e28 | 2573 | if (arg2 == NULL) { |
15afbcd0 RD |
2574 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2575 | SWIG_fail; | |
d14a1e28 RD |
2576 | } |
2577 | { | |
2578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2579 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2580 | ||
2581 | wxPyEndAllowThreads(__tstate); | |
2582 | if (PyErr_Occurred()) SWIG_fail; | |
2583 | } | |
2584 | Py_INCREF(Py_None); resultobj = Py_None; | |
2585 | return resultobj; | |
2586 | fail: | |
2587 | return NULL; | |
2588 | } | |
2589 | ||
2590 | ||
c32bde28 | 2591 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2592 | PyObject *resultobj; |
2593 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2594 | wxColour result; | |
2595 | PyObject * obj0 = 0 ; | |
2596 | char *kwnames[] = { | |
2597 | (char *) "self", NULL | |
2598 | }; | |
2599 | ||
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2603 | { |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2605 | result = ((wxBrush const *)arg1)->GetColour(); | |
2606 | ||
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
2610 | { | |
2611 | wxColour * resultptr; | |
2612 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 2613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2614 | } |
2615 | return resultobj; | |
2616 | fail: | |
2617 | return NULL; | |
2618 | } | |
2619 | ||
2620 | ||
c32bde28 | 2621 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2622 | PyObject *resultobj; |
2623 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2624 | int result; | |
2625 | PyObject * obj0 = 0 ; | |
2626 | char *kwnames[] = { | |
2627 | (char *) "self", NULL | |
2628 | }; | |
2629 | ||
2630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2633 | { |
2634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2635 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2636 | ||
2637 | wxPyEndAllowThreads(__tstate); | |
2638 | if (PyErr_Occurred()) SWIG_fail; | |
2639 | } | |
c32bde28 | 2640 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2641 | return resultobj; |
2642 | fail: | |
2643 | return NULL; | |
2644 | } | |
2645 | ||
2646 | ||
c32bde28 | 2647 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2648 | PyObject *resultobj; |
2649 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2650 | wxBitmap *result; | |
2651 | PyObject * obj0 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",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 = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
15afbcd0 | 2666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2667 | return resultobj; |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
c32bde28 | 2673 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2674 | PyObject *resultobj; |
2675 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2676 | bool result; | |
2677 | PyObject * obj0 = 0 ; | |
2678 | char *kwnames[] = { | |
2679 | (char *) "self", NULL | |
2680 | }; | |
2681 | ||
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",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 = (bool)(arg1)->Ok(); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
4f89f6a3 RD |
2692 | { |
2693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2694 | } | |
d14a1e28 RD |
2695 | return resultobj; |
2696 | fail: | |
2697 | return NULL; | |
2698 | } | |
2699 | ||
2700 | ||
c32bde28 | 2701 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2702 | PyObject *obj; |
2703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2704 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2705 | Py_INCREF(obj); | |
2706 | return Py_BuildValue((char *)""); | |
2707 | } | |
c32bde28 | 2708 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2709 | PyObject *resultobj; |
2710 | wxString *arg1 = 0 ; | |
2711 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2712 | wxBitmap *result; | |
ae8162c8 | 2713 | bool temp1 = false ; |
d14a1e28 | 2714 | PyObject * obj0 = 0 ; |
994141e6 | 2715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2716 | char *kwnames[] = { |
2717 | (char *) "name",(char *) "type", NULL | |
2718 | }; | |
2719 | ||
994141e6 | 2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2721 | { |
2722 | arg1 = wxString_in_helper(obj0); | |
2723 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2724 | temp1 = true; |
d14a1e28 | 2725 | } |
994141e6 | 2726 | if (obj1) { |
c32bde28 | 2727 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2728 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2729 | } |
d14a1e28 | 2730 | { |
e3b71cb8 | 2731 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2733 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2736 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2737 | } |
15afbcd0 | 2738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2739 | { |
2740 | if (temp1) | |
2741 | delete arg1; | |
2742 | } | |
2743 | return resultobj; | |
2744 | fail: | |
2745 | { | |
2746 | if (temp1) | |
2747 | delete arg1; | |
2748 | } | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
c32bde28 | 2753 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2754 | PyObject *resultobj; |
2755 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2756 | PyObject * obj0 = 0 ; | |
2757 | char *kwnames[] = { | |
2758 | (char *) "self", NULL | |
2759 | }; | |
2760 | ||
2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2764 | { |
2765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2766 | delete arg1; | |
2767 | ||
2768 | wxPyEndAllowThreads(__tstate); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | } | |
2771 | Py_INCREF(Py_None); resultobj = Py_None; | |
2772 | return resultobj; | |
2773 | fail: | |
2774 | return NULL; | |
2775 | } | |
2776 | ||
2777 | ||
c32bde28 | 2778 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
66c033b4 RD |
2779 | PyObject *resultobj; |
2780 | int arg1 ; | |
2781 | int arg2 ; | |
2782 | int arg3 = (int) -1 ; | |
2783 | wxBitmap *result; | |
2784 | PyObject * obj0 = 0 ; | |
2785 | PyObject * obj1 = 0 ; | |
2786 | PyObject * obj2 = 0 ; | |
2787 | char *kwnames[] = { | |
2788 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2789 | }; | |
2790 | ||
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 2792 | arg1 = (int)SWIG_As_int(obj0); |
66c033b4 | 2793 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2794 | arg2 = (int)SWIG_As_int(obj1); |
66c033b4 RD |
2795 | if (PyErr_Occurred()) SWIG_fail; |
2796 | if (obj2) { | |
c32bde28 | 2797 | arg3 = (int)SWIG_As_int(obj2); |
66c033b4 RD |
2798 | if (PyErr_Occurred()) SWIG_fail; |
2799 | } | |
2800 | { | |
e3b71cb8 | 2801 | if (!wxPyCheckForApp()) SWIG_fail; |
66c033b4 RD |
2802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2803 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2804 | ||
2805 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2806 | if (PyErr_Occurred()) SWIG_fail; |
66c033b4 RD |
2807 | } |
2808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2809 | return resultobj; | |
2810 | fail: | |
2811 | return NULL; | |
2812 | } | |
2813 | ||
2814 | ||
c32bde28 | 2815 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2816 | PyObject *resultobj; |
2817 | wxIcon *arg1 = 0 ; | |
2818 | wxBitmap *result; | |
2819 | PyObject * obj0 = 0 ; | |
2820 | char *kwnames[] = { | |
2821 | (char *) "icon", NULL | |
2822 | }; | |
2823 | ||
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2827 | SWIG_fail; | |
d14a1e28 | 2828 | if (arg1 == NULL) { |
15afbcd0 RD |
2829 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2830 | SWIG_fail; | |
d14a1e28 RD |
2831 | } |
2832 | { | |
e3b71cb8 | 2833 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2835 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2836 | ||
2837 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2838 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2839 | } |
15afbcd0 | 2840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2841 | return resultobj; |
2842 | fail: | |
2843 | return NULL; | |
2844 | } | |
2845 | ||
2846 | ||
c32bde28 | 2847 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2848 | PyObject *resultobj; |
2849 | wxImage *arg1 = 0 ; | |
2850 | int arg2 = (int) -1 ; | |
2851 | wxBitmap *result; | |
2852 | PyObject * obj0 = 0 ; | |
994141e6 | 2853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2854 | char *kwnames[] = { |
2855 | (char *) "image",(char *) "depth", NULL | |
2856 | }; | |
2857 | ||
994141e6 | 2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2861 | SWIG_fail; | |
d14a1e28 | 2862 | if (arg1 == NULL) { |
15afbcd0 RD |
2863 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2864 | SWIG_fail; | |
d14a1e28 | 2865 | } |
994141e6 | 2866 | if (obj1) { |
c32bde28 | 2867 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2868 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2869 | } |
d14a1e28 | 2870 | { |
e3b71cb8 | 2871 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2873 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2874 | ||
2875 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2876 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2877 | } |
15afbcd0 | 2878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2879 | return resultobj; |
2880 | fail: | |
2881 | return NULL; | |
2882 | } | |
2883 | ||
2884 | ||
c32bde28 | 2885 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2886 | PyObject *resultobj; |
2887 | PyObject *arg1 = (PyObject *) 0 ; | |
2888 | wxBitmap *result; | |
2889 | PyObject * obj0 = 0 ; | |
2890 | char *kwnames[] = { | |
2891 | (char *) "listOfStrings", NULL | |
2892 | }; | |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2895 | arg1 = obj0; | |
2896 | { | |
e3b71cb8 | 2897 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2899 | result = (wxBitmap *)new_wxBitmap(arg1); | |
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_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2912 | PyObject *resultobj; |
2913 | PyObject *arg1 = (PyObject *) 0 ; | |
2914 | int arg2 ; | |
2915 | int arg3 ; | |
2916 | int arg4 = (int) 1 ; | |
2917 | wxBitmap *result; | |
2918 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2919 | PyObject * obj1 = 0 ; |
2920 | PyObject * obj2 = 0 ; | |
2921 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2922 | char *kwnames[] = { |
2923 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2924 | }; | |
2925 | ||
994141e6 | 2926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2927 | arg1 = obj0; |
c32bde28 | 2928 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2929 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2930 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2931 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2932 | if (obj3) { |
c32bde28 | 2933 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 2934 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2935 | } |
d14a1e28 | 2936 | { |
e3b71cb8 | 2937 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2939 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2940 | ||
2941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2942 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2943 | } |
15afbcd0 | 2944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2945 | return resultobj; |
2946 | fail: | |
2947 | return NULL; | |
2948 | } | |
2949 | ||
2950 | ||
c32bde28 | 2951 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2952 | PyObject *resultobj; |
2953 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2954 | bool result; | |
2955 | PyObject * obj0 = 0 ; | |
2956 | char *kwnames[] = { | |
2957 | (char *) "self", NULL | |
2958 | }; | |
2959 | ||
2960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2963 | { |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2965 | result = (bool)(arg1)->Ok(); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) SWIG_fail; | |
2969 | } | |
4f89f6a3 RD |
2970 | { |
2971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2972 | } | |
d14a1e28 RD |
2973 | return resultobj; |
2974 | fail: | |
2975 | return NULL; | |
2976 | } | |
2977 | ||
2978 | ||
c32bde28 | 2979 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2980 | PyObject *resultobj; |
2981 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2982 | int result; | |
2983 | PyObject * obj0 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2991 | { |
2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2993 | result = (int)(arg1)->GetWidth(); | |
2994 | ||
2995 | wxPyEndAllowThreads(__tstate); | |
2996 | if (PyErr_Occurred()) SWIG_fail; | |
2997 | } | |
c32bde28 | 2998 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2999 | return resultobj; |
3000 | fail: | |
3001 | return NULL; | |
3002 | } | |
3003 | ||
3004 | ||
c32bde28 | 3005 | static PyObject *_wrap_Bitmap_GetHeight(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_GetHeight",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)->GetHeight(); | |
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_GetDepth(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_GetDepth",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)->GetDepth(); | |
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_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
3058 | PyObject *resultobj; |
3059 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3060 | wxSize result; | |
3061 | PyObject * obj0 = 0 ; | |
3062 | char *kwnames[] = { | |
3063 | (char *) "self", NULL | |
3064 | }; | |
3065 | ||
3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | result = wxBitmap_GetSize(arg1); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
3076 | { | |
3077 | wxSize * resultptr; | |
3078 | resultptr = new wxSize((wxSize &) result); | |
3079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3080 | } | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | return NULL; | |
3084 | } | |
3085 | ||
3086 | ||
c32bde28 | 3087 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3088 | PyObject *resultobj; |
3089 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3090 | SwigValueWrapper< wxImage > result; | |
3091 | PyObject * obj0 = 0 ; | |
3092 | char *kwnames[] = { | |
3093 | (char *) "self", NULL | |
3094 | }; | |
3095 | ||
3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3099 | { |
3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3101 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3102 | ||
3103 | wxPyEndAllowThreads(__tstate); | |
3104 | if (PyErr_Occurred()) SWIG_fail; | |
3105 | } | |
3106 | { | |
3107 | wxImage * resultptr; | |
3108 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 3109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
3110 | } |
3111 | return resultobj; | |
3112 | fail: | |
3113 | return NULL; | |
3114 | } | |
3115 | ||
3116 | ||
c32bde28 | 3117 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3118 | PyObject *resultobj; |
3119 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3120 | wxMask *result; | |
3121 | PyObject * obj0 = 0 ; | |
3122 | char *kwnames[] = { | |
3123 | (char *) "self", NULL | |
3124 | }; | |
3125 | ||
3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3129 | { |
3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3131 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3132 | ||
3133 | wxPyEndAllowThreads(__tstate); | |
3134 | if (PyErr_Occurred()) SWIG_fail; | |
3135 | } | |
15afbcd0 | 3136 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
3137 | return resultobj; |
3138 | fail: | |
3139 | return NULL; | |
3140 | } | |
3141 | ||
3142 | ||
c32bde28 | 3143 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3144 | PyObject *resultobj; |
3145 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3146 | wxMask *arg2 = (wxMask *) 0 ; | |
3147 | PyObject * obj0 = 0 ; | |
3148 | PyObject * obj1 = 0 ; | |
3149 | char *kwnames[] = { | |
3150 | (char *) "self",(char *) "mask", NULL | |
3151 | }; | |
3152 | ||
3153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3156 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3158 | { |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | (arg1)->SetMask(arg2); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | Py_INCREF(Py_None); resultobj = Py_None; | |
3166 | return resultobj; | |
3167 | fail: | |
3168 | return NULL; | |
3169 | } | |
3170 | ||
3171 | ||
c32bde28 | 3172 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3173 | PyObject *resultobj; |
3174 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3175 | wxColour *arg2 = 0 ; | |
3176 | wxColour temp2 ; | |
3177 | PyObject * obj0 = 0 ; | |
3178 | PyObject * obj1 = 0 ; | |
3179 | char *kwnames[] = { | |
3180 | (char *) "self",(char *) "colour", NULL | |
3181 | }; | |
3182 | ||
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3186 | { |
3187 | arg2 = &temp2; | |
3188 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3189 | } | |
3190 | { | |
3191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3192 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3193 | ||
3194 | wxPyEndAllowThreads(__tstate); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | Py_INCREF(Py_None); resultobj = Py_None; | |
3198 | return resultobj; | |
3199 | fail: | |
3200 | return NULL; | |
3201 | } | |
3202 | ||
3203 | ||
c32bde28 | 3204 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3205 | PyObject *resultobj; |
3206 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3207 | wxRect *arg2 = 0 ; | |
3208 | SwigValueWrapper< wxBitmap > result; | |
3209 | wxRect temp2 ; | |
3210 | PyObject * obj0 = 0 ; | |
3211 | PyObject * obj1 = 0 ; | |
3212 | char *kwnames[] = { | |
3213 | (char *) "self",(char *) "rect", NULL | |
3214 | }; | |
3215 | ||
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3219 | { |
3220 | arg2 = &temp2; | |
3221 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3222 | } | |
3223 | { | |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3225 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
3230 | { | |
3231 | wxBitmap * resultptr; | |
3232 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 3233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3234 | } |
3235 | return resultobj; | |
3236 | fail: | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
c32bde28 | 3241 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3242 | PyObject *resultobj; |
3243 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3244 | wxString *arg2 = 0 ; | |
3245 | int arg3 ; | |
66c033b4 | 3246 | wxPalette *arg4 = (wxPalette *) NULL ; |
d14a1e28 | 3247 | bool result; |
ae8162c8 | 3248 | bool temp2 = false ; |
d14a1e28 RD |
3249 | PyObject * obj0 = 0 ; |
3250 | PyObject * obj1 = 0 ; | |
994141e6 | 3251 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3252 | PyObject * obj3 = 0 ; |
3253 | char *kwnames[] = { | |
3254 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3255 | }; | |
3256 | ||
994141e6 | 3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3260 | { |
3261 | arg2 = wxString_in_helper(obj1); | |
3262 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3263 | temp2 = true; |
d14a1e28 | 3264 | } |
c32bde28 | 3265 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3266 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3267 | if (obj3) { |
15afbcd0 RD |
3268 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3270 | } |
3271 | { | |
3272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3273 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3274 | ||
3275 | wxPyEndAllowThreads(__tstate); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
4f89f6a3 RD |
3278 | { |
3279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3280 | } | |
d14a1e28 RD |
3281 | { |
3282 | if (temp2) | |
3283 | delete arg2; | |
3284 | } | |
3285 | return resultobj; | |
3286 | fail: | |
3287 | { | |
3288 | if (temp2) | |
3289 | delete arg2; | |
3290 | } | |
3291 | return NULL; | |
3292 | } | |
3293 | ||
3294 | ||
c32bde28 | 3295 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3296 | PyObject *resultobj; |
3297 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3298 | wxString *arg2 = 0 ; | |
3299 | int arg3 ; | |
3300 | bool result; | |
ae8162c8 | 3301 | bool temp2 = false ; |
d14a1e28 RD |
3302 | PyObject * obj0 = 0 ; |
3303 | PyObject * obj1 = 0 ; | |
994141e6 | 3304 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3305 | char *kwnames[] = { |
3306 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3307 | }; | |
3308 | ||
994141e6 | 3309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3312 | { |
3313 | arg2 = wxString_in_helper(obj1); | |
3314 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3315 | temp2 = true; |
d14a1e28 | 3316 | } |
c32bde28 | 3317 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3319 | { |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3321 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
4f89f6a3 RD |
3326 | { |
3327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3328 | } | |
d14a1e28 RD |
3329 | { |
3330 | if (temp2) | |
3331 | delete arg2; | |
3332 | } | |
3333 | return resultobj; | |
3334 | fail: | |
3335 | { | |
3336 | if (temp2) | |
3337 | delete arg2; | |
3338 | } | |
3339 | return NULL; | |
3340 | } | |
3341 | ||
3342 | ||
d3b6e4ff RD |
3343 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
3344 | PyObject *resultobj; | |
3345 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3346 | wxPalette *result; | |
3347 | PyObject * obj0 = 0 ; | |
3348 | char *kwnames[] = { | |
3349 | (char *) "self", NULL | |
3350 | }; | |
3351 | ||
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; | |
3353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3355 | { | |
3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3357 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
3358 | ||
3359 | wxPyEndAllowThreads(__tstate); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
3362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); | |
3363 | return resultobj; | |
3364 | fail: | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
c32bde28 | 3369 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3370 | PyObject *resultobj; |
3371 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3372 | wxIcon *arg2 = 0 ; | |
3373 | bool result; | |
3374 | PyObject * obj0 = 0 ; | |
3375 | PyObject * obj1 = 0 ; | |
3376 | char *kwnames[] = { | |
3377 | (char *) "self",(char *) "icon", NULL | |
3378 | }; | |
3379 | ||
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3385 | SWIG_fail; | |
d14a1e28 | 3386 | if (arg2 == NULL) { |
15afbcd0 RD |
3387 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3388 | SWIG_fail; | |
d14a1e28 RD |
3389 | } |
3390 | { | |
3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3392 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3393 | ||
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
4f89f6a3 RD |
3397 | { |
3398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3399 | } | |
d14a1e28 RD |
3400 | return resultobj; |
3401 | fail: | |
3402 | return NULL; | |
3403 | } | |
3404 | ||
3405 | ||
c32bde28 | 3406 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3407 | PyObject *resultobj; |
3408 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3409 | int arg2 ; | |
3410 | PyObject * obj0 = 0 ; | |
994141e6 | 3411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3412 | char *kwnames[] = { |
3413 | (char *) "self",(char *) "height", NULL | |
3414 | }; | |
3415 | ||
994141e6 | 3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3419 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3420 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3421 | { |
3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3423 | (arg1)->SetHeight(arg2); | |
3424 | ||
3425 | wxPyEndAllowThreads(__tstate); | |
3426 | if (PyErr_Occurred()) SWIG_fail; | |
3427 | } | |
3428 | Py_INCREF(Py_None); resultobj = Py_None; | |
3429 | return resultobj; | |
3430 | fail: | |
3431 | return NULL; | |
3432 | } | |
3433 | ||
3434 | ||
c32bde28 | 3435 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3436 | PyObject *resultobj; |
3437 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3438 | int arg2 ; | |
3439 | PyObject * obj0 = 0 ; | |
994141e6 | 3440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3441 | char *kwnames[] = { |
3442 | (char *) "self",(char *) "width", NULL | |
3443 | }; | |
3444 | ||
994141e6 | 3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3448 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3449 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3450 | { |
3451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3452 | (arg1)->SetWidth(arg2); | |
3453 | ||
3454 | wxPyEndAllowThreads(__tstate); | |
3455 | if (PyErr_Occurred()) SWIG_fail; | |
3456 | } | |
3457 | Py_INCREF(Py_None); resultobj = Py_None; | |
3458 | return resultobj; | |
3459 | fail: | |
3460 | return NULL; | |
3461 | } | |
3462 | ||
3463 | ||
c32bde28 | 3464 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3465 | PyObject *resultobj; |
3466 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3467 | int arg2 ; | |
3468 | PyObject * obj0 = 0 ; | |
994141e6 | 3469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3470 | char *kwnames[] = { |
3471 | (char *) "self",(char *) "depth", NULL | |
3472 | }; | |
3473 | ||
994141e6 | 3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3477 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3478 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3479 | { |
3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3481 | (arg1)->SetDepth(arg2); | |
3482 | ||
3483 | wxPyEndAllowThreads(__tstate); | |
3484 | if (PyErr_Occurred()) SWIG_fail; | |
3485 | } | |
3486 | Py_INCREF(Py_None); resultobj = Py_None; | |
3487 | return resultobj; | |
3488 | fail: | |
3489 | return NULL; | |
3490 | } | |
3491 | ||
3492 | ||
c32bde28 | 3493 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
3494 | PyObject *resultobj; |
3495 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3496 | wxSize *arg2 = 0 ; | |
3497 | wxSize temp2 ; | |
3498 | PyObject * obj0 = 0 ; | |
3499 | PyObject * obj1 = 0 ; | |
3500 | char *kwnames[] = { | |
3501 | (char *) "self",(char *) "size", NULL | |
3502 | }; | |
3503 | ||
3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3507 | { | |
3508 | arg2 = &temp2; | |
3509 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3510 | } | |
3511 | { | |
3512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3513 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3514 | ||
3515 | wxPyEndAllowThreads(__tstate); | |
3516 | if (PyErr_Occurred()) SWIG_fail; | |
3517 | } | |
3518 | Py_INCREF(Py_None); resultobj = Py_None; | |
3519 | return resultobj; | |
3520 | fail: | |
3521 | return NULL; | |
3522 | } | |
3523 | ||
3524 | ||
c32bde28 | 3525 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
3526 | PyObject *resultobj; |
3527 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3528 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3529 | bool result; | |
3530 | PyObject * obj0 = 0 ; | |
3531 | PyObject * obj1 = 0 ; | |
3532 | char *kwnames[] = { | |
3533 | (char *) "self",(char *) "other", NULL | |
3534 | }; | |
3535 | ||
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
4f89f6a3 RD |
3548 | { |
3549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3550 | } | |
4276dc52 RD |
3551 | return resultobj; |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
c32bde28 | 3557 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
3558 | PyObject *resultobj; |
3559 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3560 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3561 | bool result; | |
3562 | PyObject * obj0 = 0 ; | |
3563 | PyObject * obj1 = 0 ; | |
3564 | char *kwnames[] = { | |
3565 | (char *) "self",(char *) "other", NULL | |
3566 | }; | |
3567 | ||
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3573 | { | |
3574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3575 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3576 | ||
3577 | wxPyEndAllowThreads(__tstate); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
4f89f6a3 RD |
3580 | { |
3581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3582 | } | |
4276dc52 RD |
3583 | return resultobj; |
3584 | fail: | |
3585 | return NULL; | |
3586 | } | |
3587 | ||
3588 | ||
c32bde28 | 3589 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3590 | PyObject *obj; |
3591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3592 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3593 | Py_INCREF(obj); | |
3594 | return Py_BuildValue((char *)""); | |
3595 | } | |
c32bde28 | 3596 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3597 | PyObject *resultobj; |
3598 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3599 | wxColour const &arg2_defvalue = wxNullColour ; |
3600 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3601 | wxMask *result; |
3602 | wxColour temp2 ; | |
3603 | PyObject * obj0 = 0 ; | |
3604 | PyObject * obj1 = 0 ; | |
3605 | char *kwnames[] = { | |
3606 | (char *) "bitmap",(char *) "colour", NULL | |
3607 | }; | |
3608 | ||
0482c494 | 3609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3612 | SWIG_fail; | |
d14a1e28 | 3613 | if (arg1 == NULL) { |
15afbcd0 RD |
3614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3615 | SWIG_fail; | |
d14a1e28 | 3616 | } |
0482c494 RD |
3617 | if (obj1) { |
3618 | { | |
3619 | arg2 = &temp2; | |
3620 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3621 | } | |
d14a1e28 RD |
3622 | } |
3623 | { | |
e3b71cb8 | 3624 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0482c494 | 3626 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3627 | |
3628 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3629 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3630 | } |
15afbcd0 | 3631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3632 | return resultobj; |
3633 | fail: | |
3634 | return NULL; | |
3635 | } | |
3636 | ||
3637 | ||
c32bde28 | 3638 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3639 | PyObject *obj; |
3640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3641 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3642 | Py_INCREF(obj); | |
3643 | return Py_BuildValue((char *)""); | |
3644 | } | |
c32bde28 | 3645 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3646 | PyObject *resultobj; |
3647 | wxString *arg1 = 0 ; | |
f87da722 | 3648 | int arg2 ; |
d14a1e28 RD |
3649 | int arg3 = (int) -1 ; |
3650 | int arg4 = (int) -1 ; | |
3651 | wxIcon *result; | |
ae8162c8 | 3652 | bool temp1 = false ; |
d14a1e28 | 3653 | PyObject * obj0 = 0 ; |
994141e6 RD |
3654 | PyObject * obj1 = 0 ; |
3655 | PyObject * obj2 = 0 ; | |
3656 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3657 | char *kwnames[] = { |
f87da722 | 3658 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3659 | }; |
3660 | ||
994141e6 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3662 | { |
3663 | arg1 = wxString_in_helper(obj0); | |
3664 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3665 | temp1 = true; |
d14a1e28 | 3666 | } |
c32bde28 | 3667 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3668 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3669 | if (obj2) { |
c32bde28 | 3670 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3671 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3672 | } |
3673 | if (obj3) { | |
c32bde28 | 3674 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 3675 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3676 | } |
3677 | { | |
e3b71cb8 | 3678 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3680 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3681 | ||
3682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3684 | } |
15afbcd0 | 3685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3686 | { |
3687 | if (temp1) | |
3688 | delete arg1; | |
3689 | } | |
3690 | return resultobj; | |
3691 | fail: | |
3692 | { | |
3693 | if (temp1) | |
3694 | delete arg1; | |
3695 | } | |
3696 | return NULL; | |
3697 | } | |
3698 | ||
3699 | ||
c32bde28 | 3700 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3701 | PyObject *resultobj; |
3702 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3703 | PyObject * obj0 = 0 ; | |
3704 | char *kwnames[] = { | |
3705 | (char *) "self", NULL | |
3706 | }; | |
3707 | ||
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3711 | { |
3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3713 | delete arg1; | |
3714 | ||
3715 | wxPyEndAllowThreads(__tstate); | |
3716 | if (PyErr_Occurred()) SWIG_fail; | |
3717 | } | |
3718 | Py_INCREF(Py_None); resultobj = Py_None; | |
3719 | return resultobj; | |
3720 | fail: | |
3721 | return NULL; | |
3722 | } | |
3723 | ||
3724 | ||
c32bde28 | 3725 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3726 | PyObject *resultobj; |
3727 | wxIcon *result; | |
3728 | char *kwnames[] = { | |
3729 | NULL | |
3730 | }; | |
3731 | ||
3732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3733 | { | |
e3b71cb8 | 3734 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3736 | result = (wxIcon *)new wxIcon(); | |
3737 | ||
3738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3739 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3740 | } |
15afbcd0 | 3741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3742 | return resultobj; |
3743 | fail: | |
3744 | return NULL; | |
3745 | } | |
3746 | ||
3747 | ||
c32bde28 | 3748 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3749 | PyObject *resultobj; |
3750 | wxIconLocation *arg1 = 0 ; | |
3751 | wxIcon *result; | |
3752 | PyObject * obj0 = 0 ; | |
3753 | char *kwnames[] = { | |
3754 | (char *) "loc", NULL | |
3755 | }; | |
3756 | ||
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3760 | SWIG_fail; | |
d14a1e28 | 3761 | if (arg1 == NULL) { |
15afbcd0 RD |
3762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3763 | SWIG_fail; | |
d14a1e28 RD |
3764 | } |
3765 | { | |
e3b71cb8 | 3766 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3768 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3769 | ||
3770 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3771 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3772 | } |
15afbcd0 | 3773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3774 | return resultobj; |
3775 | fail: | |
3776 | return NULL; | |
3777 | } | |
3778 | ||
3779 | ||
c32bde28 | 3780 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3781 | PyObject *resultobj; |
3782 | wxBitmap *arg1 = 0 ; | |
3783 | wxIcon *result; | |
3784 | PyObject * obj0 = 0 ; | |
3785 | char *kwnames[] = { | |
3786 | (char *) "bmp", NULL | |
3787 | }; | |
3788 | ||
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3792 | SWIG_fail; | |
d14a1e28 | 3793 | if (arg1 == NULL) { |
15afbcd0 RD |
3794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3795 | SWIG_fail; | |
d14a1e28 RD |
3796 | } |
3797 | { | |
e3b71cb8 | 3798 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3800 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3801 | ||
3802 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3803 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3804 | } |
15afbcd0 | 3805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3806 | return resultobj; |
3807 | fail: | |
3808 | return NULL; | |
3809 | } | |
3810 | ||
3811 | ||
c32bde28 | 3812 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3813 | PyObject *resultobj; |
3814 | PyObject *arg1 = (PyObject *) 0 ; | |
3815 | wxIcon *result; | |
3816 | PyObject * obj0 = 0 ; | |
3817 | char *kwnames[] = { | |
3818 | (char *) "listOfStrings", NULL | |
3819 | }; | |
3820 | ||
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3822 | arg1 = obj0; | |
3823 | { | |
e3b71cb8 | 3824 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3826 | result = (wxIcon *)new_wxIcon(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_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3839 | PyObject *resultobj; |
3840 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3841 | wxString *arg2 = 0 ; | |
f87da722 | 3842 | int arg3 ; |
d14a1e28 | 3843 | bool result; |
ae8162c8 | 3844 | bool temp2 = false ; |
d14a1e28 RD |
3845 | PyObject * obj0 = 0 ; |
3846 | PyObject * obj1 = 0 ; | |
994141e6 | 3847 | PyObject * obj2 = 0 ; |
d14a1e28 | 3848 | char *kwnames[] = { |
f87da722 | 3849 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3850 | }; |
3851 | ||
994141e6 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3855 | { |
3856 | arg2 = wxString_in_helper(obj1); | |
3857 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3858 | temp2 = true; |
d14a1e28 | 3859 | } |
c32bde28 | 3860 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3861 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3862 | { |
3863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3864 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3865 | |
3866 | wxPyEndAllowThreads(__tstate); | |
3867 | if (PyErr_Occurred()) SWIG_fail; | |
3868 | } | |
4f89f6a3 RD |
3869 | { |
3870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3871 | } | |
d14a1e28 RD |
3872 | { |
3873 | if (temp2) | |
3874 | delete arg2; | |
3875 | } | |
3876 | return resultobj; | |
3877 | fail: | |
3878 | { | |
3879 | if (temp2) | |
3880 | delete arg2; | |
3881 | } | |
3882 | return NULL; | |
3883 | } | |
3884 | ||
3885 | ||
c32bde28 | 3886 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3887 | PyObject *resultobj; |
3888 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3889 | bool result; | |
3890 | PyObject * obj0 = 0 ; | |
3891 | char *kwnames[] = { | |
3892 | (char *) "self", NULL | |
3893 | }; | |
3894 | ||
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3898 | { |
3899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3900 | result = (bool)(arg1)->Ok(); | |
3901 | ||
3902 | wxPyEndAllowThreads(__tstate); | |
3903 | if (PyErr_Occurred()) SWIG_fail; | |
3904 | } | |
4f89f6a3 RD |
3905 | { |
3906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3907 | } | |
d14a1e28 RD |
3908 | return resultobj; |
3909 | fail: | |
3910 | return NULL; | |
3911 | } | |
3912 | ||
3913 | ||
c32bde28 | 3914 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3915 | PyObject *resultobj; |
3916 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3917 | int result; | |
3918 | PyObject * obj0 = 0 ; | |
3919 | char *kwnames[] = { | |
3920 | (char *) "self", NULL | |
3921 | }; | |
3922 | ||
3923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3926 | { |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | result = (int)(arg1)->GetWidth(); | |
3929 | ||
3930 | wxPyEndAllowThreads(__tstate); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | } | |
c32bde28 | 3933 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3934 | return resultobj; |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
c32bde28 | 3940 | static PyObject *_wrap_Icon_GetHeight(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_GetHeight",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)->GetHeight(); | |
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_GetDepth(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_GetDepth",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)->GetDepth(); | |
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_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3993 | PyObject *resultobj; |
3994 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3995 | int arg2 ; | |
3996 | PyObject * obj0 = 0 ; | |
994141e6 | 3997 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3998 | char *kwnames[] = { |
3999 | (char *) "self",(char *) "w", NULL | |
4000 | }; | |
4001 | ||
994141e6 | 4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4005 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4006 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4007 | { |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | (arg1)->SetWidth(arg2); | |
4010 | ||
4011 | wxPyEndAllowThreads(__tstate); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | } | |
4014 | Py_INCREF(Py_None); resultobj = Py_None; | |
4015 | return resultobj; | |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
c32bde28 | 4021 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4022 | PyObject *resultobj; |
4023 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4024 | int arg2 ; | |
4025 | PyObject * obj0 = 0 ; | |
994141e6 | 4026 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4027 | char *kwnames[] = { |
4028 | (char *) "self",(char *) "h", NULL | |
4029 | }; | |
4030 | ||
994141e6 | 4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4034 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4036 | { |
4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4038 | (arg1)->SetHeight(arg2); | |
4039 | ||
4040 | wxPyEndAllowThreads(__tstate); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | Py_INCREF(Py_None); resultobj = Py_None; | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
c32bde28 | 4050 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4051 | PyObject *resultobj; |
4052 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4053 | int arg2 ; | |
4054 | PyObject * obj0 = 0 ; | |
994141e6 | 4055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4056 | char *kwnames[] = { |
4057 | (char *) "self",(char *) "d", NULL | |
4058 | }; | |
4059 | ||
994141e6 | 4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4063 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4064 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4065 | { |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | (arg1)->SetDepth(arg2); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | Py_INCREF(Py_None); resultobj = Py_None; | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
c32bde28 | 4079 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4080 | PyObject *resultobj; |
4081 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4082 | wxBitmap *arg2 = 0 ; | |
4083 | PyObject * obj0 = 0 ; | |
4084 | PyObject * obj1 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self",(char *) "bmp", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4093 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4094 | SWIG_fail; | |
d14a1e28 | 4095 | if (arg2 == NULL) { |
15afbcd0 RD |
4096 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4097 | SWIG_fail; | |
d14a1e28 RD |
4098 | } |
4099 | { | |
4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4101 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4102 | ||
4103 | wxPyEndAllowThreads(__tstate); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | Py_INCREF(Py_None); resultobj = Py_None; | |
4107 | return resultobj; | |
4108 | fail: | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
c32bde28 | 4113 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4114 | PyObject *obj; |
4115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4116 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4117 | Py_INCREF(obj); | |
4118 | return Py_BuildValue((char *)""); | |
4119 | } | |
c32bde28 | 4120 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4121 | PyObject *resultobj; |
4122 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4123 | int arg2 = (int) 0 ; | |
4124 | wxIconLocation *result; | |
ae8162c8 | 4125 | bool temp1 = false ; |
d14a1e28 | 4126 | PyObject * obj0 = 0 ; |
994141e6 | 4127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4128 | char *kwnames[] = { |
4129 | (char *) "filename",(char *) "num", NULL | |
4130 | }; | |
4131 | ||
994141e6 | 4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4133 | if (obj0) { |
7eae615b RD |
4134 | { |
4135 | arg1 = wxString_in_helper(obj0); | |
4136 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4137 | temp1 = true; |
7eae615b | 4138 | } |
d14a1e28 | 4139 | } |
994141e6 | 4140 | if (obj1) { |
c32bde28 | 4141 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4142 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4143 | } |
d14a1e28 RD |
4144 | { |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
15afbcd0 | 4151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
4152 | { |
4153 | if (temp1) | |
4154 | delete arg1; | |
4155 | } | |
d14a1e28 RD |
4156 | return resultobj; |
4157 | fail: | |
7eae615b RD |
4158 | { |
4159 | if (temp1) | |
4160 | delete arg1; | |
4161 | } | |
d14a1e28 RD |
4162 | return NULL; |
4163 | } | |
4164 | ||
4165 | ||
c32bde28 | 4166 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4167 | PyObject *resultobj; |
4168 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4169 | PyObject * obj0 = 0 ; | |
4170 | char *kwnames[] = { | |
4171 | (char *) "self", NULL | |
4172 | }; | |
4173 | ||
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4177 | { |
4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4179 | delete arg1; | |
4180 | ||
4181 | wxPyEndAllowThreads(__tstate); | |
4182 | if (PyErr_Occurred()) SWIG_fail; | |
4183 | } | |
4184 | Py_INCREF(Py_None); resultobj = Py_None; | |
4185 | return resultobj; | |
4186 | fail: | |
4187 | return NULL; | |
4188 | } | |
4189 | ||
4190 | ||
c32bde28 | 4191 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4192 | PyObject *resultobj; |
4193 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4194 | bool result; | |
4195 | PyObject * obj0 = 0 ; | |
4196 | char *kwnames[] = { | |
4197 | (char *) "self", NULL | |
4198 | }; | |
4199 | ||
4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",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 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4206 | ||
4207 | wxPyEndAllowThreads(__tstate); | |
4208 | if (PyErr_Occurred()) SWIG_fail; | |
4209 | } | |
4f89f6a3 RD |
4210 | { |
4211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4212 | } | |
d14a1e28 RD |
4213 | return resultobj; |
4214 | fail: | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
c32bde28 | 4219 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4220 | PyObject *resultobj; |
4221 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4222 | wxString *arg2 = 0 ; | |
ae8162c8 | 4223 | bool temp2 = false ; |
d14a1e28 RD |
4224 | PyObject * obj0 = 0 ; |
4225 | PyObject * obj1 = 0 ; | |
4226 | char *kwnames[] = { | |
4227 | (char *) "self",(char *) "filename", NULL | |
4228 | }; | |
4229 | ||
4230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4233 | { |
4234 | arg2 = wxString_in_helper(obj1); | |
4235 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4236 | temp2 = true; |
d14a1e28 RD |
4237 | } |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | (arg1)->SetFileName((wxString const &)*arg2); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | Py_INCREF(Py_None); resultobj = Py_None; | |
4246 | { | |
4247 | if (temp2) | |
4248 | delete arg2; | |
4249 | } | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | { | |
4253 | if (temp2) | |
4254 | delete arg2; | |
4255 | } | |
4256 | return NULL; | |
4257 | } | |
4258 | ||
4259 | ||
c32bde28 | 4260 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4261 | PyObject *resultobj; |
4262 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4263 | wxString *result; | |
4264 | PyObject * obj0 = 0 ; | |
4265 | char *kwnames[] = { | |
4266 | (char *) "self", NULL | |
4267 | }; | |
4268 | ||
4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4272 | { |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | { | |
4275 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4276 | result = (wxString *) &_result_ref; | |
4277 | } | |
4278 | ||
4279 | wxPyEndAllowThreads(__tstate); | |
4280 | if (PyErr_Occurred()) SWIG_fail; | |
4281 | } | |
cc6dd355 RD |
4282 | { |
4283 | #if wxUSE_UNICODE | |
4284 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4285 | #else | |
4286 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4287 | #endif | |
4288 | } | |
d14a1e28 RD |
4289 | return resultobj; |
4290 | fail: | |
4291 | return NULL; | |
4292 | } | |
4293 | ||
4294 | ||
c32bde28 | 4295 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4296 | PyObject *resultobj; |
4297 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4298 | int arg2 ; | |
4299 | PyObject * obj0 = 0 ; | |
994141e6 | 4300 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4301 | char *kwnames[] = { |
4302 | (char *) "self",(char *) "num", NULL | |
4303 | }; | |
4304 | ||
994141e6 | 4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4308 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4309 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4310 | { |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | wxIconLocation_SetIndex(arg1,arg2); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | Py_INCREF(Py_None); resultobj = Py_None; | |
4318 | return resultobj; | |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
c32bde28 | 4324 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4325 | PyObject *resultobj; |
4326 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4327 | int result; | |
4328 | PyObject * obj0 = 0 ; | |
4329 | char *kwnames[] = { | |
4330 | (char *) "self", NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4336 | { |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | result = (int)wxIconLocation_GetIndex(arg1); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
c32bde28 | 4343 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4344 | return resultobj; |
4345 | fail: | |
4346 | return NULL; | |
4347 | } | |
4348 | ||
4349 | ||
c32bde28 | 4350 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4351 | PyObject *obj; |
4352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4353 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4354 | Py_INCREF(obj); | |
4355 | return Py_BuildValue((char *)""); | |
4356 | } | |
c32bde28 | 4357 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4358 | PyObject *resultobj; |
4359 | wxIconBundle *result; | |
4360 | char *kwnames[] = { | |
4361 | NULL | |
4362 | }; | |
4363 | ||
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (wxIconBundle *)new wxIconBundle(); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
15afbcd0 | 4372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4373 | return resultobj; |
4374 | fail: | |
4375 | return NULL; | |
4376 | } | |
4377 | ||
4378 | ||
c32bde28 | 4379 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4380 | PyObject *resultobj; |
4381 | wxString *arg1 = 0 ; | |
4382 | long arg2 ; | |
4383 | wxIconBundle *result; | |
ae8162c8 | 4384 | bool temp1 = false ; |
d14a1e28 | 4385 | PyObject * obj0 = 0 ; |
994141e6 | 4386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4387 | char *kwnames[] = { |
4388 | (char *) "file",(char *) "type", NULL | |
4389 | }; | |
4390 | ||
994141e6 | 4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4392 | { |
4393 | arg1 = wxString_in_helper(obj0); | |
4394 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4395 | temp1 = true; |
d14a1e28 | 4396 | } |
c32bde28 | 4397 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 4398 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4399 | { |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4401 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4402 | ||
4403 | wxPyEndAllowThreads(__tstate); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
15afbcd0 | 4406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4407 | { |
4408 | if (temp1) | |
4409 | delete arg1; | |
4410 | } | |
4411 | return resultobj; | |
4412 | fail: | |
4413 | { | |
4414 | if (temp1) | |
4415 | delete arg1; | |
4416 | } | |
4417 | return NULL; | |
4418 | } | |
4419 | ||
4420 | ||
c32bde28 | 4421 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4422 | PyObject *resultobj; |
4423 | wxIcon *arg1 = 0 ; | |
4424 | wxIconBundle *result; | |
4425 | PyObject * obj0 = 0 ; | |
4426 | char *kwnames[] = { | |
4427 | (char *) "icon", NULL | |
4428 | }; | |
4429 | ||
4430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4433 | SWIG_fail; | |
d14a1e28 | 4434 | if (arg1 == NULL) { |
15afbcd0 RD |
4435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4436 | SWIG_fail; | |
d14a1e28 RD |
4437 | } |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
15afbcd0 | 4445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4446 | return resultobj; |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
c32bde28 | 4452 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4453 | PyObject *resultobj; |
4454 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4455 | PyObject * obj0 = 0 ; | |
4456 | char *kwnames[] = { | |
4457 | (char *) "self", NULL | |
4458 | }; | |
4459 | ||
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4463 | { |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | delete arg1; | |
4466 | ||
4467 | wxPyEndAllowThreads(__tstate); | |
4468 | if (PyErr_Occurred()) SWIG_fail; | |
4469 | } | |
4470 | Py_INCREF(Py_None); resultobj = Py_None; | |
4471 | return resultobj; | |
4472 | fail: | |
4473 | return NULL; | |
4474 | } | |
4475 | ||
4476 | ||
c32bde28 | 4477 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4478 | PyObject *resultobj; |
4479 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4480 | wxIcon *arg2 = 0 ; | |
4481 | PyObject * obj0 = 0 ; | |
4482 | PyObject * obj1 = 0 ; | |
4483 | char *kwnames[] = { | |
4484 | (char *) "self",(char *) "icon", NULL | |
4485 | }; | |
4486 | ||
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4492 | SWIG_fail; | |
d14a1e28 | 4493 | if (arg2 == NULL) { |
15afbcd0 RD |
4494 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4495 | SWIG_fail; | |
d14a1e28 RD |
4496 | } |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4500 | ||
4501 | wxPyEndAllowThreads(__tstate); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
4504 | Py_INCREF(Py_None); resultobj = Py_None; | |
4505 | return resultobj; | |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
c32bde28 | 4511 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4512 | PyObject *resultobj; |
4513 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4514 | wxString *arg2 = 0 ; | |
4515 | long arg3 ; | |
ae8162c8 | 4516 | bool temp2 = false ; |
d14a1e28 RD |
4517 | PyObject * obj0 = 0 ; |
4518 | PyObject * obj1 = 0 ; | |
994141e6 | 4519 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4520 | char *kwnames[] = { |
4521 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4522 | }; | |
4523 | ||
994141e6 | 4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4527 | { |
4528 | arg2 = wxString_in_helper(obj1); | |
4529 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4530 | temp2 = true; |
d14a1e28 | 4531 | } |
c32bde28 | 4532 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 4533 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4534 | { |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4536 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4537 | ||
4538 | wxPyEndAllowThreads(__tstate); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | Py_INCREF(Py_None); resultobj = Py_None; | |
4542 | { | |
4543 | if (temp2) | |
4544 | delete arg2; | |
4545 | } | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | { | |
4549 | if (temp2) | |
4550 | delete arg2; | |
4551 | } | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
c32bde28 | 4556 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4557 | PyObject *resultobj; |
4558 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4559 | wxSize *arg2 = 0 ; | |
4560 | wxIcon *result; | |
4561 | wxSize temp2 ; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | PyObject * obj1 = 0 ; | |
4564 | char *kwnames[] = { | |
4565 | (char *) "self",(char *) "size", NULL | |
4566 | }; | |
4567 | ||
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4571 | { |
4572 | arg2 = &temp2; | |
4573 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4574 | } | |
4575 | { | |
4576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4577 | { | |
4578 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4579 | result = (wxIcon *) &_result_ref; | |
4580 | } | |
4581 | ||
4582 | wxPyEndAllowThreads(__tstate); | |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
4584 | } | |
4276dc52 RD |
4585 | { |
4586 | wxIcon* resultptr = new wxIcon(*result); | |
4587 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4588 | } | |
d14a1e28 RD |
4589 | return resultobj; |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
c32bde28 | 4595 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4596 | PyObject *obj; |
4597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4598 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4599 | Py_INCREF(obj); | |
4600 | return Py_BuildValue((char *)""); | |
4601 | } | |
c32bde28 | 4602 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4603 | PyObject *resultobj; |
4604 | wxString *arg1 = (wxString *) 0 ; | |
4605 | long arg2 ; | |
4606 | int arg3 = (int) 0 ; | |
4607 | int arg4 = (int) 0 ; | |
4608 | wxCursor *result; | |
ae8162c8 | 4609 | bool temp1 = false ; |
d14a1e28 | 4610 | PyObject * obj0 = 0 ; |
994141e6 RD |
4611 | PyObject * obj1 = 0 ; |
4612 | PyObject * obj2 = 0 ; | |
4613 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4614 | char *kwnames[] = { |
15afbcd0 | 4615 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4616 | }; |
4617 | ||
994141e6 | 4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4619 | { |
4620 | arg1 = wxString_in_helper(obj0); | |
4621 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4622 | temp1 = true; |
7eae615b | 4623 | } |
c32bde28 | 4624 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 4625 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4626 | if (obj2) { |
c32bde28 | 4627 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4628 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4629 | } |
4630 | if (obj3) { | |
c32bde28 | 4631 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 4632 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4633 | } |
d14a1e28 | 4634 | { |
e3b71cb8 | 4635 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4637 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4638 | ||
4639 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4640 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4641 | } |
15afbcd0 | 4642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
7eae615b RD |
4643 | { |
4644 | if (temp1) | |
4645 | delete arg1; | |
4646 | } | |
d14a1e28 RD |
4647 | return resultobj; |
4648 | fail: | |
7eae615b RD |
4649 | { |
4650 | if (temp1) | |
4651 | delete arg1; | |
4652 | } | |
d14a1e28 RD |
4653 | return NULL; |
4654 | } | |
4655 | ||
4656 | ||
c32bde28 | 4657 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4658 | PyObject *resultobj; |
4659 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4660 | PyObject * obj0 = 0 ; | |
4661 | char *kwnames[] = { | |
4662 | (char *) "self", NULL | |
4663 | }; | |
4664 | ||
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4668 | { |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | delete arg1; | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | Py_INCREF(Py_None); resultobj = Py_None; | |
4676 | return resultobj; | |
4677 | fail: | |
4678 | return NULL; | |
4679 | } | |
4680 | ||
4681 | ||
c32bde28 | 4682 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4683 | PyObject *resultobj; |
4684 | int arg1 ; | |
4685 | wxCursor *result; | |
994141e6 | 4686 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4687 | char *kwnames[] = { |
4688 | (char *) "id", NULL | |
4689 | }; | |
4690 | ||
994141e6 | 4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
c32bde28 | 4692 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 4693 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4694 | { |
e3b71cb8 | 4695 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4697 | result = (wxCursor *)new wxCursor(arg1); | |
4698 | ||
4699 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4700 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4701 | } |
15afbcd0 | 4702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4703 | return resultobj; |
4704 | fail: | |
4705 | return NULL; | |
4706 | } | |
4707 | ||
4708 | ||
c32bde28 | 4709 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4710 | PyObject *resultobj; |
4711 | wxImage *arg1 = 0 ; | |
4712 | wxCursor *result; | |
4713 | PyObject * obj0 = 0 ; | |
4714 | char *kwnames[] = { | |
4715 | (char *) "image", NULL | |
4716 | }; | |
4717 | ||
4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4721 | SWIG_fail; | |
d14a1e28 | 4722 | if (arg1 == NULL) { |
15afbcd0 RD |
4723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4724 | SWIG_fail; | |
d14a1e28 RD |
4725 | } |
4726 | { | |
e3b71cb8 | 4727 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4729 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4730 | ||
4731 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4732 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4733 | } |
15afbcd0 | 4734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4735 | return resultobj; |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
c32bde28 | 4741 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4742 | PyObject *resultobj; |
4743 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4744 | bool result; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | char *kwnames[] = { | |
4747 | (char *) "self", NULL | |
4748 | }; | |
4749 | ||
4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4753 | { |
4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4755 | result = (bool)(arg1)->Ok(); | |
4756 | ||
4757 | wxPyEndAllowThreads(__tstate); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4f89f6a3 RD |
4760 | { |
4761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4762 | } | |
d14a1e28 RD |
4763 | return resultobj; |
4764 | fail: | |
4765 | return NULL; | |
4766 | } | |
4767 | ||
4768 | ||
c32bde28 | 4769 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4770 | PyObject *obj; |
4771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4772 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4773 | Py_INCREF(obj); | |
4774 | return Py_BuildValue((char *)""); | |
4775 | } | |
c32bde28 | 4776 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4777 | PyObject *resultobj; |
e811c8ce RD |
4778 | int arg1 = (int) 0 ; |
4779 | int arg2 = (int) 0 ; | |
4780 | int arg3 = (int) 0 ; | |
4781 | int arg4 = (int) 0 ; | |
d14a1e28 | 4782 | wxRegion *result; |
994141e6 RD |
4783 | PyObject * obj0 = 0 ; |
4784 | PyObject * obj1 = 0 ; | |
4785 | PyObject * obj2 = 0 ; | |
4786 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4787 | char *kwnames[] = { |
4788 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4789 | }; | |
4790 | ||
994141e6 RD |
4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4792 | if (obj0) { | |
c32bde28 | 4793 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 4794 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4795 | } |
4796 | if (obj1) { | |
c32bde28 | 4797 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4798 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4799 | } |
4800 | if (obj2) { | |
c32bde28 | 4801 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4802 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
4803 | } |
4804 | if (obj3) { | |
c32bde28 | 4805 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 4806 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4807 | } |
d14a1e28 | 4808 | { |
e3b71cb8 | 4809 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4811 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4815 | } |
15afbcd0 | 4816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4817 | return resultobj; |
4818 | fail: | |
4819 | return NULL; | |
4820 | } | |
4821 | ||
4822 | ||
c32bde28 | 4823 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4824 | PyObject *resultobj; |
4825 | wxBitmap *arg1 = 0 ; | |
e6ffcedd RD |
4826 | wxRegion *result; |
4827 | PyObject * obj0 = 0 ; | |
4828 | char *kwnames[] = { | |
4829 | (char *) "bmp", NULL | |
4830 | }; | |
4831 | ||
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
4833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4835 | SWIG_fail; | |
4836 | if (arg1 == NULL) { | |
4837 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4838 | SWIG_fail; | |
4839 | } | |
4840 | { | |
4841 | if (!wxPyCheckForApp()) SWIG_fail; | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4846 | if (PyErr_Occurred()) SWIG_fail; |
e6ffcedd RD |
4847 | } |
4848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4849 | return resultobj; | |
4850 | fail: | |
4851 | return NULL; | |
4852 | } | |
4853 | ||
4854 | ||
c32bde28 | 4855 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
e6ffcedd RD |
4856 | PyObject *resultobj; |
4857 | wxBitmap *arg1 = 0 ; | |
4858 | wxColour *arg2 = 0 ; | |
d14a1e28 RD |
4859 | int arg3 = (int) 0 ; |
4860 | wxRegion *result; | |
4861 | wxColour temp2 ; | |
4862 | PyObject * obj0 = 0 ; | |
4863 | PyObject * obj1 = 0 ; | |
994141e6 | 4864 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4865 | char *kwnames[] = { |
4866 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4867 | }; | |
4868 | ||
e6ffcedd | 4869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4872 | SWIG_fail; | |
d14a1e28 | 4873 | if (arg1 == NULL) { |
15afbcd0 RD |
4874 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4875 | SWIG_fail; | |
d14a1e28 | 4876 | } |
e6ffcedd RD |
4877 | { |
4878 | arg2 = &temp2; | |
4879 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 4880 | } |
994141e6 | 4881 | if (obj2) { |
c32bde28 | 4882 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4883 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4884 | } |
d14a1e28 | 4885 | { |
e3b71cb8 | 4886 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4888 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4891 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4892 | } |
15afbcd0 | 4893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4894 | return resultobj; |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
c32bde28 | 4900 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4901 | PyObject *resultobj; |
4902 | int arg1 ; | |
4903 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4904 | int arg3 = (int) wxWINDING_RULE ; | |
4905 | wxRegion *result; | |
4906 | PyObject * obj0 = 0 ; | |
994141e6 | 4907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4908 | char *kwnames[] = { |
4909 | (char *) "points",(char *) "fillStyle", NULL | |
4910 | }; | |
4911 | ||
994141e6 | 4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4913 | { |
4914 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4915 | if (arg2 == NULL) SWIG_fail; | |
4916 | } | |
994141e6 | 4917 | if (obj1) { |
c32bde28 | 4918 | arg3 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4919 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4920 | } |
d14a1e28 | 4921 | { |
e3b71cb8 | 4922 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4924 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4927 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4928 | } |
15afbcd0 | 4929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4930 | { |
4931 | if (arg2) delete [] arg2; | |
4932 | } | |
4933 | return resultobj; | |
4934 | fail: | |
4935 | { | |
4936 | if (arg2) delete [] arg2; | |
4937 | } | |
4938 | return NULL; | |
4939 | } | |
4940 | ||
4941 | ||
c32bde28 | 4942 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4943 | PyObject *resultobj; |
4944 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | char *kwnames[] = { | |
4947 | (char *) "self", NULL | |
4948 | }; | |
4949 | ||
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4953 | { |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | delete arg1; | |
4956 | ||
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | Py_INCREF(Py_None); resultobj = Py_None; | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | return NULL; | |
4964 | } | |
4965 | ||
4966 | ||
c32bde28 | 4967 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4968 | PyObject *resultobj; |
4969 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | char *kwnames[] = { | |
4972 | (char *) "self", NULL | |
4973 | }; | |
4974 | ||
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4978 | { |
4979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4980 | (arg1)->Clear(); | |
4981 | ||
4982 | wxPyEndAllowThreads(__tstate); | |
4983 | if (PyErr_Occurred()) SWIG_fail; | |
4984 | } | |
4985 | Py_INCREF(Py_None); resultobj = Py_None; | |
4986 | return resultobj; | |
4987 | fail: | |
4988 | return NULL; | |
4989 | } | |
4990 | ||
4991 | ||
c32bde28 | 4992 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4993 | PyObject *resultobj; |
4994 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4995 | int arg2 ; |
4996 | int arg3 ; | |
d14a1e28 RD |
4997 | bool result; |
4998 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4999 | PyObject * obj1 = 0 ; |
5000 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5001 | char *kwnames[] = { |
5002 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5003 | }; | |
5004 | ||
994141e6 | 5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5008 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5009 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5010 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5011 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5012 | { |
5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5014 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5015 | ||
5016 | wxPyEndAllowThreads(__tstate); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
4f89f6a3 RD |
5019 | { |
5020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5021 | } | |
d14a1e28 RD |
5022 | return resultobj; |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c32bde28 | 5028 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5029 | PyObject *resultobj; |
5030 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5031 | int arg2 ; |
5032 | int arg3 ; | |
d14a1e28 RD |
5033 | int result; |
5034 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5035 | PyObject * obj1 = 0 ; |
5036 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5037 | char *kwnames[] = { |
5038 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5039 | }; | |
5040 | ||
994141e6 | 5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5044 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5045 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5046 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5047 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5048 | { |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (int)(arg1)->Contains(arg2,arg3); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
c32bde28 | 5055 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5056 | return resultobj; |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
c32bde28 | 5062 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5063 | PyObject *resultobj; |
5064 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5065 | wxPoint *arg2 = 0 ; | |
5066 | int result; | |
5067 | wxPoint temp2 ; | |
5068 | PyObject * obj0 = 0 ; | |
5069 | PyObject * obj1 = 0 ; | |
5070 | char *kwnames[] = { | |
5071 | (char *) "self",(char *) "pt", NULL | |
5072 | }; | |
5073 | ||
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5077 | { |
5078 | arg2 = &temp2; | |
5079 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5080 | } | |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
c32bde28 | 5088 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5089 | return resultobj; |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
c32bde28 | 5095 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5096 | PyObject *resultobj; |
5097 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5098 | wxRect *arg2 = 0 ; | |
5099 | int result; | |
5100 | wxRect temp2 ; | |
5101 | PyObject * obj0 = 0 ; | |
5102 | PyObject * obj1 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self",(char *) "rect", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5110 | { |
5111 | arg2 = &temp2; | |
5112 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5113 | } | |
5114 | { | |
5115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5116 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5117 | ||
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
c32bde28 | 5121 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5122 | return resultobj; |
5123 | fail: | |
5124 | return NULL; | |
5125 | } | |
5126 | ||
5127 | ||
c32bde28 | 5128 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5129 | PyObject *resultobj; |
5130 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5131 | int arg2 ; |
5132 | int arg3 ; | |
5133 | int arg4 ; | |
5134 | int arg5 ; | |
d14a1e28 RD |
5135 | int result; |
5136 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5137 | PyObject * obj1 = 0 ; |
5138 | PyObject * obj2 = 0 ; | |
5139 | PyObject * obj3 = 0 ; | |
5140 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5141 | char *kwnames[] = { |
5142 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5143 | }; | |
5144 | ||
994141e6 | 5145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5148 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5149 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5150 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5151 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5152 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5153 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5154 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5155 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5156 | { |
5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5158 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5159 | ||
5160 | wxPyEndAllowThreads(__tstate); | |
5161 | if (PyErr_Occurred()) SWIG_fail; | |
5162 | } | |
c32bde28 | 5163 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5164 | return resultobj; |
5165 | fail: | |
5166 | return NULL; | |
5167 | } | |
5168 | ||
5169 | ||
c32bde28 | 5170 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5171 | PyObject *resultobj; |
5172 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5173 | wxRect result; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | char *kwnames[] = { | |
5176 | (char *) "self", NULL | |
5177 | }; | |
5178 | ||
5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5182 | { |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (arg1)->GetBox(); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | { | |
5190 | wxRect * resultptr; | |
5191 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 5192 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5193 | } |
5194 | return resultobj; | |
5195 | fail: | |
5196 | return NULL; | |
5197 | } | |
5198 | ||
5199 | ||
c32bde28 | 5200 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5201 | PyObject *resultobj; |
5202 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5203 | int arg2 ; |
5204 | int arg3 ; | |
5205 | int arg4 ; | |
5206 | int arg5 ; | |
d14a1e28 RD |
5207 | bool result; |
5208 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5209 | PyObject * obj1 = 0 ; |
5210 | PyObject * obj2 = 0 ; | |
5211 | PyObject * obj3 = 0 ; | |
5212 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5213 | char *kwnames[] = { |
5214 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5215 | }; | |
5216 | ||
994141e6 | 5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5220 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5221 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5222 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5223 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5224 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5225 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5226 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5228 | { |
5229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5230 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5231 | ||
5232 | wxPyEndAllowThreads(__tstate); | |
5233 | if (PyErr_Occurred()) SWIG_fail; | |
5234 | } | |
4f89f6a3 RD |
5235 | { |
5236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5237 | } | |
d14a1e28 RD |
5238 | return resultobj; |
5239 | fail: | |
5240 | return NULL; | |
5241 | } | |
5242 | ||
5243 | ||
c32bde28 | 5244 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5245 | PyObject *resultobj; |
5246 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5247 | wxRect *arg2 = 0 ; | |
5248 | bool result; | |
5249 | wxRect temp2 ; | |
5250 | PyObject * obj0 = 0 ; | |
5251 | PyObject * obj1 = 0 ; | |
5252 | char *kwnames[] = { | |
5253 | (char *) "self",(char *) "rect", NULL | |
5254 | }; | |
5255 | ||
5256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5259 | { |
5260 | arg2 = &temp2; | |
5261 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5262 | } | |
5263 | { | |
5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5265 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5266 | ||
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
4f89f6a3 RD |
5270 | { |
5271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5272 | } | |
d14a1e28 RD |
5273 | return resultobj; |
5274 | fail: | |
5275 | return NULL; | |
5276 | } | |
5277 | ||
5278 | ||
c32bde28 | 5279 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5280 | PyObject *resultobj; |
5281 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5282 | wxRegion *arg2 = 0 ; | |
5283 | bool result; | |
5284 | PyObject * obj0 = 0 ; | |
5285 | PyObject * obj1 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "self",(char *) "region", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5294 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5295 | SWIG_fail; | |
d14a1e28 | 5296 | if (arg2 == NULL) { |
15afbcd0 RD |
5297 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5298 | SWIG_fail; | |
d14a1e28 RD |
5299 | } |
5300 | { | |
5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5302 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5303 | ||
5304 | wxPyEndAllowThreads(__tstate); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | } | |
4f89f6a3 RD |
5307 | { |
5308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5309 | } | |
d14a1e28 RD |
5310 | return resultobj; |
5311 | fail: | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
c32bde28 | 5316 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5317 | PyObject *resultobj; |
5318 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5319 | bool result; | |
5320 | PyObject * obj0 = 0 ; | |
5321 | char *kwnames[] = { | |
5322 | (char *) "self", NULL | |
5323 | }; | |
5324 | ||
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5328 | { |
5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5330 | result = (bool)(arg1)->IsEmpty(); | |
5331 | ||
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | } | |
4f89f6a3 RD |
5335 | { |
5336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5337 | } | |
d14a1e28 RD |
5338 | return resultobj; |
5339 | fail: | |
5340 | return NULL; | |
5341 | } | |
5342 | ||
5343 | ||
c32bde28 | 5344 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5345 | PyObject *resultobj; |
5346 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5347 | int arg2 ; |
5348 | int arg3 ; | |
5349 | int arg4 ; | |
5350 | int arg5 ; | |
d14a1e28 RD |
5351 | bool result; |
5352 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5353 | PyObject * obj1 = 0 ; |
5354 | PyObject * obj2 = 0 ; | |
5355 | PyObject * obj3 = 0 ; | |
5356 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5357 | char *kwnames[] = { |
5358 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5359 | }; | |
5360 | ||
994141e6 | 5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5364 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5365 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5366 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5367 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5368 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5369 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5370 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5371 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5372 | { |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5375 | ||
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
4f89f6a3 RD |
5379 | { |
5380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5381 | } | |
d14a1e28 RD |
5382 | return resultobj; |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
c32bde28 | 5388 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5389 | PyObject *resultobj; |
5390 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5391 | wxRect *arg2 = 0 ; | |
5392 | bool result; | |
5393 | wxRect temp2 ; | |
5394 | PyObject * obj0 = 0 ; | |
5395 | PyObject * obj1 = 0 ; | |
5396 | char *kwnames[] = { | |
5397 | (char *) "self",(char *) "rect", NULL | |
5398 | }; | |
5399 | ||
5400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5403 | { |
5404 | arg2 = &temp2; | |
5405 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5409 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5410 | ||
5411 | wxPyEndAllowThreads(__tstate); | |
5412 | if (PyErr_Occurred()) SWIG_fail; | |
5413 | } | |
4f89f6a3 RD |
5414 | { |
5415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5416 | } | |
d14a1e28 RD |
5417 | return resultobj; |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
c32bde28 | 5423 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5424 | PyObject *resultobj; |
5425 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5426 | wxRegion *arg2 = 0 ; | |
5427 | bool result; | |
5428 | PyObject * obj0 = 0 ; | |
5429 | PyObject * obj1 = 0 ; | |
5430 | char *kwnames[] = { | |
5431 | (char *) "self",(char *) "region", NULL | |
5432 | }; | |
5433 | ||
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5438 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5439 | SWIG_fail; | |
d14a1e28 | 5440 | if (arg2 == NULL) { |
15afbcd0 RD |
5441 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5442 | SWIG_fail; | |
d14a1e28 RD |
5443 | } |
5444 | { | |
5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5446 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5447 | ||
5448 | wxPyEndAllowThreads(__tstate); | |
5449 | if (PyErr_Occurred()) SWIG_fail; | |
5450 | } | |
4f89f6a3 RD |
5451 | { |
5452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5453 | } | |
d14a1e28 RD |
5454 | return resultobj; |
5455 | fail: | |
5456 | return NULL; | |
5457 | } | |
5458 | ||
5459 | ||
c32bde28 | 5460 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5461 | PyObject *resultobj; |
5462 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5463 | int arg2 ; |
5464 | int arg3 ; | |
5465 | int arg4 ; | |
5466 | int arg5 ; | |
d14a1e28 RD |
5467 | bool result; |
5468 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5469 | PyObject * obj1 = 0 ; |
5470 | PyObject * obj2 = 0 ; | |
5471 | PyObject * obj3 = 0 ; | |
5472 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5473 | char *kwnames[] = { |
5474 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5475 | }; | |
5476 | ||
994141e6 | 5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5480 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5481 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5482 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5483 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5484 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5485 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5486 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5487 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5488 | { |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5491 | ||
5492 | wxPyEndAllowThreads(__tstate); | |
5493 | if (PyErr_Occurred()) SWIG_fail; | |
5494 | } | |
4f89f6a3 RD |
5495 | { |
5496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5497 | } | |
d14a1e28 RD |
5498 | return resultobj; |
5499 | fail: | |
5500 | return NULL; | |
5501 | } | |
5502 | ||
5503 | ||
c32bde28 | 5504 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5505 | PyObject *resultobj; |
5506 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5507 | wxRect *arg2 = 0 ; | |
5508 | bool result; | |
5509 | wxRect temp2 ; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | PyObject * obj1 = 0 ; | |
5512 | char *kwnames[] = { | |
5513 | (char *) "self",(char *) "rect", NULL | |
5514 | }; | |
5515 | ||
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5519 | { |
5520 | arg2 = &temp2; | |
5521 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5522 | } | |
5523 | { | |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
4f89f6a3 RD |
5530 | { |
5531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5532 | } | |
d14a1e28 RD |
5533 | return resultobj; |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
c32bde28 | 5539 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5540 | PyObject *resultobj; |
5541 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5542 | wxRegion *arg2 = 0 ; | |
5543 | bool result; | |
5544 | PyObject * obj0 = 0 ; | |
5545 | PyObject * obj1 = 0 ; | |
5546 | char *kwnames[] = { | |
5547 | (char *) "self",(char *) "region", NULL | |
5548 | }; | |
5549 | ||
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5555 | SWIG_fail; | |
d14a1e28 | 5556 | if (arg2 == NULL) { |
15afbcd0 RD |
5557 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5558 | SWIG_fail; | |
d14a1e28 RD |
5559 | } |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5562 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5563 | ||
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
4f89f6a3 RD |
5567 | { |
5568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5569 | } | |
d14a1e28 RD |
5570 | return resultobj; |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
c32bde28 | 5576 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5577 | PyObject *resultobj; |
5578 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5579 | int arg2 ; |
5580 | int arg3 ; | |
5581 | int arg4 ; | |
5582 | int arg5 ; | |
d14a1e28 RD |
5583 | bool result; |
5584 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5585 | PyObject * obj1 = 0 ; |
5586 | PyObject * obj2 = 0 ; | |
5587 | PyObject * obj3 = 0 ; | |
5588 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5589 | char *kwnames[] = { |
5590 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5591 | }; | |
5592 | ||
994141e6 | 5593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5596 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5597 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5598 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5599 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5600 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5601 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5602 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5603 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5604 | { |
5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5606 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5607 | ||
5608 | wxPyEndAllowThreads(__tstate); | |
5609 | if (PyErr_Occurred()) SWIG_fail; | |
5610 | } | |
4f89f6a3 RD |
5611 | { |
5612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5613 | } | |
d14a1e28 RD |
5614 | return resultobj; |
5615 | fail: | |
5616 | return NULL; | |
5617 | } | |
5618 | ||
5619 | ||
c32bde28 | 5620 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5621 | PyObject *resultobj; |
5622 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5623 | wxRect *arg2 = 0 ; | |
5624 | bool result; | |
5625 | wxRect temp2 ; | |
5626 | PyObject * obj0 = 0 ; | |
5627 | PyObject * obj1 = 0 ; | |
5628 | char *kwnames[] = { | |
5629 | (char *) "self",(char *) "rect", NULL | |
5630 | }; | |
5631 | ||
5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5635 | { |
5636 | arg2 = &temp2; | |
5637 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5638 | } | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
4f89f6a3 RD |
5646 | { |
5647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5648 | } | |
d14a1e28 RD |
5649 | return resultobj; |
5650 | fail: | |
5651 | return NULL; | |
5652 | } | |
5653 | ||
5654 | ||
c32bde28 | 5655 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5656 | PyObject *resultobj; |
5657 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5658 | wxRegion *arg2 = 0 ; | |
5659 | bool result; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | PyObject * obj1 = 0 ; | |
5662 | char *kwnames[] = { | |
5663 | (char *) "self",(char *) "region", NULL | |
5664 | }; | |
5665 | ||
5666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5671 | SWIG_fail; | |
d14a1e28 | 5672 | if (arg2 == NULL) { |
15afbcd0 RD |
5673 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5674 | SWIG_fail; | |
d14a1e28 RD |
5675 | } |
5676 | { | |
5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5678 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5679 | ||
5680 | wxPyEndAllowThreads(__tstate); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | } | |
4f89f6a3 RD |
5683 | { |
5684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5685 | } | |
d14a1e28 RD |
5686 | return resultobj; |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
c32bde28 | 5692 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5693 | PyObject *resultobj; |
5694 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5695 | SwigValueWrapper< wxBitmap > result; | |
5696 | PyObject * obj0 = 0 ; | |
5697 | char *kwnames[] = { | |
5698 | (char *) "self", NULL | |
5699 | }; | |
5700 | ||
5701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5704 | { |
5705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5706 | result = (arg1)->ConvertToBitmap(); | |
5707 | ||
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
5710 | } | |
5711 | { | |
5712 | wxBitmap * resultptr; | |
5713 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5714 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5715 | } |
5716 | return resultobj; | |
5717 | fail: | |
5718 | return NULL; | |
5719 | } | |
5720 | ||
5721 | ||
c32bde28 | 5722 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5723 | PyObject *resultobj; |
5724 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5725 | wxBitmap *arg2 = 0 ; | |
e6ffcedd RD |
5726 | bool result; |
5727 | PyObject * obj0 = 0 ; | |
5728 | PyObject * obj1 = 0 ; | |
5729 | char *kwnames[] = { | |
5730 | (char *) "self",(char *) "bmp", NULL | |
5731 | }; | |
5732 | ||
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5737 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5738 | SWIG_fail; | |
5739 | if (arg2 == NULL) { | |
5740 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5741 | SWIG_fail; | |
5742 | } | |
5743 | { | |
5744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5745 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
5746 | ||
5747 | wxPyEndAllowThreads(__tstate); | |
5748 | if (PyErr_Occurred()) SWIG_fail; | |
5749 | } | |
5750 | { | |
5751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5752 | } | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
c32bde28 | 5759 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
e6ffcedd RD |
5760 | PyObject *resultobj; |
5761 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5762 | wxBitmap *arg2 = 0 ; | |
5763 | wxColour *arg3 = 0 ; | |
d14a1e28 RD |
5764 | int arg4 = (int) 0 ; |
5765 | bool result; | |
5766 | wxColour temp3 ; | |
5767 | PyObject * obj0 = 0 ; | |
5768 | PyObject * obj1 = 0 ; | |
5769 | PyObject * obj2 = 0 ; | |
994141e6 | 5770 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5771 | char *kwnames[] = { |
5772 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5773 | }; | |
5774 | ||
e6ffcedd | 5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5778 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5779 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5780 | SWIG_fail; | |
d14a1e28 | 5781 | if (arg2 == NULL) { |
15afbcd0 RD |
5782 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5783 | SWIG_fail; | |
d14a1e28 | 5784 | } |
e6ffcedd RD |
5785 | { |
5786 | arg3 = &temp3; | |
5787 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 5788 | } |
994141e6 | 5789 | if (obj3) { |
c32bde28 | 5790 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5791 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5792 | } |
d14a1e28 RD |
5793 | { |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
4f89f6a3 RD |
5800 | { |
5801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5802 | } | |
d14a1e28 RD |
5803 | return resultobj; |
5804 | fail: | |
5805 | return NULL; | |
5806 | } | |
5807 | ||
5808 | ||
c32bde28 | 5809 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5810 | PyObject *obj; |
5811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5812 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5813 | Py_INCREF(obj); | |
5814 | return Py_BuildValue((char *)""); | |
5815 | } | |
c32bde28 | 5816 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5817 | PyObject *resultobj; |
5818 | wxRegion *arg1 = 0 ; | |
5819 | wxRegionIterator *result; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | char *kwnames[] = { | |
5822 | (char *) "region", NULL | |
5823 | }; | |
5824 | ||
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5828 | SWIG_fail; | |
d14a1e28 | 5829 | if (arg1 == NULL) { |
15afbcd0 RD |
5830 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5831 | SWIG_fail; | |
d14a1e28 RD |
5832 | } |
5833 | { | |
e3b71cb8 | 5834 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5836 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5837 | ||
5838 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5839 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5840 | } |
15afbcd0 | 5841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
5842 | return resultobj; |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
c32bde28 | 5848 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5849 | PyObject *resultobj; |
5850 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5851 | PyObject * obj0 = 0 ; | |
5852 | char *kwnames[] = { | |
5853 | (char *) "self", NULL | |
5854 | }; | |
5855 | ||
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5859 | { |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | delete arg1; | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
5866 | Py_INCREF(Py_None); resultobj = Py_None; | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
c32bde28 | 5873 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5874 | PyObject *resultobj; |
5875 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5876 | int result; |
d14a1e28 RD |
5877 | PyObject * obj0 = 0 ; |
5878 | char *kwnames[] = { | |
5879 | (char *) "self", NULL | |
5880 | }; | |
5881 | ||
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",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(); | |
e811c8ce | 5887 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5888 | |
5889 | wxPyEndAllowThreads(__tstate); | |
5890 | if (PyErr_Occurred()) SWIG_fail; | |
5891 | } | |
c32bde28 | 5892 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5893 | return resultobj; |
5894 | fail: | |
5895 | return NULL; | |
5896 | } | |
5897 | ||
5898 | ||
c32bde28 | 5899 | static PyObject *_wrap_RegionIterator_GetY(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_GetY",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)->GetY(); |
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_GetW(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_GetW",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)->GetW(); |
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_GetWidth(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_GetWidth",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)->GetWidth(); |
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_GetH(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_GetH",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)->GetH(); |
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_GetHeight(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_GetHeight",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)->GetHeight(); |
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_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6030 | PyObject *resultobj; |
6031 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6032 | wxRect result; | |
6033 | PyObject * obj0 = 0 ; | |
6034 | char *kwnames[] = { | |
6035 | (char *) "self", NULL | |
6036 | }; | |
6037 | ||
6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",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(); | |
6043 | result = (arg1)->GetRect(); | |
6044 | ||
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | { | |
6049 | wxRect * resultptr; | |
6050 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 6051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
6052 | } |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
c32bde28 | 6059 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6060 | PyObject *resultobj; |
6061 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6062 | bool result; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6071 | { |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | result = (bool)(arg1)->HaveRects(); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
4f89f6a3 RD |
6078 | { |
6079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6080 | } | |
d14a1e28 RD |
6081 | return resultobj; |
6082 | fail: | |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
c32bde28 | 6087 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6088 | PyObject *resultobj; |
6089 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6090 | PyObject * obj0 = 0 ; | |
6091 | char *kwnames[] = { | |
6092 | (char *) "self", NULL | |
6093 | }; | |
6094 | ||
6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6098 | { |
6099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6100 | (arg1)->Reset(); | |
6101 | ||
6102 | wxPyEndAllowThreads(__tstate); | |
6103 | if (PyErr_Occurred()) SWIG_fail; | |
6104 | } | |
6105 | Py_INCREF(Py_None); resultobj = Py_None; | |
6106 | return resultobj; | |
6107 | fail: | |
6108 | return NULL; | |
6109 | } | |
6110 | ||
6111 | ||
c32bde28 | 6112 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6113 | PyObject *resultobj; |
6114 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6115 | PyObject * obj0 = 0 ; | |
6116 | char *kwnames[] = { | |
6117 | (char *) "self", NULL | |
6118 | }; | |
6119 | ||
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6123 | { |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | wxRegionIterator_Next(arg1); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
6130 | Py_INCREF(Py_None); resultobj = Py_None; | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | return NULL; | |
6134 | } | |
6135 | ||
6136 | ||
c32bde28 | 6137 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6138 | PyObject *resultobj; |
6139 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6140 | bool result; | |
6141 | PyObject * obj0 = 0 ; | |
6142 | char *kwnames[] = { | |
6143 | (char *) "self", NULL | |
6144 | }; | |
6145 | ||
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",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 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
4f89f6a3 RD |
6156 | { |
6157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6158 | } | |
d14a1e28 RD |
6159 | return resultobj; |
6160 | fail: | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
c32bde28 | 6165 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6166 | PyObject *obj; |
6167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6168 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6169 | Py_INCREF(obj); | |
6170 | return Py_BuildValue((char *)""); | |
6171 | } | |
c32bde28 | 6172 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6173 | PyObject *resultobj; |
6174 | wxNativeFontInfo *result; | |
6175 | char *kwnames[] = { | |
6176 | NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
15afbcd0 | 6187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
6188 | return resultobj; |
6189 | fail: | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
c32bde28 | 6194 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6195 | PyObject *resultobj; |
6196 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6197 | PyObject * obj0 = 0 ; | |
6198 | char *kwnames[] = { | |
6199 | (char *) "self", NULL | |
6200 | }; | |
6201 | ||
6202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6205 | { |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | delete arg1; | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
6212 | Py_INCREF(Py_None); resultobj = Py_None; | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
c32bde28 | 6219 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6220 | PyObject *resultobj; |
6221 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6222 | PyObject * obj0 = 0 ; | |
6223 | char *kwnames[] = { | |
6224 | (char *) "self", NULL | |
6225 | }; | |
6226 | ||
6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6230 | { |
6231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6232 | (arg1)->Init(); | |
6233 | ||
6234 | wxPyEndAllowThreads(__tstate); | |
6235 | if (PyErr_Occurred()) SWIG_fail; | |
6236 | } | |
6237 | Py_INCREF(Py_None); resultobj = Py_None; | |
6238 | return resultobj; | |
6239 | fail: | |
6240 | return NULL; | |
6241 | } | |
6242 | ||
6243 | ||
c32bde28 | 6244 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6245 | PyObject *resultobj; |
6246 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6247 | wxFont *arg2 = 0 ; | |
6248 | PyObject * obj0 = 0 ; | |
6249 | PyObject * obj1 = 0 ; | |
6250 | char *kwnames[] = { | |
6251 | (char *) "self",(char *) "font", NULL | |
6252 | }; | |
6253 | ||
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6259 | SWIG_fail; | |
d14a1e28 | 6260 | if (arg2 == NULL) { |
15afbcd0 RD |
6261 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6262 | SWIG_fail; | |
d14a1e28 RD |
6263 | } |
6264 | { | |
6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6266 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6267 | ||
6268 | wxPyEndAllowThreads(__tstate); | |
6269 | if (PyErr_Occurred()) SWIG_fail; | |
6270 | } | |
6271 | Py_INCREF(Py_None); resultobj = Py_None; | |
6272 | return resultobj; | |
6273 | fail: | |
6274 | return NULL; | |
6275 | } | |
6276 | ||
6277 | ||
c32bde28 | 6278 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6279 | PyObject *resultobj; |
6280 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6281 | int result; | |
6282 | PyObject * obj0 = 0 ; | |
6283 | char *kwnames[] = { | |
6284 | (char *) "self", NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6290 | { |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6293 | ||
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
c32bde28 | 6297 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6298 | return resultobj; |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c32bde28 | 6304 | static PyObject *_wrap_NativeFontInfo_GetStyle(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_GetStyle",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)->GetStyle(); | |
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_GetWeight(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_GetWeight",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)->GetWeight(); | |
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_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6357 | PyObject *resultobj; |
6358 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6359 | bool result; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "self", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",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 = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
4f89f6a3 RD |
6375 | { |
6376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6377 | } | |
d14a1e28 RD |
6378 | return resultobj; |
6379 | fail: | |
6380 | return NULL; | |
6381 | } | |
6382 | ||
6383 | ||
c32bde28 | 6384 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6385 | PyObject *resultobj; |
6386 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6387 | wxString result; | |
6388 | PyObject * obj0 = 0 ; | |
6389 | char *kwnames[] = { | |
6390 | (char *) "self", NULL | |
6391 | }; | |
6392 | ||
6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6396 | { |
6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6398 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6399 | ||
6400 | wxPyEndAllowThreads(__tstate); | |
6401 | if (PyErr_Occurred()) SWIG_fail; | |
6402 | } | |
6403 | { | |
6404 | #if wxUSE_UNICODE | |
6405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6406 | #else | |
6407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6408 | #endif | |
6409 | } | |
6410 | return resultobj; | |
6411 | fail: | |
6412 | return NULL; | |
6413 | } | |
6414 | ||
6415 | ||
c32bde28 | 6416 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6417 | PyObject *resultobj; |
6418 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6419 | int result; | |
6420 | PyObject * obj0 = 0 ; | |
6421 | char *kwnames[] = { | |
6422 | (char *) "self", NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6428 | { |
6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6430 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6431 | ||
6432 | wxPyEndAllowThreads(__tstate); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | } | |
c32bde28 | 6435 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6436 | return resultobj; |
6437 | fail: | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
c32bde28 | 6442 | static PyObject *_wrap_NativeFontInfo_GetEncoding(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_GetEncoding",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)->GetEncoding(); | |
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_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6469 | PyObject *resultobj; |
6470 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6471 | int arg2 ; | |
6472 | PyObject * obj0 = 0 ; | |
994141e6 | 6473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6474 | char *kwnames[] = { |
6475 | (char *) "self",(char *) "pointsize", NULL | |
6476 | }; | |
6477 | ||
994141e6 | 6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6481 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6482 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6483 | { |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6485 | (arg1)->SetPointSize(arg2); | |
6486 | ||
6487 | wxPyEndAllowThreads(__tstate); | |
6488 | if (PyErr_Occurred()) SWIG_fail; | |
6489 | } | |
6490 | Py_INCREF(Py_None); resultobj = Py_None; | |
6491 | return resultobj; | |
6492 | fail: | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
c32bde28 | 6497 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6498 | PyObject *resultobj; |
6499 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6500 | int arg2 ; | |
6501 | PyObject * obj0 = 0 ; | |
994141e6 | 6502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6503 | char *kwnames[] = { |
6504 | (char *) "self",(char *) "style", NULL | |
6505 | }; | |
6506 | ||
994141e6 | 6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6510 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6512 | { |
6513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6514 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6515 | ||
6516 | wxPyEndAllowThreads(__tstate); | |
6517 | if (PyErr_Occurred()) SWIG_fail; | |
6518 | } | |
6519 | Py_INCREF(Py_None); resultobj = Py_None; | |
6520 | return resultobj; | |
6521 | fail: | |
6522 | return NULL; | |
6523 | } | |
6524 | ||
6525 | ||
c32bde28 | 6526 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6527 | PyObject *resultobj; |
6528 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6529 | int arg2 ; | |
6530 | PyObject * obj0 = 0 ; | |
994141e6 | 6531 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6532 | char *kwnames[] = { |
6533 | (char *) "self",(char *) "weight", NULL | |
6534 | }; | |
6535 | ||
994141e6 | 6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6539 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6540 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6541 | { |
6542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6543 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6544 | ||
6545 | wxPyEndAllowThreads(__tstate); | |
6546 | if (PyErr_Occurred()) SWIG_fail; | |
6547 | } | |
6548 | Py_INCREF(Py_None); resultobj = Py_None; | |
6549 | return resultobj; | |
6550 | fail: | |
6551 | return NULL; | |
6552 | } | |
6553 | ||
6554 | ||
c32bde28 | 6555 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6556 | PyObject *resultobj; |
6557 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6558 | bool arg2 ; | |
6559 | PyObject * obj0 = 0 ; | |
6560 | PyObject * obj1 = 0 ; | |
6561 | char *kwnames[] = { | |
6562 | (char *) "self",(char *) "underlined", NULL | |
6563 | }; | |
6564 | ||
6565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6568 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 6569 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6570 | { |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | (arg1)->SetUnderlined(arg2); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
6577 | Py_INCREF(Py_None); resultobj = Py_None; | |
6578 | return resultobj; | |
6579 | fail: | |
6580 | return NULL; | |
6581 | } | |
6582 | ||
6583 | ||
c32bde28 | 6584 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6585 | PyObject *resultobj; |
6586 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6587 | wxString arg2 ; | |
d14a1e28 RD |
6588 | PyObject * obj0 = 0 ; |
6589 | PyObject * obj1 = 0 ; | |
6590 | char *kwnames[] = { | |
6591 | (char *) "self",(char *) "facename", NULL | |
6592 | }; | |
6593 | ||
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
6597 | { |
6598 | wxString* sptr = wxString_in_helper(obj1); | |
6599 | if (sptr == NULL) SWIG_fail; | |
6600 | arg2 = *sptr; | |
6601 | delete sptr; | |
6602 | } | |
d14a1e28 RD |
6603 | { |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | (arg1)->SetFaceName(arg2); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | Py_INCREF(Py_None); resultobj = Py_None; | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
c32bde28 | 6617 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6618 | PyObject *resultobj; |
6619 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6620 | int arg2 ; | |
6621 | PyObject * obj0 = 0 ; | |
994141e6 | 6622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6623 | char *kwnames[] = { |
6624 | (char *) "self",(char *) "family", NULL | |
6625 | }; | |
6626 | ||
994141e6 | 6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6630 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6631 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6632 | { |
6633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6634 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6635 | ||
6636 | wxPyEndAllowThreads(__tstate); | |
6637 | if (PyErr_Occurred()) SWIG_fail; | |
6638 | } | |
6639 | Py_INCREF(Py_None); resultobj = Py_None; | |
6640 | return resultobj; | |
6641 | fail: | |
6642 | return NULL; | |
6643 | } | |
6644 | ||
6645 | ||
c32bde28 | 6646 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6647 | PyObject *resultobj; |
6648 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6649 | int arg2 ; | |
6650 | PyObject * obj0 = 0 ; | |
994141e6 | 6651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6652 | char *kwnames[] = { |
6653 | (char *) "self",(char *) "encoding", NULL | |
6654 | }; | |
6655 | ||
994141e6 | 6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6659 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6660 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6661 | { |
6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6663 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6664 | ||
6665 | wxPyEndAllowThreads(__tstate); | |
6666 | if (PyErr_Occurred()) SWIG_fail; | |
6667 | } | |
6668 | Py_INCREF(Py_None); resultobj = Py_None; | |
6669 | return resultobj; | |
6670 | fail: | |
6671 | return NULL; | |
6672 | } | |
6673 | ||
6674 | ||
c32bde28 | 6675 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6676 | PyObject *resultobj; |
6677 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6678 | wxString *arg2 = 0 ; | |
6679 | bool result; | |
ae8162c8 | 6680 | bool temp2 = false ; |
d14a1e28 RD |
6681 | PyObject * obj0 = 0 ; |
6682 | PyObject * obj1 = 0 ; | |
6683 | char *kwnames[] = { | |
6684 | (char *) "self",(char *) "s", NULL | |
6685 | }; | |
6686 | ||
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6690 | { |
6691 | arg2 = wxString_in_helper(obj1); | |
6692 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6693 | temp2 = true; |
d14a1e28 RD |
6694 | } |
6695 | { | |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6697 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6698 | ||
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
4f89f6a3 RD |
6702 | { |
6703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6704 | } | |
d14a1e28 RD |
6705 | { |
6706 | if (temp2) | |
6707 | delete arg2; | |
6708 | } | |
6709 | return resultobj; | |
6710 | fail: | |
6711 | { | |
6712 | if (temp2) | |
6713 | delete arg2; | |
6714 | } | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
c32bde28 | 6719 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6720 | PyObject *resultobj; |
6721 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6722 | wxString result; | |
6723 | PyObject * obj0 = 0 ; | |
6724 | char *kwnames[] = { | |
6725 | (char *) "self", NULL | |
6726 | }; | |
6727 | ||
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6731 | { |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
6738 | { | |
6739 | #if wxUSE_UNICODE | |
6740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6741 | #else | |
6742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6743 | #endif | |
6744 | } | |
6745 | return resultobj; | |
6746 | fail: | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
c32bde28 | 6751 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6752 | PyObject *resultobj; |
6753 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6754 | wxString result; | |
6755 | PyObject * obj0 = 0 ; | |
6756 | char *kwnames[] = { | |
6757 | (char *) "self", NULL | |
6758 | }; | |
6759 | ||
6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6763 | { |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | result = wxNativeFontInfo___str__(arg1); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | { | |
6771 | #if wxUSE_UNICODE | |
6772 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6773 | #else | |
6774 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6775 | #endif | |
6776 | } | |
6777 | return resultobj; | |
6778 | fail: | |
6779 | return NULL; | |
6780 | } | |
6781 | ||
6782 | ||
c32bde28 | 6783 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6784 | PyObject *resultobj; |
6785 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6786 | wxString *arg2 = 0 ; | |
6787 | bool result; | |
ae8162c8 | 6788 | bool temp2 = false ; |
d14a1e28 RD |
6789 | PyObject * obj0 = 0 ; |
6790 | PyObject * obj1 = 0 ; | |
6791 | char *kwnames[] = { | |
6792 | (char *) "self",(char *) "s", NULL | |
6793 | }; | |
6794 | ||
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6798 | { |
6799 | arg2 = wxString_in_helper(obj1); | |
6800 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6801 | temp2 = true; |
d14a1e28 RD |
6802 | } |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6806 | ||
6807 | wxPyEndAllowThreads(__tstate); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
4f89f6a3 RD |
6810 | { |
6811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6812 | } | |
d14a1e28 RD |
6813 | { |
6814 | if (temp2) | |
6815 | delete arg2; | |
6816 | } | |
6817 | return resultobj; | |
6818 | fail: | |
6819 | { | |
6820 | if (temp2) | |
6821 | delete arg2; | |
6822 | } | |
6823 | return NULL; | |
6824 | } | |
6825 | ||
6826 | ||
c32bde28 | 6827 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6828 | PyObject *resultobj; |
6829 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6830 | wxString result; | |
6831 | PyObject * obj0 = 0 ; | |
6832 | char *kwnames[] = { | |
6833 | (char *) "self", NULL | |
6834 | }; | |
6835 | ||
6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6839 | { |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
6846 | { | |
6847 | #if wxUSE_UNICODE | |
6848 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6849 | #else | |
6850 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6851 | #endif | |
6852 | } | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
c32bde28 | 6859 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6860 | PyObject *obj; |
6861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6862 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6863 | Py_INCREF(obj); | |
6864 | return Py_BuildValue((char *)""); | |
6865 | } | |
c32bde28 | 6866 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6867 | PyObject *resultobj; |
6868 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6869 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 6870 | bool temp2 = false ; |
d14a1e28 RD |
6871 | PyObject * obj0 = 0 ; |
6872 | PyObject * obj1 = 0 ; | |
6873 | char *kwnames[] = { | |
6874 | (char *) "self",(char *) "facename", NULL | |
6875 | }; | |
6876 | ||
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
6880 | { |
6881 | arg2 = wxString_in_helper(obj1); | |
6882 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6883 | temp2 = true; |
7eae615b | 6884 | } |
196addbf | 6885 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6886 | |
6887 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6888 | { |
6889 | if (temp2) | |
6890 | delete arg2; | |
6891 | } | |
d14a1e28 RD |
6892 | return resultobj; |
6893 | fail: | |
7eae615b RD |
6894 | { |
6895 | if (temp2) | |
6896 | delete arg2; | |
6897 | } | |
d14a1e28 RD |
6898 | return NULL; |
6899 | } | |
6900 | ||
6901 | ||
c32bde28 | 6902 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6903 | PyObject *resultobj; |
6904 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6905 | wxString *result; |
d14a1e28 RD |
6906 | PyObject * obj0 = 0 ; |
6907 | char *kwnames[] = { | |
6908 | (char *) "self", NULL | |
6909 | }; | |
6910 | ||
6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 6914 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6915 | |
6916 | { | |
6917 | #if wxUSE_UNICODE | |
196addbf | 6918 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6919 | #else |
196addbf | 6920 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6921 | #endif |
6922 | } | |
6923 | return resultobj; | |
6924 | fail: | |
6925 | return NULL; | |
6926 | } | |
6927 | ||
6928 | ||
c32bde28 | 6929 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6930 | PyObject *resultobj; |
6931 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6932 | int arg2 ; | |
6933 | PyObject * obj0 = 0 ; | |
994141e6 | 6934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6935 | char *kwnames[] = { |
6936 | (char *) "self",(char *) "encoding", NULL | |
6937 | }; | |
6938 | ||
994141e6 | 6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6942 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6943 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6944 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6945 | ||
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
c32bde28 | 6953 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6954 | PyObject *resultobj; |
6955 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6956 | int result; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | char *kwnames[] = { | |
6959 | (char *) "self", NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6965 | result = (int) ((arg1)->encoding); |
6966 | ||
c32bde28 | 6967 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6968 | return resultobj; |
6969 | fail: | |
6970 | return NULL; | |
6971 | } | |
6972 | ||
6973 | ||
c32bde28 | 6974 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6975 | PyObject *resultobj; |
6976 | wxNativeEncodingInfo *result; | |
6977 | char *kwnames[] = { | |
6978 | NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6982 | { | |
6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6984 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6985 | ||
6986 | wxPyEndAllowThreads(__tstate); | |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
6988 | } | |
15afbcd0 | 6989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
6990 | return resultobj; |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
c32bde28 | 6996 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6997 | PyObject *resultobj; |
6998 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6999 | PyObject * obj0 = 0 ; | |
7000 | char *kwnames[] = { | |
7001 | (char *) "self", NULL | |
7002 | }; | |
7003 | ||
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7007 | { |
7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7009 | delete arg1; | |
7010 | ||
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | Py_INCREF(Py_None); resultobj = Py_None; | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
c32bde28 | 7021 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7022 | PyObject *resultobj; |
7023 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7024 | wxString *arg2 = 0 ; | |
7025 | bool result; | |
ae8162c8 | 7026 | bool temp2 = false ; |
d14a1e28 RD |
7027 | PyObject * obj0 = 0 ; |
7028 | PyObject * obj1 = 0 ; | |
7029 | char *kwnames[] = { | |
7030 | (char *) "self",(char *) "s", NULL | |
7031 | }; | |
7032 | ||
7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7036 | { |
7037 | arg2 = wxString_in_helper(obj1); | |
7038 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7039 | temp2 = true; |
d14a1e28 RD |
7040 | } |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
4f89f6a3 RD |
7048 | { |
7049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7050 | } | |
d14a1e28 RD |
7051 | { |
7052 | if (temp2) | |
7053 | delete arg2; | |
7054 | } | |
7055 | return resultobj; | |
7056 | fail: | |
7057 | { | |
7058 | if (temp2) | |
7059 | delete arg2; | |
7060 | } | |
7061 | return NULL; | |
7062 | } | |
7063 | ||
7064 | ||
c32bde28 | 7065 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7066 | PyObject *resultobj; |
7067 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7068 | wxString result; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | char *kwnames[] = { | |
7071 | (char *) "self", NULL | |
7072 | }; | |
7073 | ||
7074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7077 | { |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7080 | ||
7081 | wxPyEndAllowThreads(__tstate); | |
7082 | if (PyErr_Occurred()) SWIG_fail; | |
7083 | } | |
7084 | { | |
7085 | #if wxUSE_UNICODE | |
7086 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7087 | #else | |
7088 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7089 | #endif | |
7090 | } | |
7091 | return resultobj; | |
7092 | fail: | |
7093 | return NULL; | |
7094 | } | |
7095 | ||
7096 | ||
c32bde28 | 7097 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7098 | PyObject *obj; |
7099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7100 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7101 | Py_INCREF(obj); | |
7102 | return Py_BuildValue((char *)""); | |
7103 | } | |
c32bde28 | 7104 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7105 | PyObject *resultobj; |
7106 | int arg1 ; | |
7107 | wxNativeEncodingInfo *result; | |
994141e6 | 7108 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7109 | char *kwnames[] = { |
7110 | (char *) "encoding", NULL | |
7111 | }; | |
7112 | ||
994141e6 | 7113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
c32bde28 | 7114 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7115 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
7116 | { |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7118 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
7119 | |
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
15afbcd0 | 7123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
7124 | return resultobj; |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
c32bde28 | 7130 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7131 | PyObject *resultobj; |
7132 | wxNativeEncodingInfo *arg1 = 0 ; | |
7133 | bool result; | |
7134 | PyObject * obj0 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "info", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7141 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7142 | SWIG_fail; | |
d14a1e28 | 7143 | if (arg1 == NULL) { |
15afbcd0 RD |
7144 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7145 | SWIG_fail; | |
d14a1e28 RD |
7146 | } |
7147 | { | |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
4f89f6a3 RD |
7154 | { |
7155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7156 | } | |
d14a1e28 RD |
7157 | return resultobj; |
7158 | fail: | |
7159 | return NULL; | |
7160 | } | |
7161 | ||
7162 | ||
c32bde28 | 7163 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7164 | PyObject *resultobj; |
7165 | wxFontMapper *result; | |
7166 | char *kwnames[] = { | |
7167 | NULL | |
7168 | }; | |
7169 | ||
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7171 | { | |
7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7173 | result = (wxFontMapper *)new wxFontMapper(); | |
7174 | ||
7175 | wxPyEndAllowThreads(__tstate); | |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
7177 | } | |
15afbcd0 | 7178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
7179 | return resultobj; |
7180 | fail: | |
7181 | return NULL; | |
7182 | } | |
7183 | ||
7184 | ||
c32bde28 | 7185 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7186 | PyObject *resultobj; |
7187 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "self", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7196 | { |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | delete arg1; | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | Py_INCREF(Py_None); resultobj = Py_None; | |
7204 | return resultobj; | |
7205 | fail: | |
7206 | return NULL; | |
7207 | } | |
7208 | ||
7209 | ||
c32bde28 | 7210 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7211 | PyObject *resultobj; |
7212 | wxFontMapper *result; | |
7213 | char *kwnames[] = { | |
7214 | NULL | |
7215 | }; | |
7216 | ||
7217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
15afbcd0 | 7225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
7226 | return resultobj; |
7227 | fail: | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
c32bde28 | 7232 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7233 | PyObject *resultobj; |
7234 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7235 | wxFontMapper *result; | |
7236 | PyObject * obj0 = 0 ; | |
7237 | char *kwnames[] = { | |
7238 | (char *) "mapper", NULL | |
7239 | }; | |
7240 | ||
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7244 | { |
7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7246 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
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_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7259 | PyObject *resultobj; |
7260 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7261 | wxString *arg2 = 0 ; | |
ae8162c8 | 7262 | bool arg3 = (bool) true ; |
d14a1e28 | 7263 | int result; |
ae8162c8 | 7264 | bool temp2 = false ; |
d14a1e28 RD |
7265 | PyObject * obj0 = 0 ; |
7266 | PyObject * obj1 = 0 ; | |
7267 | PyObject * obj2 = 0 ; | |
7268 | char *kwnames[] = { | |
7269 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7270 | }; | |
7271 | ||
7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7275 | { |
7276 | arg2 = wxString_in_helper(obj1); | |
7277 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7278 | temp2 = true; |
d14a1e28 RD |
7279 | } |
7280 | if (obj2) { | |
c32bde28 | 7281 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 7282 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7283 | } |
7284 | { | |
7285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7286 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7287 | ||
7288 | wxPyEndAllowThreads(__tstate); | |
7289 | if (PyErr_Occurred()) SWIG_fail; | |
7290 | } | |
c32bde28 | 7291 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7292 | { |
7293 | if (temp2) | |
7294 | delete arg2; | |
7295 | } | |
7296 | return resultobj; | |
7297 | fail: | |
7298 | { | |
7299 | if (temp2) | |
7300 | delete arg2; | |
7301 | } | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
c32bde28 | 7306 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7307 | PyObject *resultobj; |
7308 | size_t result; | |
7309 | char *kwnames[] = { | |
7310 | NULL | |
7311 | }; | |
7312 | ||
7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7314 | { | |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7316 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
c32bde28 | 7321 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
7322 | return resultobj; |
7323 | fail: | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
c32bde28 | 7328 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7329 | PyObject *resultobj; |
7330 | size_t arg1 ; | |
7331 | int result; | |
7332 | PyObject * obj0 = 0 ; | |
7333 | char *kwnames[] = { | |
7334 | (char *) "n", NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7338 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
15afbcd0 | 7339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7340 | { |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
c32bde28 | 7347 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7348 | return resultobj; |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
c32bde28 | 7354 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7355 | PyObject *resultobj; |
7356 | int arg1 ; | |
7357 | wxString result; | |
994141e6 | 7358 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7359 | char *kwnames[] = { |
7360 | (char *) "encoding", NULL | |
7361 | }; | |
7362 | ||
994141e6 | 7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
c32bde28 | 7364 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7365 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7366 | { |
7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7368 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7369 | ||
7370 | wxPyEndAllowThreads(__tstate); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | } | |
7373 | { | |
7374 | #if wxUSE_UNICODE | |
7375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7376 | #else | |
7377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7378 | #endif | |
7379 | } | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
c32bde28 | 7386 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7387 | PyObject *resultobj; |
7388 | int arg1 ; | |
7389 | wxString result; | |
994141e6 | 7390 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7391 | char *kwnames[] = { |
7392 | (char *) "encoding", NULL | |
7393 | }; | |
7394 | ||
994141e6 | 7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
c32bde28 | 7396 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7397 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7398 | { |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | { | |
7406 | #if wxUSE_UNICODE | |
7407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7408 | #else | |
7409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7410 | #endif | |
7411 | } | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
c32bde28 | 7418 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
7419 | PyObject *resultobj; |
7420 | wxString *arg1 = 0 ; | |
7421 | int result; | |
ae8162c8 | 7422 | bool temp1 = false ; |
b2df227b RD |
7423 | PyObject * obj0 = 0 ; |
7424 | char *kwnames[] = { | |
7425 | (char *) "name", NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7429 | { | |
7430 | arg1 = wxString_in_helper(obj0); | |
7431 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7432 | temp1 = true; |
b2df227b RD |
7433 | } |
7434 | { | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7437 | ||
7438 | wxPyEndAllowThreads(__tstate); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
c32bde28 | 7441 | resultobj = SWIG_From_int((int)result); |
b2df227b RD |
7442 | { |
7443 | if (temp1) | |
7444 | delete arg1; | |
7445 | } | |
7446 | return resultobj; | |
7447 | fail: | |
7448 | { | |
7449 | if (temp1) | |
7450 | delete arg1; | |
7451 | } | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
c32bde28 | 7456 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7457 | PyObject *resultobj; |
7458 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7459 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7460 | PyObject * obj0 = 0 ; | |
7461 | PyObject * obj1 = 0 ; | |
7462 | char *kwnames[] = { | |
7463 | (char *) "self",(char *) "config", NULL | |
7464 | }; | |
7465 | ||
7466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7471 | { |
7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7473 | (arg1)->SetConfig(arg2); | |
7474 | ||
7475 | wxPyEndAllowThreads(__tstate); | |
7476 | if (PyErr_Occurred()) SWIG_fail; | |
7477 | } | |
7478 | Py_INCREF(Py_None); resultobj = Py_None; | |
7479 | return resultobj; | |
7480 | fail: | |
7481 | return NULL; | |
7482 | } | |
7483 | ||
7484 | ||
c32bde28 | 7485 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7486 | PyObject *resultobj; |
7487 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7488 | wxString *arg2 = 0 ; | |
ae8162c8 | 7489 | bool temp2 = false ; |
d14a1e28 RD |
7490 | PyObject * obj0 = 0 ; |
7491 | PyObject * obj1 = 0 ; | |
7492 | char *kwnames[] = { | |
7493 | (char *) "self",(char *) "prefix", NULL | |
7494 | }; | |
7495 | ||
7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7499 | { |
7500 | arg2 = wxString_in_helper(obj1); | |
7501 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7502 | temp2 = true; |
d14a1e28 RD |
7503 | } |
7504 | { | |
7505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7506 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7507 | ||
7508 | wxPyEndAllowThreads(__tstate); | |
7509 | if (PyErr_Occurred()) SWIG_fail; | |
7510 | } | |
7511 | Py_INCREF(Py_None); resultobj = Py_None; | |
7512 | { | |
7513 | if (temp2) | |
7514 | delete arg2; | |
7515 | } | |
7516 | return resultobj; | |
7517 | fail: | |
7518 | { | |
7519 | if (temp2) | |
7520 | delete arg2; | |
7521 | } | |
7522 | return NULL; | |
7523 | } | |
7524 | ||
7525 | ||
c32bde28 | 7526 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7527 | PyObject *resultobj; |
7528 | wxString result; | |
7529 | char *kwnames[] = { | |
7530 | NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7534 | { | |
7535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7536 | result = wxFontMapper::GetDefaultConfigPath(); | |
7537 | ||
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | { | |
7542 | #if wxUSE_UNICODE | |
7543 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7544 | #else | |
7545 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7546 | #endif | |
7547 | } | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
c32bde28 | 7554 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7555 | PyObject *resultobj; |
7556 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7557 | int arg2 ; | |
7558 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7559 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 7560 | bool arg4 = (bool) true ; |
d14a1e28 | 7561 | PyObject *result; |
ae8162c8 | 7562 | bool temp3 = false ; |
d14a1e28 | 7563 | PyObject * obj0 = 0 ; |
994141e6 | 7564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7565 | PyObject * obj2 = 0 ; |
7566 | PyObject * obj3 = 0 ; | |
7567 | char *kwnames[] = { | |
7568 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7569 | }; | |
7570 | ||
994141e6 | 7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7574 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7575 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7576 | if (obj2) { |
7577 | { | |
7578 | arg3 = wxString_in_helper(obj2); | |
7579 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7580 | temp3 = true; |
d14a1e28 RD |
7581 | } |
7582 | } | |
7583 | if (obj3) { | |
c32bde28 | 7584 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 7585 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7586 | } |
7587 | { | |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | resultobj = result; | |
7595 | { | |
7596 | if (temp3) | |
7597 | delete arg3; | |
7598 | } | |
7599 | return resultobj; | |
7600 | fail: | |
7601 | { | |
7602 | if (temp3) | |
7603 | delete arg3; | |
7604 | } | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
c32bde28 | 7609 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7610 | PyObject *resultobj; |
7611 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7612 | int arg2 ; | |
7613 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7614 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7615 | bool result; | |
ae8162c8 | 7616 | bool temp3 = false ; |
d14a1e28 | 7617 | PyObject * obj0 = 0 ; |
994141e6 | 7618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7619 | PyObject * obj2 = 0 ; |
7620 | char *kwnames[] = { | |
7621 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7622 | }; | |
7623 | ||
994141e6 | 7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7627 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7628 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7629 | if (obj2) { |
7630 | { | |
7631 | arg3 = wxString_in_helper(obj2); | |
7632 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7633 | temp3 = true; |
d14a1e28 RD |
7634 | } |
7635 | } | |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
4f89f6a3 RD |
7643 | { |
7644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7645 | } | |
d14a1e28 RD |
7646 | { |
7647 | if (temp3) | |
7648 | delete arg3; | |
7649 | } | |
7650 | return resultobj; | |
7651 | fail: | |
7652 | { | |
7653 | if (temp3) | |
7654 | delete arg3; | |
7655 | } | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
c32bde28 | 7660 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7661 | PyObject *resultobj; |
7662 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7664 | PyObject * obj0 = 0 ; | |
7665 | PyObject * obj1 = 0 ; | |
7666 | char *kwnames[] = { | |
7667 | (char *) "self",(char *) "parent", NULL | |
7668 | }; | |
7669 | ||
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7675 | { |
7676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7677 | (arg1)->SetDialogParent(arg2); | |
7678 | ||
7679 | wxPyEndAllowThreads(__tstate); | |
7680 | if (PyErr_Occurred()) SWIG_fail; | |
7681 | } | |
7682 | Py_INCREF(Py_None); resultobj = Py_None; | |
7683 | return resultobj; | |
7684 | fail: | |
7685 | return NULL; | |
7686 | } | |
7687 | ||
7688 | ||
c32bde28 | 7689 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7690 | PyObject *resultobj; |
7691 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7692 | wxString *arg2 = 0 ; | |
ae8162c8 | 7693 | bool temp2 = false ; |
d14a1e28 RD |
7694 | PyObject * obj0 = 0 ; |
7695 | PyObject * obj1 = 0 ; | |
7696 | char *kwnames[] = { | |
7697 | (char *) "self",(char *) "title", NULL | |
7698 | }; | |
7699 | ||
7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7703 | { |
7704 | arg2 = wxString_in_helper(obj1); | |
7705 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7706 | temp2 = true; |
d14a1e28 RD |
7707 | } |
7708 | { | |
7709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7710 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7711 | ||
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | Py_INCREF(Py_None); resultobj = Py_None; | |
7716 | { | |
7717 | if (temp2) | |
7718 | delete arg2; | |
7719 | } | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | { | |
7723 | if (temp2) | |
7724 | delete arg2; | |
7725 | } | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
c32bde28 | 7730 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7731 | PyObject *obj; |
7732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7733 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7734 | Py_INCREF(obj); | |
7735 | return Py_BuildValue((char *)""); | |
7736 | } | |
c32bde28 | 7737 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7738 | PyObject *resultobj; |
7739 | int arg1 ; | |
7740 | int arg2 ; | |
7741 | int arg3 ; | |
7742 | int arg4 ; | |
ae8162c8 | 7743 | bool arg5 = (bool) false ; |
d14a1e28 RD |
7744 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7745 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7746 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7747 | wxFont *result; | |
ae8162c8 | 7748 | bool temp6 = false ; |
994141e6 RD |
7749 | PyObject * obj0 = 0 ; |
7750 | PyObject * obj1 = 0 ; | |
7751 | PyObject * obj2 = 0 ; | |
7752 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7753 | PyObject * obj4 = 0 ; |
7754 | PyObject * obj5 = 0 ; | |
994141e6 | 7755 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7756 | char *kwnames[] = { |
7757 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7758 | }; | |
7759 | ||
994141e6 | 7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 7761 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7762 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7763 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7764 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7765 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7766 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7767 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 7768 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7769 | if (obj4) { |
c32bde28 | 7770 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 7771 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7772 | } |
7773 | if (obj5) { | |
7774 | { | |
7775 | arg6 = wxString_in_helper(obj5); | |
7776 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 7777 | temp6 = true; |
d14a1e28 RD |
7778 | } |
7779 | } | |
994141e6 | 7780 | if (obj6) { |
c32bde28 | 7781 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 7782 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7783 | } |
d14a1e28 | 7784 | { |
e3b71cb8 | 7785 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7787 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7790 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7791 | } |
15afbcd0 | 7792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7793 | { |
7794 | if (temp6) | |
7795 | delete arg6; | |
7796 | } | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | { | |
7800 | if (temp6) | |
7801 | delete arg6; | |
7802 | } | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
c32bde28 | 7807 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7808 | PyObject *resultobj; |
7809 | wxFont *arg1 = (wxFont *) 0 ; | |
7810 | PyObject * obj0 = 0 ; | |
7811 | char *kwnames[] = { | |
7812 | (char *) "self", NULL | |
7813 | }; | |
7814 | ||
7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7818 | { |
7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7820 | delete arg1; | |
7821 | ||
7822 | wxPyEndAllowThreads(__tstate); | |
7823 | if (PyErr_Occurred()) SWIG_fail; | |
7824 | } | |
7825 | Py_INCREF(Py_None); resultobj = Py_None; | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | return NULL; | |
7829 | } | |
7830 | ||
7831 | ||
c32bde28 | 7832 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7833 | PyObject *resultobj; |
7834 | wxNativeFontInfo *arg1 = 0 ; | |
7835 | wxFont *result; | |
7836 | PyObject * obj0 = 0 ; | |
7837 | char *kwnames[] = { | |
7838 | (char *) "info", NULL | |
7839 | }; | |
7840 | ||
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7844 | SWIG_fail; | |
d14a1e28 | 7845 | if (arg1 == NULL) { |
15afbcd0 RD |
7846 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7847 | SWIG_fail; | |
d14a1e28 RD |
7848 | } |
7849 | { | |
e3b71cb8 | 7850 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7852 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7853 | ||
7854 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7855 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7856 | } |
15afbcd0 | 7857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7858 | return resultobj; |
7859 | fail: | |
7860 | return NULL; | |
7861 | } | |
7862 | ||
7863 | ||
c32bde28 | 7864 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7865 | PyObject *resultobj; |
7866 | wxString *arg1 = 0 ; | |
7867 | wxFont *result; | |
ae8162c8 | 7868 | bool temp1 = false ; |
d14a1e28 RD |
7869 | PyObject * obj0 = 0 ; |
7870 | char *kwnames[] = { | |
7871 | (char *) "info", NULL | |
7872 | }; | |
7873 | ||
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7875 | { | |
7876 | arg1 = wxString_in_helper(obj0); | |
7877 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7878 | temp1 = true; |
d14a1e28 RD |
7879 | } |
7880 | { | |
e3b71cb8 | 7881 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7883 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7886 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7887 | } |
15afbcd0 | 7888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7889 | { |
7890 | if (temp1) | |
7891 | delete arg1; | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | { | |
7896 | if (temp1) | |
7897 | delete arg1; | |
7898 | } | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
c32bde28 | 7903 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7904 | PyObject *resultobj; |
7905 | int arg1 ; | |
7906 | int arg2 ; | |
7907 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7908 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7909 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7910 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7911 | wxFont *result; | |
ae8162c8 | 7912 | bool temp4 = false ; |
994141e6 RD |
7913 | PyObject * obj0 = 0 ; |
7914 | PyObject * obj1 = 0 ; | |
7915 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7916 | PyObject * obj3 = 0 ; |
994141e6 | 7917 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7918 | char *kwnames[] = { |
7919 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7920 | }; | |
7921 | ||
994141e6 | 7922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
c32bde28 | 7923 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 7924 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7925 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7926 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7927 | if (obj2) { |
c32bde28 | 7928 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7929 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7930 | } |
d14a1e28 RD |
7931 | if (obj3) { |
7932 | { | |
7933 | arg4 = wxString_in_helper(obj3); | |
7934 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 7935 | temp4 = true; |
d14a1e28 RD |
7936 | } |
7937 | } | |
994141e6 | 7938 | if (obj4) { |
c32bde28 | 7939 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 7940 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7941 | } |
d14a1e28 | 7942 | { |
e3b71cb8 | 7943 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7945 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7946 | ||
7947 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7948 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7949 | } |
15afbcd0 | 7950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7951 | { |
7952 | if (temp4) | |
7953 | delete arg4; | |
7954 | } | |
7955 | return resultobj; | |
7956 | fail: | |
7957 | { | |
7958 | if (temp4) | |
7959 | delete arg4; | |
7960 | } | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
b6294124 RD |
7965 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7966 | PyObject *resultobj; | |
7967 | wxSize *arg1 = 0 ; | |
7968 | int arg2 ; | |
7969 | int arg3 ; | |
7970 | int arg4 ; | |
7971 | bool arg5 = (bool) false ; | |
7972 | wxString const &arg6_defvalue = wxEmptyString ; | |
7973 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7974 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7975 | wxFont *result; | |
7976 | wxSize temp1 ; | |
7977 | bool temp6 = false ; | |
7978 | PyObject * obj0 = 0 ; | |
7979 | PyObject * obj1 = 0 ; | |
7980 | PyObject * obj2 = 0 ; | |
7981 | PyObject * obj3 = 0 ; | |
7982 | PyObject * obj4 = 0 ; | |
7983 | PyObject * obj5 = 0 ; | |
7984 | PyObject * obj6 = 0 ; | |
7985 | char *kwnames[] = { | |
7986 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
7987 | }; | |
7988 | ||
7989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
7990 | { | |
7991 | arg1 = &temp1; | |
7992 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
7993 | } | |
7994 | arg2 = (int)SWIG_As_int(obj1); | |
7995 | if (PyErr_Occurred()) SWIG_fail; | |
7996 | arg3 = (int)SWIG_As_int(obj2); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | arg4 = (int)SWIG_As_int(obj3); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | if (obj4) { | |
8001 | arg5 = (bool)SWIG_As_bool(obj4); | |
8002 | if (PyErr_Occurred()) SWIG_fail; | |
8003 | } | |
8004 | if (obj5) { | |
8005 | { | |
8006 | arg6 = wxString_in_helper(obj5); | |
8007 | if (arg6 == NULL) SWIG_fail; | |
8008 | temp6 = true; | |
8009 | } | |
8010 | } | |
8011 | if (obj6) { | |
8012 | arg7 = (int)SWIG_As_int(obj6); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | { | |
8016 | if (!wxPyCheckForApp()) SWIG_fail; | |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8024 | { | |
8025 | if (temp6) | |
8026 | delete arg6; | |
8027 | } | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | { | |
8031 | if (temp6) | |
8032 | delete arg6; | |
8033 | } | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
c32bde28 | 8038 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8039 | PyObject *resultobj; |
8040 | wxFont *arg1 = (wxFont *) 0 ; | |
8041 | bool result; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | char *kwnames[] = { | |
8044 | (char *) "self", NULL | |
8045 | }; | |
8046 | ||
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8050 | { |
8051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8052 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8053 | ||
8054 | wxPyEndAllowThreads(__tstate); | |
8055 | if (PyErr_Occurred()) SWIG_fail; | |
8056 | } | |
4f89f6a3 RD |
8057 | { |
8058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8059 | } | |
d14a1e28 RD |
8060 | return resultobj; |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
c32bde28 | 8066 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8067 | PyObject *resultobj; |
8068 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 8069 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8070 | bool result; |
8071 | PyObject * obj0 = 0 ; | |
8072 | PyObject * obj1 = 0 ; | |
8073 | char *kwnames[] = { | |
22faec7d | 8074 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8075 | }; |
8076 | ||
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8082 | { |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 8084 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8085 | |
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
4f89f6a3 RD |
8089 | { |
8090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8091 | } | |
d14a1e28 RD |
8092 | return resultobj; |
8093 | fail: | |
8094 | return NULL; | |
8095 | } | |
8096 | ||
8097 | ||
c32bde28 | 8098 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8099 | PyObject *resultobj; |
8100 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 8101 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8102 | bool result; |
8103 | PyObject * obj0 = 0 ; | |
8104 | PyObject * obj1 = 0 ; | |
8105 | char *kwnames[] = { | |
22faec7d | 8106 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8107 | }; |
8108 | ||
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8114 | { |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 8116 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8117 | |
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) SWIG_fail; | |
8120 | } | |
4f89f6a3 RD |
8121 | { |
8122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8123 | } | |
d14a1e28 RD |
8124 | return resultobj; |
8125 | fail: | |
8126 | return NULL; | |
8127 | } | |
8128 | ||
8129 | ||
c32bde28 | 8130 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8131 | PyObject *resultobj; |
8132 | wxFont *arg1 = (wxFont *) 0 ; | |
8133 | int result; | |
8134 | PyObject * obj0 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "self", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8142 | { |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8145 | ||
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
c32bde28 | 8149 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8150 | return resultobj; |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
b6294124 RD |
8156 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8157 | PyObject *resultobj; | |
8158 | wxFont *arg1 = (wxFont *) 0 ; | |
8159 | wxSize result; | |
8160 | PyObject * obj0 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; | |
8166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | { | |
8176 | wxSize * resultptr; | |
8177 | resultptr = new wxSize((wxSize &) result); | |
8178 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8179 | } | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj; | |
8188 | wxFont *arg1 = (wxFont *) 0 ; | |
8189 | bool result; | |
8190 | PyObject * obj0 = 0 ; | |
8191 | char *kwnames[] = { | |
8192 | (char *) "self", NULL | |
8193 | }; | |
8194 | ||
8195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; | |
8196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8198 | { | |
8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8200 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
8201 | ||
8202 | wxPyEndAllowThreads(__tstate); | |
8203 | if (PyErr_Occurred()) SWIG_fail; | |
8204 | } | |
8205 | { | |
8206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8207 | } | |
8208 | return resultobj; | |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
c32bde28 | 8214 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8215 | PyObject *resultobj; |
8216 | wxFont *arg1 = (wxFont *) 0 ; | |
8217 | int result; | |
8218 | PyObject * obj0 = 0 ; | |
8219 | char *kwnames[] = { | |
8220 | (char *) "self", NULL | |
8221 | }; | |
8222 | ||
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8226 | { |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8229 | ||
8230 | wxPyEndAllowThreads(__tstate); | |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
8232 | } | |
c32bde28 | 8233 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8234 | return resultobj; |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
c32bde28 | 8240 | static PyObject *_wrap_Font_GetStyle(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_GetStyle",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)->GetStyle(); | |
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_GetWeight(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_GetWeight",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)->GetWeight(); | |
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_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8293 | PyObject *resultobj; |
8294 | wxFont *arg1 = (wxFont *) 0 ; | |
8295 | bool result; | |
8296 | PyObject * obj0 = 0 ; | |
8297 | char *kwnames[] = { | |
8298 | (char *) "self", NULL | |
8299 | }; | |
8300 | ||
8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",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 = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
4f89f6a3 RD |
8311 | { |
8312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8313 | } | |
d14a1e28 RD |
8314 | return resultobj; |
8315 | fail: | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
c32bde28 | 8320 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8321 | PyObject *resultobj; |
8322 | wxFont *arg1 = (wxFont *) 0 ; | |
8323 | wxString result; | |
8324 | PyObject * obj0 = 0 ; | |
8325 | char *kwnames[] = { | |
8326 | (char *) "self", NULL | |
8327 | }; | |
8328 | ||
8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8332 | { |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | { | |
8340 | #if wxUSE_UNICODE | |
8341 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8342 | #else | |
8343 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8344 | #endif | |
8345 | } | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
c32bde28 | 8352 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8353 | PyObject *resultobj; |
8354 | wxFont *arg1 = (wxFont *) 0 ; | |
8355 | int result; | |
8356 | PyObject * obj0 = 0 ; | |
8357 | char *kwnames[] = { | |
8358 | (char *) "self", NULL | |
8359 | }; | |
8360 | ||
8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8364 | { |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
c32bde28 | 8371 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8372 | return resultobj; |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
c32bde28 | 8378 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8379 | PyObject *resultobj; |
8380 | wxFont *arg1 = (wxFont *) 0 ; | |
8381 | wxNativeFontInfo *result; | |
8382 | PyObject * obj0 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "self", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",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 = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8393 | ||
8394 | wxPyEndAllowThreads(__tstate); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
15afbcd0 | 8397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
8398 | return resultobj; |
8399 | fail: | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
c32bde28 | 8404 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8405 | PyObject *resultobj; |
8406 | wxFont *arg1 = (wxFont *) 0 ; | |
8407 | bool result; | |
8408 | PyObject * obj0 = 0 ; | |
8409 | char *kwnames[] = { | |
8410 | (char *) "self", NULL | |
8411 | }; | |
8412 | ||
8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",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 = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
4f89f6a3 RD |
8423 | { |
8424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8425 | } | |
d14a1e28 RD |
8426 | return resultobj; |
8427 | fail: | |
8428 | return NULL; | |
8429 | } | |
8430 | ||
8431 | ||
c32bde28 | 8432 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8433 | PyObject *resultobj; |
8434 | wxFont *arg1 = (wxFont *) 0 ; | |
8435 | wxString result; | |
8436 | PyObject * obj0 = 0 ; | |
8437 | char *kwnames[] = { | |
8438 | (char *) "self", NULL | |
8439 | }; | |
8440 | ||
8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8444 | { |
8445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8446 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8447 | ||
8448 | wxPyEndAllowThreads(__tstate); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | { | |
8452 | #if wxUSE_UNICODE | |
8453 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8454 | #else | |
8455 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8456 | #endif | |
8457 | } | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
c32bde28 | 8464 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8465 | PyObject *resultobj; |
8466 | wxFont *arg1 = (wxFont *) 0 ; | |
8467 | wxString result; | |
8468 | PyObject * obj0 = 0 ; | |
8469 | char *kwnames[] = { | |
8470 | (char *) "self", NULL | |
8471 | }; | |
8472 | ||
8473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8476 | { |
8477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8478 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8479 | ||
8480 | wxPyEndAllowThreads(__tstate); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
8483 | { | |
8484 | #if wxUSE_UNICODE | |
8485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8486 | #else | |
8487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8488 | #endif | |
8489 | } | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
c32bde28 | 8496 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8497 | PyObject *resultobj; |
8498 | wxFont *arg1 = (wxFont *) 0 ; | |
8499 | int arg2 ; | |
8500 | PyObject * obj0 = 0 ; | |
994141e6 | 8501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8502 | char *kwnames[] = { |
8503 | (char *) "self",(char *) "pointSize", NULL | |
8504 | }; | |
8505 | ||
994141e6 | 8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8509 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8510 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8511 | { |
8512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8513 | (arg1)->SetPointSize(arg2); | |
8514 | ||
8515 | wxPyEndAllowThreads(__tstate); | |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
8517 | } | |
8518 | Py_INCREF(Py_None); resultobj = Py_None; | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | return NULL; | |
8522 | } | |
8523 | ||
8524 | ||
b6294124 RD |
8525 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8526 | PyObject *resultobj; | |
8527 | wxFont *arg1 = (wxFont *) 0 ; | |
8528 | wxSize *arg2 = 0 ; | |
8529 | wxSize temp2 ; | |
8530 | PyObject * obj0 = 0 ; | |
8531 | PyObject * obj1 = 0 ; | |
8532 | char *kwnames[] = { | |
8533 | (char *) "self",(char *) "pixelSize", NULL | |
8534 | }; | |
8535 | ||
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
8537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8539 | { | |
8540 | arg2 = &temp2; | |
8541 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8542 | } | |
8543 | { | |
8544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8545 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
8546 | ||
8547 | wxPyEndAllowThreads(__tstate); | |
8548 | if (PyErr_Occurred()) SWIG_fail; | |
8549 | } | |
8550 | Py_INCREF(Py_None); resultobj = Py_None; | |
8551 | return resultobj; | |
8552 | fail: | |
8553 | return NULL; | |
8554 | } | |
8555 | ||
8556 | ||
c32bde28 | 8557 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8558 | PyObject *resultobj; |
8559 | wxFont *arg1 = (wxFont *) 0 ; | |
8560 | int arg2 ; | |
8561 | PyObject * obj0 = 0 ; | |
994141e6 | 8562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8563 | char *kwnames[] = { |
8564 | (char *) "self",(char *) "family", NULL | |
8565 | }; | |
8566 | ||
994141e6 | 8567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8570 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8571 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8572 | { |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | (arg1)->SetFamily(arg2); | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
8579 | Py_INCREF(Py_None); resultobj = Py_None; | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
c32bde28 | 8586 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8587 | PyObject *resultobj; |
8588 | wxFont *arg1 = (wxFont *) 0 ; | |
8589 | int arg2 ; | |
8590 | PyObject * obj0 = 0 ; | |
994141e6 | 8591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8592 | char *kwnames[] = { |
8593 | (char *) "self",(char *) "style", NULL | |
8594 | }; | |
8595 | ||
994141e6 | 8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8599 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8601 | { |
8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8603 | (arg1)->SetStyle(arg2); | |
8604 | ||
8605 | wxPyEndAllowThreads(__tstate); | |
8606 | if (PyErr_Occurred()) SWIG_fail; | |
8607 | } | |
8608 | Py_INCREF(Py_None); resultobj = Py_None; | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | return NULL; | |
8612 | } | |
8613 | ||
8614 | ||
c32bde28 | 8615 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8616 | PyObject *resultobj; |
8617 | wxFont *arg1 = (wxFont *) 0 ; | |
8618 | int arg2 ; | |
8619 | PyObject * obj0 = 0 ; | |
994141e6 | 8620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8621 | char *kwnames[] = { |
8622 | (char *) "self",(char *) "weight", NULL | |
8623 | }; | |
8624 | ||
994141e6 | 8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8628 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8629 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8630 | { |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | (arg1)->SetWeight(arg2); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | Py_INCREF(Py_None); resultobj = Py_None; | |
8638 | return resultobj; | |
8639 | fail: | |
8640 | return NULL; | |
8641 | } | |
8642 | ||
8643 | ||
c32bde28 | 8644 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8645 | PyObject *resultobj; |
8646 | wxFont *arg1 = (wxFont *) 0 ; | |
8647 | wxString *arg2 = 0 ; | |
ae8162c8 | 8648 | bool temp2 = false ; |
d14a1e28 RD |
8649 | PyObject * obj0 = 0 ; |
8650 | PyObject * obj1 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self",(char *) "faceName", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8658 | { |
8659 | arg2 = wxString_in_helper(obj1); | |
8660 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8661 | temp2 = true; |
d14a1e28 RD |
8662 | } |
8663 | { | |
8664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8665 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8666 | ||
8667 | wxPyEndAllowThreads(__tstate); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | } | |
8670 | Py_INCREF(Py_None); resultobj = Py_None; | |
8671 | { | |
8672 | if (temp2) | |
8673 | delete arg2; | |
8674 | } | |
8675 | return resultobj; | |
8676 | fail: | |
8677 | { | |
8678 | if (temp2) | |
8679 | delete arg2; | |
8680 | } | |
8681 | return NULL; | |
8682 | } | |
8683 | ||
8684 | ||
c32bde28 | 8685 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8686 | PyObject *resultobj; |
8687 | wxFont *arg1 = (wxFont *) 0 ; | |
8688 | bool arg2 ; | |
8689 | PyObject * obj0 = 0 ; | |
8690 | PyObject * obj1 = 0 ; | |
8691 | char *kwnames[] = { | |
8692 | (char *) "self",(char *) "underlined", NULL | |
8693 | }; | |
8694 | ||
8695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8698 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 8699 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8700 | { |
8701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8702 | (arg1)->SetUnderlined(arg2); | |
8703 | ||
8704 | wxPyEndAllowThreads(__tstate); | |
8705 | if (PyErr_Occurred()) SWIG_fail; | |
8706 | } | |
8707 | Py_INCREF(Py_None); resultobj = Py_None; | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | return NULL; | |
8711 | } | |
8712 | ||
8713 | ||
c32bde28 | 8714 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8715 | PyObject *resultobj; |
8716 | wxFont *arg1 = (wxFont *) 0 ; | |
8717 | int arg2 ; | |
8718 | PyObject * obj0 = 0 ; | |
994141e6 | 8719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8720 | char *kwnames[] = { |
8721 | (char *) "self",(char *) "encoding", NULL | |
8722 | }; | |
8723 | ||
994141e6 | 8724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8727 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 8728 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8729 | { |
8730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8731 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8732 | ||
8733 | wxPyEndAllowThreads(__tstate); | |
8734 | if (PyErr_Occurred()) SWIG_fail; | |
8735 | } | |
8736 | Py_INCREF(Py_None); resultobj = Py_None; | |
8737 | return resultobj; | |
8738 | fail: | |
8739 | return NULL; | |
8740 | } | |
8741 | ||
8742 | ||
c32bde28 | 8743 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8744 | PyObject *resultobj; |
8745 | wxFont *arg1 = (wxFont *) 0 ; | |
8746 | wxNativeFontInfo *arg2 = 0 ; | |
8747 | PyObject * obj0 = 0 ; | |
8748 | PyObject * obj1 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "self",(char *) "info", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8758 | SWIG_fail; | |
d14a1e28 | 8759 | if (arg2 == NULL) { |
15afbcd0 RD |
8760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8761 | SWIG_fail; | |
d14a1e28 RD |
8762 | } |
8763 | { | |
8764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8765 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8766 | ||
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | Py_INCREF(Py_None); resultobj = Py_None; | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
c32bde28 | 8777 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8778 | PyObject *resultobj; |
8779 | wxFont *arg1 = (wxFont *) 0 ; | |
8780 | wxString *arg2 = 0 ; | |
ae8162c8 | 8781 | bool temp2 = false ; |
d14a1e28 RD |
8782 | PyObject * obj0 = 0 ; |
8783 | PyObject * obj1 = 0 ; | |
8784 | char *kwnames[] = { | |
8785 | (char *) "self",(char *) "info", NULL | |
8786 | }; | |
8787 | ||
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8791 | { |
8792 | arg2 = wxString_in_helper(obj1); | |
8793 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8794 | temp2 = true; |
d14a1e28 RD |
8795 | } |
8796 | { | |
8797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8798 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8799 | ||
8800 | wxPyEndAllowThreads(__tstate); | |
8801 | if (PyErr_Occurred()) SWIG_fail; | |
8802 | } | |
8803 | Py_INCREF(Py_None); resultobj = Py_None; | |
8804 | { | |
8805 | if (temp2) | |
8806 | delete arg2; | |
8807 | } | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | { | |
8811 | if (temp2) | |
8812 | delete arg2; | |
8813 | } | |
8814 | return NULL; | |
8815 | } | |
8816 | ||
8817 | ||
c32bde28 | 8818 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8819 | PyObject *resultobj; |
8820 | wxFont *arg1 = (wxFont *) 0 ; | |
8821 | wxString *arg2 = 0 ; | |
ae8162c8 | 8822 | bool temp2 = false ; |
d14a1e28 RD |
8823 | PyObject * obj0 = 0 ; |
8824 | PyObject * obj1 = 0 ; | |
8825 | char *kwnames[] = { | |
8826 | (char *) "self",(char *) "info", NULL | |
8827 | }; | |
8828 | ||
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8832 | { |
8833 | arg2 = wxString_in_helper(obj1); | |
8834 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8835 | temp2 = true; |
d14a1e28 RD |
8836 | } |
8837 | { | |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | Py_INCREF(Py_None); resultobj = Py_None; | |
8845 | { | |
8846 | if (temp2) | |
8847 | delete arg2; | |
8848 | } | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | { | |
8852 | if (temp2) | |
8853 | delete arg2; | |
8854 | } | |
8855 | return NULL; | |
8856 | } | |
8857 | ||
8858 | ||
c32bde28 | 8859 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8860 | PyObject *resultobj; |
8861 | wxFont *arg1 = (wxFont *) 0 ; | |
8862 | wxString result; | |
8863 | PyObject * obj0 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "self", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8871 | { |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | { | |
8879 | #if wxUSE_UNICODE | |
8880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8881 | #else | |
8882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8883 | #endif | |
8884 | } | |
8885 | return resultobj; | |
8886 | fail: | |
8887 | return NULL; | |
8888 | } | |
8889 | ||
8890 | ||
c32bde28 | 8891 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8892 | PyObject *resultobj; |
8893 | wxFont *arg1 = (wxFont *) 0 ; | |
8894 | wxString result; | |
8895 | PyObject * obj0 = 0 ; | |
8896 | char *kwnames[] = { | |
8897 | (char *) "self", NULL | |
8898 | }; | |
8899 | ||
8900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8903 | { |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | { | |
8911 | #if wxUSE_UNICODE | |
8912 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8913 | #else | |
8914 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8915 | #endif | |
8916 | } | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
c32bde28 | 8923 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8924 | PyObject *resultobj; |
8925 | wxFont *arg1 = (wxFont *) 0 ; | |
8926 | wxString result; | |
8927 | PyObject * obj0 = 0 ; | |
8928 | char *kwnames[] = { | |
8929 | (char *) "self", NULL | |
8930 | }; | |
8931 | ||
8932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8935 | { |
8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8937 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8938 | ||
8939 | wxPyEndAllowThreads(__tstate); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | } | |
8942 | { | |
8943 | #if wxUSE_UNICODE | |
8944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8945 | #else | |
8946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8947 | #endif | |
8948 | } | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
c32bde28 | 8955 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8956 | PyObject *resultobj; |
8957 | wxFont *arg1 = (wxFont *) 0 ; | |
ae8162c8 | 8958 | bool arg2 = (bool) true ; |
d14a1e28 RD |
8959 | PyObject * obj0 = 0 ; |
8960 | PyObject * obj1 = 0 ; | |
8961 | char *kwnames[] = { | |
8962 | (char *) "self",(char *) "no", NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8968 | if (obj1) { |
c32bde28 | 8969 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 8970 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8971 | } |
8972 | { | |
8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8974 | (arg1)->SetNoAntiAliasing(arg2); | |
8975 | ||
8976 | wxPyEndAllowThreads(__tstate); | |
8977 | if (PyErr_Occurred()) SWIG_fail; | |
8978 | } | |
8979 | Py_INCREF(Py_None); resultobj = Py_None; | |
8980 | return resultobj; | |
8981 | fail: | |
8982 | return NULL; | |
8983 | } | |
8984 | ||
8985 | ||
c32bde28 | 8986 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8987 | PyObject *resultobj; |
8988 | wxFont *arg1 = (wxFont *) 0 ; | |
8989 | bool result; | |
8990 | PyObject * obj0 = 0 ; | |
8991 | char *kwnames[] = { | |
8992 | (char *) "self", NULL | |
8993 | }; | |
8994 | ||
8995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8998 | { |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0dcf9a74 | 9000 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d14a1e28 RD |
9001 | |
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
4f89f6a3 RD |
9005 | { |
9006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9007 | } | |
d14a1e28 RD |
9008 | return resultobj; |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
c32bde28 | 9014 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9015 | PyObject *resultobj; |
9016 | int result; | |
9017 | char *kwnames[] = { | |
9018 | NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9022 | { | |
e3b71cb8 | 9023 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9025 | result = (int)wxFont::GetDefaultEncoding(); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9028 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9029 | } |
c32bde28 | 9030 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9031 | return resultobj; |
9032 | fail: | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
c32bde28 | 9037 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9038 | PyObject *resultobj; |
9039 | int arg1 ; | |
994141e6 | 9040 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9041 | char *kwnames[] = { |
9042 | (char *) "encoding", NULL | |
9043 | }; | |
9044 | ||
994141e6 | 9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
c32bde28 | 9046 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9047 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9048 | { |
e3b71cb8 | 9049 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9051 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9055 | } |
9056 | Py_INCREF(Py_None); resultobj = Py_None; | |
9057 | return resultobj; | |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
c32bde28 | 9063 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9064 | PyObject *obj; |
9065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9066 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9067 | Py_INCREF(obj); | |
9068 | return Py_BuildValue((char *)""); | |
9069 | } | |
c32bde28 | 9070 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9071 | PyObject *resultobj; |
9072 | wxPyFontEnumerator *result; | |
9073 | char *kwnames[] = { | |
9074 | NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9078 | { | |
e3b71cb8 | 9079 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9081 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9082 | ||
9083 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9084 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9085 | } |
15afbcd0 | 9086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
9087 | return resultobj; |
9088 | fail: | |
9089 | return NULL; | |
9090 | } | |
9091 | ||
9092 | ||
c32bde28 | 9093 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9094 | PyObject *resultobj; |
9095 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9096 | PyObject * obj0 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "self", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9104 | { |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | delete arg1; | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
9111 | Py_INCREF(Py_None); resultobj = Py_None; | |
9112 | return resultobj; | |
9113 | fail: | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
c32bde28 | 9118 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9119 | PyObject *resultobj; |
9120 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9121 | PyObject *arg2 = (PyObject *) 0 ; | |
9122 | PyObject *arg3 = (PyObject *) 0 ; | |
9123 | bool arg4 ; | |
9124 | PyObject * obj0 = 0 ; | |
9125 | PyObject * obj1 = 0 ; | |
9126 | PyObject * obj2 = 0 ; | |
9127 | PyObject * obj3 = 0 ; | |
9128 | char *kwnames[] = { | |
9129 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9130 | }; | |
9131 | ||
9132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9135 | arg2 = obj1; |
9136 | arg3 = obj2; | |
c32bde28 | 9137 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 9138 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9139 | { |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | Py_INCREF(Py_None); resultobj = Py_None; | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
c32bde28 | 9153 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9154 | PyObject *resultobj; |
9155 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9156 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
ae8162c8 | 9157 | bool arg3 = (bool) false ; |
d14a1e28 RD |
9158 | bool result; |
9159 | PyObject * obj0 = 0 ; | |
994141e6 | 9160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9161 | PyObject * obj2 = 0 ; |
9162 | char *kwnames[] = { | |
9163 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9164 | }; | |
9165 | ||
994141e6 | 9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9169 | if (obj1) { |
c32bde28 | 9170 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9171 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9172 | } |
d14a1e28 | 9173 | if (obj2) { |
c32bde28 | 9174 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 9175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9176 | } |
9177 | { | |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
4f89f6a3 RD |
9184 | { |
9185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9186 | } | |
d14a1e28 RD |
9187 | return resultobj; |
9188 | fail: | |
9189 | return NULL; | |
9190 | } | |
9191 | ||
9192 | ||
c32bde28 | 9193 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9194 | PyObject *resultobj; |
9195 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9196 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9197 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9198 | bool result; | |
ae8162c8 | 9199 | bool temp2 = false ; |
d14a1e28 RD |
9200 | PyObject * obj0 = 0 ; |
9201 | PyObject * obj1 = 0 ; | |
9202 | char *kwnames[] = { | |
9203 | (char *) "self",(char *) "facename", NULL | |
9204 | }; | |
9205 | ||
9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9209 | if (obj1) { |
9210 | { | |
9211 | arg2 = wxString_in_helper(obj1); | |
9212 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9213 | temp2 = true; |
d14a1e28 RD |
9214 | } |
9215 | } | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
4f89f6a3 RD |
9223 | { |
9224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9225 | } | |
d14a1e28 RD |
9226 | { |
9227 | if (temp2) | |
9228 | delete arg2; | |
9229 | } | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | { | |
9233 | if (temp2) | |
9234 | delete arg2; | |
9235 | } | |
9236 | return NULL; | |
9237 | } | |
9238 | ||
9239 | ||
c32bde28 | 9240 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9241 | PyObject *resultobj; |
9242 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9243 | PyObject *result; | |
9244 | PyObject * obj0 = 0 ; | |
9245 | char *kwnames[] = { | |
9246 | (char *) "self", NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9252 | { |
9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9254 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9255 | ||
9256 | wxPyEndAllowThreads(__tstate); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | resultobj = result; | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c32bde28 | 9266 | static PyObject *_wrap_FontEnumerator_GetFacenames(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_GetFacenames",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_GetFacenames(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 * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9293 | PyObject *obj; |
9294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9295 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9296 | Py_INCREF(obj); | |
9297 | return Py_BuildValue((char *)""); | |
9298 | } | |
c32bde28 | 9299 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9300 | PyObject *resultobj; |
9301 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9302 | int arg2 ; | |
9303 | PyObject * obj0 = 0 ; | |
994141e6 | 9304 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9305 | char *kwnames[] = { |
9306 | (char *) "self",(char *) "Language", NULL | |
9307 | }; | |
9308 | ||
994141e6 | 9309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9312 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9313 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9314 | if (arg1) (arg1)->Language = arg2; |
9315 | ||
9316 | Py_INCREF(Py_None); resultobj = Py_None; | |
9317 | return resultobj; | |
9318 | fail: | |
9319 | return NULL; | |
9320 | } | |
9321 | ||
9322 | ||
c32bde28 | 9323 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9324 | PyObject *resultobj; |
9325 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9326 | int result; | |
9327 | PyObject * obj0 = 0 ; | |
9328 | char *kwnames[] = { | |
9329 | (char *) "self", NULL | |
9330 | }; | |
9331 | ||
9332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9335 | result = (int) ((arg1)->Language); |
9336 | ||
c32bde28 | 9337 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9338 | return resultobj; |
9339 | fail: | |
9340 | return NULL; | |
9341 | } | |
9342 | ||
9343 | ||
c32bde28 | 9344 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9345 | PyObject *resultobj; |
9346 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9347 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 9348 | bool temp2 = false ; |
d14a1e28 RD |
9349 | PyObject * obj0 = 0 ; |
9350 | PyObject * obj1 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self",(char *) "CanonicalName", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
9358 | { |
9359 | arg2 = wxString_in_helper(obj1); | |
9360 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9361 | temp2 = true; |
7eae615b | 9362 | } |
196addbf | 9363 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
9364 | |
9365 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
9366 | { |
9367 | if (temp2) | |
9368 | delete arg2; | |
9369 | } | |
d14a1e28 RD |
9370 | return resultobj; |
9371 | fail: | |
7eae615b RD |
9372 | { |
9373 | if (temp2) | |
9374 | delete arg2; | |
9375 | } | |
d14a1e28 RD |
9376 | return NULL; |
9377 | } | |
9378 | ||
9379 | ||
c32bde28 | 9380 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9381 | PyObject *resultobj; |
9382 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9383 | wxString *result; |
d14a1e28 RD |
9384 | PyObject * obj0 = 0 ; |
9385 | char *kwnames[] = { | |
9386 | (char *) "self", NULL | |
9387 | }; | |
9388 | ||
9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 9392 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
9393 | |
9394 | { | |
9395 | #if wxUSE_UNICODE | |
196addbf | 9396 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9397 | #else |
196addbf | 9398 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9399 | #endif |
9400 | } | |
9401 | return resultobj; | |
9402 | fail: | |
9403 | return NULL; | |
9404 | } | |
9405 | ||
9406 | ||
c32bde28 | 9407 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9408 | PyObject *resultobj; |
9409 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9410 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 9411 | bool temp2 = false ; |
d14a1e28 RD |
9412 | PyObject * obj0 = 0 ; |
9413 | PyObject * obj1 = 0 ; | |
9414 | char *kwnames[] = { | |
9415 | (char *) "self",(char *) "Description", NULL | |
9416 | }; | |
9417 | ||
9418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
9421 | { |
9422 | arg2 = wxString_in_helper(obj1); | |
9423 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9424 | temp2 = true; |
7eae615b | 9425 | } |
196addbf | 9426 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
9427 | |
9428 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
9429 | { |
9430 | if (temp2) | |
9431 | delete arg2; | |
9432 | } | |
d14a1e28 RD |
9433 | return resultobj; |
9434 | fail: | |
7eae615b RD |
9435 | { |
9436 | if (temp2) | |
9437 | delete arg2; | |
9438 | } | |
d14a1e28 RD |
9439 | return NULL; |
9440 | } | |
9441 | ||
9442 | ||
c32bde28 | 9443 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9444 | PyObject *resultobj; |
9445 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9446 | wxString *result; |
d14a1e28 RD |
9447 | PyObject * obj0 = 0 ; |
9448 | char *kwnames[] = { | |
9449 | (char *) "self", NULL | |
9450 | }; | |
9451 | ||
9452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 9455 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
9456 | |
9457 | { | |
9458 | #if wxUSE_UNICODE | |
196addbf | 9459 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9460 | #else |
196addbf | 9461 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9462 | #endif |
9463 | } | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
c32bde28 | 9470 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9471 | PyObject *obj; |
9472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9473 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9474 | Py_INCREF(obj); | |
9475 | return Py_BuildValue((char *)""); | |
9476 | } | |
c32bde28 | 9477 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9478 | PyObject *resultobj; |
41e2b43e | 9479 | int arg1 = (int) -1 ; |
d14a1e28 RD |
9480 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9481 | wxLocale *result; | |
994141e6 RD |
9482 | PyObject * obj0 = 0 ; |
9483 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9484 | char *kwnames[] = { |
9485 | (char *) "language",(char *) "flags", NULL | |
9486 | }; | |
9487 | ||
994141e6 RD |
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
9489 | if (obj0) { | |
c32bde28 | 9490 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9491 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9492 | } |
9493 | if (obj1) { | |
c32bde28 | 9494 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9495 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9496 | } |
d14a1e28 RD |
9497 | { |
9498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 9499 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d14a1e28 RD |
9500 | |
9501 | wxPyEndAllowThreads(__tstate); | |
9502 | if (PyErr_Occurred()) SWIG_fail; | |
9503 | } | |
15afbcd0 | 9504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
9505 | return resultobj; |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
c32bde28 | 9511 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9512 | PyObject *resultobj; |
9513 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9522 | { |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | delete arg1; | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | Py_INCREF(Py_None); resultobj = Py_None; | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
c32bde28 | 9536 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9537 | PyObject *resultobj; |
9538 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9539 | wxString *arg2 = 0 ; | |
9540 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9541 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9542 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9543 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
ae8162c8 RD |
9544 | bool arg5 = (bool) true ; |
9545 | bool arg6 = (bool) false ; | |
d14a1e28 | 9546 | bool result; |
ae8162c8 RD |
9547 | bool temp2 = false ; |
9548 | bool temp3 = false ; | |
9549 | bool temp4 = false ; | |
d14a1e28 RD |
9550 | PyObject * obj0 = 0 ; |
9551 | PyObject * obj1 = 0 ; | |
9552 | PyObject * obj2 = 0 ; | |
9553 | PyObject * obj3 = 0 ; | |
9554 | PyObject * obj4 = 0 ; | |
9555 | PyObject * obj5 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9563 | { |
9564 | arg2 = wxString_in_helper(obj1); | |
9565 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9566 | temp2 = true; |
d14a1e28 RD |
9567 | } |
9568 | if (obj2) { | |
9569 | { | |
9570 | arg3 = wxString_in_helper(obj2); | |
9571 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9572 | temp3 = true; |
d14a1e28 RD |
9573 | } |
9574 | } | |
9575 | if (obj3) { | |
9576 | { | |
9577 | arg4 = wxString_in_helper(obj3); | |
9578 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9579 | temp4 = true; |
d14a1e28 RD |
9580 | } |
9581 | } | |
9582 | if (obj4) { | |
c32bde28 | 9583 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 9584 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9585 | } |
9586 | if (obj5) { | |
c32bde28 | 9587 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 9588 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9589 | } |
9590 | { | |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9593 | ||
9594 | wxPyEndAllowThreads(__tstate); | |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
9596 | } | |
4f89f6a3 RD |
9597 | { |
9598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9599 | } | |
d14a1e28 RD |
9600 | { |
9601 | if (temp2) | |
9602 | delete arg2; | |
9603 | } | |
9604 | { | |
9605 | if (temp3) | |
9606 | delete arg3; | |
9607 | } | |
9608 | { | |
9609 | if (temp4) | |
9610 | delete arg4; | |
9611 | } | |
9612 | return resultobj; | |
9613 | fail: | |
9614 | { | |
9615 | if (temp2) | |
9616 | delete arg2; | |
9617 | } | |
9618 | { | |
9619 | if (temp3) | |
9620 | delete arg3; | |
9621 | } | |
9622 | { | |
9623 | if (temp4) | |
9624 | delete arg4; | |
9625 | } | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
c32bde28 | 9630 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9631 | PyObject *resultobj; |
9632 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9633 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9634 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9635 | bool result; | |
9636 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9637 | PyObject * obj1 = 0 ; |
9638 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9639 | char *kwnames[] = { |
9640 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9641 | }; | |
9642 | ||
994141e6 | 9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9646 | if (obj1) { |
c32bde28 | 9647 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9648 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9649 | } |
9650 | if (obj2) { | |
c32bde28 | 9651 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9652 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9653 | } |
d14a1e28 RD |
9654 | { |
9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9656 | result = (bool)(arg1)->Init(arg2,arg3); | |
9657 | ||
9658 | wxPyEndAllowThreads(__tstate); | |
9659 | if (PyErr_Occurred()) SWIG_fail; | |
9660 | } | |
4f89f6a3 RD |
9661 | { |
9662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9663 | } | |
d14a1e28 RD |
9664 | return resultobj; |
9665 | fail: | |
9666 | return NULL; | |
9667 | } | |
9668 | ||
9669 | ||
c32bde28 | 9670 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9671 | PyObject *resultobj; |
9672 | int result; | |
9673 | char *kwnames[] = { | |
9674 | NULL | |
9675 | }; | |
9676 | ||
9677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | result = (int)wxLocale::GetSystemLanguage(); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | } | |
c32bde28 | 9685 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9686 | return resultobj; |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
c32bde28 | 9692 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9693 | PyObject *resultobj; |
9694 | int result; | |
9695 | char *kwnames[] = { | |
9696 | NULL | |
9697 | }; | |
9698 | ||
9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9700 | { | |
9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9702 | result = (int)wxLocale::GetSystemEncoding(); | |
9703 | ||
9704 | wxPyEndAllowThreads(__tstate); | |
9705 | if (PyErr_Occurred()) SWIG_fail; | |
9706 | } | |
c32bde28 | 9707 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9708 | return resultobj; |
9709 | fail: | |
9710 | return NULL; | |
9711 | } | |
9712 | ||
9713 | ||
c32bde28 | 9714 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9715 | PyObject *resultobj; |
9716 | wxString result; | |
9717 | char *kwnames[] = { | |
9718 | NULL | |
9719 | }; | |
9720 | ||
9721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9722 | { | |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9724 | result = wxLocale::GetSystemEncodingName(); | |
9725 | ||
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
9729 | { | |
9730 | #if wxUSE_UNICODE | |
9731 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9732 | #else | |
9733 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9734 | #endif | |
9735 | } | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
c32bde28 | 9742 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9743 | PyObject *resultobj; |
9744 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9745 | bool result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9754 | { |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
4f89f6a3 RD |
9761 | { |
9762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9763 | } | |
d14a1e28 RD |
9764 | return resultobj; |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
c32bde28 | 9770 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9771 | PyObject *resultobj; |
9772 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9773 | wxString result; | |
9774 | PyObject * obj0 = 0 ; | |
9775 | char *kwnames[] = { | |
9776 | (char *) "self", NULL | |
9777 | }; | |
9778 | ||
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9782 | { |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9785 | ||
9786 | wxPyEndAllowThreads(__tstate); | |
9787 | if (PyErr_Occurred()) SWIG_fail; | |
9788 | } | |
9789 | { | |
9790 | #if wxUSE_UNICODE | |
9791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9792 | #else | |
9793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9794 | #endif | |
9795 | } | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
c32bde28 | 9802 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9803 | PyObject *resultobj; |
9804 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9805 | int result; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9814 | { |
9815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9816 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9817 | ||
9818 | wxPyEndAllowThreads(__tstate); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
c32bde28 | 9821 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9822 | return resultobj; |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
c32bde28 | 9828 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9829 | PyObject *resultobj; |
9830 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9831 | wxString result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",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 = ((wxLocale const *)arg1)->GetSysName(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | { | |
9848 | #if wxUSE_UNICODE | |
9849 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9850 | #else | |
9851 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9852 | #endif | |
9853 | } | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
c32bde28 | 9860 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9861 | PyObject *resultobj; |
9862 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9863 | wxString result; | |
9864 | PyObject * obj0 = 0 ; | |
9865 | char *kwnames[] = { | |
9866 | (char *) "self", NULL | |
9867 | }; | |
9868 | ||
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9872 | { |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) SWIG_fail; | |
9878 | } | |
9879 | { | |
9880 | #if wxUSE_UNICODE | |
9881 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9882 | #else | |
9883 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9884 | #endif | |
9885 | } | |
9886 | return resultobj; | |
9887 | fail: | |
9888 | return NULL; | |
9889 | } | |
9890 | ||
9891 | ||
c32bde28 | 9892 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9893 | PyObject *resultobj; |
9894 | wxString *arg1 = 0 ; | |
ae8162c8 | 9895 | bool temp1 = false ; |
d14a1e28 RD |
9896 | PyObject * obj0 = 0 ; |
9897 | char *kwnames[] = { | |
9898 | (char *) "prefix", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9902 | { | |
9903 | arg1 = wxString_in_helper(obj0); | |
9904 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9905 | temp1 = true; |
d14a1e28 RD |
9906 | } |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | Py_INCREF(Py_None); resultobj = Py_None; | |
9915 | { | |
9916 | if (temp1) | |
9917 | delete arg1; | |
9918 | } | |
9919 | return resultobj; | |
9920 | fail: | |
9921 | { | |
9922 | if (temp1) | |
9923 | delete arg1; | |
9924 | } | |
9925 | return NULL; | |
9926 | } | |
9927 | ||
9928 | ||
c32bde28 | 9929 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9930 | PyObject *resultobj; |
9931 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9932 | wxString *arg2 = 0 ; | |
9933 | bool result; | |
ae8162c8 | 9934 | bool temp2 = false ; |
d14a1e28 RD |
9935 | PyObject * obj0 = 0 ; |
9936 | PyObject * obj1 = 0 ; | |
9937 | char *kwnames[] = { | |
9938 | (char *) "self",(char *) "szDomain", NULL | |
9939 | }; | |
9940 | ||
9941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9944 | { |
9945 | arg2 = wxString_in_helper(obj1); | |
9946 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9947 | temp2 = true; |
d14a1e28 RD |
9948 | } |
9949 | { | |
9950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9951 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9952 | ||
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
4f89f6a3 RD |
9956 | { |
9957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9958 | } | |
d14a1e28 RD |
9959 | { |
9960 | if (temp2) | |
9961 | delete arg2; | |
9962 | } | |
9963 | return resultobj; | |
9964 | fail: | |
9965 | { | |
9966 | if (temp2) | |
9967 | delete arg2; | |
9968 | } | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
c32bde28 | 9973 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9974 | PyObject *resultobj; |
9975 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9976 | wxString *arg2 = 0 ; | |
9977 | bool result; | |
ae8162c8 | 9978 | bool temp2 = false ; |
d14a1e28 RD |
9979 | PyObject * obj0 = 0 ; |
9980 | PyObject * obj1 = 0 ; | |
9981 | char *kwnames[] = { | |
9982 | (char *) "self",(char *) "szDomain", NULL | |
9983 | }; | |
9984 | ||
9985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9988 | { |
9989 | arg2 = wxString_in_helper(obj1); | |
9990 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9991 | temp2 = true; |
d14a1e28 RD |
9992 | } |
9993 | { | |
9994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9995 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9996 | ||
9997 | wxPyEndAllowThreads(__tstate); | |
9998 | if (PyErr_Occurred()) SWIG_fail; | |
9999 | } | |
4f89f6a3 RD |
10000 | { |
10001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10002 | } | |
d14a1e28 RD |
10003 | { |
10004 | if (temp2) | |
10005 | delete arg2; | |
10006 | } | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | { | |
10010 | if (temp2) | |
10011 | delete arg2; | |
10012 | } | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
c32bde28 | 10017 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10018 | PyObject *resultobj; |
10019 | int arg1 ; | |
10020 | wxLanguageInfo *result; | |
994141e6 | 10021 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10022 | char *kwnames[] = { |
10023 | (char *) "lang", NULL | |
10024 | }; | |
10025 | ||
994141e6 | 10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
c32bde28 | 10027 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10028 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10029 | { |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
15afbcd0 | 10036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10037 | return resultobj; |
10038 | fail: | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
c32bde28 | 10043 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10044 | PyObject *resultobj; |
10045 | int arg1 ; | |
10046 | wxString 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_GetLanguageName",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 = wxLocale::GetLanguageName(arg1); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
10062 | { | |
10063 | #if wxUSE_UNICODE | |
10064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10065 | #else | |
10066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10067 | #endif | |
10068 | } | |
10069 | return resultobj; | |
10070 | fail: | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
c32bde28 | 10075 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10076 | PyObject *resultobj; |
10077 | wxString *arg1 = 0 ; | |
10078 | wxLanguageInfo *result; | |
ae8162c8 | 10079 | bool temp1 = false ; |
d14a1e28 RD |
10080 | PyObject * obj0 = 0 ; |
10081 | char *kwnames[] = { | |
10082 | (char *) "locale", NULL | |
10083 | }; | |
10084 | ||
10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10086 | { | |
10087 | arg1 = wxString_in_helper(obj0); | |
10088 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10089 | temp1 = true; |
d14a1e28 RD |
10090 | } |
10091 | { | |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10093 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10094 | ||
10095 | wxPyEndAllowThreads(__tstate); | |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
10097 | } | |
15afbcd0 | 10098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10099 | { |
10100 | if (temp1) | |
10101 | delete arg1; | |
10102 | } | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | { | |
10106 | if (temp1) | |
10107 | delete arg1; | |
10108 | } | |
10109 | return NULL; | |
10110 | } | |
10111 | ||
10112 | ||
c32bde28 | 10113 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10114 | PyObject *resultobj; |
10115 | wxLanguageInfo *arg1 = 0 ; | |
10116 | PyObject * obj0 = 0 ; | |
10117 | char *kwnames[] = { | |
10118 | (char *) "info", NULL | |
10119 | }; | |
10120 | ||
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
10123 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10124 | SWIG_fail; | |
d14a1e28 | 10125 | if (arg1 == NULL) { |
15afbcd0 RD |
10126 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10127 | SWIG_fail; | |
d14a1e28 RD |
10128 | } |
10129 | { | |
10130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10131 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10132 | ||
10133 | wxPyEndAllowThreads(__tstate); | |
10134 | if (PyErr_Occurred()) SWIG_fail; | |
10135 | } | |
10136 | Py_INCREF(Py_None); resultobj = Py_None; | |
10137 | return resultobj; | |
10138 | fail: | |
10139 | return NULL; | |
10140 | } | |
10141 | ||
10142 | ||
c32bde28 | 10143 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10144 | PyObject *resultobj; |
10145 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10146 | wxString *arg2 = 0 ; | |
10147 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10148 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10149 | wxString result; | |
ae8162c8 RD |
10150 | bool temp2 = false ; |
10151 | bool temp3 = false ; | |
d14a1e28 RD |
10152 | PyObject * obj0 = 0 ; |
10153 | PyObject * obj1 = 0 ; | |
10154 | PyObject * obj2 = 0 ; | |
10155 | char *kwnames[] = { | |
10156 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10157 | }; | |
10158 | ||
10159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10162 | { |
10163 | arg2 = wxString_in_helper(obj1); | |
10164 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10165 | temp2 = true; |
d14a1e28 RD |
10166 | } |
10167 | if (obj2) { | |
10168 | { | |
10169 | arg3 = wxString_in_helper(obj2); | |
10170 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10171 | temp3 = true; |
d14a1e28 RD |
10172 | } |
10173 | } | |
10174 | { | |
10175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10176 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10177 | ||
10178 | wxPyEndAllowThreads(__tstate); | |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
10180 | } | |
10181 | { | |
10182 | #if wxUSE_UNICODE | |
10183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10184 | #else | |
10185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10186 | #endif | |
10187 | } | |
10188 | { | |
10189 | if (temp2) | |
10190 | delete arg2; | |
10191 | } | |
10192 | { | |
10193 | if (temp3) | |
10194 | delete arg3; | |
10195 | } | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | { | |
10199 | if (temp2) | |
10200 | delete arg2; | |
10201 | } | |
10202 | { | |
10203 | if (temp3) | |
10204 | delete arg3; | |
10205 | } | |
10206 | return NULL; | |
10207 | } | |
10208 | ||
10209 | ||
c32bde28 | 10210 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10211 | PyObject *resultobj; |
10212 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10213 | wxString *result; | |
10214 | PyObject * obj0 = 0 ; | |
10215 | char *kwnames[] = { | |
10216 | (char *) "self", NULL | |
10217 | }; | |
10218 | ||
10219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10222 | { |
10223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10224 | { | |
10225 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10226 | result = (wxString *) &_result_ref; | |
10227 | } | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
cc6dd355 RD |
10232 | { |
10233 | #if wxUSE_UNICODE | |
10234 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10235 | #else | |
10236 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10237 | #endif | |
10238 | } | |
d14a1e28 RD |
10239 | return resultobj; |
10240 | fail: | |
10241 | return NULL; | |
10242 | } | |
10243 | ||
10244 | ||
c32bde28 | 10245 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10246 | PyObject *obj; |
10247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10248 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10249 | Py_INCREF(obj); | |
10250 | return Py_BuildValue((char *)""); | |
10251 | } | |
c32bde28 | 10252 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10253 | PyObject *resultobj; |
10254 | wxLocale *result; | |
10255 | char *kwnames[] = { | |
10256 | NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10260 | { | |
10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10262 | result = (wxLocale *)wxGetLocale(); | |
10263 | ||
10264 | wxPyEndAllowThreads(__tstate); | |
10265 | if (PyErr_Occurred()) SWIG_fail; | |
10266 | } | |
15afbcd0 | 10267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
10268 | return resultobj; |
10269 | fail: | |
10270 | return NULL; | |
10271 | } | |
10272 | ||
10273 | ||
c32bde28 | 10274 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
10275 | PyObject *resultobj; |
10276 | wxString *arg1 = 0 ; | |
10277 | wxString result; | |
ae8162c8 | 10278 | bool temp1 = false ; |
d14a1e28 RD |
10279 | PyObject * obj0 = 0 ; |
10280 | ||
10281 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10282 | { | |
10283 | arg1 = wxString_in_helper(obj0); | |
10284 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10285 | temp1 = true; |
d14a1e28 RD |
10286 | } |
10287 | { | |
10288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10289 | result = wxGetTranslation((wxString const &)*arg1); | |
10290 | ||
10291 | wxPyEndAllowThreads(__tstate); | |
10292 | if (PyErr_Occurred()) SWIG_fail; | |
10293 | } | |
10294 | { | |
10295 | #if wxUSE_UNICODE | |
10296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10297 | #else | |
10298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10299 | #endif | |
10300 | } | |
10301 | { | |
10302 | if (temp1) | |
10303 | delete arg1; | |
10304 | } | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | { | |
10308 | if (temp1) | |
10309 | delete arg1; | |
10310 | } | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
c32bde28 | 10315 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
10316 | PyObject *resultobj; |
10317 | wxString *arg1 = 0 ; | |
10318 | wxString *arg2 = 0 ; | |
10319 | size_t arg3 ; | |
10320 | wxString result; | |
ae8162c8 RD |
10321 | bool temp1 = false ; |
10322 | bool temp2 = false ; | |
d14a1e28 RD |
10323 | PyObject * obj0 = 0 ; |
10324 | PyObject * obj1 = 0 ; | |
10325 | PyObject * obj2 = 0 ; | |
10326 | ||
10327 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10328 | { | |
10329 | arg1 = wxString_in_helper(obj0); | |
10330 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10331 | temp1 = true; |
d14a1e28 RD |
10332 | } |
10333 | { | |
10334 | arg2 = wxString_in_helper(obj1); | |
10335 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10336 | temp2 = true; |
d14a1e28 | 10337 | } |
c32bde28 | 10338 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
15afbcd0 | 10339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10340 | { |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | { | |
10348 | #if wxUSE_UNICODE | |
10349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10350 | #else | |
10351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10352 | #endif | |
10353 | } | |
10354 | { | |
10355 | if (temp1) | |
10356 | delete arg1; | |
10357 | } | |
10358 | { | |
10359 | if (temp2) | |
10360 | delete arg2; | |
10361 | } | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | { | |
10365 | if (temp1) | |
10366 | delete arg1; | |
10367 | } | |
10368 | { | |
10369 | if (temp2) | |
10370 | delete arg2; | |
10371 | } | |
10372 | return NULL; | |
10373 | } | |
10374 | ||
10375 | ||
10376 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10377 | int argc; | |
10378 | PyObject *argv[4]; | |
10379 | int ii; | |
10380 | ||
10381 | argc = PyObject_Length(args); | |
10382 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10383 | argv[ii] = PyTuple_GetItem(args,ii); | |
10384 | } | |
10385 | if (argc == 1) { | |
10386 | int _v; | |
10387 | { | |
4d5c3d91 | 10388 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10389 | } |
10390 | if (_v) { | |
10391 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10392 | } | |
10393 | } | |
10394 | if (argc == 3) { | |
10395 | int _v; | |
10396 | { | |
4d5c3d91 | 10397 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10398 | } |
10399 | if (_v) { | |
10400 | { | |
4d5c3d91 | 10401 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
10402 | } |
10403 | if (_v) { | |
c32bde28 | 10404 | _v = SWIG_Check_unsigned_SS_long(argv[2]); |
d14a1e28 RD |
10405 | if (_v) { |
10406 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10407 | } | |
10408 | } | |
10409 | } | |
10410 | } | |
10411 | ||
10412 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10413 | return NULL; | |
10414 | } | |
10415 | ||
10416 | ||
c32bde28 | 10417 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10418 | PyObject *resultobj; |
10419 | wxEncodingConverter *result; | |
10420 | char *kwnames[] = { | |
10421 | NULL | |
10422 | }; | |
10423 | ||
10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10428 | ||
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
15afbcd0 | 10432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
10433 | return resultobj; |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
c32bde28 | 10439 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10440 | PyObject *resultobj; |
10441 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10442 | PyObject * obj0 = 0 ; | |
10443 | char *kwnames[] = { | |
10444 | (char *) "self", NULL | |
10445 | }; | |
10446 | ||
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10450 | { |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | delete arg1; | |
10453 | ||
10454 | wxPyEndAllowThreads(__tstate); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | } | |
10457 | Py_INCREF(Py_None); resultobj = Py_None; | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
c32bde28 | 10464 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10465 | PyObject *resultobj; |
10466 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10467 | int arg2 ; | |
10468 | int arg3 ; | |
10469 | int arg4 = (int) wxCONVERT_STRICT ; | |
10470 | bool result; | |
10471 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10472 | PyObject * obj1 = 0 ; |
10473 | PyObject * obj2 = 0 ; | |
10474 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10475 | char *kwnames[] = { |
10476 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10477 | }; | |
10478 | ||
994141e6 | 10479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10482 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10483 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10484 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10485 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10486 | if (obj3) { |
c32bde28 | 10487 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10488 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10489 | } |
d14a1e28 RD |
10490 | { |
10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10492 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10493 | ||
10494 | wxPyEndAllowThreads(__tstate); | |
10495 | if (PyErr_Occurred()) SWIG_fail; | |
10496 | } | |
4f89f6a3 RD |
10497 | { |
10498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10499 | } | |
d14a1e28 RD |
10500 | return resultobj; |
10501 | fail: | |
10502 | return NULL; | |
10503 | } | |
10504 | ||
10505 | ||
c32bde28 | 10506 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10507 | PyObject *resultobj; |
10508 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10509 | wxString *arg2 = 0 ; | |
10510 | wxString result; | |
ae8162c8 | 10511 | bool temp2 = false ; |
d14a1e28 RD |
10512 | PyObject * obj0 = 0 ; |
10513 | PyObject * obj1 = 0 ; | |
10514 | char *kwnames[] = { | |
10515 | (char *) "self",(char *) "input", NULL | |
10516 | }; | |
10517 | ||
10518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10521 | { |
10522 | arg2 = wxString_in_helper(obj1); | |
10523 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10524 | temp2 = true; |
d14a1e28 RD |
10525 | } |
10526 | { | |
10527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10528 | result = (arg1)->Convert((wxString const &)*arg2); | |
10529 | ||
10530 | wxPyEndAllowThreads(__tstate); | |
10531 | if (PyErr_Occurred()) SWIG_fail; | |
10532 | } | |
10533 | { | |
10534 | #if wxUSE_UNICODE | |
10535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10536 | #else | |
10537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10538 | #endif | |
10539 | } | |
10540 | { | |
10541 | if (temp2) | |
10542 | delete arg2; | |
10543 | } | |
10544 | return resultobj; | |
10545 | fail: | |
10546 | { | |
10547 | if (temp2) | |
10548 | delete arg2; | |
10549 | } | |
10550 | return NULL; | |
10551 | } | |
10552 | ||
10553 | ||
c32bde28 | 10554 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10555 | PyObject *resultobj; |
10556 | int arg1 ; | |
10557 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10558 | wxFontEncodingArray result; | |
994141e6 RD |
10559 | PyObject * obj0 = 0 ; |
10560 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10561 | char *kwnames[] = { |
10562 | (char *) "enc",(char *) "platform", NULL | |
10563 | }; | |
10564 | ||
994141e6 | 10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
c32bde28 | 10566 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10567 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10568 | if (obj1) { |
c32bde28 | 10569 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10570 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10571 | } |
d14a1e28 RD |
10572 | { |
10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10574 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10575 | ||
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
10579 | { | |
10580 | resultobj = PyList_New(0); | |
10581 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10582 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10583 | PyList_Append(resultobj, number); | |
10584 | Py_DECREF(number); | |
10585 | } | |
10586 | } | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
c32bde28 | 10593 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10594 | PyObject *resultobj; |
10595 | int arg1 ; | |
10596 | wxFontEncodingArray result; | |
994141e6 | 10597 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10598 | char *kwnames[] = { |
10599 | (char *) "enc", NULL | |
10600 | }; | |
10601 | ||
994141e6 | 10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
c32bde28 | 10603 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10604 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | { | |
10613 | resultobj = PyList_New(0); | |
10614 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10615 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10616 | PyList_Append(resultobj, number); | |
10617 | Py_DECREF(number); | |
10618 | } | |
10619 | } | |
10620 | return resultobj; | |
10621 | fail: | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
c32bde28 | 10626 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10627 | PyObject *resultobj; |
10628 | int arg1 ; | |
10629 | int arg2 ; | |
10630 | bool result; | |
994141e6 RD |
10631 | PyObject * obj0 = 0 ; |
10632 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10633 | char *kwnames[] = { |
10634 | (char *) "encIn",(char *) "encOut", NULL | |
10635 | }; | |
10636 | ||
994141e6 | 10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
c32bde28 | 10638 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 10639 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10640 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10641 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10642 | { |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10645 | ||
10646 | wxPyEndAllowThreads(__tstate); | |
10647 | if (PyErr_Occurred()) SWIG_fail; | |
10648 | } | |
4f89f6a3 RD |
10649 | { |
10650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10651 | } | |
d14a1e28 RD |
10652 | return resultobj; |
10653 | fail: | |
10654 | return NULL; | |
10655 | } | |
10656 | ||
10657 | ||
c32bde28 | 10658 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10659 | PyObject *obj; |
10660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10661 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10662 | Py_INCREF(obj); | |
10663 | return Py_BuildValue((char *)""); | |
10664 | } | |
c32bde28 | 10665 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10666 | PyObject *resultobj; |
10667 | wxDC *arg1 = (wxDC *) 0 ; | |
10668 | PyObject * obj0 = 0 ; | |
10669 | char *kwnames[] = { | |
10670 | (char *) "self", NULL | |
10671 | }; | |
10672 | ||
10673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10676 | { |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | delete arg1; | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | Py_INCREF(Py_None); resultobj = Py_None; | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
c32bde28 | 10690 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10691 | PyObject *resultobj; |
10692 | wxDC *arg1 = (wxDC *) 0 ; | |
10693 | PyObject * obj0 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self", NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10701 | { |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | (arg1)->BeginDrawing(); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
10708 | Py_INCREF(Py_None); resultobj = Py_None; | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | return NULL; | |
10712 | } | |
10713 | ||
10714 | ||
c32bde28 | 10715 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10716 | PyObject *resultobj; |
10717 | wxDC *arg1 = (wxDC *) 0 ; | |
10718 | PyObject * obj0 = 0 ; | |
10719 | char *kwnames[] = { | |
10720 | (char *) "self", NULL | |
10721 | }; | |
10722 | ||
10723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10726 | { |
10727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10728 | (arg1)->EndDrawing(); | |
10729 | ||
10730 | wxPyEndAllowThreads(__tstate); | |
10731 | if (PyErr_Occurred()) SWIG_fail; | |
10732 | } | |
10733 | Py_INCREF(Py_None); resultobj = Py_None; | |
10734 | return resultobj; | |
10735 | fail: | |
10736 | return NULL; | |
10737 | } | |
10738 | ||
10739 | ||
c32bde28 | 10740 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10741 | PyObject *resultobj; |
10742 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10743 | int arg2 ; |
10744 | int arg3 ; | |
d14a1e28 RD |
10745 | wxColour *arg4 = 0 ; |
10746 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10747 | bool result; | |
10748 | wxColour temp4 ; | |
10749 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10750 | PyObject * obj1 = 0 ; |
10751 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10752 | PyObject * obj3 = 0 ; |
994141e6 | 10753 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10754 | char *kwnames[] = { |
10755 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10756 | }; | |
10757 | ||
03e37cd5 | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10761 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10762 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10763 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10764 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10765 | { |
10766 | arg4 = &temp4; | |
10767 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10768 | } | |
994141e6 | 10769 | if (obj4) { |
c32bde28 | 10770 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10771 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10772 | } |
d14a1e28 RD |
10773 | { |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
4f89f6a3 RD |
10780 | { |
10781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10782 | } | |
d14a1e28 RD |
10783 | return resultobj; |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
c32bde28 | 10789 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10790 | PyObject *resultobj; |
10791 | wxDC *arg1 = (wxDC *) 0 ; | |
10792 | wxPoint *arg2 = 0 ; | |
10793 | wxColour *arg3 = 0 ; | |
10794 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10795 | bool result; | |
10796 | wxPoint temp2 ; | |
10797 | wxColour temp3 ; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | PyObject * obj1 = 0 ; | |
10800 | PyObject * obj2 = 0 ; | |
994141e6 | 10801 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10802 | char *kwnames[] = { |
10803 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10804 | }; | |
10805 | ||
03e37cd5 | 10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10809 | { |
10810 | arg2 = &temp2; | |
10811 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10812 | } | |
10813 | { | |
10814 | arg3 = &temp3; | |
10815 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10816 | } | |
994141e6 | 10817 | if (obj3) { |
c32bde28 | 10818 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10819 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10820 | } |
d14a1e28 RD |
10821 | { |
10822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10823 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10824 | ||
10825 | wxPyEndAllowThreads(__tstate); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | } | |
4f89f6a3 RD |
10828 | { |
10829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10830 | } | |
d14a1e28 RD |
10831 | return resultobj; |
10832 | fail: | |
10833 | return NULL; | |
10834 | } | |
10835 | ||
10836 | ||
c32bde28 | 10837 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10838 | PyObject *resultobj; |
10839 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10840 | int arg2 ; |
10841 | int arg3 ; | |
d14a1e28 RD |
10842 | wxColour result; |
10843 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10844 | PyObject * obj1 = 0 ; |
10845 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10846 | char *kwnames[] = { |
10847 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10848 | }; | |
10849 | ||
03e37cd5 | 10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10853 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10854 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10855 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10856 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10857 | { |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10859 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d14a1e28 RD |
10860 | |
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) SWIG_fail; | |
10863 | } | |
10864 | { | |
10865 | wxColour * resultptr; | |
10866 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10868 | } |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
c32bde28 | 10875 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10876 | PyObject *resultobj; |
10877 | wxDC *arg1 = (wxDC *) 0 ; | |
10878 | wxPoint *arg2 = 0 ; | |
10879 | wxColour result; | |
10880 | wxPoint temp2 ; | |
10881 | PyObject * obj0 = 0 ; | |
10882 | PyObject * obj1 = 0 ; | |
10883 | char *kwnames[] = { | |
10884 | (char *) "self",(char *) "pt", NULL | |
10885 | }; | |
10886 | ||
03e37cd5 | 10887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10890 | { |
10891 | arg2 = &temp2; | |
10892 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10893 | } | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10896 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
10897 | |
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | { | |
10902 | wxColour * resultptr; | |
10903 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10905 | } |
10906 | return resultobj; | |
10907 | fail: | |
10908 | return NULL; | |
10909 | } | |
10910 | ||
10911 | ||
c32bde28 | 10912 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10913 | PyObject *resultobj; |
10914 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10915 | int arg2 ; |
10916 | int arg3 ; | |
10917 | int arg4 ; | |
10918 | int arg5 ; | |
d14a1e28 | 10919 | PyObject * obj0 = 0 ; |
994141e6 RD |
10920 | PyObject * obj1 = 0 ; |
10921 | PyObject * obj2 = 0 ; | |
10922 | PyObject * obj3 = 0 ; | |
10923 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10924 | char *kwnames[] = { |
10925 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10926 | }; | |
10927 | ||
03e37cd5 | 10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10931 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10932 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10933 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10934 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10935 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10936 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10937 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10938 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10939 | { |
10940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10941 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10942 | ||
10943 | wxPyEndAllowThreads(__tstate); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | } | |
10946 | Py_INCREF(Py_None); resultobj = Py_None; | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
c32bde28 | 10953 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10954 | PyObject *resultobj; |
10955 | wxDC *arg1 = (wxDC *) 0 ; | |
10956 | wxPoint *arg2 = 0 ; | |
10957 | wxPoint *arg3 = 0 ; | |
10958 | wxPoint temp2 ; | |
10959 | wxPoint temp3 ; | |
10960 | PyObject * obj0 = 0 ; | |
10961 | PyObject * obj1 = 0 ; | |
10962 | PyObject * obj2 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10965 | }; | |
10966 | ||
03e37cd5 | 10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10970 | { |
10971 | arg2 = &temp2; | |
10972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10973 | } | |
10974 | { | |
10975 | arg3 = &temp3; | |
10976 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10977 | } | |
10978 | { | |
10979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10980 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10981 | ||
10982 | wxPyEndAllowThreads(__tstate); | |
10983 | if (PyErr_Occurred()) SWIG_fail; | |
10984 | } | |
10985 | Py_INCREF(Py_None); resultobj = Py_None; | |
10986 | return resultobj; | |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
c32bde28 | 10992 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10993 | PyObject *resultobj; |
10994 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10995 | int arg2 ; |
10996 | int arg3 ; | |
d14a1e28 | 10997 | PyObject * obj0 = 0 ; |
994141e6 RD |
10998 | PyObject * obj1 = 0 ; |
10999 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11000 | char *kwnames[] = { |
11001 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11002 | }; | |
11003 | ||
03e37cd5 | 11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11007 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11008 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11009 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11010 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11011 | { |
11012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11013 | (arg1)->CrossHair(arg2,arg3); | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | Py_INCREF(Py_None); resultobj = Py_None; | |
11019 | return resultobj; | |
11020 | fail: | |
11021 | return NULL; | |
11022 | } | |
11023 | ||
11024 | ||
c32bde28 | 11025 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11026 | PyObject *resultobj; |
11027 | wxDC *arg1 = (wxDC *) 0 ; | |
11028 | wxPoint *arg2 = 0 ; | |
11029 | wxPoint temp2 ; | |
11030 | PyObject * obj0 = 0 ; | |
11031 | PyObject * obj1 = 0 ; | |
11032 | char *kwnames[] = { | |
11033 | (char *) "self",(char *) "pt", NULL | |
11034 | }; | |
11035 | ||
03e37cd5 | 11036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11039 | { |
11040 | arg2 = &temp2; | |
11041 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11042 | } | |
11043 | { | |
11044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11045 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11046 | ||
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
11050 | Py_INCREF(Py_None); resultobj = Py_None; | |
11051 | return resultobj; | |
11052 | fail: | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
c32bde28 | 11057 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11058 | PyObject *resultobj; |
11059 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11060 | int arg2 ; |
11061 | int arg3 ; | |
11062 | int arg4 ; | |
11063 | int arg5 ; | |
11064 | int arg6 ; | |
11065 | int arg7 ; | |
d14a1e28 | 11066 | PyObject * obj0 = 0 ; |
994141e6 RD |
11067 | PyObject * obj1 = 0 ; |
11068 | PyObject * obj2 = 0 ; | |
11069 | PyObject * obj3 = 0 ; | |
11070 | PyObject * obj4 = 0 ; | |
11071 | PyObject * obj5 = 0 ; | |
11072 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
11073 | char *kwnames[] = { |
11074 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11075 | }; | |
11076 | ||
03e37cd5 | 11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
11078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11080 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11081 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11082 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11083 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11084 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11085 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11086 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11087 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11088 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 11089 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11090 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11091 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11092 | { |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11094 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11095 | ||
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | Py_INCREF(Py_None); resultobj = Py_None; | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
c32bde28 | 11106 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11107 | PyObject *resultobj; |
11108 | wxDC *arg1 = (wxDC *) 0 ; | |
11109 | wxPoint *arg2 = 0 ; | |
11110 | wxPoint *arg3 = 0 ; | |
11111 | wxPoint *arg4 = 0 ; | |
11112 | wxPoint temp2 ; | |
11113 | wxPoint temp3 ; | |
11114 | wxPoint temp4 ; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | PyObject * obj1 = 0 ; | |
11117 | PyObject * obj2 = 0 ; | |
11118 | PyObject * obj3 = 0 ; | |
11119 | char *kwnames[] = { | |
f5b96ee1 | 11120 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d14a1e28 RD |
11121 | }; |
11122 | ||
03e37cd5 | 11123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11126 | { |
11127 | arg2 = &temp2; | |
11128 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | arg3 = &temp3; | |
11132 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11133 | } | |
11134 | { | |
11135 | arg4 = &temp4; | |
11136 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11137 | } | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11141 | ||
11142 | wxPyEndAllowThreads(__tstate); | |
11143 | if (PyErr_Occurred()) SWIG_fail; | |
11144 | } | |
11145 | Py_INCREF(Py_None); resultobj = Py_None; | |
11146 | return resultobj; | |
11147 | fail: | |
11148 | return NULL; | |
11149 | } | |
11150 | ||
11151 | ||
c32bde28 | 11152 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11153 | PyObject *resultobj; |
11154 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11155 | int arg2 ; |
11156 | int arg3 ; | |
11157 | int arg4 ; | |
11158 | int arg5 ; | |
d14a1e28 | 11159 | PyObject * obj0 = 0 ; |
994141e6 RD |
11160 | PyObject * obj1 = 0 ; |
11161 | PyObject * obj2 = 0 ; | |
11162 | PyObject * obj3 = 0 ; | |
11163 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11164 | char *kwnames[] = { |
11165 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11166 | }; | |
11167 | ||
03e37cd5 | 11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11171 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11172 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11173 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11174 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11175 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11176 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11177 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11178 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11179 | { |
11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11181 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11182 | ||
11183 | wxPyEndAllowThreads(__tstate); | |
11184 | if (PyErr_Occurred()) SWIG_fail; | |
11185 | } | |
11186 | Py_INCREF(Py_None); resultobj = Py_None; | |
11187 | return resultobj; | |
11188 | fail: | |
11189 | return NULL; | |
11190 | } | |
11191 | ||
11192 | ||
c32bde28 | 11193 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11194 | PyObject *resultobj; |
11195 | wxDC *arg1 = (wxDC *) 0 ; | |
11196 | wxRect *arg2 = 0 ; | |
11197 | wxRect temp2 ; | |
11198 | PyObject * obj0 = 0 ; | |
11199 | PyObject * obj1 = 0 ; | |
11200 | char *kwnames[] = { | |
11201 | (char *) "self",(char *) "rect", NULL | |
11202 | }; | |
11203 | ||
03e37cd5 | 11204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11207 | { |
11208 | arg2 = &temp2; | |
11209 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11210 | } | |
11211 | { | |
11212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11213 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11214 | ||
11215 | wxPyEndAllowThreads(__tstate); | |
11216 | if (PyErr_Occurred()) SWIG_fail; | |
11217 | } | |
11218 | Py_INCREF(Py_None); resultobj = Py_None; | |
11219 | return resultobj; | |
11220 | fail: | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
c32bde28 | 11225 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11226 | PyObject *resultobj; |
11227 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11228 | int arg2 ; |
11229 | int arg3 ; | |
11230 | int arg4 ; | |
11231 | int arg5 ; | |
d14a1e28 RD |
11232 | double arg6 ; |
11233 | double arg7 ; | |
11234 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11235 | PyObject * obj1 = 0 ; |
11236 | PyObject * obj2 = 0 ; | |
11237 | PyObject * obj3 = 0 ; | |
11238 | PyObject * obj4 = 0 ; | |
11239 | PyObject * obj5 = 0 ; | |
11240 | PyObject * obj6 = 0 ; | |
d14a1e28 | 11241 | char *kwnames[] = { |
f5b96ee1 | 11242 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
11243 | }; |
11244 | ||
03e37cd5 | 11245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
11246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11248 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11249 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11250 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11251 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11252 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11253 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11254 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11255 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11256 | arg6 = (double)SWIG_As_double(obj5); |
15afbcd0 | 11257 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11258 | arg7 = (double)SWIG_As_double(obj6); |
15afbcd0 | 11259 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11260 | { |
11261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11262 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11263 | ||
11264 | wxPyEndAllowThreads(__tstate); | |
11265 | if (PyErr_Occurred()) SWIG_fail; | |
11266 | } | |
11267 | Py_INCREF(Py_None); resultobj = Py_None; | |
11268 | return resultobj; | |
11269 | fail: | |
11270 | return NULL; | |
11271 | } | |
11272 | ||
11273 | ||
c32bde28 | 11274 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11275 | PyObject *resultobj; |
11276 | wxDC *arg1 = (wxDC *) 0 ; | |
11277 | wxPoint *arg2 = 0 ; | |
11278 | wxSize *arg3 = 0 ; | |
11279 | double arg4 ; | |
11280 | double arg5 ; | |
11281 | wxPoint temp2 ; | |
11282 | wxSize temp3 ; | |
11283 | PyObject * obj0 = 0 ; | |
11284 | PyObject * obj1 = 0 ; | |
11285 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11286 | PyObject * obj3 = 0 ; |
11287 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11288 | char *kwnames[] = { |
f5b96ee1 | 11289 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
11290 | }; |
11291 | ||
03e37cd5 | 11292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11295 | { |
11296 | arg2 = &temp2; | |
11297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11298 | } | |
11299 | { | |
11300 | arg3 = &temp3; | |
11301 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11302 | } | |
c32bde28 | 11303 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 11304 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11305 | arg5 = (double)SWIG_As_double(obj4); |
15afbcd0 | 11306 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11307 | { |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11309 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11310 | ||
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
11314 | Py_INCREF(Py_None); resultobj = Py_None; | |
11315 | return resultobj; | |
11316 | fail: | |
11317 | return NULL; | |
11318 | } | |
11319 | ||
11320 | ||
c32bde28 | 11321 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11322 | PyObject *resultobj; |
11323 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11324 | int arg2 ; |
11325 | int arg3 ; | |
d14a1e28 | 11326 | PyObject * obj0 = 0 ; |
994141e6 RD |
11327 | PyObject * obj1 = 0 ; |
11328 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11329 | char *kwnames[] = { |
11330 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11331 | }; | |
11332 | ||
03e37cd5 | 11333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11336 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11337 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11338 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11340 | { |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | (arg1)->DrawPoint(arg2,arg3); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | Py_INCREF(Py_None); resultobj = Py_None; | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
c32bde28 | 11354 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11355 | PyObject *resultobj; |
11356 | wxDC *arg1 = (wxDC *) 0 ; | |
11357 | wxPoint *arg2 = 0 ; | |
11358 | wxPoint temp2 ; | |
11359 | PyObject * obj0 = 0 ; | |
11360 | PyObject * obj1 = 0 ; | |
11361 | char *kwnames[] = { | |
11362 | (char *) "self",(char *) "pt", NULL | |
11363 | }; | |
11364 | ||
03e37cd5 | 11365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11368 | { |
11369 | arg2 = &temp2; | |
11370 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11371 | } | |
11372 | { | |
11373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11374 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11375 | ||
11376 | wxPyEndAllowThreads(__tstate); | |
11377 | if (PyErr_Occurred()) SWIG_fail; | |
11378 | } | |
11379 | Py_INCREF(Py_None); resultobj = Py_None; | |
11380 | return resultobj; | |
11381 | fail: | |
11382 | return NULL; | |
11383 | } | |
11384 | ||
11385 | ||
c32bde28 | 11386 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11387 | PyObject *resultobj; |
11388 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11389 | int arg2 ; |
11390 | int arg3 ; | |
11391 | int arg4 ; | |
11392 | int arg5 ; | |
d14a1e28 | 11393 | PyObject * obj0 = 0 ; |
994141e6 RD |
11394 | PyObject * obj1 = 0 ; |
11395 | PyObject * obj2 = 0 ; | |
11396 | PyObject * obj3 = 0 ; | |
11397 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11398 | char *kwnames[] = { |
11399 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11400 | }; | |
11401 | ||
03e37cd5 | 11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11405 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11406 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11407 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11408 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11409 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11410 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11411 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11412 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11413 | { |
11414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11415 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11416 | ||
11417 | wxPyEndAllowThreads(__tstate); | |
11418 | if (PyErr_Occurred()) SWIG_fail; | |
11419 | } | |
11420 | Py_INCREF(Py_None); resultobj = Py_None; | |
11421 | return resultobj; | |
11422 | fail: | |
11423 | return NULL; | |
11424 | } | |
11425 | ||
11426 | ||
c32bde28 | 11427 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11428 | PyObject *resultobj; |
11429 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11430 | wxRect *arg2 = 0 ; |
11431 | wxRect temp2 ; | |
d14a1e28 RD |
11432 | PyObject * obj0 = 0 ; |
11433 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11434 | char *kwnames[] = { |
03e37cd5 | 11435 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11436 | }; |
11437 | ||
03e37cd5 | 11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11441 | { |
11442 | arg2 = &temp2; | |
03e37cd5 | 11443 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11444 | } |
11445 | { | |
11446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11447 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d14a1e28 RD |
11448 | |
11449 | wxPyEndAllowThreads(__tstate); | |
11450 | if (PyErr_Occurred()) SWIG_fail; | |
11451 | } | |
11452 | Py_INCREF(Py_None); resultobj = Py_None; | |
11453 | return resultobj; | |
11454 | fail: | |
11455 | return NULL; | |
11456 | } | |
11457 | ||
11458 | ||
c32bde28 | 11459 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11460 | PyObject *resultobj; |
11461 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11462 | wxPoint *arg2 = 0 ; |
11463 | wxSize *arg3 = 0 ; | |
11464 | wxPoint temp2 ; | |
11465 | wxSize temp3 ; | |
d14a1e28 RD |
11466 | PyObject * obj0 = 0 ; |
11467 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11468 | PyObject * obj2 = 0 ; |
d14a1e28 | 11469 | char *kwnames[] = { |
03e37cd5 | 11470 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11471 | }; |
11472 | ||
03e37cd5 | 11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11476 | { |
11477 | arg2 = &temp2; | |
03e37cd5 RD |
11478 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11479 | } | |
11480 | { | |
11481 | arg3 = &temp3; | |
11482 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11483 | } |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11486 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11487 | |
11488 | wxPyEndAllowThreads(__tstate); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
11491 | Py_INCREF(Py_None); resultobj = Py_None; | |
11492 | return resultobj; | |
11493 | fail: | |
11494 | return NULL; | |
11495 | } | |
11496 | ||
11497 | ||
c32bde28 | 11498 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11499 | PyObject *resultobj; |
11500 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11501 | int arg2 ; |
11502 | int arg3 ; | |
11503 | int arg4 ; | |
11504 | int arg5 ; | |
d14a1e28 RD |
11505 | double arg6 ; |
11506 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11507 | PyObject * obj1 = 0 ; |
11508 | PyObject * obj2 = 0 ; | |
11509 | PyObject * obj3 = 0 ; | |
11510 | PyObject * obj4 = 0 ; | |
11511 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11512 | char *kwnames[] = { |
11513 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11514 | }; | |
11515 | ||
03e37cd5 | 11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
11517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11519 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11520 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11521 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11522 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11523 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11524 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11525 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11526 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11527 | arg6 = (double)SWIG_As_double(obj5); |
15afbcd0 | 11528 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11529 | { |
11530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11531 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11532 | ||
11533 | wxPyEndAllowThreads(__tstate); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | } | |
11536 | Py_INCREF(Py_None); resultobj = Py_None; | |
11537 | return resultobj; | |
11538 | fail: | |
11539 | return NULL; | |
11540 | } | |
11541 | ||
11542 | ||
c32bde28 | 11543 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11544 | PyObject *resultobj; |
11545 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11546 | wxRect *arg2 = 0 ; |
11547 | double arg3 ; | |
11548 | wxRect temp2 ; | |
d14a1e28 RD |
11549 | PyObject * obj0 = 0 ; |
11550 | PyObject * obj1 = 0 ; | |
11551 | PyObject * obj2 = 0 ; | |
11552 | char *kwnames[] = { | |
03e37cd5 | 11553 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d14a1e28 RD |
11554 | }; |
11555 | ||
03e37cd5 | 11556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11559 | { |
11560 | arg2 = &temp2; | |
03e37cd5 | 11561 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11562 | } |
c32bde28 | 11563 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 11564 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11565 | { |
11566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11567 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
11568 | |
11569 | wxPyEndAllowThreads(__tstate); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
11571 | } | |
11572 | Py_INCREF(Py_None); resultobj = Py_None; | |
11573 | return resultobj; | |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
c32bde28 | 11579 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11580 | PyObject *resultobj; |
11581 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11582 | wxPoint *arg2 = 0 ; |
11583 | wxSize *arg3 = 0 ; | |
11584 | double arg4 ; | |
11585 | wxPoint temp2 ; | |
11586 | wxSize temp3 ; | |
d14a1e28 RD |
11587 | PyObject * obj0 = 0 ; |
11588 | PyObject * obj1 = 0 ; | |
994141e6 | 11589 | PyObject * obj2 = 0 ; |
03e37cd5 | 11590 | PyObject * obj3 = 0 ; |
d14a1e28 | 11591 | char *kwnames[] = { |
03e37cd5 | 11592 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d14a1e28 RD |
11593 | }; |
11594 | ||
03e37cd5 | 11595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11598 | { |
11599 | arg2 = &temp2; | |
03e37cd5 | 11600 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11601 | } |
03e37cd5 RD |
11602 | { |
11603 | arg3 = &temp3; | |
11604 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11605 | } | |
c32bde28 | 11606 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 11607 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11608 | { |
11609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11610 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d14a1e28 RD |
11611 | |
11612 | wxPyEndAllowThreads(__tstate); | |
11613 | if (PyErr_Occurred()) SWIG_fail; | |
11614 | } | |
11615 | Py_INCREF(Py_None); resultobj = Py_None; | |
11616 | return resultobj; | |
11617 | fail: | |
11618 | return NULL; | |
11619 | } | |
11620 | ||
11621 | ||
c32bde28 | 11622 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11623 | PyObject *resultobj; |
11624 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11625 | int arg2 ; |
11626 | int arg3 ; | |
11627 | int arg4 ; | |
d14a1e28 | 11628 | PyObject * obj0 = 0 ; |
994141e6 RD |
11629 | PyObject * obj1 = 0 ; |
11630 | PyObject * obj2 = 0 ; | |
11631 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11632 | char *kwnames[] = { |
11633 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11634 | }; | |
11635 | ||
03e37cd5 | 11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11639 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11640 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11641 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11642 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11643 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11644 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11645 | { |
11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11647 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11648 | ||
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | Py_INCREF(Py_None); resultobj = Py_None; | |
11653 | return resultobj; | |
11654 | fail: | |
11655 | return NULL; | |
11656 | } | |
11657 | ||
11658 | ||
c32bde28 | 11659 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11660 | PyObject *resultobj; |
11661 | wxDC *arg1 = (wxDC *) 0 ; | |
11662 | wxPoint *arg2 = 0 ; | |
e811c8ce | 11663 | int arg3 ; |
d14a1e28 RD |
11664 | wxPoint temp2 ; |
11665 | PyObject * obj0 = 0 ; | |
11666 | PyObject * obj1 = 0 ; | |
994141e6 | 11667 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11668 | char *kwnames[] = { |
11669 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11670 | }; | |
11671 | ||
03e37cd5 | 11672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11675 | { |
11676 | arg2 = &temp2; | |
11677 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11678 | } | |
c32bde28 | 11679 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11680 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11681 | { |
11682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11683 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11684 | ||
11685 | wxPyEndAllowThreads(__tstate); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
11687 | } | |
11688 | Py_INCREF(Py_None); resultobj = Py_None; | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
c32bde28 | 11695 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11696 | PyObject *resultobj; |
11697 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11698 | int arg2 ; |
11699 | int arg3 ; | |
11700 | int arg4 ; | |
11701 | int arg5 ; | |
d14a1e28 | 11702 | PyObject * obj0 = 0 ; |
994141e6 RD |
11703 | PyObject * obj1 = 0 ; |
11704 | PyObject * obj2 = 0 ; | |
11705 | PyObject * obj3 = 0 ; | |
11706 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11707 | char *kwnames[] = { |
11708 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11709 | }; | |
11710 | ||
03e37cd5 | 11711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11714 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11715 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11716 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11717 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11718 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11719 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11720 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 11721 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11722 | { |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | Py_INCREF(Py_None); resultobj = Py_None; | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
c32bde28 | 11736 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11737 | PyObject *resultobj; |
11738 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11739 | wxRect *arg2 = 0 ; |
11740 | wxRect temp2 ; | |
d14a1e28 RD |
11741 | PyObject * obj0 = 0 ; |
11742 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11743 | char *kwnames[] = { |
03e37cd5 | 11744 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11745 | }; |
11746 | ||
03e37cd5 | 11747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11750 | { |
11751 | arg2 = &temp2; | |
03e37cd5 | 11752 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11753 | } |
11754 | { | |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11756 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d14a1e28 RD |
11757 | |
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | Py_INCREF(Py_None); resultobj = Py_None; | |
11762 | return resultobj; | |
11763 | fail: | |
11764 | return NULL; | |
11765 | } | |
11766 | ||
11767 | ||
c32bde28 | 11768 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11769 | PyObject *resultobj; |
11770 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11771 | wxPoint *arg2 = 0 ; |
11772 | wxSize *arg3 = 0 ; | |
11773 | wxPoint temp2 ; | |
11774 | wxSize temp3 ; | |
d14a1e28 RD |
11775 | PyObject * obj0 = 0 ; |
11776 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11777 | PyObject * obj2 = 0 ; |
d14a1e28 | 11778 | char *kwnames[] = { |
03e37cd5 | 11779 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11780 | }; |
11781 | ||
03e37cd5 | 11782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11785 | { |
11786 | arg2 = &temp2; | |
03e37cd5 RD |
11787 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11788 | } | |
11789 | { | |
11790 | arg3 = &temp3; | |
11791 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11792 | } |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11795 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11796 | |
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | Py_INCREF(Py_None); resultobj = Py_None; | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
c32bde28 | 11807 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11808 | PyObject *resultobj; |
11809 | wxDC *arg1 = (wxDC *) 0 ; | |
11810 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11811 | int arg3 ; |
11812 | int arg4 ; | |
d14a1e28 RD |
11813 | PyObject * obj0 = 0 ; |
11814 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11815 | PyObject * obj2 = 0 ; |
11816 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11817 | char *kwnames[] = { |
11818 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11819 | }; | |
11820 | ||
03e37cd5 | 11821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11826 | SWIG_fail; | |
d14a1e28 | 11827 | if (arg2 == NULL) { |
15afbcd0 RD |
11828 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11829 | SWIG_fail; | |
994141e6 | 11830 | } |
c32bde28 | 11831 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11832 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11833 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11834 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11835 | { |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | Py_INCREF(Py_None); resultobj = Py_None; | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
c32bde28 | 11849 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11850 | PyObject *resultobj; |
11851 | wxDC *arg1 = (wxDC *) 0 ; | |
11852 | wxIcon *arg2 = 0 ; | |
11853 | wxPoint *arg3 = 0 ; | |
11854 | wxPoint temp3 ; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | PyObject * obj1 = 0 ; | |
11857 | PyObject * obj2 = 0 ; | |
11858 | char *kwnames[] = { | |
11859 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11860 | }; | |
11861 | ||
03e37cd5 | 11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11867 | SWIG_fail; | |
d14a1e28 | 11868 | if (arg2 == NULL) { |
15afbcd0 RD |
11869 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11870 | SWIG_fail; | |
d14a1e28 RD |
11871 | } |
11872 | { | |
11873 | arg3 = &temp3; | |
11874 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11875 | } | |
11876 | { | |
11877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11878 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
11883 | Py_INCREF(Py_None); resultobj = Py_None; | |
11884 | return resultobj; | |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
c32bde28 | 11890 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11891 | PyObject *resultobj; |
11892 | wxDC *arg1 = (wxDC *) 0 ; | |
11893 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11894 | int arg3 ; |
11895 | int arg4 ; | |
ae8162c8 | 11896 | bool arg5 = (bool) false ; |
d14a1e28 RD |
11897 | PyObject * obj0 = 0 ; |
11898 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11899 | PyObject * obj2 = 0 ; |
11900 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11901 | PyObject * obj4 = 0 ; |
11902 | char *kwnames[] = { | |
11903 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11904 | }; | |
11905 | ||
03e37cd5 | 11906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11911 | SWIG_fail; | |
d14a1e28 | 11912 | if (arg2 == NULL) { |
15afbcd0 RD |
11913 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11914 | SWIG_fail; | |
994141e6 | 11915 | } |
c32bde28 | 11916 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11917 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11918 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 11919 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11920 | if (obj4) { |
c32bde28 | 11921 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 11922 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11923 | } |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
11931 | Py_INCREF(Py_None); resultobj = Py_None; | |
11932 | return resultobj; | |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
c32bde28 | 11938 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11939 | PyObject *resultobj; |
11940 | wxDC *arg1 = (wxDC *) 0 ; | |
11941 | wxBitmap *arg2 = 0 ; | |
11942 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 11943 | bool arg4 = (bool) false ; |
d14a1e28 RD |
11944 | wxPoint temp3 ; |
11945 | PyObject * obj0 = 0 ; | |
11946 | PyObject * obj1 = 0 ; | |
11947 | PyObject * obj2 = 0 ; | |
11948 | PyObject * obj3 = 0 ; | |
11949 | char *kwnames[] = { | |
11950 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11951 | }; | |
11952 | ||
03e37cd5 | 11953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11958 | SWIG_fail; | |
d14a1e28 | 11959 | if (arg2 == NULL) { |
15afbcd0 RD |
11960 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11961 | SWIG_fail; | |
d14a1e28 RD |
11962 | } |
11963 | { | |
11964 | arg3 = &temp3; | |
11965 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11966 | } | |
11967 | if (obj3) { | |
c32bde28 | 11968 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 11969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11970 | } |
11971 | { | |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | Py_INCREF(Py_None); resultobj = Py_None; | |
11979 | return resultobj; | |
11980 | fail: | |
11981 | return NULL; | |
11982 | } | |
11983 | ||
11984 | ||
c32bde28 | 11985 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11986 | PyObject *resultobj; |
11987 | wxDC *arg1 = (wxDC *) 0 ; | |
11988 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11989 | int arg3 ; |
11990 | int arg4 ; | |
ae8162c8 | 11991 | bool temp2 = false ; |
d14a1e28 RD |
11992 | PyObject * obj0 = 0 ; |
11993 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11994 | PyObject * obj2 = 0 ; |
11995 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11996 | char *kwnames[] = { |
11997 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11998 | }; | |
11999 | ||
03e37cd5 | 12000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12003 | { |
12004 | arg2 = wxString_in_helper(obj1); | |
12005 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12006 | temp2 = true; |
d14a1e28 | 12007 | } |
c32bde28 | 12008 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12009 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12010 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12011 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12012 | { |
12013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12014 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12015 | ||
12016 | wxPyEndAllowThreads(__tstate); | |
12017 | if (PyErr_Occurred()) SWIG_fail; | |
12018 | } | |
12019 | Py_INCREF(Py_None); resultobj = Py_None; | |
12020 | { | |
12021 | if (temp2) | |
12022 | delete arg2; | |
12023 | } | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | { | |
12027 | if (temp2) | |
12028 | delete arg2; | |
12029 | } | |
12030 | return NULL; | |
12031 | } | |
12032 | ||
12033 | ||
c32bde28 | 12034 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12035 | PyObject *resultobj; |
12036 | wxDC *arg1 = (wxDC *) 0 ; | |
12037 | wxString *arg2 = 0 ; | |
12038 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12039 | bool temp2 = false ; |
d14a1e28 RD |
12040 | wxPoint temp3 ; |
12041 | PyObject * obj0 = 0 ; | |
12042 | PyObject * obj1 = 0 ; | |
12043 | PyObject * obj2 = 0 ; | |
12044 | char *kwnames[] = { | |
12045 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12046 | }; | |
12047 | ||
03e37cd5 | 12048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12051 | { |
12052 | arg2 = wxString_in_helper(obj1); | |
12053 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12054 | temp2 = true; |
d14a1e28 RD |
12055 | } |
12056 | { | |
12057 | arg3 = &temp3; | |
12058 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12059 | } | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | Py_INCREF(Py_None); resultobj = Py_None; | |
12068 | { | |
12069 | if (temp2) | |
12070 | delete arg2; | |
12071 | } | |
12072 | return resultobj; | |
12073 | fail: | |
12074 | { | |
12075 | if (temp2) | |
12076 | delete arg2; | |
12077 | } | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
c32bde28 | 12082 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12083 | PyObject *resultobj; |
12084 | wxDC *arg1 = (wxDC *) 0 ; | |
12085 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12086 | int arg3 ; |
12087 | int arg4 ; | |
d14a1e28 | 12088 | double arg5 ; |
ae8162c8 | 12089 | bool temp2 = false ; |
d14a1e28 RD |
12090 | PyObject * obj0 = 0 ; |
12091 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12092 | PyObject * obj2 = 0 ; |
12093 | PyObject * obj3 = 0 ; | |
12094 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12095 | char *kwnames[] = { |
12096 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12097 | }; | |
12098 | ||
03e37cd5 | 12099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12102 | { |
12103 | arg2 = wxString_in_helper(obj1); | |
12104 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12105 | temp2 = true; |
d14a1e28 | 12106 | } |
c32bde28 | 12107 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12108 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12109 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12110 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12111 | arg5 = (double)SWIG_As_double(obj4); |
15afbcd0 | 12112 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12113 | { |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
12120 | Py_INCREF(Py_None); resultobj = Py_None; | |
12121 | { | |
12122 | if (temp2) | |
12123 | delete arg2; | |
12124 | } | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | { | |
12128 | if (temp2) | |
12129 | delete arg2; | |
12130 | } | |
12131 | return NULL; | |
12132 | } | |
12133 | ||
12134 | ||
c32bde28 | 12135 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12136 | PyObject *resultobj; |
12137 | wxDC *arg1 = (wxDC *) 0 ; | |
12138 | wxString *arg2 = 0 ; | |
12139 | wxPoint *arg3 = 0 ; | |
12140 | double arg4 ; | |
ae8162c8 | 12141 | bool temp2 = false ; |
d14a1e28 RD |
12142 | wxPoint temp3 ; |
12143 | PyObject * obj0 = 0 ; | |
12144 | PyObject * obj1 = 0 ; | |
12145 | PyObject * obj2 = 0 ; | |
994141e6 | 12146 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
12147 | char *kwnames[] = { |
12148 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12149 | }; | |
12150 | ||
03e37cd5 | 12151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12154 | { |
12155 | arg2 = wxString_in_helper(obj1); | |
12156 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12157 | temp2 = true; |
d14a1e28 RD |
12158 | } |
12159 | { | |
12160 | arg3 = &temp3; | |
12161 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12162 | } | |
c32bde28 | 12163 | arg4 = (double)SWIG_As_double(obj3); |
15afbcd0 | 12164 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12165 | { |
12166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12167 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12168 | ||
12169 | wxPyEndAllowThreads(__tstate); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
12171 | } | |
12172 | Py_INCREF(Py_None); resultobj = Py_None; | |
12173 | { | |
12174 | if (temp2) | |
12175 | delete arg2; | |
12176 | } | |
12177 | return resultobj; | |
12178 | fail: | |
12179 | { | |
12180 | if (temp2) | |
12181 | delete arg2; | |
12182 | } | |
12183 | return NULL; | |
12184 | } | |
12185 | ||
12186 | ||
c32bde28 | 12187 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12188 | PyObject *resultobj; |
12189 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12190 | int arg2 ; |
12191 | int arg3 ; | |
12192 | int arg4 ; | |
12193 | int arg5 ; | |
d14a1e28 | 12194 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
12195 | int arg7 ; |
12196 | int arg8 ; | |
d14a1e28 | 12197 | int arg9 = (int) wxCOPY ; |
ae8162c8 | 12198 | bool arg10 = (bool) false ; |
e811c8ce RD |
12199 | int arg11 = (int) -1 ; |
12200 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
12201 | bool result; |
12202 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12203 | PyObject * obj1 = 0 ; |
12204 | PyObject * obj2 = 0 ; | |
12205 | PyObject * obj3 = 0 ; | |
12206 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12207 | PyObject * obj5 = 0 ; |
994141e6 RD |
12208 | PyObject * obj6 = 0 ; |
12209 | PyObject * obj7 = 0 ; | |
12210 | PyObject * obj8 = 0 ; | |
d14a1e28 | 12211 | PyObject * obj9 = 0 ; |
994141e6 RD |
12212 | PyObject * obj10 = 0 ; |
12213 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
12214 | char *kwnames[] = { |
12215 | (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 | |
12216 | }; | |
12217 | ||
03e37cd5 | 12218 | 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 |
12219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12221 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12222 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12223 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12224 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12225 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12226 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12227 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 RD |
12228 | if (PyErr_Occurred()) SWIG_fail; |
12229 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12231 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 12232 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12233 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 12234 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12235 | if (obj8) { |
c32bde28 | 12236 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 12237 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12238 | } |
d14a1e28 | 12239 | if (obj9) { |
c32bde28 | 12240 | arg10 = (bool)SWIG_As_bool(obj9); |
15afbcd0 | 12241 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12242 | } |
12243 | if (obj10) { | |
c32bde28 | 12244 | arg11 = (int)SWIG_As_int(obj10); |
15afbcd0 | 12245 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12246 | } |
12247 | if (obj11) { | |
c32bde28 | 12248 | arg12 = (int)SWIG_As_int(obj11); |
15afbcd0 | 12249 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12250 | } |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
4f89f6a3 RD |
12258 | { |
12259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12260 | } | |
d14a1e28 RD |
12261 | return resultobj; |
12262 | fail: | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
c32bde28 | 12267 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12268 | PyObject *resultobj; |
12269 | wxDC *arg1 = (wxDC *) 0 ; | |
12270 | wxPoint *arg2 = 0 ; | |
12271 | wxSize *arg3 = 0 ; | |
12272 | wxDC *arg4 = (wxDC *) 0 ; | |
12273 | wxPoint *arg5 = 0 ; | |
12274 | int arg6 = (int) wxCOPY ; | |
ae8162c8 | 12275 | bool arg7 = (bool) false ; |
d14a1e28 RD |
12276 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12277 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12278 | bool result; | |
12279 | wxPoint temp2 ; | |
12280 | wxSize temp3 ; | |
12281 | wxPoint temp5 ; | |
12282 | wxPoint temp8 ; | |
12283 | PyObject * obj0 = 0 ; | |
12284 | PyObject * obj1 = 0 ; | |
12285 | PyObject * obj2 = 0 ; | |
12286 | PyObject * obj3 = 0 ; | |
12287 | PyObject * obj4 = 0 ; | |
994141e6 | 12288 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12289 | PyObject * obj6 = 0 ; |
12290 | PyObject * obj7 = 0 ; | |
12291 | char *kwnames[] = { | |
12292 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12293 | }; | |
12294 | ||
03e37cd5 | 12295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12298 | { |
12299 | arg2 = &temp2; | |
12300 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12301 | } | |
12302 | { | |
12303 | arg3 = &temp3; | |
12304 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12305 | } | |
15afbcd0 RD |
12306 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
12307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12308 | { |
12309 | arg5 = &temp5; | |
12310 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12311 | } | |
994141e6 | 12312 | if (obj5) { |
c32bde28 | 12313 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 12314 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12315 | } |
d14a1e28 | 12316 | if (obj6) { |
c32bde28 | 12317 | arg7 = (bool)SWIG_As_bool(obj6); |
15afbcd0 | 12318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12319 | } |
12320 | if (obj7) { | |
12321 | { | |
12322 | arg8 = &temp8; | |
12323 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12324 | } | |
12325 | } | |
12326 | { | |
12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12328 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
12329 | ||
12330 | wxPyEndAllowThreads(__tstate); | |
12331 | if (PyErr_Occurred()) SWIG_fail; | |
12332 | } | |
4f89f6a3 RD |
12333 | { |
12334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12335 | } | |
d14a1e28 RD |
12336 | return resultobj; |
12337 | fail: | |
12338 | return NULL; | |
12339 | } | |
12340 | ||
12341 | ||
c32bde28 | 12342 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12343 | PyObject *resultobj; |
12344 | wxDC *arg1 = (wxDC *) 0 ; | |
12345 | int arg2 ; | |
03e37cd5 RD |
12346 | int arg3 ; |
12347 | int arg4 ; | |
12348 | int arg5 ; | |
d14a1e28 RD |
12349 | PyObject * obj0 = 0 ; |
12350 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12351 | PyObject * obj2 = 0 ; |
12352 | PyObject * obj3 = 0 ; | |
03e37cd5 | 12353 | PyObject * obj4 = 0 ; |
d14a1e28 | 12354 | char *kwnames[] = { |
03e37cd5 | 12355 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
12356 | }; |
12357 | ||
03e37cd5 | 12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12361 | arg2 = (int)SWIG_As_int(obj1); |
03e37cd5 | 12362 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12363 | arg3 = (int)SWIG_As_int(obj2); |
03e37cd5 | 12364 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12365 | arg4 = (int)SWIG_As_int(obj3); |
03e37cd5 | 12366 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12367 | arg5 = (int)SWIG_As_int(obj4); |
03e37cd5 | 12368 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12369 | { |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 12371 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
12372 | |
12373 | wxPyEndAllowThreads(__tstate); | |
12374 | if (PyErr_Occurred()) SWIG_fail; | |
12375 | } | |
12376 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
12377 | return resultobj; |
12378 | fail: | |
d14a1e28 RD |
12379 | return NULL; |
12380 | } | |
12381 | ||
12382 | ||
c32bde28 | 12383 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12384 | PyObject *resultobj; |
12385 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
12386 | wxPoint *arg2 = 0 ; |
12387 | wxSize *arg3 = 0 ; | |
12388 | wxPoint temp2 ; | |
12389 | wxSize temp3 ; | |
d14a1e28 RD |
12390 | PyObject * obj0 = 0 ; |
12391 | PyObject * obj1 = 0 ; | |
994141e6 | 12392 | PyObject * obj2 = 0 ; |
d14a1e28 | 12393 | char *kwnames[] = { |
03e37cd5 | 12394 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
12395 | }; |
12396 | ||
03e37cd5 | 12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12400 | { |
03e37cd5 RD |
12401 | arg2 = &temp2; |
12402 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 12403 | } |
03e37cd5 RD |
12404 | { |
12405 | arg3 = &temp3; | |
12406 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 12407 | } |
d14a1e28 RD |
12408 | { |
12409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 12410 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
12411 | |
12412 | wxPyEndAllowThreads(__tstate); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
12415 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
12416 | return resultobj; |
12417 | fail: | |
d14a1e28 RD |
12418 | return NULL; |
12419 | } | |
12420 | ||
12421 | ||
c32bde28 | 12422 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12423 | PyObject *resultobj; |
12424 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 | 12425 | wxRegion *arg2 = 0 ; |
d14a1e28 RD |
12426 | PyObject * obj0 = 0 ; |
12427 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12428 | char *kwnames[] = { |
03e37cd5 | 12429 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
12430 | }; |
12431 | ||
03e37cd5 RD |
12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
12433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12435 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12436 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12437 | SWIG_fail; | |
12438 | if (arg2 == NULL) { | |
12439 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12440 | SWIG_fail; | |
12441 | } | |
12442 | { | |
12443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12444 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12445 | ||
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
12449 | Py_INCREF(Py_None); resultobj = Py_None; | |
12450 | return resultobj; | |
12451 | fail: | |
12452 | return NULL; | |
12453 | } | |
12454 | ||
12455 | ||
c32bde28 | 12456 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12457 | PyObject *resultobj; |
12458 | wxDC *arg1 = (wxDC *) 0 ; | |
12459 | wxRect *arg2 = 0 ; | |
12460 | wxRect temp2 ; | |
12461 | PyObject * obj0 = 0 ; | |
12462 | PyObject * obj1 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self",(char *) "rect", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12470 | { | |
12471 | arg2 = &temp2; | |
12472 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12473 | } | |
12474 | { | |
12475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12476 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12477 | ||
12478 | wxPyEndAllowThreads(__tstate); | |
12479 | if (PyErr_Occurred()) SWIG_fail; | |
12480 | } | |
12481 | Py_INCREF(Py_None); resultobj = Py_None; | |
12482 | return resultobj; | |
12483 | fail: | |
12484 | return NULL; | |
12485 | } | |
12486 | ||
12487 | ||
c32bde28 | 12488 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12489 | PyObject *resultobj; |
12490 | wxDC *arg1 = (wxDC *) 0 ; | |
12491 | int arg2 ; | |
12492 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12493 | int arg4 = (int) 0 ; | |
12494 | int arg5 = (int) 0 ; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | PyObject * obj1 = 0 ; | |
12497 | PyObject * obj2 = 0 ; | |
12498 | PyObject * obj3 = 0 ; | |
12499 | char *kwnames[] = { | |
12500 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12501 | }; | |
12502 | ||
12503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12506 | { | |
12507 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12508 | if (arg3 == NULL) SWIG_fail; | |
12509 | } | |
12510 | if (obj2) { | |
c32bde28 | 12511 | arg4 = (int)SWIG_As_int(obj2); |
03e37cd5 RD |
12512 | if (PyErr_Occurred()) SWIG_fail; |
12513 | } | |
12514 | if (obj3) { | |
c32bde28 | 12515 | arg5 = (int)SWIG_As_int(obj3); |
03e37cd5 RD |
12516 | if (PyErr_Occurred()) SWIG_fail; |
12517 | } | |
12518 | { | |
12519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12520 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12521 | ||
12522 | wxPyEndAllowThreads(__tstate); | |
12523 | if (PyErr_Occurred()) SWIG_fail; | |
12524 | } | |
12525 | Py_INCREF(Py_None); resultobj = Py_None; | |
12526 | { | |
12527 | if (arg3) delete [] arg3; | |
12528 | } | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | { | |
12532 | if (arg3) delete [] arg3; | |
12533 | } | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
c32bde28 | 12538 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12539 | PyObject *resultobj; |
12540 | wxDC *arg1 = (wxDC *) 0 ; | |
12541 | int arg2 ; | |
12542 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12543 | int arg4 = (int) 0 ; | |
12544 | int arg5 = (int) 0 ; | |
12545 | int arg6 = (int) wxODDEVEN_RULE ; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | PyObject * obj1 = 0 ; | |
12548 | PyObject * obj2 = 0 ; | |
12549 | PyObject * obj3 = 0 ; | |
12550 | PyObject * obj4 = 0 ; | |
12551 | char *kwnames[] = { | |
12552 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12553 | }; | |
12554 | ||
12555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12558 | { | |
12559 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12560 | if (arg3 == NULL) SWIG_fail; | |
12561 | } | |
12562 | if (obj2) { | |
c32bde28 | 12563 | arg4 = (int)SWIG_As_int(obj2); |
03e37cd5 RD |
12564 | if (PyErr_Occurred()) SWIG_fail; |
12565 | } | |
12566 | if (obj3) { | |
c32bde28 | 12567 | arg5 = (int)SWIG_As_int(obj3); |
03e37cd5 RD |
12568 | if (PyErr_Occurred()) SWIG_fail; |
12569 | } | |
12570 | if (obj4) { | |
c32bde28 | 12571 | arg6 = (int)SWIG_As_int(obj4); |
03e37cd5 RD |
12572 | if (PyErr_Occurred()) SWIG_fail; |
12573 | } | |
12574 | { | |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12577 | ||
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
12581 | Py_INCREF(Py_None); resultobj = Py_None; | |
12582 | { | |
12583 | if (arg3) delete [] arg3; | |
12584 | } | |
12585 | return resultobj; | |
12586 | fail: | |
12587 | { | |
12588 | if (arg3) delete [] arg3; | |
12589 | } | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
c32bde28 | 12594 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
12595 | PyObject *resultobj; |
12596 | wxDC *arg1 = (wxDC *) 0 ; | |
12597 | wxString *arg2 = 0 ; | |
12598 | wxRect *arg3 = 0 ; | |
12599 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12600 | int arg5 = (int) -1 ; | |
ae8162c8 | 12601 | bool temp2 = false ; |
03e37cd5 RD |
12602 | wxRect temp3 ; |
12603 | PyObject * obj0 = 0 ; | |
12604 | PyObject * obj1 = 0 ; | |
12605 | PyObject * obj2 = 0 ; | |
12606 | PyObject * obj3 = 0 ; | |
12607 | PyObject * obj4 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
12613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12615 | { |
12616 | arg2 = wxString_in_helper(obj1); | |
12617 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12618 | temp2 = true; |
d14a1e28 RD |
12619 | } |
12620 | { | |
12621 | arg3 = &temp3; | |
12622 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12623 | } | |
994141e6 | 12624 | if (obj3) { |
c32bde28 | 12625 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12626 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12627 | } |
12628 | if (obj4) { | |
c32bde28 | 12629 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 12630 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12631 | } |
12632 | { | |
12633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12634 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
12635 | |
12636 | wxPyEndAllowThreads(__tstate); | |
12637 | if (PyErr_Occurred()) SWIG_fail; | |
12638 | } | |
12639 | Py_INCREF(Py_None); resultobj = Py_None; | |
12640 | { | |
12641 | if (temp2) | |
12642 | delete arg2; | |
12643 | } | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | { | |
12647 | if (temp2) | |
12648 | delete arg2; | |
12649 | } | |
12650 | return NULL; | |
12651 | } | |
12652 | ||
12653 | ||
c32bde28 | 12654 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12655 | PyObject *resultobj; |
12656 | wxDC *arg1 = (wxDC *) 0 ; | |
12657 | wxString *arg2 = 0 ; | |
12658 | wxBitmap *arg3 = 0 ; | |
12659 | wxRect *arg4 = 0 ; | |
12660 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12661 | int arg6 = (int) -1 ; | |
12662 | wxRect result; | |
ae8162c8 | 12663 | bool temp2 = false ; |
d14a1e28 RD |
12664 | wxRect temp4 ; |
12665 | PyObject * obj0 = 0 ; | |
12666 | PyObject * obj1 = 0 ; | |
12667 | PyObject * obj2 = 0 ; | |
12668 | PyObject * obj3 = 0 ; | |
994141e6 RD |
12669 | PyObject * obj4 = 0 ; |
12670 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12671 | char *kwnames[] = { |
12672 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12673 | }; | |
12674 | ||
994141e6 | 12675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
12676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12678 | { |
12679 | arg2 = wxString_in_helper(obj1); | |
12680 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12681 | temp2 = true; |
d14a1e28 | 12682 | } |
15afbcd0 RD |
12683 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
12684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12685 | SWIG_fail; | |
d14a1e28 | 12686 | if (arg3 == NULL) { |
15afbcd0 RD |
12687 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12688 | SWIG_fail; | |
d14a1e28 RD |
12689 | } |
12690 | { | |
12691 | arg4 = &temp4; | |
12692 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12693 | } | |
994141e6 | 12694 | if (obj4) { |
c32bde28 | 12695 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 12696 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12697 | } |
12698 | if (obj5) { | |
c32bde28 | 12699 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 12700 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12701 | } |
d14a1e28 RD |
12702 | { |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12705 | ||
12706 | wxPyEndAllowThreads(__tstate); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | } | |
12709 | { | |
12710 | wxRect * resultptr; | |
12711 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12713 | } |
12714 | { | |
12715 | if (temp2) | |
12716 | delete arg2; | |
12717 | } | |
12718 | return resultobj; | |
12719 | fail: | |
12720 | { | |
12721 | if (temp2) | |
12722 | delete arg2; | |
12723 | } | |
12724 | return NULL; | |
12725 | } | |
12726 | ||
12727 | ||
c32bde28 | 12728 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12729 | PyObject *resultobj; |
12730 | wxDC *arg1 = (wxDC *) 0 ; | |
12731 | int arg2 ; | |
12732 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | PyObject * obj1 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self",(char *) "points", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12742 | { |
12743 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12744 | if (arg3 == NULL) SWIG_fail; | |
12745 | } | |
12746 | { | |
12747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12748 | (arg1)->DrawSpline(arg2,arg3); | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | Py_INCREF(Py_None); resultobj = Py_None; | |
12754 | { | |
12755 | if (arg3) delete [] arg3; | |
12756 | } | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | { | |
12760 | if (arg3) delete [] arg3; | |
12761 | } | |
12762 | return NULL; | |
12763 | } | |
12764 | ||
12765 | ||
c32bde28 | 12766 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12767 | PyObject *resultobj; |
12768 | wxDC *arg1 = (wxDC *) 0 ; | |
12769 | PyObject * obj0 = 0 ; | |
12770 | char *kwnames[] = { | |
12771 | (char *) "self", NULL | |
12772 | }; | |
12773 | ||
12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12777 | { |
12778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12779 | (arg1)->Clear(); | |
12780 | ||
12781 | wxPyEndAllowThreads(__tstate); | |
12782 | if (PyErr_Occurred()) SWIG_fail; | |
12783 | } | |
12784 | Py_INCREF(Py_None); resultobj = Py_None; | |
12785 | return resultobj; | |
12786 | fail: | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
c32bde28 | 12791 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12792 | PyObject *resultobj; |
12793 | wxDC *arg1 = (wxDC *) 0 ; | |
12794 | wxString *arg2 = 0 ; | |
12795 | bool result; | |
ae8162c8 | 12796 | bool temp2 = false ; |
d14a1e28 RD |
12797 | PyObject * obj0 = 0 ; |
12798 | PyObject * obj1 = 0 ; | |
12799 | char *kwnames[] = { | |
12800 | (char *) "self",(char *) "message", NULL | |
12801 | }; | |
12802 | ||
12803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12806 | { |
12807 | arg2 = wxString_in_helper(obj1); | |
12808 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12809 | temp2 = true; |
d14a1e28 RD |
12810 | } |
12811 | { | |
12812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12813 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12814 | ||
12815 | wxPyEndAllowThreads(__tstate); | |
12816 | if (PyErr_Occurred()) SWIG_fail; | |
12817 | } | |
4f89f6a3 RD |
12818 | { |
12819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12820 | } | |
d14a1e28 RD |
12821 | { |
12822 | if (temp2) | |
12823 | delete arg2; | |
12824 | } | |
12825 | return resultobj; | |
12826 | fail: | |
12827 | { | |
12828 | if (temp2) | |
12829 | delete arg2; | |
12830 | } | |
12831 | return NULL; | |
12832 | } | |
12833 | ||
12834 | ||
c32bde28 | 12835 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12836 | PyObject *resultobj; |
12837 | wxDC *arg1 = (wxDC *) 0 ; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | char *kwnames[] = { | |
12840 | (char *) "self", NULL | |
12841 | }; | |
12842 | ||
12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12846 | { |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | (arg1)->EndDoc(); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
12853 | Py_INCREF(Py_None); resultobj = Py_None; | |
12854 | return resultobj; | |
12855 | fail: | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
c32bde28 | 12860 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12861 | PyObject *resultobj; |
12862 | wxDC *arg1 = (wxDC *) 0 ; | |
12863 | PyObject * obj0 = 0 ; | |
12864 | char *kwnames[] = { | |
12865 | (char *) "self", NULL | |
12866 | }; | |
12867 | ||
12868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12871 | { |
12872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12873 | (arg1)->StartPage(); | |
12874 | ||
12875 | wxPyEndAllowThreads(__tstate); | |
12876 | if (PyErr_Occurred()) SWIG_fail; | |
12877 | } | |
12878 | Py_INCREF(Py_None); resultobj = Py_None; | |
12879 | return resultobj; | |
12880 | fail: | |
12881 | return NULL; | |
12882 | } | |
12883 | ||
12884 | ||
c32bde28 | 12885 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12886 | PyObject *resultobj; |
12887 | wxDC *arg1 = (wxDC *) 0 ; | |
12888 | PyObject * obj0 = 0 ; | |
12889 | char *kwnames[] = { | |
12890 | (char *) "self", NULL | |
12891 | }; | |
12892 | ||
12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12896 | { |
12897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12898 | (arg1)->EndPage(); | |
12899 | ||
12900 | wxPyEndAllowThreads(__tstate); | |
12901 | if (PyErr_Occurred()) SWIG_fail; | |
12902 | } | |
12903 | Py_INCREF(Py_None); resultobj = Py_None; | |
12904 | return resultobj; | |
12905 | fail: | |
12906 | return NULL; | |
12907 | } | |
12908 | ||
12909 | ||
c32bde28 | 12910 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12911 | PyObject *resultobj; |
12912 | wxDC *arg1 = (wxDC *) 0 ; | |
12913 | wxFont *arg2 = 0 ; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | PyObject * obj1 = 0 ; | |
12916 | char *kwnames[] = { | |
12917 | (char *) "self",(char *) "font", NULL | |
12918 | }; | |
12919 | ||
12920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12925 | SWIG_fail; | |
d14a1e28 | 12926 | if (arg2 == NULL) { |
15afbcd0 RD |
12927 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12928 | SWIG_fail; | |
d14a1e28 RD |
12929 | } |
12930 | { | |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12932 | (arg1)->SetFont((wxFont const &)*arg2); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
12937 | Py_INCREF(Py_None); resultobj = Py_None; | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
c32bde28 | 12944 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12945 | PyObject *resultobj; |
12946 | wxDC *arg1 = (wxDC *) 0 ; | |
12947 | wxPen *arg2 = 0 ; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | PyObject * obj1 = 0 ; | |
12950 | char *kwnames[] = { | |
12951 | (char *) "self",(char *) "pen", NULL | |
12952 | }; | |
12953 | ||
12954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12959 | SWIG_fail; | |
d14a1e28 | 12960 | if (arg2 == NULL) { |
15afbcd0 RD |
12961 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12962 | SWIG_fail; | |
d14a1e28 RD |
12963 | } |
12964 | { | |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | (arg1)->SetPen((wxPen const &)*arg2); | |
12967 | ||
12968 | wxPyEndAllowThreads(__tstate); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
12971 | Py_INCREF(Py_None); resultobj = Py_None; | |
12972 | return resultobj; | |
12973 | fail: | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
c32bde28 | 12978 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12979 | PyObject *resultobj; |
12980 | wxDC *arg1 = (wxDC *) 0 ; | |
12981 | wxBrush *arg2 = 0 ; | |
12982 | PyObject * obj0 = 0 ; | |
12983 | PyObject * obj1 = 0 ; | |
12984 | char *kwnames[] = { | |
12985 | (char *) "self",(char *) "brush", NULL | |
12986 | }; | |
12987 | ||
12988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12993 | SWIG_fail; | |
d14a1e28 | 12994 | if (arg2 == NULL) { |
15afbcd0 RD |
12995 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12996 | SWIG_fail; | |
d14a1e28 RD |
12997 | } |
12998 | { | |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13001 | ||
13002 | wxPyEndAllowThreads(__tstate); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | } | |
13005 | Py_INCREF(Py_None); resultobj = Py_None; | |
13006 | return resultobj; | |
13007 | fail: | |
13008 | return NULL; | |
13009 | } | |
13010 | ||
13011 | ||
c32bde28 | 13012 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13013 | PyObject *resultobj; |
13014 | wxDC *arg1 = (wxDC *) 0 ; | |
13015 | wxBrush *arg2 = 0 ; | |
13016 | PyObject * obj0 = 0 ; | |
13017 | PyObject * obj1 = 0 ; | |
13018 | char *kwnames[] = { | |
13019 | (char *) "self",(char *) "brush", NULL | |
13020 | }; | |
13021 | ||
13022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13027 | SWIG_fail; | |
d14a1e28 | 13028 | if (arg2 == NULL) { |
15afbcd0 RD |
13029 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13030 | SWIG_fail; | |
d14a1e28 RD |
13031 | } |
13032 | { | |
13033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13034 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13035 | ||
13036 | wxPyEndAllowThreads(__tstate); | |
13037 | if (PyErr_Occurred()) SWIG_fail; | |
13038 | } | |
13039 | Py_INCREF(Py_None); resultobj = Py_None; | |
13040 | return resultobj; | |
13041 | fail: | |
13042 | return NULL; | |
13043 | } | |
13044 | ||
13045 | ||
c32bde28 | 13046 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13047 | PyObject *resultobj; |
13048 | wxDC *arg1 = (wxDC *) 0 ; | |
13049 | int arg2 ; | |
13050 | PyObject * obj0 = 0 ; | |
994141e6 | 13051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13052 | char *kwnames[] = { |
13053 | (char *) "self",(char *) "mode", NULL | |
13054 | }; | |
13055 | ||
994141e6 | 13056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13059 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13060 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13061 | { |
13062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13063 | (arg1)->SetBackgroundMode(arg2); | |
13064 | ||
13065 | wxPyEndAllowThreads(__tstate); | |
13066 | if (PyErr_Occurred()) SWIG_fail; | |
13067 | } | |
13068 | Py_INCREF(Py_None); resultobj = Py_None; | |
13069 | return resultobj; | |
13070 | fail: | |
13071 | return NULL; | |
13072 | } | |
13073 | ||
13074 | ||
c32bde28 | 13075 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13076 | PyObject *resultobj; |
13077 | wxDC *arg1 = (wxDC *) 0 ; | |
13078 | wxPalette *arg2 = 0 ; | |
13079 | PyObject * obj0 = 0 ; | |
13080 | PyObject * obj1 = 0 ; | |
13081 | char *kwnames[] = { | |
13082 | (char *) "self",(char *) "palette", NULL | |
13083 | }; | |
13084 | ||
13085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13090 | SWIG_fail; | |
d14a1e28 | 13091 | if (arg2 == NULL) { |
15afbcd0 RD |
13092 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13093 | SWIG_fail; | |
d14a1e28 RD |
13094 | } |
13095 | { | |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
13102 | Py_INCREF(Py_None); resultobj = Py_None; | |
13103 | return resultobj; | |
13104 | fail: | |
13105 | return NULL; | |
13106 | } | |
13107 | ||
13108 | ||
c32bde28 | 13109 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13110 | PyObject *resultobj; |
13111 | wxDC *arg1 = (wxDC *) 0 ; | |
13112 | PyObject * obj0 = 0 ; | |
13113 | char *kwnames[] = { | |
13114 | (char *) "self", NULL | |
13115 | }; | |
13116 | ||
13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13120 | { |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | (arg1)->DestroyClippingRegion(); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | Py_INCREF(Py_None); resultobj = Py_None; | |
13128 | return resultobj; | |
13129 | fail: | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
c32bde28 | 13134 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13135 | PyObject *resultobj; |
13136 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13137 | int *arg2 = (int *) 0 ; |
13138 | int *arg3 = (int *) 0 ; | |
13139 | int *arg4 = (int *) 0 ; | |
13140 | int *arg5 = (int *) 0 ; | |
13141 | int temp2 ; | |
c32bde28 | 13142 | int res2 = 0 ; |
e811c8ce | 13143 | int temp3 ; |
c32bde28 | 13144 | int res3 = 0 ; |
e811c8ce | 13145 | int temp4 ; |
c32bde28 | 13146 | int res4 = 0 ; |
e811c8ce | 13147 | int temp5 ; |
c32bde28 | 13148 | int res5 = 0 ; |
d14a1e28 RD |
13149 | PyObject * obj0 = 0 ; |
13150 | char *kwnames[] = { | |
13151 | (char *) "self", NULL | |
13152 | }; | |
13153 | ||
c32bde28 RD |
13154 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13155 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13156 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13157 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 13158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13161 | { |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13164 | ||
13165 | wxPyEndAllowThreads(__tstate); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | } | |
13168 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13169 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13170 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13171 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13172 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13173 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13174 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13175 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13176 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13177 | return resultobj; |
13178 | fail: | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
c32bde28 | 13183 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13184 | PyObject *resultobj; |
13185 | wxDC *arg1 = (wxDC *) 0 ; | |
13186 | wxRect result; | |
13187 | PyObject * obj0 = 0 ; | |
13188 | char *kwnames[] = { | |
13189 | (char *) "self", NULL | |
13190 | }; | |
13191 | ||
13192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13195 | { |
13196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13197 | result = wxDC_GetClippingRect(arg1); | |
13198 | ||
13199 | wxPyEndAllowThreads(__tstate); | |
13200 | if (PyErr_Occurred()) SWIG_fail; | |
13201 | } | |
13202 | { | |
13203 | wxRect * resultptr; | |
13204 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 13205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
13206 | } |
13207 | return resultobj; | |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
c32bde28 | 13213 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13214 | PyObject *resultobj; |
13215 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 13216 | int result; |
d14a1e28 RD |
13217 | PyObject * obj0 = 0 ; |
13218 | char *kwnames[] = { | |
13219 | (char *) "self", NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13225 | { |
13226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13227 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
13228 | |
13229 | wxPyEndAllowThreads(__tstate); | |
13230 | if (PyErr_Occurred()) SWIG_fail; | |
13231 | } | |
c32bde28 | 13232 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13233 | return resultobj; |
13234 | fail: | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
c32bde28 | 13239 | static PyObject *_wrap_DC_GetCharWidth(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_GetCharWidth",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)->GetCharWidth(); |
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_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13266 | PyObject *resultobj; |
13267 | wxDC *arg1 = (wxDC *) 0 ; | |
13268 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13269 | int *arg3 = (int *) 0 ; |
13270 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 13271 | bool temp2 = false ; |
e811c8ce | 13272 | int temp3 ; |
c32bde28 | 13273 | int res3 = 0 ; |
e811c8ce | 13274 | int temp4 ; |
c32bde28 | 13275 | int res4 = 0 ; |
d14a1e28 RD |
13276 | PyObject * obj0 = 0 ; |
13277 | PyObject * obj1 = 0 ; | |
13278 | char *kwnames[] = { | |
13279 | (char *) "self",(char *) "string", NULL | |
13280 | }; | |
13281 | ||
c32bde28 RD |
13282 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13283 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 13284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13287 | { |
13288 | arg2 = wxString_in_helper(obj1); | |
13289 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13290 | temp2 = true; |
d14a1e28 RD |
13291 | } |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
13299 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13300 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13301 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13302 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13303 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13304 | { |
13305 | if (temp2) | |
13306 | delete arg2; | |
13307 | } | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | { | |
13311 | if (temp2) | |
13312 | delete arg2; | |
13313 | } | |
13314 | return NULL; | |
13315 | } | |
13316 | ||
13317 | ||
c32bde28 | 13318 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13319 | PyObject *resultobj; |
13320 | wxDC *arg1 = (wxDC *) 0 ; | |
13321 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13322 | int *arg3 = (int *) 0 ; |
13323 | int *arg4 = (int *) 0 ; | |
13324 | int *arg5 = (int *) 0 ; | |
13325 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 13326 | wxFont *arg7 = (wxFont *) NULL ; |
ae8162c8 | 13327 | bool temp2 = false ; |
e811c8ce | 13328 | int temp3 ; |
c32bde28 | 13329 | int res3 = 0 ; |
e811c8ce | 13330 | int temp4 ; |
c32bde28 | 13331 | int res4 = 0 ; |
e811c8ce | 13332 | int temp5 ; |
c32bde28 | 13333 | int res5 = 0 ; |
e811c8ce | 13334 | int temp6 ; |
c32bde28 | 13335 | int res6 = 0 ; |
d14a1e28 RD |
13336 | PyObject * obj0 = 0 ; |
13337 | PyObject * obj1 = 0 ; | |
13338 | PyObject * obj2 = 0 ; | |
13339 | char *kwnames[] = { | |
13340 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13341 | }; | |
13342 | ||
c32bde28 RD |
13343 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13344 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13345 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13346 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d14a1e28 | 13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13350 | { |
13351 | arg2 = wxString_in_helper(obj1); | |
13352 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13353 | temp2 = true; |
d14a1e28 RD |
13354 | } |
13355 | if (obj2) { | |
15afbcd0 RD |
13356 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
13357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13358 | } |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13367 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13368 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13369 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13370 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13371 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13372 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13373 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
13374 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13375 | { |
13376 | if (temp2) | |
13377 | delete arg2; | |
13378 | } | |
13379 | return resultobj; | |
13380 | fail: | |
13381 | { | |
13382 | if (temp2) | |
13383 | delete arg2; | |
13384 | } | |
13385 | return NULL; | |
13386 | } | |
13387 | ||
13388 | ||
c32bde28 | 13389 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13390 | PyObject *resultobj; |
13391 | wxDC *arg1 = (wxDC *) 0 ; | |
13392 | wxString *arg2 = 0 ; | |
e811c8ce RD |
13393 | int *arg3 = (int *) 0 ; |
13394 | int *arg4 = (int *) 0 ; | |
13395 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 13396 | wxFont *arg6 = (wxFont *) NULL ; |
ae8162c8 | 13397 | bool temp2 = false ; |
e811c8ce | 13398 | int temp3 ; |
c32bde28 | 13399 | int res3 = 0 ; |
e811c8ce | 13400 | int temp4 ; |
c32bde28 | 13401 | int res4 = 0 ; |
e811c8ce | 13402 | int temp5 ; |
c32bde28 | 13403 | int res5 = 0 ; |
d14a1e28 RD |
13404 | PyObject * obj0 = 0 ; |
13405 | PyObject * obj1 = 0 ; | |
13406 | PyObject * obj2 = 0 ; | |
13407 | char *kwnames[] = { | |
13408 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13409 | }; | |
13410 | ||
c32bde28 RD |
13411 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13412 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13413 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 13414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13417 | { |
13418 | arg2 = wxString_in_helper(obj1); | |
13419 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13420 | temp2 = true; |
d14a1e28 RD |
13421 | } |
13422 | if (obj2) { | |
15afbcd0 RD |
13423 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
13424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13425 | } |
13426 | { | |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13434 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13435 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13436 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13437 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13438 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13439 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13440 | { |
13441 | if (temp2) | |
13442 | delete arg2; | |
13443 | } | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | { | |
13447 | if (temp2) | |
13448 | delete arg2; | |
13449 | } | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
c32bde28 | 13454 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
db914595 RD |
13455 | PyObject *resultobj; |
13456 | wxDC *arg1 = (wxDC *) 0 ; | |
13457 | wxString *arg2 = 0 ; | |
13458 | wxArrayInt result; | |
ae8162c8 | 13459 | bool temp2 = false ; |
db914595 RD |
13460 | PyObject * obj0 = 0 ; |
13461 | PyObject * obj1 = 0 ; | |
13462 | char *kwnames[] = { | |
13463 | (char *) "self",(char *) "text", NULL | |
13464 | }; | |
13465 | ||
13466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
13469 | { |
13470 | arg2 = wxString_in_helper(obj1); | |
13471 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13472 | temp2 = true; |
db914595 RD |
13473 | } |
13474 | { | |
13475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13476 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13477 | ||
13478 | wxPyEndAllowThreads(__tstate); | |
13479 | if (PyErr_Occurred()) SWIG_fail; | |
13480 | } | |
13481 | { | |
13482 | resultobj = PyList_New(0); | |
13483 | size_t idx; | |
13484 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13485 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13486 | PyList_Append(resultobj, val); | |
13487 | Py_DECREF(val); | |
13488 | } | |
13489 | } | |
13490 | { | |
13491 | if (temp2) | |
13492 | delete arg2; | |
13493 | } | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | { | |
13497 | if (temp2) | |
13498 | delete arg2; | |
13499 | } | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
c32bde28 | 13504 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
322913ce RD |
13505 | PyObject *resultobj; |
13506 | wxDC *arg1 = (wxDC *) 0 ; | |
13507 | wxSize result; | |
13508 | PyObject * obj0 = 0 ; | |
13509 | char *kwnames[] = { | |
13510 | (char *) "self", NULL | |
13511 | }; | |
13512 | ||
13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
13516 | { |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (arg1)->GetSize(); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
13523 | { | |
13524 | wxSize * resultptr; | |
13525 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
322913ce RD |
13527 | } |
13528 | return resultobj; | |
13529 | fail: | |
13530 | return NULL; | |
13531 | } | |
13532 | ||
13533 | ||
c32bde28 | 13534 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13535 | PyObject *resultobj; |
13536 | wxDC *arg1 = (wxDC *) 0 ; | |
13537 | int *arg2 = (int *) 0 ; | |
13538 | int *arg3 = (int *) 0 ; | |
13539 | int temp2 ; | |
c32bde28 | 13540 | int res2 = 0 ; |
d14a1e28 | 13541 | int temp3 ; |
c32bde28 | 13542 | int res3 = 0 ; |
d14a1e28 RD |
13543 | PyObject * obj0 = 0 ; |
13544 | char *kwnames[] = { | |
13545 | (char *) "self", NULL | |
13546 | }; | |
13547 | ||
c32bde28 RD |
13548 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13549 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 13550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13553 | { |
13554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13555 | (arg1)->GetSize(arg2,arg3); | |
13556 | ||
13557 | wxPyEndAllowThreads(__tstate); | |
13558 | if (PyErr_Occurred()) SWIG_fail; | |
13559 | } | |
13560 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13561 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13562 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13563 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13564 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13565 | return resultobj; |
13566 | fail: | |
13567 | return NULL; | |
13568 | } | |
13569 | ||
13570 | ||
c32bde28 | 13571 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13572 | PyObject *resultobj; |
13573 | wxDC *arg1 = (wxDC *) 0 ; | |
13574 | wxSize result; | |
13575 | PyObject * obj0 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self", NULL | |
13578 | }; | |
13579 | ||
322913ce | 13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13583 | { |
13584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13585 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13586 | |
13587 | wxPyEndAllowThreads(__tstate); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
13590 | { | |
13591 | wxSize * resultptr; | |
13592 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13593 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13594 | } |
13595 | return resultobj; | |
13596 | fail: | |
13597 | return NULL; | |
13598 | } | |
13599 | ||
13600 | ||
c32bde28 | 13601 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13602 | PyObject *resultobj; |
13603 | wxDC *arg1 = (wxDC *) 0 ; | |
13604 | int *arg2 = (int *) 0 ; | |
13605 | int *arg3 = (int *) 0 ; | |
13606 | int temp2 ; | |
c32bde28 | 13607 | int res2 = 0 ; |
d14a1e28 | 13608 | int temp3 ; |
c32bde28 | 13609 | int res3 = 0 ; |
d14a1e28 RD |
13610 | PyObject * obj0 = 0 ; |
13611 | char *kwnames[] = { | |
13612 | (char *) "self", NULL | |
13613 | }; | |
13614 | ||
c32bde28 RD |
13615 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13616 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13620 | { |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13623 | ||
13624 | wxPyEndAllowThreads(__tstate); | |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
13627 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13628 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13629 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13630 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13631 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
13632 | return resultobj; |
13633 | fail: | |
13634 | return NULL; | |
13635 | } | |
13636 | ||
13637 | ||
c32bde28 | 13638 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13639 | PyObject *resultobj; |
13640 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13641 | int arg2 ; |
13642 | int result; | |
d14a1e28 | 13643 | PyObject * obj0 = 0 ; |
994141e6 | 13644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13645 | char *kwnames[] = { |
13646 | (char *) "self",(char *) "x", NULL | |
13647 | }; | |
13648 | ||
994141e6 | 13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13652 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13653 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13654 | { |
13655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13656 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13657 | |
13658 | wxPyEndAllowThreads(__tstate); | |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
13660 | } | |
c32bde28 | 13661 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13662 | return resultobj; |
13663 | fail: | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
c32bde28 | 13668 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13669 | PyObject *resultobj; |
13670 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13671 | int arg2 ; |
13672 | int result; | |
d14a1e28 | 13673 | PyObject * obj0 = 0 ; |
994141e6 | 13674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13675 | char *kwnames[] = { |
13676 | (char *) "self",(char *) "y", NULL | |
13677 | }; | |
13678 | ||
994141e6 | 13679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13682 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13684 | { |
13685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13686 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13687 | |
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
c32bde28 | 13691 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13692 | return resultobj; |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
c32bde28 | 13698 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13699 | PyObject *resultobj; |
13700 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13701 | int arg2 ; |
13702 | int result; | |
d14a1e28 | 13703 | PyObject * obj0 = 0 ; |
994141e6 | 13704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13705 | char *kwnames[] = { |
13706 | (char *) "self",(char *) "x", NULL | |
13707 | }; | |
13708 | ||
994141e6 | 13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13712 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13713 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13714 | { |
13715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13716 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13717 | |
13718 | wxPyEndAllowThreads(__tstate); | |
13719 | if (PyErr_Occurred()) SWIG_fail; | |
13720 | } | |
c32bde28 | 13721 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13722 | return resultobj; |
13723 | fail: | |
13724 | return NULL; | |
13725 | } | |
13726 | ||
13727 | ||
c32bde28 | 13728 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13729 | PyObject *resultobj; |
13730 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13731 | int arg2 ; |
13732 | int result; | |
d14a1e28 | 13733 | PyObject * obj0 = 0 ; |
994141e6 | 13734 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13735 | char *kwnames[] = { |
13736 | (char *) "self",(char *) "y", NULL | |
13737 | }; | |
13738 | ||
994141e6 | 13739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13742 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13743 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13744 | { |
13745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13746 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13747 | |
13748 | wxPyEndAllowThreads(__tstate); | |
13749 | if (PyErr_Occurred()) SWIG_fail; | |
13750 | } | |
c32bde28 | 13751 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13752 | return resultobj; |
13753 | fail: | |
13754 | return NULL; | |
13755 | } | |
13756 | ||
13757 | ||
c32bde28 | 13758 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13759 | PyObject *resultobj; |
13760 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13761 | int arg2 ; |
13762 | int result; | |
d14a1e28 | 13763 | PyObject * obj0 = 0 ; |
994141e6 | 13764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13765 | char *kwnames[] = { |
13766 | (char *) "self",(char *) "x", NULL | |
13767 | }; | |
13768 | ||
994141e6 | 13769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13772 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13773 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13774 | { |
13775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13776 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13777 | |
13778 | wxPyEndAllowThreads(__tstate); | |
13779 | if (PyErr_Occurred()) SWIG_fail; | |
13780 | } | |
c32bde28 | 13781 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13782 | return resultobj; |
13783 | fail: | |
13784 | return NULL; | |
13785 | } | |
13786 | ||
13787 | ||
c32bde28 | 13788 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13789 | PyObject *resultobj; |
13790 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13791 | int arg2 ; |
13792 | int result; | |
d14a1e28 | 13793 | PyObject * obj0 = 0 ; |
994141e6 | 13794 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13795 | char *kwnames[] = { |
13796 | (char *) "self",(char *) "y", NULL | |
13797 | }; | |
13798 | ||
994141e6 | 13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13802 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13803 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13804 | { |
13805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13806 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13807 | |
13808 | wxPyEndAllowThreads(__tstate); | |
13809 | if (PyErr_Occurred()) SWIG_fail; | |
13810 | } | |
c32bde28 | 13811 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13812 | return resultobj; |
13813 | fail: | |
13814 | return NULL; | |
13815 | } | |
13816 | ||
13817 | ||
c32bde28 | 13818 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13819 | PyObject *resultobj; |
13820 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13821 | int arg2 ; |
13822 | int result; | |
d14a1e28 | 13823 | PyObject * obj0 = 0 ; |
994141e6 | 13824 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13825 | char *kwnames[] = { |
13826 | (char *) "self",(char *) "x", NULL | |
13827 | }; | |
13828 | ||
994141e6 | 13829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13832 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13833 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13834 | { |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13836 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13837 | |
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
c32bde28 | 13841 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13842 | return resultobj; |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
c32bde28 | 13848 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13849 | PyObject *resultobj; |
13850 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13851 | int arg2 ; |
13852 | int result; | |
d14a1e28 | 13853 | PyObject * obj0 = 0 ; |
994141e6 | 13854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13855 | char *kwnames[] = { |
13856 | (char *) "self",(char *) "y", NULL | |
13857 | }; | |
13858 | ||
994141e6 | 13859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13862 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13863 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13864 | { |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13866 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13867 | |
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
c32bde28 | 13871 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13872 | return resultobj; |
13873 | fail: | |
13874 | return NULL; | |
13875 | } | |
13876 | ||
13877 | ||
c32bde28 | 13878 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13879 | PyObject *resultobj; |
13880 | wxDC *arg1 = (wxDC *) 0 ; | |
13881 | bool result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13890 | { |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13892 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13893 | ||
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
4f89f6a3 RD |
13897 | { |
13898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13899 | } | |
d14a1e28 RD |
13900 | return resultobj; |
13901 | fail: | |
13902 | return NULL; | |
13903 | } | |
13904 | ||
13905 | ||
c32bde28 | 13906 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13907 | PyObject *resultobj; |
13908 | wxDC *arg1 = (wxDC *) 0 ; | |
13909 | bool result; | |
13910 | PyObject * obj0 = 0 ; | |
13911 | char *kwnames[] = { | |
13912 | (char *) "self", NULL | |
13913 | }; | |
13914 | ||
13915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13918 | { |
13919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13920 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13921 | ||
13922 | wxPyEndAllowThreads(__tstate); | |
13923 | if (PyErr_Occurred()) SWIG_fail; | |
13924 | } | |
4f89f6a3 RD |
13925 | { |
13926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13927 | } | |
d14a1e28 RD |
13928 | return resultobj; |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
c32bde28 | 13934 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13935 | PyObject *resultobj; |
13936 | wxDC *arg1 = (wxDC *) 0 ; | |
13937 | int result; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | char *kwnames[] = { | |
13940 | (char *) "self", NULL | |
13941 | }; | |
13942 | ||
13943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13946 | { |
13947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13948 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13949 | ||
13950 | wxPyEndAllowThreads(__tstate); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
13952 | } | |
c32bde28 | 13953 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13954 | return resultobj; |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
c32bde28 | 13960 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13961 | PyObject *resultobj; |
13962 | wxDC *arg1 = (wxDC *) 0 ; | |
13963 | wxSize result; | |
13964 | PyObject * obj0 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",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 = ((wxDC const *)arg1)->GetPPI(); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
13979 | { | |
13980 | wxSize * resultptr; | |
13981 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13982 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13983 | } |
13984 | return resultobj; | |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
c32bde28 | 13990 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13991 | PyObject *resultobj; |
13992 | wxDC *arg1 = (wxDC *) 0 ; | |
13993 | bool result; | |
13994 | PyObject * obj0 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14002 | { |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
4f89f6a3 RD |
14009 | { |
14010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14011 | } | |
d14a1e28 RD |
14012 | return resultobj; |
14013 | fail: | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
c32bde28 | 14018 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14019 | PyObject *resultobj; |
14020 | wxDC *arg1 = (wxDC *) 0 ; | |
14021 | int result; | |
14022 | PyObject * obj0 = 0 ; | |
14023 | char *kwnames[] = { | |
14024 | (char *) "self", NULL | |
14025 | }; | |
14026 | ||
14027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14030 | { |
14031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14032 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14033 | ||
14034 | wxPyEndAllowThreads(__tstate); | |
14035 | if (PyErr_Occurred()) SWIG_fail; | |
14036 | } | |
c32bde28 | 14037 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14038 | return resultobj; |
14039 | fail: | |
14040 | return NULL; | |
14041 | } | |
14042 | ||
14043 | ||
c32bde28 | 14044 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14045 | PyObject *resultobj; |
14046 | wxDC *arg1 = (wxDC *) 0 ; | |
14047 | wxBrush *result; | |
14048 | PyObject * obj0 = 0 ; | |
14049 | char *kwnames[] = { | |
14050 | (char *) "self", NULL | |
14051 | }; | |
14052 | ||
14053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",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 | { | |
14059 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14060 | result = (wxBrush *) &_result_ref; | |
14061 | } | |
14062 | ||
14063 | wxPyEndAllowThreads(__tstate); | |
14064 | if (PyErr_Occurred()) SWIG_fail; | |
14065 | } | |
4276dc52 RD |
14066 | { |
14067 | wxBrush* resultptr = new wxBrush(*result); | |
14068 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14069 | } | |
d14a1e28 RD |
14070 | return resultobj; |
14071 | fail: | |
14072 | return NULL; | |
14073 | } | |
14074 | ||
14075 | ||
c32bde28 | 14076 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14077 | PyObject *resultobj; |
14078 | wxDC *arg1 = (wxDC *) 0 ; | |
14079 | wxBrush *result; | |
14080 | PyObject * obj0 = 0 ; | |
14081 | char *kwnames[] = { | |
14082 | (char *) "self", NULL | |
14083 | }; | |
14084 | ||
14085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14088 | { |
14089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14090 | { | |
14091 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14092 | result = (wxBrush *) &_result_ref; | |
14093 | } | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
4276dc52 RD |
14098 | { |
14099 | wxBrush* resultptr = new wxBrush(*result); | |
14100 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14101 | } | |
d14a1e28 RD |
14102 | return resultobj; |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
c32bde28 | 14108 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14109 | PyObject *resultobj; |
14110 | wxDC *arg1 = (wxDC *) 0 ; | |
14111 | wxFont *result; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | char *kwnames[] = { | |
14114 | (char *) "self", NULL | |
14115 | }; | |
14116 | ||
14117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14120 | { |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | { | |
14123 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14124 | result = (wxFont *) &_result_ref; | |
14125 | } | |
14126 | ||
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
4276dc52 RD |
14130 | { |
14131 | wxFont* resultptr = new wxFont(*result); | |
14132 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14133 | } | |
d14a1e28 RD |
14134 | return resultobj; |
14135 | fail: | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
c32bde28 | 14140 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14141 | PyObject *resultobj; |
14142 | wxDC *arg1 = (wxDC *) 0 ; | |
14143 | wxPen *result; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | char *kwnames[] = { | |
14146 | (char *) "self", NULL | |
14147 | }; | |
14148 | ||
14149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14152 | { |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | { | |
14155 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14156 | result = (wxPen *) &_result_ref; | |
14157 | } | |
14158 | ||
14159 | wxPyEndAllowThreads(__tstate); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
4276dc52 RD |
14162 | { |
14163 | wxPen* resultptr = new wxPen(*result); | |
14164 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14165 | } | |
d14a1e28 RD |
14166 | return resultobj; |
14167 | fail: | |
14168 | return NULL; | |
14169 | } | |
14170 | ||
14171 | ||
c32bde28 | 14172 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14173 | PyObject *resultobj; |
14174 | wxDC *arg1 = (wxDC *) 0 ; | |
14175 | wxColour *result; | |
14176 | PyObject * obj0 = 0 ; | |
14177 | char *kwnames[] = { | |
14178 | (char *) "self", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14184 | { |
14185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14186 | { | |
14187 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14188 | result = (wxColour *) &_result_ref; | |
14189 | } | |
14190 | ||
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
15afbcd0 | 14194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14195 | return resultobj; |
14196 | fail: | |
14197 | return NULL; | |
14198 | } | |
14199 | ||
14200 | ||
c32bde28 | 14201 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14202 | PyObject *resultobj; |
14203 | wxDC *arg1 = (wxDC *) 0 ; | |
14204 | wxColour *result; | |
14205 | PyObject * obj0 = 0 ; | |
14206 | char *kwnames[] = { | |
14207 | (char *) "self", NULL | |
14208 | }; | |
14209 | ||
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14213 | { |
14214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14215 | { | |
14216 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14217 | result = (wxColour *) &_result_ref; | |
14218 | } | |
14219 | ||
14220 | wxPyEndAllowThreads(__tstate); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
14222 | } | |
15afbcd0 | 14223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14224 | return resultobj; |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
c32bde28 | 14230 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14231 | PyObject *resultobj; |
14232 | wxDC *arg1 = (wxDC *) 0 ; | |
14233 | wxColour *arg2 = 0 ; | |
14234 | wxColour temp2 ; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | PyObject * obj1 = 0 ; | |
14237 | char *kwnames[] = { | |
14238 | (char *) "self",(char *) "colour", NULL | |
14239 | }; | |
14240 | ||
14241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14244 | { |
14245 | arg2 = &temp2; | |
14246 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14247 | } | |
14248 | { | |
14249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14250 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14251 | ||
14252 | wxPyEndAllowThreads(__tstate); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
14255 | Py_INCREF(Py_None); resultobj = Py_None; | |
14256 | return resultobj; | |
14257 | fail: | |
14258 | return NULL; | |
14259 | } | |
14260 | ||
14261 | ||
c32bde28 | 14262 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14263 | PyObject *resultobj; |
14264 | wxDC *arg1 = (wxDC *) 0 ; | |
14265 | wxColour *arg2 = 0 ; | |
14266 | wxColour temp2 ; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | PyObject * obj1 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self",(char *) "colour", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14276 | { |
14277 | arg2 = &temp2; | |
14278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14279 | } | |
14280 | { | |
14281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14282 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14283 | ||
14284 | wxPyEndAllowThreads(__tstate); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | } | |
14287 | Py_INCREF(Py_None); resultobj = Py_None; | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
c32bde28 | 14294 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14295 | PyObject *resultobj; |
14296 | wxDC *arg1 = (wxDC *) 0 ; | |
14297 | int result; | |
14298 | PyObject * obj0 = 0 ; | |
14299 | char *kwnames[] = { | |
14300 | (char *) "self", NULL | |
14301 | }; | |
14302 | ||
14303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14306 | { |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
c32bde28 | 14313 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14314 | return resultobj; |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
c32bde28 | 14320 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14321 | PyObject *resultobj; |
14322 | wxDC *arg1 = (wxDC *) 0 ; | |
14323 | int arg2 ; | |
14324 | PyObject * obj0 = 0 ; | |
994141e6 | 14325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14326 | char *kwnames[] = { |
14327 | (char *) "self",(char *) "mode", NULL | |
14328 | }; | |
14329 | ||
994141e6 | 14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14333 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14334 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14335 | { |
14336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14337 | (arg1)->SetMapMode(arg2); | |
14338 | ||
14339 | wxPyEndAllowThreads(__tstate); | |
14340 | if (PyErr_Occurred()) SWIG_fail; | |
14341 | } | |
14342 | Py_INCREF(Py_None); resultobj = Py_None; | |
14343 | return resultobj; | |
14344 | fail: | |
14345 | return NULL; | |
14346 | } | |
14347 | ||
14348 | ||
c32bde28 | 14349 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14350 | PyObject *resultobj; |
14351 | wxDC *arg1 = (wxDC *) 0 ; | |
14352 | double *arg2 = (double *) 0 ; | |
14353 | double *arg3 = (double *) 0 ; | |
14354 | double temp2 ; | |
c32bde28 | 14355 | int res2 = 0 ; |
d14a1e28 | 14356 | double temp3 ; |
c32bde28 | 14357 | int res3 = 0 ; |
d14a1e28 RD |
14358 | PyObject * obj0 = 0 ; |
14359 | char *kwnames[] = { | |
14360 | (char *) "self", NULL | |
14361 | }; | |
14362 | ||
c32bde28 RD |
14363 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14364 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14368 | { |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14376 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14377 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14378 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14379 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
14380 | return resultobj; |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
c32bde28 | 14386 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14387 | PyObject *resultobj; |
14388 | wxDC *arg1 = (wxDC *) 0 ; | |
14389 | double arg2 ; | |
14390 | double arg3 ; | |
14391 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14392 | PyObject * obj1 = 0 ; |
14393 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14394 | char *kwnames[] = { |
14395 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14396 | }; | |
14397 | ||
994141e6 | 14398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14401 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 14402 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14403 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 14404 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14405 | { |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | (arg1)->SetUserScale(arg2,arg3); | |
14408 | ||
14409 | wxPyEndAllowThreads(__tstate); | |
14410 | if (PyErr_Occurred()) SWIG_fail; | |
14411 | } | |
14412 | Py_INCREF(Py_None); resultobj = Py_None; | |
14413 | return resultobj; | |
14414 | fail: | |
14415 | return NULL; | |
14416 | } | |
14417 | ||
14418 | ||
c32bde28 | 14419 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14420 | PyObject *resultobj; |
14421 | wxDC *arg1 = (wxDC *) 0 ; | |
14422 | double *arg2 = (double *) 0 ; | |
14423 | double *arg3 = (double *) 0 ; | |
14424 | double temp2 ; | |
c32bde28 | 14425 | int res2 = 0 ; |
d14a1e28 | 14426 | double temp3 ; |
c32bde28 | 14427 | int res3 = 0 ; |
d14a1e28 RD |
14428 | PyObject * obj0 = 0 ; |
14429 | char *kwnames[] = { | |
14430 | (char *) "self", NULL | |
14431 | }; | |
14432 | ||
c32bde28 RD |
14433 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14434 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 14435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14438 | { |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | (arg1)->GetLogicalScale(arg2,arg3); | |
14441 | ||
14442 | wxPyEndAllowThreads(__tstate); | |
14443 | if (PyErr_Occurred()) SWIG_fail; | |
14444 | } | |
14445 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14446 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14447 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14448 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14449 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
14450 | return resultobj; |
14451 | fail: | |
14452 | return NULL; | |
14453 | } | |
14454 | ||
14455 | ||
c32bde28 | 14456 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14457 | PyObject *resultobj; |
14458 | wxDC *arg1 = (wxDC *) 0 ; | |
14459 | double arg2 ; | |
14460 | double arg3 ; | |
14461 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14462 | PyObject * obj1 = 0 ; |
14463 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14464 | char *kwnames[] = { |
14465 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14466 | }; | |
14467 | ||
994141e6 | 14468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14471 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 14472 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14473 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 14474 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14475 | { |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | (arg1)->SetLogicalScale(arg2,arg3); | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | Py_INCREF(Py_None); resultobj = Py_None; | |
14483 | return resultobj; | |
14484 | fail: | |
14485 | return NULL; | |
14486 | } | |
14487 | ||
14488 | ||
c32bde28 | 14489 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14490 | PyObject *resultobj; |
14491 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14492 | wxPoint result; |
d14a1e28 RD |
14493 | PyObject * obj0 = 0 ; |
14494 | char *kwnames[] = { | |
14495 | (char *) "self", NULL | |
14496 | }; | |
14497 | ||
322913ce | 14498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14501 | { |
14502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14503 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14504 | |
14505 | wxPyEndAllowThreads(__tstate); | |
14506 | if (PyErr_Occurred()) SWIG_fail; | |
14507 | } | |
d14a1e28 | 14508 | { |
322913ce RD |
14509 | wxPoint * resultptr; |
14510 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14511 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14512 | } |
14513 | return resultobj; | |
14514 | fail: | |
14515 | return NULL; | |
14516 | } | |
14517 | ||
14518 | ||
c32bde28 | 14519 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14520 | PyObject *resultobj; |
14521 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14522 | int *arg2 = (int *) 0 ; |
14523 | int *arg3 = (int *) 0 ; | |
14524 | int temp2 ; | |
c32bde28 | 14525 | int res2 = 0 ; |
322913ce | 14526 | int temp3 ; |
c32bde28 | 14527 | int res3 = 0 ; |
d14a1e28 RD |
14528 | PyObject * obj0 = 0 ; |
14529 | char *kwnames[] = { | |
14530 | (char *) "self", NULL | |
14531 | }; | |
14532 | ||
c32bde28 RD |
14533 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14534 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14538 | { |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14540 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14541 | |
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
322913ce | 14545 | Py_INCREF(Py_None); resultobj = Py_None; |
c32bde28 RD |
14546 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14547 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14548 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14549 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
14550 | return resultobj; |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
c32bde28 | 14556 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14557 | PyObject *resultobj; |
14558 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14559 | int arg2 ; |
14560 | int arg3 ; | |
d14a1e28 | 14561 | PyObject * obj0 = 0 ; |
994141e6 RD |
14562 | PyObject * obj1 = 0 ; |
14563 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14564 | char *kwnames[] = { |
14565 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14566 | }; | |
14567 | ||
994141e6 | 14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14571 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14572 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14573 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14574 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14575 | { |
14576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14577 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14578 | ||
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | Py_INCREF(Py_None); resultobj = Py_None; | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
c32bde28 | 14589 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14590 | PyObject *resultobj; |
14591 | wxDC *arg1 = (wxDC *) 0 ; | |
14592 | wxPoint *arg2 = 0 ; | |
14593 | wxPoint temp2 ; | |
14594 | PyObject * obj0 = 0 ; | |
14595 | PyObject * obj1 = 0 ; | |
14596 | char *kwnames[] = { | |
14597 | (char *) "self",(char *) "point", NULL | |
14598 | }; | |
14599 | ||
14600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14603 | { | |
14604 | arg2 = &temp2; | |
14605 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14606 | } | |
14607 | { | |
14608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14609 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14610 | ||
14611 | wxPyEndAllowThreads(__tstate); | |
14612 | if (PyErr_Occurred()) SWIG_fail; | |
14613 | } | |
14614 | Py_INCREF(Py_None); resultobj = Py_None; | |
14615 | return resultobj; | |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
c32bde28 | 14621 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14622 | PyObject *resultobj; |
14623 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14624 | wxPoint result; |
d14a1e28 RD |
14625 | PyObject * obj0 = 0 ; |
14626 | char *kwnames[] = { | |
14627 | (char *) "self", NULL | |
14628 | }; | |
14629 | ||
322913ce | 14630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14633 | { |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14635 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14636 | |
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
d14a1e28 | 14640 | { |
322913ce RD |
14641 | wxPoint * resultptr; |
14642 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14643 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14644 | } |
14645 | return resultobj; | |
14646 | fail: | |
14647 | return NULL; | |
14648 | } | |
14649 | ||
14650 | ||
c32bde28 | 14651 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14652 | PyObject *resultobj; |
14653 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14654 | int *arg2 = (int *) 0 ; |
14655 | int *arg3 = (int *) 0 ; | |
14656 | int temp2 ; | |
c32bde28 | 14657 | int res2 = 0 ; |
322913ce | 14658 | int temp3 ; |
c32bde28 | 14659 | int res3 = 0 ; |
d14a1e28 RD |
14660 | PyObject * obj0 = 0 ; |
14661 | char *kwnames[] = { | |
14662 | (char *) "self", NULL | |
14663 | }; | |
14664 | ||
c32bde28 RD |
14665 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14666 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
322913ce | 14667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14670 | { |
14671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14672 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14673 | |
14674 | wxPyEndAllowThreads(__tstate); | |
14675 | if (PyErr_Occurred()) SWIG_fail; | |
14676 | } | |
322913ce | 14677 | Py_INCREF(Py_None); resultobj = Py_None; |
c32bde28 RD |
14678 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14679 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14680 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14681 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
14682 | return resultobj; |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
c32bde28 | 14688 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14689 | PyObject *resultobj; |
14690 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14691 | int arg2 ; |
14692 | int arg3 ; | |
d14a1e28 | 14693 | PyObject * obj0 = 0 ; |
994141e6 RD |
14694 | PyObject * obj1 = 0 ; |
14695 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14696 | char *kwnames[] = { |
14697 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14698 | }; | |
14699 | ||
994141e6 | 14700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14703 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14704 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14705 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14706 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14707 | { |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14709 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14710 | ||
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
c32bde28 | 14721 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14722 | PyObject *resultobj; |
14723 | wxDC *arg1 = (wxDC *) 0 ; | |
14724 | wxPoint *arg2 = 0 ; | |
14725 | wxPoint temp2 ; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | PyObject * obj1 = 0 ; | |
14728 | char *kwnames[] = { | |
14729 | (char *) "self",(char *) "point", NULL | |
14730 | }; | |
14731 | ||
14732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14735 | { | |
14736 | arg2 = &temp2; | |
14737 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14738 | } | |
14739 | { | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
14746 | Py_INCREF(Py_None); resultobj = Py_None; | |
14747 | return resultobj; | |
14748 | fail: | |
14749 | return NULL; | |
14750 | } | |
14751 | ||
14752 | ||
c32bde28 | 14753 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14754 | PyObject *resultobj; |
14755 | wxDC *arg1 = (wxDC *) 0 ; | |
14756 | bool arg2 ; | |
14757 | bool arg3 ; | |
14758 | PyObject * obj0 = 0 ; | |
14759 | PyObject * obj1 = 0 ; | |
14760 | PyObject * obj2 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14768 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14769 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14770 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 14771 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14772 | { |
14773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14774 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14775 | ||
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | Py_INCREF(Py_None); resultobj = Py_None; | |
14780 | return resultobj; | |
14781 | fail: | |
14782 | return NULL; | |
14783 | } | |
14784 | ||
14785 | ||
c32bde28 | 14786 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14787 | PyObject *resultobj; |
14788 | wxDC *arg1 = (wxDC *) 0 ; | |
14789 | int result; | |
14790 | PyObject * obj0 = 0 ; | |
14791 | char *kwnames[] = { | |
14792 | (char *) "self", NULL | |
14793 | }; | |
14794 | ||
14795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14798 | { |
14799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14800 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14801 | ||
14802 | wxPyEndAllowThreads(__tstate); | |
14803 | if (PyErr_Occurred()) SWIG_fail; | |
14804 | } | |
c32bde28 | 14805 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14806 | return resultobj; |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
c32bde28 | 14812 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14813 | PyObject *resultobj; |
14814 | wxDC *arg1 = (wxDC *) 0 ; | |
14815 | int arg2 ; | |
14816 | PyObject * obj0 = 0 ; | |
994141e6 | 14817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14818 | char *kwnames[] = { |
14819 | (char *) "self",(char *) "function", NULL | |
14820 | }; | |
14821 | ||
994141e6 | 14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14825 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14826 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14827 | { |
14828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14829 | (arg1)->SetLogicalFunction(arg2); | |
14830 | ||
14831 | wxPyEndAllowThreads(__tstate); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | } | |
14834 | Py_INCREF(Py_None); resultobj = Py_None; | |
14835 | return resultobj; | |
14836 | fail: | |
14837 | return NULL; | |
14838 | } | |
14839 | ||
14840 | ||
c32bde28 | 14841 | static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14842 | PyObject *resultobj; |
14843 | wxDC *arg1 = (wxDC *) 0 ; | |
14844 | bool arg2 ; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | PyObject * obj1 = 0 ; | |
14847 | char *kwnames[] = { | |
f5b96ee1 | 14848 | (char *) "self",(char *) "optimize", NULL |
d14a1e28 RD |
14849 | }; |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14854 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14855 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14856 | { |
14857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14858 | (arg1)->SetOptimization(arg2); | |
14859 | ||
14860 | wxPyEndAllowThreads(__tstate); | |
14861 | if (PyErr_Occurred()) SWIG_fail; | |
14862 | } | |
14863 | Py_INCREF(Py_None); resultobj = Py_None; | |
14864 | return resultobj; | |
14865 | fail: | |
14866 | return NULL; | |
14867 | } | |
14868 | ||
14869 | ||
c32bde28 | 14870 | static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14871 | PyObject *resultobj; |
14872 | wxDC *arg1 = (wxDC *) 0 ; | |
14873 | bool result; | |
14874 | PyObject * obj0 = 0 ; | |
14875 | char *kwnames[] = { | |
14876 | (char *) "self", NULL | |
14877 | }; | |
14878 | ||
14879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14882 | { |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | result = (bool)(arg1)->GetOptimization(); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
4f89f6a3 RD |
14889 | { |
14890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14891 | } | |
d14a1e28 RD |
14892 | return resultobj; |
14893 | fail: | |
14894 | return NULL; | |
14895 | } | |
14896 | ||
14897 | ||
c32bde28 | 14898 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14899 | PyObject *resultobj; |
14900 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14901 | int arg2 ; |
14902 | int arg3 ; | |
d14a1e28 | 14903 | PyObject * obj0 = 0 ; |
994141e6 RD |
14904 | PyObject * obj1 = 0 ; |
14905 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14906 | char *kwnames[] = { |
14907 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14908 | }; | |
14909 | ||
994141e6 | 14910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14913 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14914 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14915 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14916 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14917 | { |
14918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14919 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14920 | ||
14921 | wxPyEndAllowThreads(__tstate); | |
14922 | if (PyErr_Occurred()) SWIG_fail; | |
14923 | } | |
14924 | Py_INCREF(Py_None); resultobj = Py_None; | |
14925 | return resultobj; | |
14926 | fail: | |
14927 | return NULL; | |
14928 | } | |
14929 | ||
14930 | ||
c32bde28 | 14931 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
14932 | PyObject *resultobj; |
14933 | wxDC *arg1 = (wxDC *) 0 ; | |
14934 | wxPoint *arg2 = 0 ; | |
14935 | wxPoint temp2 ; | |
14936 | PyObject * obj0 = 0 ; | |
14937 | PyObject * obj1 = 0 ; | |
14938 | char *kwnames[] = { | |
14939 | (char *) "self",(char *) "point", NULL | |
14940 | }; | |
14941 | ||
14942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14945 | { | |
14946 | arg2 = &temp2; | |
14947 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14948 | } | |
14949 | { | |
14950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14951 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
14952 | ||
14953 | wxPyEndAllowThreads(__tstate); | |
14954 | if (PyErr_Occurred()) SWIG_fail; | |
14955 | } | |
14956 | Py_INCREF(Py_None); resultobj = Py_None; | |
14957 | return resultobj; | |
14958 | fail: | |
14959 | return NULL; | |
14960 | } | |
14961 | ||
14962 | ||
c32bde28 | 14963 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14964 | PyObject *resultobj; |
14965 | wxDC *arg1 = (wxDC *) 0 ; | |
14966 | PyObject * obj0 = 0 ; | |
14967 | char *kwnames[] = { | |
14968 | (char *) "self", NULL | |
14969 | }; | |
14970 | ||
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14974 | { |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | (arg1)->ResetBoundingBox(); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
14981 | Py_INCREF(Py_None); resultobj = Py_None; | |
14982 | return resultobj; | |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
c32bde28 | 14988 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14989 | PyObject *resultobj; |
14990 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14991 | int result; |
d14a1e28 RD |
14992 | PyObject * obj0 = 0 ; |
14993 | char *kwnames[] = { | |
14994 | (char *) "self", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",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(); | |
e811c8ce | 15002 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
15003 | |
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
c32bde28 | 15007 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15008 | return resultobj; |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
c32bde28 | 15014 | static PyObject *_wrap_DC_MaxX(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_MaxX",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)->MaxX(); |
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_MinY(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_MinY",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)->MinY(); |
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_MaxY(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_MaxY",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)->MaxY(); |
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_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15093 | PyObject *resultobj; |
15094 | wxDC *arg1 = (wxDC *) 0 ; | |
15095 | int *arg2 = (int *) 0 ; | |
15096 | int *arg3 = (int *) 0 ; | |
15097 | int *arg4 = (int *) 0 ; | |
15098 | int *arg5 = (int *) 0 ; | |
15099 | int temp2 ; | |
c32bde28 | 15100 | int res2 = 0 ; |
d14a1e28 | 15101 | int temp3 ; |
c32bde28 | 15102 | int res3 = 0 ; |
d14a1e28 | 15103 | int temp4 ; |
c32bde28 | 15104 | int res4 = 0 ; |
d14a1e28 | 15105 | int temp5 ; |
c32bde28 | 15106 | int res5 = 0 ; |
d14a1e28 RD |
15107 | PyObject * obj0 = 0 ; |
15108 | char *kwnames[] = { | |
15109 | (char *) "self", NULL | |
15110 | }; | |
15111 | ||
c32bde28 RD |
15112 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15113 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15114 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15115 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15119 | { |
15120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15121 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15122 | ||
15123 | wxPyEndAllowThreads(__tstate); | |
15124 | if (PyErr_Occurred()) SWIG_fail; | |
15125 | } | |
15126 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15127 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15128 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15129 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15130 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15131 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15132 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15133 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15134 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15135 | return resultobj; |
15136 | fail: | |
15137 | return NULL; | |
15138 | } | |
15139 | ||
15140 | ||
c32bde28 | 15141 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15142 | PyObject *resultobj; |
15143 | wxDC *arg1 = (wxDC *) 0 ; | |
15144 | PyObject *arg2 = (PyObject *) 0 ; | |
15145 | PyObject *arg3 = (PyObject *) 0 ; | |
15146 | PyObject *arg4 = (PyObject *) 0 ; | |
15147 | PyObject *result; | |
15148 | PyObject * obj0 = 0 ; | |
15149 | PyObject * obj1 = 0 ; | |
15150 | PyObject * obj2 = 0 ; | |
15151 | PyObject * obj3 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15159 | arg2 = obj1; |
15160 | arg3 = obj2; | |
15161 | arg4 = obj3; | |
15162 | { | |
15163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15164 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15165 | ||
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
15169 | resultobj = result; | |
15170 | return resultobj; | |
15171 | fail: | |
15172 | return NULL; | |
15173 | } | |
15174 | ||
15175 | ||
c32bde28 | 15176 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15177 | PyObject *resultobj; |
15178 | wxDC *arg1 = (wxDC *) 0 ; | |
15179 | PyObject *arg2 = (PyObject *) 0 ; | |
15180 | PyObject *arg3 = (PyObject *) 0 ; | |
15181 | PyObject *arg4 = (PyObject *) 0 ; | |
15182 | PyObject *result; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | PyObject * obj1 = 0 ; | |
15185 | PyObject * obj2 = 0 ; | |
15186 | PyObject * obj3 = 0 ; | |
15187 | char *kwnames[] = { | |
15188 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15189 | }; | |
15190 | ||
15191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15194 | arg2 = obj1; |
15195 | arg3 = obj2; | |
15196 | arg4 = obj3; | |
15197 | { | |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | resultobj = result; | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
c32bde28 | 15211 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15212 | PyObject *resultobj; |
15213 | wxDC *arg1 = (wxDC *) 0 ; | |
15214 | PyObject *arg2 = (PyObject *) 0 ; | |
15215 | PyObject *arg3 = (PyObject *) 0 ; | |
15216 | PyObject *arg4 = (PyObject *) 0 ; | |
15217 | PyObject *result; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | PyObject * obj1 = 0 ; | |
15220 | PyObject * obj2 = 0 ; | |
15221 | PyObject * obj3 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15229 | arg2 = obj1; |
15230 | arg3 = obj2; | |
15231 | arg4 = obj3; | |
15232 | { | |
15233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15234 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15235 | ||
15236 | wxPyEndAllowThreads(__tstate); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | resultobj = result; | |
15240 | return resultobj; | |
15241 | fail: | |
15242 | return NULL; | |
15243 | } | |
15244 | ||
15245 | ||
c32bde28 | 15246 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15247 | PyObject *resultobj; |
15248 | wxDC *arg1 = (wxDC *) 0 ; | |
15249 | PyObject *arg2 = (PyObject *) 0 ; | |
15250 | PyObject *arg3 = (PyObject *) 0 ; | |
15251 | PyObject *arg4 = (PyObject *) 0 ; | |
15252 | PyObject *result; | |
15253 | PyObject * obj0 = 0 ; | |
15254 | PyObject * obj1 = 0 ; | |
15255 | PyObject * obj2 = 0 ; | |
15256 | PyObject * obj3 = 0 ; | |
15257 | char *kwnames[] = { | |
15258 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15259 | }; | |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15264 | arg2 = obj1; |
15265 | arg3 = obj2; | |
15266 | arg4 = obj3; | |
15267 | { | |
15268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15269 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15270 | ||
15271 | wxPyEndAllowThreads(__tstate); | |
15272 | if (PyErr_Occurred()) SWIG_fail; | |
15273 | } | |
15274 | resultobj = result; | |
15275 | return resultobj; | |
15276 | fail: | |
15277 | return NULL; | |
15278 | } | |
15279 | ||
15280 | ||
c32bde28 | 15281 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15282 | PyObject *resultobj; |
15283 | wxDC *arg1 = (wxDC *) 0 ; | |
15284 | PyObject *arg2 = (PyObject *) 0 ; | |
15285 | PyObject *arg3 = (PyObject *) 0 ; | |
15286 | PyObject *arg4 = (PyObject *) 0 ; | |
15287 | PyObject *result; | |
15288 | PyObject * obj0 = 0 ; | |
15289 | PyObject * obj1 = 0 ; | |
15290 | PyObject * obj2 = 0 ; | |
15291 | PyObject * obj3 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15299 | arg2 = obj1; |
15300 | arg3 = obj2; | |
15301 | arg4 = obj3; | |
15302 | { | |
15303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15304 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15305 | ||
15306 | wxPyEndAllowThreads(__tstate); | |
15307 | if (PyErr_Occurred()) SWIG_fail; | |
15308 | } | |
15309 | resultobj = result; | |
15310 | return resultobj; | |
15311 | fail: | |
15312 | return NULL; | |
15313 | } | |
15314 | ||
15315 | ||
c32bde28 | 15316 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15317 | PyObject *resultobj; |
15318 | wxDC *arg1 = (wxDC *) 0 ; | |
15319 | PyObject *arg2 = (PyObject *) 0 ; | |
15320 | PyObject *arg3 = (PyObject *) 0 ; | |
15321 | PyObject *arg4 = (PyObject *) 0 ; | |
15322 | PyObject *arg5 = (PyObject *) 0 ; | |
15323 | PyObject *result; | |
15324 | PyObject * obj0 = 0 ; | |
15325 | PyObject * obj1 = 0 ; | |
15326 | PyObject * obj2 = 0 ; | |
15327 | PyObject * obj3 = 0 ; | |
15328 | PyObject * obj4 = 0 ; | |
15329 | char *kwnames[] = { | |
15330 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15331 | }; | |
15332 | ||
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
15334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15336 | arg2 = obj1; |
15337 | arg3 = obj2; | |
15338 | arg4 = obj3; | |
15339 | arg5 = obj4; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | resultobj = result; | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
c32bde28 | 15354 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15355 | PyObject *obj; |
15356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15357 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15358 | Py_INCREF(obj); | |
15359 | return Py_BuildValue((char *)""); | |
15360 | } | |
c32bde28 | 15361 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15362 | PyObject *resultobj; |
15363 | wxMemoryDC *result; | |
15364 | char *kwnames[] = { | |
15365 | NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15369 | { | |
e3b71cb8 | 15370 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15372 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15375 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15376 | } |
15afbcd0 | 15377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15378 | return resultobj; |
15379 | fail: | |
15380 | return NULL; | |
15381 | } | |
15382 | ||
15383 | ||
c32bde28 | 15384 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15385 | PyObject *resultobj; |
15386 | wxDC *arg1 = (wxDC *) 0 ; | |
15387 | wxMemoryDC *result; | |
15388 | PyObject * obj0 = 0 ; | |
15389 | char *kwnames[] = { | |
15390 | (char *) "oldDC", NULL | |
15391 | }; | |
15392 | ||
15393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15396 | { |
e3b71cb8 | 15397 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15399 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15400 | ||
15401 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15402 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15403 | } |
15afbcd0 | 15404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15405 | return resultobj; |
15406 | fail: | |
15407 | return NULL; | |
15408 | } | |
15409 | ||
15410 | ||
c32bde28 | 15411 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15412 | PyObject *resultobj; |
15413 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15414 | wxBitmap *arg2 = 0 ; | |
15415 | PyObject * obj0 = 0 ; | |
15416 | PyObject * obj1 = 0 ; | |
15417 | char *kwnames[] = { | |
15418 | (char *) "self",(char *) "bitmap", NULL | |
15419 | }; | |
15420 | ||
15421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
15423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15426 | SWIG_fail; | |
d14a1e28 | 15427 | if (arg2 == NULL) { |
15afbcd0 RD |
15428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15429 | SWIG_fail; | |
d14a1e28 RD |
15430 | } |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15434 | ||
15435 | wxPyEndAllowThreads(__tstate); | |
15436 | if (PyErr_Occurred()) SWIG_fail; | |
15437 | } | |
15438 | Py_INCREF(Py_None); resultobj = Py_None; | |
15439 | return resultobj; | |
15440 | fail: | |
15441 | return NULL; | |
15442 | } | |
15443 | ||
15444 | ||
c32bde28 | 15445 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15446 | PyObject *obj; |
15447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15448 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15449 | Py_INCREF(obj); | |
15450 | return Py_BuildValue((char *)""); | |
15451 | } | |
c32bde28 | 15452 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
15453 | PyObject *resultobj; |
15454 | wxDC *arg1 = (wxDC *) 0 ; | |
15455 | wxBitmap *arg2 = 0 ; | |
15456 | wxBufferedDC *result; | |
15457 | PyObject * obj0 = 0 ; | |
15458 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15459 | |
3adfb63b | 15460 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15465 | SWIG_fail; | |
d14a1e28 | 15466 | if (arg2 == NULL) { |
15afbcd0 RD |
15467 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15468 | SWIG_fail; | |
d14a1e28 RD |
15469 | } |
15470 | { | |
e3b71cb8 | 15471 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15473 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15474 | ||
15475 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15476 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15477 | } |
15afbcd0 | 15478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15479 | return resultobj; |
15480 | fail: | |
15481 | return NULL; | |
15482 | } | |
15483 | ||
15484 | ||
c32bde28 | 15485 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
15486 | PyObject *resultobj; |
15487 | wxDC *arg1 = (wxDC *) 0 ; | |
15488 | wxSize *arg2 = 0 ; | |
15489 | wxBufferedDC *result; | |
15490 | wxSize temp2 ; | |
15491 | PyObject * obj0 = 0 ; | |
15492 | PyObject * obj1 = 0 ; | |
3adfb63b | 15493 | |
e498079e | 15494 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15497 | { |
15498 | arg2 = &temp2; | |
15499 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15500 | } | |
3adfb63b | 15501 | { |
e3b71cb8 | 15502 | if (!wxPyCheckForApp()) SWIG_fail; |
3adfb63b | 15503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e498079e | 15504 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
3adfb63b RD |
15505 | |
15506 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15507 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b | 15508 | } |
15afbcd0 | 15509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
3adfb63b RD |
15510 | return resultobj; |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15517 | int argc; | |
e498079e | 15518 | PyObject *argv[3]; |
3adfb63b RD |
15519 | int ii; |
15520 | ||
15521 | argc = PyObject_Length(args); | |
e498079e | 15522 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
3adfb63b RD |
15523 | argv[ii] = PyTuple_GetItem(args,ii); |
15524 | } | |
15525 | if (argc == 2) { | |
15526 | int _v; | |
15527 | { | |
15528 | void *ptr; | |
15afbcd0 | 15529 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
15530 | _v = 0; |
15531 | PyErr_Clear(); | |
15532 | } else { | |
15533 | _v = 1; | |
15534 | } | |
15535 | } | |
15536 | if (_v) { | |
15537 | { | |
15538 | void *ptr; | |
15afbcd0 | 15539 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
3adfb63b RD |
15540 | _v = 0; |
15541 | PyErr_Clear(); | |
15542 | } else { | |
15543 | _v = 1; | |
15544 | } | |
15545 | } | |
15546 | if (_v) { | |
15547 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15548 | } | |
15549 | } | |
15550 | } | |
e498079e | 15551 | if (argc == 2) { |
3adfb63b RD |
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 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15565 | } | |
15566 | if (_v) { | |
e498079e | 15567 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
3adfb63b RD |
15568 | } |
15569 | } | |
15570 | } | |
15571 | ||
15572 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
c32bde28 | 15577 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15578 | PyObject *resultobj; |
15579 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | char *kwnames[] = { | |
15582 | (char *) "self", NULL | |
15583 | }; | |
15584 | ||
e498079e | 15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15588 | { |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15590 | delete arg1; |
d14a1e28 RD |
15591 | |
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
15595 | Py_INCREF(Py_None); resultobj = Py_None; | |
15596 | return resultobj; | |
15597 | fail: | |
15598 | return NULL; | |
15599 | } | |
15600 | ||
15601 | ||
c32bde28 | 15602 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15603 | PyObject *resultobj; |
e498079e | 15604 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
3adfb63b | 15605 | PyObject * obj0 = 0 ; |
e498079e RD |
15606 | char *kwnames[] = { |
15607 | (char *) "self", NULL | |
15608 | }; | |
3adfb63b | 15609 | |
e498079e | 15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15613 | { |
15614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15615 | (arg1)->UnMask(); |
3adfb63b RD |
15616 | |
15617 | wxPyEndAllowThreads(__tstate); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
e498079e | 15620 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
15621 | return resultobj; |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
c32bde28 | 15627 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
e498079e RD |
15628 | PyObject *obj; |
15629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15630 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15631 | Py_INCREF(obj); | |
15632 | return Py_BuildValue((char *)""); | |
15633 | } | |
c32bde28 | 15634 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
15635 | PyObject *resultobj; |
15636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e498079e RD |
15637 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15638 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15639 | wxBufferedPaintDC *result; |
15640 | PyObject * obj0 = 0 ; | |
15641 | PyObject * obj1 = 0 ; | |
e498079e RD |
15642 | char *kwnames[] = { |
15643 | (char *) "window",(char *) "buffer", NULL | |
15644 | }; | |
d14a1e28 | 15645 | |
e498079e | 15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15649 | if (obj1) { |
15afbcd0 RD |
15650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
15651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15652 | SWIG_fail; | |
e498079e | 15653 | if (arg2 == NULL) { |
15afbcd0 RD |
15654 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15655 | SWIG_fail; | |
d14a1e28 RD |
15656 | } |
15657 | } | |
15658 | { | |
e3b71cb8 | 15659 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 15660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e498079e | 15661 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15662 | |
15663 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15664 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15665 | } |
15afbcd0 | 15666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
15667 | return resultobj; |
15668 | fail: | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15674 | PyObject *obj; |
15675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15676 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15677 | Py_INCREF(obj); | |
15678 | return Py_BuildValue((char *)""); | |
15679 | } | |
c32bde28 | 15680 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15681 | PyObject *resultobj; |
15682 | wxScreenDC *result; | |
15683 | char *kwnames[] = { | |
15684 | NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15688 | { | |
e3b71cb8 | 15689 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15691 | result = (wxScreenDC *)new wxScreenDC(); | |
15692 | ||
15693 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15694 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15695 | } |
15afbcd0 | 15696 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15697 | return resultobj; |
15698 | fail: | |
15699 | return NULL; | |
15700 | } | |
15701 | ||
15702 | ||
c32bde28 | 15703 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15704 | PyObject *resultobj; |
15705 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15706 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15707 | bool result; | |
15708 | PyObject * obj0 = 0 ; | |
15709 | PyObject * obj1 = 0 ; | |
15710 | char *kwnames[] = { | |
15711 | (char *) "self",(char *) "window", NULL | |
15712 | }; | |
15713 | ||
15714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15719 | { |
15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15721 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15722 | ||
15723 | wxPyEndAllowThreads(__tstate); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
4f89f6a3 RD |
15726 | { |
15727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15728 | } | |
d14a1e28 RD |
15729 | return resultobj; |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
c32bde28 | 15735 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15736 | PyObject *resultobj; |
15737 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15738 | wxRect *arg2 = (wxRect *) NULL ; | |
15739 | bool result; | |
15740 | PyObject * obj0 = 0 ; | |
15741 | PyObject * obj1 = 0 ; | |
15742 | char *kwnames[] = { | |
15743 | (char *) "self",(char *) "rect", NULL | |
15744 | }; | |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15749 | if (obj1) { |
15afbcd0 RD |
15750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15752 | } |
15753 | { | |
15754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15755 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15756 | ||
15757 | wxPyEndAllowThreads(__tstate); | |
15758 | if (PyErr_Occurred()) SWIG_fail; | |
15759 | } | |
4f89f6a3 RD |
15760 | { |
15761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15762 | } | |
d14a1e28 RD |
15763 | return resultobj; |
15764 | fail: | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
c32bde28 | 15769 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15770 | PyObject *resultobj; |
15771 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15772 | bool result; | |
15773 | PyObject * obj0 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "self", NULL | |
15776 | }; | |
15777 | ||
15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15781 | { |
15782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15783 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15784 | ||
15785 | wxPyEndAllowThreads(__tstate); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
4f89f6a3 RD |
15788 | { |
15789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15790 | } | |
d14a1e28 RD |
15791 | return resultobj; |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
c32bde28 | 15797 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15798 | PyObject *obj; |
15799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15800 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15801 | Py_INCREF(obj); | |
15802 | return Py_BuildValue((char *)""); | |
15803 | } | |
c32bde28 | 15804 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15805 | PyObject *resultobj; |
15806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15807 | wxClientDC *result; | |
15808 | PyObject * obj0 = 0 ; | |
15809 | char *kwnames[] = { | |
15810 | (char *) "win", NULL | |
15811 | }; | |
15812 | ||
15813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15816 | { |
e3b71cb8 | 15817 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15819 | result = (wxClientDC *)new wxClientDC(arg1); | |
15820 | ||
15821 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15822 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15823 | } |
15afbcd0 | 15824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15825 | return resultobj; |
15826 | fail: | |
15827 | return NULL; | |
15828 | } | |
15829 | ||
15830 | ||
c32bde28 | 15831 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15832 | PyObject *obj; |
15833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15834 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15835 | Py_INCREF(obj); | |
15836 | return Py_BuildValue((char *)""); | |
15837 | } | |
c32bde28 | 15838 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15839 | PyObject *resultobj; |
15840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15841 | wxPaintDC *result; | |
15842 | PyObject * obj0 = 0 ; | |
15843 | char *kwnames[] = { | |
15844 | (char *) "win", NULL | |
15845 | }; | |
15846 | ||
15847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15850 | { |
e3b71cb8 | 15851 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15853 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15856 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15857 | } |
15afbcd0 | 15858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15859 | return resultobj; |
15860 | fail: | |
15861 | return NULL; | |
15862 | } | |
15863 | ||
15864 | ||
c32bde28 | 15865 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15866 | PyObject *obj; |
15867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15868 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15869 | Py_INCREF(obj); | |
15870 | return Py_BuildValue((char *)""); | |
15871 | } | |
c32bde28 | 15872 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15873 | PyObject *resultobj; |
15874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15875 | wxWindowDC *result; | |
15876 | PyObject * obj0 = 0 ; | |
15877 | char *kwnames[] = { | |
15878 | (char *) "win", NULL | |
15879 | }; | |
15880 | ||
15881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15884 | { |
e3b71cb8 | 15885 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15887 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15890 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15891 | } |
15afbcd0 | 15892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
15893 | return resultobj; |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
c32bde28 | 15899 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15900 | PyObject *obj; |
15901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15902 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15903 | Py_INCREF(obj); | |
15904 | return Py_BuildValue((char *)""); | |
15905 | } | |
c32bde28 | 15906 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15907 | PyObject *resultobj; |
15908 | wxDC *arg1 = 0 ; | |
15909 | bool arg2 ; | |
15910 | wxMirrorDC *result; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | PyObject * obj1 = 0 ; | |
15913 | char *kwnames[] = { | |
15914 | (char *) "dc",(char *) "mirror", NULL | |
15915 | }; | |
15916 | ||
15917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15920 | SWIG_fail; | |
d14a1e28 | 15921 | if (arg1 == NULL) { |
15afbcd0 RD |
15922 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15923 | SWIG_fail; | |
a41e16b6 | 15924 | } |
c32bde28 | 15925 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15926 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15927 | { |
e3b71cb8 | 15928 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15930 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15931 | ||
15932 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15933 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15934 | } |
15afbcd0 | 15935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
15936 | return resultobj; |
15937 | fail: | |
15938 | return NULL; | |
15939 | } | |
15940 | ||
15941 | ||
c32bde28 | 15942 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15943 | PyObject *obj; |
15944 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15945 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15946 | Py_INCREF(obj); | |
15947 | return Py_BuildValue((char *)""); | |
15948 | } | |
c32bde28 | 15949 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15950 | PyObject *resultobj; |
15951 | wxPrintData *arg1 = 0 ; | |
15952 | wxPostScriptDC *result; | |
15953 | PyObject * obj0 = 0 ; | |
15954 | char *kwnames[] = { | |
15955 | (char *) "printData", NULL | |
15956 | }; | |
15957 | ||
15958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15961 | SWIG_fail; | |
d14a1e28 | 15962 | if (arg1 == NULL) { |
15afbcd0 RD |
15963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15964 | SWIG_fail; | |
d14a1e28 RD |
15965 | } |
15966 | { | |
e3b71cb8 | 15967 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15969 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15970 | ||
15971 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15972 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15973 | } |
15afbcd0 | 15974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
15975 | return resultobj; |
15976 | fail: | |
15977 | return NULL; | |
15978 | } | |
15979 | ||
15980 | ||
c32bde28 | 15981 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15982 | PyObject *resultobj; |
15983 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15984 | wxPrintData *result; | |
15985 | PyObject * obj0 = 0 ; | |
15986 | char *kwnames[] = { | |
15987 | (char *) "self", NULL | |
15988 | }; | |
15989 | ||
15990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15993 | { |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | { | |
15996 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15997 | result = (wxPrintData *) &_result_ref; | |
15998 | } | |
15999 | ||
16000 | wxPyEndAllowThreads(__tstate); | |
16001 | if (PyErr_Occurred()) SWIG_fail; | |
16002 | } | |
15afbcd0 | 16003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
16004 | return resultobj; |
16005 | fail: | |
16006 | return NULL; | |
16007 | } | |
16008 | ||
16009 | ||
c32bde28 | 16010 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16011 | PyObject *resultobj; |
16012 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16013 | wxPrintData *arg2 = 0 ; | |
16014 | PyObject * obj0 = 0 ; | |
16015 | PyObject * obj1 = 0 ; | |
16016 | char *kwnames[] = { | |
16017 | (char *) "self",(char *) "data", NULL | |
16018 | }; | |
16019 | ||
16020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
16022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16025 | SWIG_fail; | |
d14a1e28 | 16026 | if (arg2 == NULL) { |
15afbcd0 RD |
16027 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16028 | SWIG_fail; | |
d14a1e28 RD |
16029 | } |
16030 | { | |
16031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16032 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16033 | ||
16034 | wxPyEndAllowThreads(__tstate); | |
16035 | if (PyErr_Occurred()) SWIG_fail; | |
16036 | } | |
16037 | Py_INCREF(Py_None); resultobj = Py_None; | |
16038 | return resultobj; | |
16039 | fail: | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
c32bde28 | 16044 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16045 | PyObject *resultobj; |
16046 | int arg1 ; | |
994141e6 | 16047 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16048 | char *kwnames[] = { |
16049 | (char *) "ppi", NULL | |
16050 | }; | |
16051 | ||
994141e6 | 16052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
c32bde28 | 16053 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 16054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16055 | { |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | wxPostScriptDC::SetResolution(arg1); | |
16058 | ||
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | Py_INCREF(Py_None); resultobj = Py_None; | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | return NULL; | |
16066 | } | |
16067 | ||
16068 | ||
c32bde28 | 16069 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16070 | PyObject *resultobj; |
16071 | int result; | |
16072 | char *kwnames[] = { | |
16073 | NULL | |
16074 | }; | |
16075 | ||
16076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16077 | { | |
16078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16079 | result = (int)wxPostScriptDC::GetResolution(); | |
16080 | ||
16081 | wxPyEndAllowThreads(__tstate); | |
16082 | if (PyErr_Occurred()) SWIG_fail; | |
16083 | } | |
c32bde28 | 16084 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16085 | return resultobj; |
16086 | fail: | |
16087 | return NULL; | |
16088 | } | |
16089 | ||
16090 | ||
c32bde28 | 16091 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16092 | PyObject *obj; |
16093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16094 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16095 | Py_INCREF(obj); | |
16096 | return Py_BuildValue((char *)""); | |
16097 | } | |
c32bde28 | 16098 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16099 | PyObject *resultobj; |
16100 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16101 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16102 | wxMetaFile *result; | |
ae8162c8 | 16103 | bool temp1 = false ; |
d14a1e28 RD |
16104 | PyObject * obj0 = 0 ; |
16105 | char *kwnames[] = { | |
16106 | (char *) "filename", NULL | |
16107 | }; | |
16108 | ||
16109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16110 | if (obj0) { | |
16111 | { | |
16112 | arg1 = wxString_in_helper(obj0); | |
16113 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16114 | temp1 = true; |
d14a1e28 RD |
16115 | } |
16116 | } | |
16117 | { | |
e3b71cb8 | 16118 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16120 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16121 | ||
16122 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16123 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16124 | } |
15afbcd0 | 16125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
16126 | { |
16127 | if (temp1) | |
16128 | delete arg1; | |
16129 | } | |
16130 | return resultobj; | |
16131 | fail: | |
16132 | { | |
16133 | if (temp1) | |
16134 | delete arg1; | |
16135 | } | |
16136 | return NULL; | |
16137 | } | |
16138 | ||
16139 | ||
c32bde28 | 16140 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16141 | PyObject *obj; |
16142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16143 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16144 | Py_INCREF(obj); | |
16145 | return Py_BuildValue((char *)""); | |
16146 | } | |
c32bde28 | 16147 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16148 | PyObject *resultobj; |
16149 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16150 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16151 | int arg2 = (int) 0 ; | |
16152 | int arg3 = (int) 0 ; | |
16153 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16154 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16155 | wxMetaFileDC *result; | |
ae8162c8 RD |
16156 | bool temp1 = false ; |
16157 | bool temp4 = false ; | |
d14a1e28 | 16158 | PyObject * obj0 = 0 ; |
994141e6 RD |
16159 | PyObject * obj1 = 0 ; |
16160 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16161 | PyObject * obj3 = 0 ; |
16162 | char *kwnames[] = { | |
16163 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16164 | }; | |
16165 | ||
994141e6 | 16166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
16167 | if (obj0) { |
16168 | { | |
16169 | arg1 = wxString_in_helper(obj0); | |
16170 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16171 | temp1 = true; |
d14a1e28 RD |
16172 | } |
16173 | } | |
994141e6 | 16174 | if (obj1) { |
c32bde28 | 16175 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16176 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16177 | } |
16178 | if (obj2) { | |
c32bde28 | 16179 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 16180 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16181 | } |
d14a1e28 RD |
16182 | if (obj3) { |
16183 | { | |
16184 | arg4 = wxString_in_helper(obj3); | |
16185 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16186 | temp4 = true; |
d14a1e28 RD |
16187 | } |
16188 | } | |
16189 | { | |
e3b71cb8 | 16190 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16192 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16193 | ||
16194 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16195 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16196 | } |
15afbcd0 | 16197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
16198 | { |
16199 | if (temp1) | |
16200 | delete arg1; | |
16201 | } | |
16202 | { | |
16203 | if (temp4) | |
16204 | delete arg4; | |
16205 | } | |
16206 | return resultobj; | |
16207 | fail: | |
16208 | { | |
16209 | if (temp1) | |
16210 | delete arg1; | |
16211 | } | |
16212 | { | |
16213 | if (temp4) | |
16214 | delete arg4; | |
16215 | } | |
16216 | return NULL; | |
16217 | } | |
16218 | ||
16219 | ||
c32bde28 | 16220 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16221 | PyObject *obj; |
16222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16223 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16224 | Py_INCREF(obj); | |
16225 | return Py_BuildValue((char *)""); | |
16226 | } | |
c32bde28 | 16227 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16228 | PyObject *resultobj; |
16229 | wxPrintData *arg1 = 0 ; | |
16230 | wxPrinterDC *result; | |
16231 | PyObject * obj0 = 0 ; | |
16232 | char *kwnames[] = { | |
16233 | (char *) "printData", NULL | |
16234 | }; | |
16235 | ||
16236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
16238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16239 | SWIG_fail; | |
d14a1e28 | 16240 | if (arg1 == NULL) { |
15afbcd0 RD |
16241 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16242 | SWIG_fail; | |
d14a1e28 RD |
16243 | } |
16244 | { | |
e3b71cb8 | 16245 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16247 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16250 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16251 | } |
15afbcd0 | 16252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
16253 | return resultobj; |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
c32bde28 | 16259 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16260 | PyObject *obj; |
16261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16262 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16263 | Py_INCREF(obj); | |
16264 | return Py_BuildValue((char *)""); | |
16265 | } | |
c32bde28 | 16266 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16267 | PyObject *resultobj; |
16268 | int arg1 ; | |
16269 | int arg2 ; | |
ae8162c8 | 16270 | int arg3 = (int) true ; |
d14a1e28 RD |
16271 | int arg4 = (int) 1 ; |
16272 | wxImageList *result; | |
994141e6 RD |
16273 | PyObject * obj0 = 0 ; |
16274 | PyObject * obj1 = 0 ; | |
16275 | PyObject * obj2 = 0 ; | |
16276 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16277 | char *kwnames[] = { |
16278 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16279 | }; | |
16280 | ||
994141e6 | 16281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 16282 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 16283 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 16284 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16285 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16286 | if (obj2) { |
c32bde28 | 16287 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 16288 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16289 | } |
16290 | if (obj3) { | |
c32bde28 | 16291 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 16292 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16293 | } |
d14a1e28 | 16294 | { |
e3b71cb8 | 16295 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16297 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16298 | ||
16299 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16300 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16301 | } |
16302 | { | |
412d302d | 16303 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
16304 | } |
16305 | return resultobj; | |
16306 | fail: | |
16307 | return NULL; | |
16308 | } | |
16309 | ||
16310 | ||
c32bde28 | 16311 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16312 | PyObject *resultobj; |
16313 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16314 | PyObject * obj0 = 0 ; | |
16315 | char *kwnames[] = { | |
16316 | (char *) "self", NULL | |
16317 | }; | |
16318 | ||
16319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16322 | { |
16323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16324 | delete arg1; | |
16325 | ||
16326 | wxPyEndAllowThreads(__tstate); | |
16327 | if (PyErr_Occurred()) SWIG_fail; | |
16328 | } | |
16329 | Py_INCREF(Py_None); resultobj = Py_None; | |
16330 | return resultobj; | |
16331 | fail: | |
16332 | return NULL; | |
16333 | } | |
16334 | ||
16335 | ||
c32bde28 | 16336 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16337 | PyObject *resultobj; |
16338 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16339 | wxBitmap *arg2 = 0 ; | |
16340 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16341 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16342 | int result; | |
16343 | PyObject * obj0 = 0 ; | |
16344 | PyObject * obj1 = 0 ; | |
16345 | PyObject * obj2 = 0 ; | |
16346 | char *kwnames[] = { | |
16347 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16348 | }; | |
16349 | ||
16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16355 | SWIG_fail; | |
d14a1e28 | 16356 | if (arg2 == NULL) { |
15afbcd0 RD |
16357 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16358 | SWIG_fail; | |
d14a1e28 RD |
16359 | } |
16360 | if (obj2) { | |
15afbcd0 RD |
16361 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
16362 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16363 | SWIG_fail; | |
d14a1e28 | 16364 | if (arg3 == NULL) { |
15afbcd0 RD |
16365 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16366 | SWIG_fail; | |
d14a1e28 RD |
16367 | } |
16368 | } | |
16369 | { | |
16370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16371 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16372 | ||
16373 | wxPyEndAllowThreads(__tstate); | |
16374 | if (PyErr_Occurred()) SWIG_fail; | |
16375 | } | |
c32bde28 | 16376 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16377 | return resultobj; |
16378 | fail: | |
16379 | return NULL; | |
16380 | } | |
16381 | ||
16382 | ||
c32bde28 | 16383 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16384 | PyObject *resultobj; |
16385 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16386 | wxBitmap *arg2 = 0 ; | |
16387 | wxColour *arg3 = 0 ; | |
16388 | int result; | |
16389 | wxColour temp3 ; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | PyObject * obj1 = 0 ; | |
16392 | PyObject * obj2 = 0 ; | |
16393 | char *kwnames[] = { | |
16394 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16395 | }; | |
16396 | ||
16397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16402 | SWIG_fail; | |
d14a1e28 | 16403 | if (arg2 == NULL) { |
15afbcd0 RD |
16404 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16405 | SWIG_fail; | |
d14a1e28 RD |
16406 | } |
16407 | { | |
16408 | arg3 = &temp3; | |
16409 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16413 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16414 | ||
16415 | wxPyEndAllowThreads(__tstate); | |
16416 | if (PyErr_Occurred()) SWIG_fail; | |
16417 | } | |
c32bde28 | 16418 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16419 | return resultobj; |
16420 | fail: | |
16421 | return NULL; | |
16422 | } | |
16423 | ||
16424 | ||
c32bde28 | 16425 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16426 | PyObject *resultobj; |
16427 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16428 | wxIcon *arg2 = 0 ; | |
16429 | int result; | |
16430 | PyObject * obj0 = 0 ; | |
16431 | PyObject * obj1 = 0 ; | |
16432 | char *kwnames[] = { | |
16433 | (char *) "self",(char *) "icon", NULL | |
16434 | }; | |
16435 | ||
16436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16441 | SWIG_fail; | |
d14a1e28 | 16442 | if (arg2 == NULL) { |
15afbcd0 RD |
16443 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16444 | SWIG_fail; | |
d14a1e28 RD |
16445 | } |
16446 | { | |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
c32bde28 | 16453 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16454 | return resultobj; |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
c32bde28 | 16460 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16461 | PyObject *resultobj; |
16462 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16463 | int arg2 ; | |
16464 | wxBitmap *arg3 = 0 ; | |
16465 | bool result; | |
16466 | PyObject * obj0 = 0 ; | |
994141e6 | 16467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16468 | PyObject * obj2 = 0 ; |
16469 | char *kwnames[] = { | |
16470 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16471 | }; | |
16472 | ||
994141e6 | 16473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16476 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
16477 | if (PyErr_Occurred()) SWIG_fail; |
16478 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16479 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16480 | SWIG_fail; | |
d14a1e28 | 16481 | if (arg3 == NULL) { |
15afbcd0 RD |
16482 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16483 | SWIG_fail; | |
d14a1e28 RD |
16484 | } |
16485 | { | |
16486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16487 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16488 | ||
16489 | wxPyEndAllowThreads(__tstate); | |
16490 | if (PyErr_Occurred()) SWIG_fail; | |
16491 | } | |
4f89f6a3 RD |
16492 | { |
16493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16494 | } | |
d14a1e28 RD |
16495 | return resultobj; |
16496 | fail: | |
16497 | return NULL; | |
16498 | } | |
16499 | ||
16500 | ||
c32bde28 | 16501 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16502 | PyObject *resultobj; |
16503 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16504 | int arg2 ; | |
16505 | wxDC *arg3 = 0 ; | |
16506 | int arg4 ; | |
16507 | int arg5 ; | |
16508 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
ae8162c8 | 16509 | bool arg7 = (bool) (bool)false ; |
d14a1e28 RD |
16510 | bool result; |
16511 | PyObject * obj0 = 0 ; | |
994141e6 | 16512 | PyObject * obj1 = 0 ; |
d14a1e28 | 16513 | PyObject * obj2 = 0 ; |
994141e6 RD |
16514 | PyObject * obj3 = 0 ; |
16515 | PyObject * obj4 = 0 ; | |
16516 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
16517 | PyObject * obj6 = 0 ; |
16518 | char *kwnames[] = { | |
16519 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16520 | }; | |
16521 | ||
994141e6 | 16522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
16523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16525 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
16526 | if (PyErr_Occurred()) SWIG_fail; |
16527 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16529 | SWIG_fail; | |
d14a1e28 | 16530 | if (arg3 == NULL) { |
15afbcd0 RD |
16531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16532 | SWIG_fail; | |
994141e6 | 16533 | } |
c32bde28 | 16534 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 16535 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 16536 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 16537 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16538 | if (obj5) { |
c32bde28 | 16539 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 16540 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16541 | } |
d14a1e28 | 16542 | if (obj6) { |
c32bde28 | 16543 | arg7 = (bool)SWIG_As_bool(obj6); |
15afbcd0 | 16544 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16545 | } |
16546 | { | |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16548 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16549 | ||
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
4f89f6a3 RD |
16553 | { |
16554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16555 | } | |
d14a1e28 RD |
16556 | return resultobj; |
16557 | fail: | |
16558 | return NULL; | |
16559 | } | |
16560 | ||
16561 | ||
c32bde28 | 16562 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16563 | PyObject *resultobj; |
16564 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16565 | int result; | |
16566 | PyObject * obj0 = 0 ; | |
16567 | char *kwnames[] = { | |
16568 | (char *) "self", NULL | |
16569 | }; | |
16570 | ||
16571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16574 | { |
16575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16576 | result = (int)(arg1)->GetImageCount(); | |
16577 | ||
16578 | wxPyEndAllowThreads(__tstate); | |
16579 | if (PyErr_Occurred()) SWIG_fail; | |
16580 | } | |
c32bde28 | 16581 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16582 | return resultobj; |
16583 | fail: | |
16584 | return NULL; | |
16585 | } | |
16586 | ||
16587 | ||
c32bde28 | 16588 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16589 | PyObject *resultobj; |
16590 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16591 | int arg2 ; | |
16592 | bool result; | |
16593 | PyObject * obj0 = 0 ; | |
994141e6 | 16594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16595 | char *kwnames[] = { |
16596 | (char *) "self",(char *) "index", NULL | |
16597 | }; | |
16598 | ||
994141e6 | 16599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16602 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16603 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16604 | { |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | result = (bool)(arg1)->Remove(arg2); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
4f89f6a3 RD |
16611 | { |
16612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16613 | } | |
d14a1e28 RD |
16614 | return resultobj; |
16615 | fail: | |
16616 | return NULL; | |
16617 | } | |
16618 | ||
16619 | ||
c32bde28 | 16620 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16621 | PyObject *resultobj; |
16622 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16623 | bool result; | |
16624 | PyObject * obj0 = 0 ; | |
16625 | char *kwnames[] = { | |
16626 | (char *) "self", NULL | |
16627 | }; | |
16628 | ||
16629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16632 | { |
16633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16634 | result = (bool)(arg1)->RemoveAll(); | |
16635 | ||
16636 | wxPyEndAllowThreads(__tstate); | |
16637 | if (PyErr_Occurred()) SWIG_fail; | |
16638 | } | |
4f89f6a3 RD |
16639 | { |
16640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16641 | } | |
d14a1e28 RD |
16642 | return resultobj; |
16643 | fail: | |
16644 | return NULL; | |
16645 | } | |
16646 | ||
16647 | ||
c32bde28 | 16648 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16649 | PyObject *resultobj; |
16650 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16651 | int arg2 ; | |
16652 | int *arg3 = 0 ; | |
16653 | int *arg4 = 0 ; | |
16654 | int temp3 ; | |
c32bde28 | 16655 | int res3 = 0 ; |
d14a1e28 | 16656 | int temp4 ; |
c32bde28 | 16657 | int res4 = 0 ; |
d14a1e28 | 16658 | PyObject * obj0 = 0 ; |
994141e6 | 16659 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16660 | char *kwnames[] = { |
16661 | (char *) "self",(char *) "index", NULL | |
16662 | }; | |
16663 | ||
c32bde28 RD |
16664 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
16665 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16669 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16670 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16671 | { |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16673 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16674 | ||
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16679 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
16680 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
16681 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
16682 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16683 | return resultobj; |
16684 | fail: | |
16685 | return NULL; | |
16686 | } | |
16687 | ||
16688 | ||
c32bde28 | 16689 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16690 | PyObject *obj; |
16691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16692 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16693 | Py_INCREF(obj); | |
16694 | return Py_BuildValue((char *)""); | |
16695 | } | |
c32bde28 | 16696 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
994141e6 RD |
16697 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
16698 | return 1; | |
d14a1e28 RD |
16699 | } |
16700 | ||
16701 | ||
994141e6 RD |
16702 | static PyObject *_wrap_NORMAL_FONT_get() { |
16703 | PyObject *pyobj; | |
d14a1e28 | 16704 | |
15afbcd0 | 16705 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16706 | return pyobj; |
d14a1e28 RD |
16707 | } |
16708 | ||
16709 | ||
c32bde28 | 16710 | static int _wrap_SMALL_FONT_set(PyObject *) { |
994141e6 RD |
16711 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
16712 | return 1; | |
d14a1e28 RD |
16713 | } |
16714 | ||
16715 | ||
994141e6 RD |
16716 | static PyObject *_wrap_SMALL_FONT_get() { |
16717 | PyObject *pyobj; | |
d14a1e28 | 16718 | |
15afbcd0 | 16719 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16720 | return pyobj; |
d14a1e28 RD |
16721 | } |
16722 | ||
16723 | ||
c32bde28 | 16724 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
994141e6 RD |
16725 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
16726 | return 1; | |
d14a1e28 | 16727 | } |
994141e6 RD |
16728 | |
16729 | ||
16730 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16731 | PyObject *pyobj; | |
d14a1e28 | 16732 | |
15afbcd0 | 16733 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16734 | return pyobj; |
d14a1e28 RD |
16735 | } |
16736 | ||
16737 | ||
c32bde28 | 16738 | static int _wrap_SWISS_FONT_set(PyObject *) { |
994141e6 RD |
16739 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
16740 | return 1; | |
d14a1e28 RD |
16741 | } |
16742 | ||
16743 | ||
994141e6 RD |
16744 | static PyObject *_wrap_SWISS_FONT_get() { |
16745 | PyObject *pyobj; | |
d14a1e28 | 16746 | |
15afbcd0 | 16747 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16748 | return pyobj; |
d14a1e28 RD |
16749 | } |
16750 | ||
16751 | ||
c32bde28 | 16752 | static int _wrap_RED_PEN_set(PyObject *) { |
994141e6 RD |
16753 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
16754 | return 1; | |
16755 | } | |
16756 | ||
16757 | ||
16758 | static PyObject *_wrap_RED_PEN_get() { | |
16759 | PyObject *pyobj; | |
d14a1e28 | 16760 | |
15afbcd0 | 16761 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16762 | return pyobj; |
d14a1e28 RD |
16763 | } |
16764 | ||
16765 | ||
c32bde28 | 16766 | static int _wrap_CYAN_PEN_set(PyObject *) { |
994141e6 RD |
16767 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
16768 | return 1; | |
d14a1e28 | 16769 | } |
994141e6 RD |
16770 | |
16771 | ||
16772 | static PyObject *_wrap_CYAN_PEN_get() { | |
16773 | PyObject *pyobj; | |
d14a1e28 | 16774 | |
15afbcd0 | 16775 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16776 | return pyobj; |
d14a1e28 RD |
16777 | } |
16778 | ||
16779 | ||
c32bde28 | 16780 | static int _wrap_GREEN_PEN_set(PyObject *) { |
994141e6 RD |
16781 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
16782 | return 1; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_GREEN_PEN_get() { | |
16787 | PyObject *pyobj; | |
d14a1e28 | 16788 | |
15afbcd0 | 16789 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16790 | return pyobj; |
d14a1e28 RD |
16791 | } |
16792 | ||
16793 | ||
c32bde28 | 16794 | static int _wrap_BLACK_PEN_set(PyObject *) { |
994141e6 RD |
16795 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
16796 | return 1; | |
16797 | } | |
16798 | ||
16799 | ||
16800 | static PyObject *_wrap_BLACK_PEN_get() { | |
16801 | PyObject *pyobj; | |
d14a1e28 | 16802 | |
15afbcd0 | 16803 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16804 | return pyobj; |
d14a1e28 RD |
16805 | } |
16806 | ||
16807 | ||
c32bde28 | 16808 | static int _wrap_WHITE_PEN_set(PyObject *) { |
994141e6 RD |
16809 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
16810 | return 1; | |
d14a1e28 RD |
16811 | } |
16812 | ||
16813 | ||
994141e6 RD |
16814 | static PyObject *_wrap_WHITE_PEN_get() { |
16815 | PyObject *pyobj; | |
d14a1e28 | 16816 | |
15afbcd0 | 16817 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16818 | return pyobj; |
d14a1e28 RD |
16819 | } |
16820 | ||
16821 | ||
c32bde28 | 16822 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
994141e6 RD |
16823 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
16824 | return 1; | |
d14a1e28 RD |
16825 | } |
16826 | ||
16827 | ||
994141e6 RD |
16828 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16829 | PyObject *pyobj; | |
d14a1e28 | 16830 | |
15afbcd0 | 16831 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16832 | return pyobj; |
d14a1e28 RD |
16833 | } |
16834 | ||
16835 | ||
c32bde28 | 16836 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
994141e6 RD |
16837 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
16838 | return 1; | |
d14a1e28 RD |
16839 | } |
16840 | ||
16841 | ||
994141e6 RD |
16842 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16843 | PyObject *pyobj; | |
d14a1e28 | 16844 | |
15afbcd0 | 16845 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16846 | return pyobj; |
d14a1e28 RD |
16847 | } |
16848 | ||
16849 | ||
c32bde28 | 16850 | static int _wrap_GREY_PEN_set(PyObject *) { |
994141e6 RD |
16851 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
16852 | return 1; | |
d14a1e28 RD |
16853 | } |
16854 | ||
16855 | ||
994141e6 RD |
16856 | static PyObject *_wrap_GREY_PEN_get() { |
16857 | PyObject *pyobj; | |
16858 | ||
15afbcd0 | 16859 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16860 | return pyobj; |
d14a1e28 | 16861 | } |
994141e6 RD |
16862 | |
16863 | ||
c32bde28 | 16864 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
994141e6 | 16865 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
d14a1e28 RD |
16866 | return 1; |
16867 | } | |
16868 | ||
16869 | ||
994141e6 | 16870 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16871 | PyObject *pyobj; |
16872 | ||
15afbcd0 | 16873 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16874 | return pyobj; |
16875 | } | |
16876 | ||
16877 | ||
c32bde28 | 16878 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
994141e6 | 16879 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
d14a1e28 RD |
16880 | return 1; |
16881 | } | |
16882 | ||
16883 | ||
994141e6 | 16884 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16885 | PyObject *pyobj; |
16886 | ||
15afbcd0 | 16887 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16888 | return pyobj; |
16889 | } | |
16890 | ||
16891 | ||
c32bde28 | 16892 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
994141e6 | 16893 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
d14a1e28 RD |
16894 | return 1; |
16895 | } | |
16896 | ||
16897 | ||
994141e6 | 16898 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16899 | PyObject *pyobj; |
16900 | ||
15afbcd0 | 16901 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16902 | return pyobj; |
16903 | } | |
16904 | ||
16905 | ||
c32bde28 | 16906 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
994141e6 | 16907 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
d14a1e28 RD |
16908 | return 1; |
16909 | } | |
16910 | ||
16911 | ||
994141e6 | 16912 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16913 | PyObject *pyobj; |
16914 | ||
15afbcd0 | 16915 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16916 | return pyobj; |
16917 | } | |
16918 | ||
16919 | ||
c32bde28 | 16920 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
994141e6 | 16921 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
d14a1e28 RD |
16922 | return 1; |
16923 | } | |
16924 | ||
16925 | ||
994141e6 | 16926 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16927 | PyObject *pyobj; |
16928 | ||
15afbcd0 | 16929 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16930 | return pyobj; |
16931 | } | |
16932 | ||
16933 | ||
c32bde28 | 16934 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
994141e6 | 16935 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
d14a1e28 RD |
16936 | return 1; |
16937 | } | |
16938 | ||
16939 | ||
994141e6 | 16940 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16941 | PyObject *pyobj; |
16942 | ||
15afbcd0 | 16943 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16944 | return pyobj; |
16945 | } | |
16946 | ||
16947 | ||
c32bde28 | 16948 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
994141e6 | 16949 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
d14a1e28 RD |
16950 | return 1; |
16951 | } | |
16952 | ||
16953 | ||
994141e6 | 16954 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16955 | PyObject *pyobj; |
16956 | ||
15afbcd0 | 16957 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16958 | return pyobj; |
16959 | } | |
16960 | ||
16961 | ||
c32bde28 | 16962 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
994141e6 | 16963 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
d14a1e28 RD |
16964 | return 1; |
16965 | } | |
16966 | ||
16967 | ||
994141e6 | 16968 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16969 | PyObject *pyobj; |
16970 | ||
15afbcd0 | 16971 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16972 | return pyobj; |
16973 | } | |
16974 | ||
16975 | ||
c32bde28 | 16976 | static int _wrap_RED_BRUSH_set(PyObject *) { |
994141e6 | 16977 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
d14a1e28 RD |
16978 | return 1; |
16979 | } | |
16980 | ||
16981 | ||
994141e6 | 16982 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16983 | PyObject *pyobj; |
16984 | ||
15afbcd0 | 16985 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16986 | return pyobj; |
16987 | } | |
16988 | ||
16989 | ||
c32bde28 | 16990 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
994141e6 | 16991 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
d14a1e28 RD |
16992 | return 1; |
16993 | } | |
16994 | ||
16995 | ||
994141e6 | 16996 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16997 | PyObject *pyobj; |
16998 | ||
15afbcd0 | 16999 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17000 | return pyobj; |
17001 | } | |
17002 | ||
17003 | ||
c32bde28 | 17004 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
994141e6 | 17005 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17006 | return 1; |
17007 | } | |
17008 | ||
17009 | ||
994141e6 | 17010 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
17011 | PyObject *pyobj; |
17012 | ||
15afbcd0 | 17013 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17014 | return pyobj; |
17015 | } | |
17016 | ||
17017 | ||
c32bde28 | 17018 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
994141e6 | 17019 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17020 | return 1; |
17021 | } | |
17022 | ||
17023 | ||
994141e6 | 17024 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
17025 | PyObject *pyobj; |
17026 | ||
15afbcd0 | 17027 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17028 | return pyobj; |
17029 | } | |
17030 | ||
17031 | ||
c32bde28 | 17032 | static int _wrap_BLACK_set(PyObject *) { |
994141e6 | 17033 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
d14a1e28 RD |
17034 | return 1; |
17035 | } | |
17036 | ||
17037 | ||
994141e6 | 17038 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
17039 | PyObject *pyobj; |
17040 | ||
15afbcd0 | 17041 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17042 | return pyobj; |
17043 | } | |
17044 | ||
17045 | ||
c32bde28 | 17046 | static int _wrap_WHITE_set(PyObject *) { |
994141e6 | 17047 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
d14a1e28 RD |
17048 | return 1; |
17049 | } | |
17050 | ||
17051 | ||
994141e6 | 17052 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
17053 | PyObject *pyobj; |
17054 | ||
15afbcd0 | 17055 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17056 | return pyobj; |
17057 | } | |
17058 | ||
17059 | ||
c32bde28 | 17060 | static int _wrap_RED_set(PyObject *) { |
994141e6 | 17061 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
d14a1e28 RD |
17062 | return 1; |
17063 | } | |
17064 | ||
17065 | ||
994141e6 | 17066 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
17067 | PyObject *pyobj; |
17068 | ||
15afbcd0 | 17069 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17070 | return pyobj; |
17071 | } | |
17072 | ||
17073 | ||
c32bde28 | 17074 | static int _wrap_BLUE_set(PyObject *) { |
994141e6 | 17075 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
d14a1e28 RD |
17076 | return 1; |
17077 | } | |
17078 | ||
17079 | ||
994141e6 | 17080 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
17081 | PyObject *pyobj; |
17082 | ||
15afbcd0 | 17083 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17084 | return pyobj; |
17085 | } | |
17086 | ||
17087 | ||
c32bde28 | 17088 | static int _wrap_GREEN_set(PyObject *) { |
994141e6 | 17089 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
d14a1e28 RD |
17090 | return 1; |
17091 | } | |
17092 | ||
17093 | ||
994141e6 | 17094 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
17095 | PyObject *pyobj; |
17096 | ||
15afbcd0 | 17097 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17098 | return pyobj; |
17099 | } | |
17100 | ||
17101 | ||
c32bde28 | 17102 | static int _wrap_CYAN_set(PyObject *) { |
994141e6 | 17103 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
d14a1e28 RD |
17104 | return 1; |
17105 | } | |
17106 | ||
17107 | ||
994141e6 | 17108 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
17109 | PyObject *pyobj; |
17110 | ||
15afbcd0 | 17111 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17112 | return pyobj; |
17113 | } | |
17114 | ||
17115 | ||
c32bde28 | 17116 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
994141e6 | 17117 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
d14a1e28 RD |
17118 | return 1; |
17119 | } | |
17120 | ||
17121 | ||
994141e6 | 17122 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
17123 | PyObject *pyobj; |
17124 | ||
15afbcd0 | 17125 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17126 | return pyobj; |
17127 | } | |
17128 | ||
17129 | ||
c32bde28 | 17130 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
994141e6 | 17131 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
d14a1e28 RD |
17132 | return 1; |
17133 | } | |
17134 | ||
17135 | ||
994141e6 | 17136 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
17137 | PyObject *pyobj; |
17138 | ||
15afbcd0 | 17139 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17140 | return pyobj; |
17141 | } | |
17142 | ||
17143 | ||
c32bde28 | 17144 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
994141e6 | 17145 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
d14a1e28 RD |
17146 | return 1; |
17147 | } | |
17148 | ||
17149 | ||
994141e6 | 17150 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
17151 | PyObject *pyobj; |
17152 | ||
15afbcd0 | 17153 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17154 | return pyobj; |
17155 | } | |
17156 | ||
17157 | ||
c32bde28 | 17158 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
994141e6 | 17159 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
d14a1e28 RD |
17160 | return 1; |
17161 | } | |
17162 | ||
17163 | ||
994141e6 | 17164 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
17165 | PyObject *pyobj; |
17166 | ||
15afbcd0 | 17167 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17168 | return pyobj; |
17169 | } | |
17170 | ||
17171 | ||
c32bde28 | 17172 | static int _wrap_NullBitmap_set(PyObject *) { |
994141e6 | 17173 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
d14a1e28 RD |
17174 | return 1; |
17175 | } | |
17176 | ||
17177 | ||
994141e6 | 17178 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
17179 | PyObject *pyobj; |
17180 | ||
15afbcd0 | 17181 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
17182 | return pyobj; |
17183 | } | |
17184 | ||
17185 | ||
c32bde28 | 17186 | static int _wrap_NullIcon_set(PyObject *) { |
994141e6 | 17187 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
d14a1e28 RD |
17188 | return 1; |
17189 | } | |
17190 | ||
17191 | ||
994141e6 | 17192 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
17193 | PyObject *pyobj; |
17194 | ||
15afbcd0 | 17195 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
17196 | return pyobj; |
17197 | } | |
17198 | ||
17199 | ||
c32bde28 | 17200 | static int _wrap_NullCursor_set(PyObject *) { |
994141e6 | 17201 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
d14a1e28 RD |
17202 | return 1; |
17203 | } | |
17204 | ||
17205 | ||
994141e6 | 17206 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
17207 | PyObject *pyobj; |
17208 | ||
15afbcd0 | 17209 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17210 | return pyobj; |
17211 | } | |
17212 | ||
17213 | ||
c32bde28 | 17214 | static int _wrap_NullPen_set(PyObject *) { |
994141e6 | 17215 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
d14a1e28 RD |
17216 | return 1; |
17217 | } | |
17218 | ||
17219 | ||
994141e6 | 17220 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
17221 | PyObject *pyobj; |
17222 | ||
15afbcd0 | 17223 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
17224 | return pyobj; |
17225 | } | |
17226 | ||
17227 | ||
c32bde28 | 17228 | static int _wrap_NullBrush_set(PyObject *) { |
994141e6 | 17229 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
d14a1e28 RD |
17230 | return 1; |
17231 | } | |
17232 | ||
17233 | ||
994141e6 | 17234 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
17235 | PyObject *pyobj; |
17236 | ||
15afbcd0 | 17237 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17238 | return pyobj; |
17239 | } | |
17240 | ||
17241 | ||
c32bde28 | 17242 | static int _wrap_NullPalette_set(PyObject *) { |
994141e6 | 17243 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
d14a1e28 RD |
17244 | return 1; |
17245 | } | |
17246 | ||
17247 | ||
994141e6 | 17248 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
17249 | PyObject *pyobj; |
17250 | ||
15afbcd0 | 17251 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
17252 | return pyobj; |
17253 | } | |
17254 | ||
17255 | ||
c32bde28 | 17256 | static int _wrap_NullFont_set(PyObject *) { |
994141e6 | 17257 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
d14a1e28 RD |
17258 | return 1; |
17259 | } | |
17260 | ||
17261 | ||
994141e6 | 17262 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
17263 | PyObject *pyobj; |
17264 | ||
15afbcd0 | 17265 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
17266 | return pyobj; |
17267 | } | |
17268 | ||
17269 | ||
c32bde28 | 17270 | static int _wrap_NullColour_set(PyObject *) { |
994141e6 | 17271 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
d14a1e28 RD |
17272 | return 1; |
17273 | } | |
17274 | ||
17275 | ||
994141e6 | 17276 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
17277 | PyObject *pyobj; |
17278 | ||
15afbcd0 | 17279 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17280 | return pyobj; |
17281 | } | |
17282 | ||
17283 | ||
c32bde28 | 17284 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17285 | PyObject *resultobj; |
17286 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17287 | wxPen *arg2 = (wxPen *) 0 ; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | PyObject * obj1 = 0 ; | |
17290 | char *kwnames[] = { | |
17291 | (char *) "self",(char *) "pen", NULL | |
17292 | }; | |
17293 | ||
17294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17299 | { |
17300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17301 | (arg1)->AddPen(arg2); | |
17302 | ||
17303 | wxPyEndAllowThreads(__tstate); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
17306 | Py_INCREF(Py_None); resultobj = Py_None; | |
17307 | return resultobj; | |
17308 | fail: | |
17309 | return NULL; | |
d14a1e28 RD |
17310 | } |
17311 | ||
17312 | ||
c32bde28 | 17313 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17314 | PyObject *resultobj; |
17315 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17316 | wxColour *arg2 = 0 ; | |
17317 | int arg3 ; | |
17318 | int arg4 ; | |
17319 | wxPen *result; | |
17320 | wxColour temp2 ; | |
17321 | PyObject * obj0 = 0 ; | |
17322 | PyObject * obj1 = 0 ; | |
17323 | PyObject * obj2 = 0 ; | |
17324 | PyObject * obj3 = 0 ; | |
17325 | char *kwnames[] = { | |
17326 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17327 | }; | |
d14a1e28 | 17328 | |
994141e6 | 17329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17332 | { |
17333 | arg2 = &temp2; | |
17334 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17335 | } | |
c32bde28 | 17336 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17337 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17338 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17339 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17340 | { |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
15afbcd0 | 17347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
17348 | return resultobj; |
17349 | fail: | |
17350 | return NULL; | |
d14a1e28 RD |
17351 | } |
17352 | ||
17353 | ||
c32bde28 | 17354 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17355 | PyObject *resultobj; |
17356 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17357 | wxPen *arg2 = (wxPen *) 0 ; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | PyObject * obj1 = 0 ; | |
17360 | char *kwnames[] = { | |
17361 | (char *) "self",(char *) "pen", NULL | |
17362 | }; | |
17363 | ||
17364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17369 | { |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | (arg1)->RemovePen(arg2); | |
17372 | ||
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
17376 | Py_INCREF(Py_None); resultobj = Py_None; | |
17377 | return resultobj; | |
17378 | fail: | |
17379 | return NULL; | |
d14a1e28 RD |
17380 | } |
17381 | ||
17382 | ||
c32bde28 | 17383 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17384 | PyObject *resultobj; |
17385 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17386 | int result; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | char *kwnames[] = { | |
17389 | (char *) "self", NULL | |
17390 | }; | |
d14a1e28 | 17391 | |
994141e6 | 17392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17395 | { |
17396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17397 | result = (int)(arg1)->GetCount(); | |
17398 | ||
17399 | wxPyEndAllowThreads(__tstate); | |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
17401 | } | |
c32bde28 | 17402 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17403 | return resultobj; |
17404 | fail: | |
17405 | return NULL; | |
d14a1e28 RD |
17406 | } |
17407 | ||
17408 | ||
c32bde28 | 17409 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17410 | PyObject *obj; |
17411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17412 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17413 | Py_INCREF(obj); | |
17414 | return Py_BuildValue((char *)""); | |
17415 | } | |
c32bde28 | 17416 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17417 | PyObject *resultobj; |
17418 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17419 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17420 | PyObject * obj0 = 0 ; | |
17421 | PyObject * obj1 = 0 ; | |
17422 | char *kwnames[] = { | |
17423 | (char *) "self",(char *) "brush", NULL | |
17424 | }; | |
17425 | ||
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17431 | { |
17432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17433 | (arg1)->AddBrush(arg2); | |
17434 | ||
17435 | wxPyEndAllowThreads(__tstate); | |
17436 | if (PyErr_Occurred()) SWIG_fail; | |
17437 | } | |
17438 | Py_INCREF(Py_None); resultobj = Py_None; | |
17439 | return resultobj; | |
17440 | fail: | |
17441 | return NULL; | |
17442 | } | |
17443 | ||
17444 | ||
c32bde28 | 17445 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17446 | PyObject *resultobj; |
17447 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17448 | wxColour *arg2 = 0 ; | |
17449 | int arg3 ; | |
17450 | wxBrush *result; | |
17451 | wxColour temp2 ; | |
17452 | PyObject * obj0 = 0 ; | |
17453 | PyObject * obj1 = 0 ; | |
17454 | PyObject * obj2 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17457 | }; | |
17458 | ||
17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17462 | { |
17463 | arg2 = &temp2; | |
17464 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17465 | } | |
c32bde28 | 17466 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17467 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17468 | { |
17469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17470 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17471 | ||
17472 | wxPyEndAllowThreads(__tstate); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
15afbcd0 | 17475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
17476 | return resultobj; |
17477 | fail: | |
17478 | return NULL; | |
d14a1e28 RD |
17479 | } |
17480 | ||
17481 | ||
c32bde28 | 17482 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17483 | PyObject *resultobj; |
17484 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17485 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17486 | PyObject * obj0 = 0 ; | |
17487 | PyObject * obj1 = 0 ; | |
17488 | char *kwnames[] = { | |
17489 | (char *) "self",(char *) "brush", NULL | |
17490 | }; | |
d14a1e28 | 17491 | |
994141e6 | 17492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17497 | { |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | (arg1)->RemoveBrush(arg2); | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | Py_INCREF(Py_None); resultobj = Py_None; | |
17505 | return resultobj; | |
17506 | fail: | |
17507 | return NULL; | |
d14a1e28 RD |
17508 | } |
17509 | ||
17510 | ||
c32bde28 | 17511 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17512 | PyObject *resultobj; |
17513 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17514 | int result; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "self", NULL | |
17518 | }; | |
d14a1e28 | 17519 | |
994141e6 | 17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = (int)(arg1)->GetCount(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
c32bde28 | 17530 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17531 | return resultobj; |
17532 | fail: | |
17533 | return NULL; | |
d14a1e28 RD |
17534 | } |
17535 | ||
17536 | ||
c32bde28 | 17537 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17538 | PyObject *obj; |
17539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17540 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17541 | Py_INCREF(obj); | |
17542 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17543 | } |
c32bde28 | 17544 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17545 | PyObject *resultobj; |
17546 | wxColourDatabase *result; | |
17547 | char *kwnames[] = { | |
17548 | NULL | |
17549 | }; | |
d14a1e28 | 17550 | |
994141e6 RD |
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
17552 | { | |
e3b71cb8 | 17553 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
17554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17555 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17556 | ||
17557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17558 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17559 | } |
15afbcd0 | 17560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
17561 | return resultobj; |
17562 | fail: | |
17563 | return NULL; | |
d14a1e28 RD |
17564 | } |
17565 | ||
17566 | ||
c32bde28 | 17567 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17568 | PyObject *resultobj; |
17569 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17570 | PyObject * obj0 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self", NULL | |
17573 | }; | |
d14a1e28 | 17574 | |
994141e6 | 17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17578 | { |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | delete arg1; | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | Py_INCREF(Py_None); resultobj = Py_None; | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
d14a1e28 RD |
17589 | } |
17590 | ||
17591 | ||
c32bde28 | 17592 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17593 | PyObject *resultobj; |
17594 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17595 | wxString *arg2 = 0 ; | |
17596 | wxColour result; | |
ae8162c8 | 17597 | bool temp2 = false ; |
994141e6 RD |
17598 | PyObject * obj0 = 0 ; |
17599 | PyObject * obj1 = 0 ; | |
17600 | char *kwnames[] = { | |
17601 | (char *) "self",(char *) "name", NULL | |
17602 | }; | |
17603 | ||
17604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17607 | { |
17608 | arg2 = wxString_in_helper(obj1); | |
17609 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17610 | temp2 = true; |
994141e6 RD |
17611 | } |
17612 | { | |
17613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17614 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17615 | ||
17616 | wxPyEndAllowThreads(__tstate); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | } | |
17619 | { | |
17620 | wxColour * resultptr; | |
17621 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
17623 | } |
17624 | { | |
17625 | if (temp2) | |
17626 | delete arg2; | |
17627 | } | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | { | |
17631 | if (temp2) | |
17632 | delete arg2; | |
17633 | } | |
17634 | return NULL; | |
d14a1e28 RD |
17635 | } |
17636 | ||
17637 | ||
c32bde28 | 17638 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17639 | PyObject *resultobj; |
17640 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17641 | wxColour *arg2 = 0 ; | |
17642 | wxString result; | |
17643 | wxColour temp2 ; | |
17644 | PyObject * obj0 = 0 ; | |
17645 | PyObject * obj1 = 0 ; | |
17646 | char *kwnames[] = { | |
17647 | (char *) "self",(char *) "colour", NULL | |
17648 | }; | |
d14a1e28 | 17649 | |
994141e6 | 17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17653 | { |
17654 | arg2 = &temp2; | |
17655 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | { | |
17665 | #if wxUSE_UNICODE | |
17666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17667 | #else | |
17668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17669 | #endif | |
17670 | } | |
17671 | return resultobj; | |
17672 | fail: | |
17673 | return NULL; | |
d14a1e28 RD |
17674 | } |
17675 | ||
17676 | ||
c32bde28 | 17677 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17678 | PyObject *resultobj; |
17679 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17680 | wxString *arg2 = 0 ; | |
17681 | wxColour *arg3 = 0 ; | |
ae8162c8 | 17682 | bool temp2 = false ; |
994141e6 RD |
17683 | wxColour temp3 ; |
17684 | PyObject * obj0 = 0 ; | |
17685 | PyObject * obj1 = 0 ; | |
17686 | PyObject * obj2 = 0 ; | |
17687 | char *kwnames[] = { | |
17688 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17689 | }; | |
17690 | ||
17691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17694 | { |
17695 | arg2 = wxString_in_helper(obj1); | |
17696 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17697 | temp2 = true; |
994141e6 RD |
17698 | } |
17699 | { | |
17700 | arg3 = &temp3; | |
17701 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17702 | } | |
17703 | { | |
17704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17705 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17706 | ||
17707 | wxPyEndAllowThreads(__tstate); | |
17708 | if (PyErr_Occurred()) SWIG_fail; | |
17709 | } | |
17710 | Py_INCREF(Py_None); resultobj = Py_None; | |
17711 | { | |
17712 | if (temp2) | |
17713 | delete arg2; | |
17714 | } | |
17715 | return resultobj; | |
17716 | fail: | |
17717 | { | |
17718 | if (temp2) | |
17719 | delete arg2; | |
17720 | } | |
17721 | return NULL; | |
d14a1e28 RD |
17722 | } |
17723 | ||
17724 | ||
c32bde28 | 17725 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17726 | PyObject *resultobj; |
17727 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17728 | wxString *arg2 = 0 ; | |
17729 | int arg3 ; | |
17730 | int arg4 ; | |
17731 | int arg5 ; | |
ae8162c8 | 17732 | bool temp2 = false ; |
994141e6 RD |
17733 | PyObject * obj0 = 0 ; |
17734 | PyObject * obj1 = 0 ; | |
17735 | PyObject * obj2 = 0 ; | |
17736 | PyObject * obj3 = 0 ; | |
17737 | PyObject * obj4 = 0 ; | |
17738 | char *kwnames[] = { | |
17739 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17740 | }; | |
d14a1e28 | 17741 | |
994141e6 | 17742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17745 | { |
17746 | arg2 = wxString_in_helper(obj1); | |
17747 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17748 | temp2 = true; |
994141e6 | 17749 | } |
c32bde28 | 17750 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17751 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17752 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17753 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17754 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 17755 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17756 | { |
17757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17758 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17759 | ||
17760 | wxPyEndAllowThreads(__tstate); | |
17761 | if (PyErr_Occurred()) SWIG_fail; | |
17762 | } | |
17763 | Py_INCREF(Py_None); resultobj = Py_None; | |
17764 | { | |
17765 | if (temp2) | |
17766 | delete arg2; | |
17767 | } | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | { | |
17771 | if (temp2) | |
17772 | delete arg2; | |
17773 | } | |
17774 | return NULL; | |
d14a1e28 RD |
17775 | } |
17776 | ||
17777 | ||
c32bde28 | 17778 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17779 | PyObject *obj; |
17780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17781 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17782 | Py_INCREF(obj); | |
17783 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17784 | } |
c32bde28 | 17785 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17786 | PyObject *resultobj; |
17787 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17788 | wxFont *arg2 = (wxFont *) 0 ; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "self",(char *) "font", NULL | |
17793 | }; | |
d14a1e28 | 17794 | |
994141e6 | 17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17800 | { |
17801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17802 | (arg1)->AddFont(arg2); | |
17803 | ||
17804 | wxPyEndAllowThreads(__tstate); | |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
17806 | } | |
17807 | Py_INCREF(Py_None); resultobj = Py_None; | |
17808 | return resultobj; | |
17809 | fail: | |
17810 | return NULL; | |
d14a1e28 RD |
17811 | } |
17812 | ||
17813 | ||
c32bde28 | 17814 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17815 | PyObject *resultobj; |
17816 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17817 | int arg2 ; | |
17818 | int arg3 ; | |
17819 | int arg4 ; | |
17820 | int arg5 ; | |
ae8162c8 | 17821 | bool arg6 = (bool) false ; |
994141e6 RD |
17822 | wxString const &arg7_defvalue = wxPyEmptyString ; |
17823 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17824 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17825 | wxFont *result; | |
ae8162c8 | 17826 | bool temp7 = false ; |
994141e6 RD |
17827 | PyObject * obj0 = 0 ; |
17828 | PyObject * obj1 = 0 ; | |
17829 | PyObject * obj2 = 0 ; | |
17830 | PyObject * obj3 = 0 ; | |
17831 | PyObject * obj4 = 0 ; | |
17832 | PyObject * obj5 = 0 ; | |
17833 | PyObject * obj6 = 0 ; | |
17834 | PyObject * obj7 = 0 ; | |
17835 | char *kwnames[] = { | |
17836 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17837 | }; | |
d14a1e28 | 17838 | |
994141e6 | 17839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17842 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17843 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17844 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17845 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17846 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 17847 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17848 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 17849 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17850 | if (obj5) { |
c32bde28 | 17851 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 17852 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17853 | } |
17854 | if (obj6) { | |
17855 | { | |
17856 | arg7 = wxString_in_helper(obj6); | |
17857 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17858 | temp7 = true; |
994141e6 RD |
17859 | } |
17860 | } | |
17861 | if (obj7) { | |
c32bde28 | 17862 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 17863 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17864 | } |
17865 | { | |
17866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17867 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17868 | ||
17869 | wxPyEndAllowThreads(__tstate); | |
17870 | if (PyErr_Occurred()) SWIG_fail; | |
17871 | } | |
15afbcd0 | 17872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
17873 | { |
17874 | if (temp7) | |
17875 | delete arg7; | |
17876 | } | |
17877 | return resultobj; | |
17878 | fail: | |
17879 | { | |
17880 | if (temp7) | |
17881 | delete arg7; | |
17882 | } | |
17883 | return NULL; | |
d14a1e28 RD |
17884 | } |
17885 | ||
17886 | ||
c32bde28 | 17887 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17888 | PyObject *resultobj; |
17889 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17890 | wxFont *arg2 = (wxFont *) 0 ; | |
17891 | PyObject * obj0 = 0 ; | |
17892 | PyObject * obj1 = 0 ; | |
17893 | char *kwnames[] = { | |
17894 | (char *) "self",(char *) "font", NULL | |
17895 | }; | |
d14a1e28 | 17896 | |
994141e6 | 17897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17900 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17902 | { |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | (arg1)->RemoveFont(arg2); | |
17905 | ||
17906 | wxPyEndAllowThreads(__tstate); | |
17907 | if (PyErr_Occurred()) SWIG_fail; | |
17908 | } | |
17909 | Py_INCREF(Py_None); resultobj = Py_None; | |
17910 | return resultobj; | |
17911 | fail: | |
17912 | return NULL; | |
d14a1e28 RD |
17913 | } |
17914 | ||
17915 | ||
c32bde28 | 17916 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
17917 | PyObject *resultobj; |
17918 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17919 | int result; | |
17920 | PyObject * obj0 = 0 ; | |
17921 | char *kwnames[] = { | |
17922 | (char *) "self", NULL | |
17923 | }; | |
d14a1e28 | 17924 | |
994141e6 | 17925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17928 | { |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17930 | result = (int)(arg1)->GetCount(); | |
17931 | ||
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
c32bde28 | 17935 | resultobj = SWIG_From_int((int)result); |
994141e6 RD |
17936 | return resultobj; |
17937 | fail: | |
17938 | return NULL; | |
d14a1e28 RD |
17939 | } |
17940 | ||
17941 | ||
c32bde28 | 17942 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
17943 | PyObject *obj; |
17944 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17945 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17946 | Py_INCREF(obj); | |
17947 | return Py_BuildValue((char *)""); | |
17948 | } | |
c32bde28 | 17949 | static int _wrap_TheFontList_set(PyObject *) { |
d14a1e28 RD |
17950 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
17951 | return 1; | |
17952 | } | |
17953 | ||
17954 | ||
17955 | static PyObject *_wrap_TheFontList_get() { | |
17956 | PyObject *pyobj; | |
17957 | ||
15afbcd0 | 17958 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
17959 | return pyobj; |
17960 | } | |
17961 | ||
17962 | ||
c32bde28 | 17963 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
17964 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
17965 | return 1; | |
17966 | } | |
17967 | ||
17968 | ||
17969 | static PyObject *_wrap_ThePenList_get() { | |
17970 | PyObject *pyobj; | |
17971 | ||
15afbcd0 | 17972 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
17973 | return pyobj; |
17974 | } | |
17975 | ||
17976 | ||
c32bde28 | 17977 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
17978 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
17979 | return 1; | |
17980 | } | |
17981 | ||
17982 | ||
17983 | static PyObject *_wrap_TheBrushList_get() { | |
17984 | PyObject *pyobj; | |
17985 | ||
15afbcd0 | 17986 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
17987 | return pyobj; |
17988 | } | |
17989 | ||
17990 | ||
c32bde28 | 17991 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
17992 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
17993 | return 1; | |
17994 | } | |
17995 | ||
17996 | ||
17997 | static PyObject *_wrap_TheColourDatabase_get() { | |
17998 | PyObject *pyobj; | |
17999 | ||
15afbcd0 | 18000 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
18001 | return pyobj; |
18002 | } | |
18003 | ||
18004 | ||
c32bde28 | 18005 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18006 | PyObject *resultobj; |
e811c8ce | 18007 | wxEffects *result; |
d14a1e28 | 18008 | char *kwnames[] = { |
e811c8ce | 18009 | NULL |
d14a1e28 RD |
18010 | }; |
18011 | ||
e811c8ce | 18012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
18013 | { |
18014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18015 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
18016 | |
18017 | wxPyEndAllowThreads(__tstate); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | } | |
15afbcd0 | 18020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
18021 | return resultobj; |
18022 | fail: | |
18023 | return NULL; | |
18024 | } | |
18025 | ||
18026 | ||
c32bde28 | 18027 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18028 | PyObject *resultobj; |
e811c8ce RD |
18029 | wxEffects *arg1 = (wxEffects *) 0 ; |
18030 | wxColour result; | |
d14a1e28 | 18031 | PyObject * obj0 = 0 ; |
d14a1e28 | 18032 | char *kwnames[] = { |
e811c8ce | 18033 | (char *) "self", NULL |
d14a1e28 RD |
18034 | }; |
18035 | ||
e811c8ce | 18036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18039 | { |
18040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18041 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
18042 | |
18043 | wxPyEndAllowThreads(__tstate); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
e811c8ce RD |
18046 | { |
18047 | wxColour * resultptr; | |
18048 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 18050 | } |
d14a1e28 RD |
18051 | return resultobj; |
18052 | fail: | |
18053 | return NULL; | |
18054 | } | |
18055 | ||
18056 | ||
c32bde28 | 18057 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18058 | PyObject *resultobj; |
e811c8ce RD |
18059 | wxEffects *arg1 = (wxEffects *) 0 ; |
18060 | wxColour result; | |
d14a1e28 | 18061 | PyObject * obj0 = 0 ; |
d14a1e28 | 18062 | char *kwnames[] = { |
e811c8ce | 18063 | (char *) "self", NULL |
d14a1e28 RD |
18064 | }; |
18065 | ||
e811c8ce | 18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18069 | { |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18071 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
18072 | |
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
d14a1e28 | 18076 | { |
e811c8ce RD |
18077 | wxColour * resultptr; |
18078 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18080 | } |
18081 | return resultobj; | |
18082 | fail: | |
d14a1e28 RD |
18083 | return NULL; |
18084 | } | |
18085 | ||
18086 | ||
c32bde28 | 18087 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18088 | PyObject *resultobj; |
e811c8ce RD |
18089 | wxEffects *arg1 = (wxEffects *) 0 ; |
18090 | wxColour result; | |
d14a1e28 | 18091 | PyObject * obj0 = 0 ; |
d14a1e28 | 18092 | char *kwnames[] = { |
e811c8ce | 18093 | (char *) "self", NULL |
d14a1e28 RD |
18094 | }; |
18095 | ||
e811c8ce | 18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18099 | { |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18101 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
18102 | |
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
e811c8ce RD |
18106 | { |
18107 | wxColour * resultptr; | |
18108 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 18110 | } |
d14a1e28 RD |
18111 | return resultobj; |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
c32bde28 | 18117 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18118 | PyObject *resultobj; |
e811c8ce RD |
18119 | wxEffects *arg1 = (wxEffects *) 0 ; |
18120 | wxColour result; | |
d14a1e28 RD |
18121 | PyObject * obj0 = 0 ; |
18122 | char *kwnames[] = { | |
e811c8ce | 18123 | (char *) "self", NULL |
d14a1e28 RD |
18124 | }; |
18125 | ||
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18129 | { |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | { | |
18137 | wxColour * resultptr; | |
18138 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18140 | } |
18141 | return resultobj; | |
18142 | fail: | |
18143 | return NULL; | |
18144 | } | |
18145 | ||
18146 | ||
c32bde28 | 18147 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18148 | PyObject *resultobj; |
18149 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18150 | wxColour result; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | char *kwnames[] = { | |
18153 | (char *) "self", NULL | |
18154 | }; | |
18155 | ||
18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18159 | { |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | { | |
18167 | wxColour * resultptr; | |
18168 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18169 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18170 | } |
18171 | return resultobj; | |
18172 | fail: | |
18173 | return NULL; | |
18174 | } | |
18175 | ||
18176 | ||
c32bde28 | 18177 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18178 | PyObject *resultobj; |
18179 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18180 | wxColour *arg2 = 0 ; | |
18181 | wxColour temp2 ; | |
18182 | PyObject * obj0 = 0 ; | |
18183 | PyObject * obj1 = 0 ; | |
18184 | char *kwnames[] = { | |
18185 | (char *) "self",(char *) "c", NULL | |
18186 | }; | |
18187 | ||
18188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18191 | { |
18192 | arg2 = &temp2; | |
18193 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18194 | } | |
18195 | { | |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18198 | ||
18199 | wxPyEndAllowThreads(__tstate); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
18202 | Py_INCREF(Py_None); resultobj = Py_None; | |
18203 | return resultobj; | |
18204 | fail: | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
c32bde28 | 18209 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18210 | PyObject *resultobj; |
18211 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18212 | wxColour *arg2 = 0 ; | |
18213 | wxColour temp2 ; | |
18214 | PyObject * obj0 = 0 ; | |
18215 | PyObject * obj1 = 0 ; | |
18216 | char *kwnames[] = { | |
18217 | (char *) "self",(char *) "c", NULL | |
18218 | }; | |
18219 | ||
18220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18223 | { |
18224 | arg2 = &temp2; | |
18225 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18226 | } | |
18227 | { | |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | Py_INCREF(Py_None); resultobj = Py_None; | |
18235 | return resultobj; | |
18236 | fail: | |
18237 | return NULL; | |
18238 | } | |
18239 | ||
18240 | ||
c32bde28 | 18241 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18242 | PyObject *resultobj; |
18243 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18244 | wxColour *arg2 = 0 ; | |
18245 | wxColour temp2 ; | |
18246 | PyObject * obj0 = 0 ; | |
18247 | PyObject * obj1 = 0 ; | |
18248 | char *kwnames[] = { | |
18249 | (char *) "self",(char *) "c", NULL | |
18250 | }; | |
18251 | ||
18252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18255 | { |
18256 | arg2 = &temp2; | |
18257 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18258 | } | |
18259 | { | |
18260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18261 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18262 | ||
18263 | wxPyEndAllowThreads(__tstate); | |
18264 | if (PyErr_Occurred()) SWIG_fail; | |
18265 | } | |
18266 | Py_INCREF(Py_None); resultobj = Py_None; | |
18267 | return resultobj; | |
18268 | fail: | |
18269 | return NULL; | |
18270 | } | |
18271 | ||
18272 | ||
c32bde28 | 18273 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18274 | PyObject *resultobj; |
18275 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18276 | wxColour *arg2 = 0 ; | |
18277 | wxColour temp2 ; | |
18278 | PyObject * obj0 = 0 ; | |
18279 | PyObject * obj1 = 0 ; | |
18280 | char *kwnames[] = { | |
18281 | (char *) "self",(char *) "c", NULL | |
18282 | }; | |
18283 | ||
18284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18287 | { |
18288 | arg2 = &temp2; | |
18289 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18290 | } | |
18291 | { | |
18292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18293 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18294 | ||
18295 | wxPyEndAllowThreads(__tstate); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
18298 | Py_INCREF(Py_None); resultobj = Py_None; | |
18299 | return resultobj; | |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
c32bde28 | 18305 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18306 | PyObject *resultobj; |
18307 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18308 | wxColour *arg2 = 0 ; | |
18309 | wxColour temp2 ; | |
18310 | PyObject * obj0 = 0 ; | |
18311 | PyObject * obj1 = 0 ; | |
18312 | char *kwnames[] = { | |
18313 | (char *) "self",(char *) "c", NULL | |
18314 | }; | |
18315 | ||
18316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18319 | { |
18320 | arg2 = &temp2; | |
18321 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18322 | } | |
18323 | { | |
18324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18325 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18326 | ||
18327 | wxPyEndAllowThreads(__tstate); | |
18328 | if (PyErr_Occurred()) SWIG_fail; | |
18329 | } | |
18330 | Py_INCREF(Py_None); resultobj = Py_None; | |
18331 | return resultobj; | |
18332 | fail: | |
18333 | return NULL; | |
18334 | } | |
18335 | ||
18336 | ||
c32bde28 | 18337 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18338 | PyObject *resultobj; |
18339 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18340 | wxColour *arg2 = 0 ; | |
18341 | wxColour *arg3 = 0 ; | |
18342 | wxColour *arg4 = 0 ; | |
18343 | wxColour *arg5 = 0 ; | |
18344 | wxColour *arg6 = 0 ; | |
18345 | wxColour temp2 ; | |
18346 | wxColour temp3 ; | |
18347 | wxColour temp4 ; | |
18348 | wxColour temp5 ; | |
18349 | wxColour temp6 ; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | PyObject * obj1 = 0 ; | |
18352 | PyObject * obj2 = 0 ; | |
18353 | PyObject * obj3 = 0 ; | |
18354 | PyObject * obj4 = 0 ; | |
18355 | PyObject * obj5 = 0 ; | |
18356 | char *kwnames[] = { | |
18357 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18358 | }; | |
18359 | ||
18360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
18361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18363 | { |
18364 | arg2 = &temp2; | |
18365 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18366 | } | |
18367 | { | |
18368 | arg3 = &temp3; | |
18369 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | arg4 = &temp4; | |
18373 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18374 | } | |
18375 | { | |
18376 | arg5 = &temp5; | |
18377 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18378 | } | |
18379 | { | |
18380 | arg6 = &temp6; | |
18381 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18382 | } | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18386 | ||
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | Py_INCREF(Py_None); resultobj = Py_None; | |
18391 | return resultobj; | |
18392 | fail: | |
18393 | return NULL; | |
18394 | } | |
18395 | ||
18396 | ||
c32bde28 | 18397 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18398 | PyObject *resultobj; |
18399 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18400 | wxDC *arg2 = 0 ; | |
18401 | wxRect *arg3 = 0 ; | |
18402 | int arg4 = (int) 1 ; | |
18403 | wxRect temp3 ; | |
18404 | PyObject * obj0 = 0 ; | |
18405 | PyObject * obj1 = 0 ; | |
18406 | PyObject * obj2 = 0 ; | |
994141e6 | 18407 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
18408 | char *kwnames[] = { |
18409 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18410 | }; | |
18411 | ||
994141e6 | 18412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18417 | SWIG_fail; | |
d14a1e28 | 18418 | if (arg2 == NULL) { |
15afbcd0 RD |
18419 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18420 | SWIG_fail; | |
d14a1e28 RD |
18421 | } |
18422 | { | |
18423 | arg3 = &temp3; | |
18424 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18425 | } | |
994141e6 | 18426 | if (obj3) { |
c32bde28 | 18427 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 18428 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18429 | } |
d14a1e28 RD |
18430 | { |
18431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18432 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18433 | ||
18434 | wxPyEndAllowThreads(__tstate); | |
18435 | if (PyErr_Occurred()) SWIG_fail; | |
18436 | } | |
18437 | Py_INCREF(Py_None); resultobj = Py_None; | |
18438 | return resultobj; | |
18439 | fail: | |
18440 | return NULL; | |
18441 | } | |
18442 | ||
18443 | ||
c32bde28 | 18444 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18445 | PyObject *resultobj; |
18446 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18447 | wxRect *arg2 = 0 ; | |
18448 | wxDC *arg3 = 0 ; | |
18449 | wxBitmap *arg4 = 0 ; | |
18450 | bool result; | |
18451 | wxRect temp2 ; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | PyObject * obj1 = 0 ; | |
18454 | PyObject * obj2 = 0 ; | |
18455 | PyObject * obj3 = 0 ; | |
18456 | char *kwnames[] = { | |
18457 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18458 | }; | |
18459 | ||
18460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
18461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18463 | { |
18464 | arg2 = &temp2; | |
18465 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18466 | } | |
15afbcd0 RD |
18467 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
18468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18469 | SWIG_fail; | |
d14a1e28 | 18470 | if (arg3 == NULL) { |
15afbcd0 RD |
18471 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18472 | SWIG_fail; | |
d14a1e28 | 18473 | } |
15afbcd0 RD |
18474 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
18475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18476 | SWIG_fail; | |
d14a1e28 | 18477 | if (arg4 == NULL) { |
15afbcd0 RD |
18478 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18479 | SWIG_fail; | |
d14a1e28 RD |
18480 | } |
18481 | { | |
18482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18483 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18484 | ||
18485 | wxPyEndAllowThreads(__tstate); | |
18486 | if (PyErr_Occurred()) SWIG_fail; | |
18487 | } | |
4f89f6a3 RD |
18488 | { |
18489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18490 | } | |
d14a1e28 RD |
18491 | return resultobj; |
18492 | fail: | |
18493 | return NULL; | |
18494 | } | |
18495 | ||
18496 | ||
c32bde28 | 18497 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18498 | PyObject *obj; |
18499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18500 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18501 | Py_INCREF(obj); | |
18502 | return Py_BuildValue((char *)""); | |
18503 | } | |
18504 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
18505 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
18506 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18507 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18508 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18509 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18510 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
18511 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18512 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18513 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18514 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18515 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18516 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18517 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18518 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18519 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18520 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18521 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18522 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18523 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18524 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18525 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18526 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18527 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
18528 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18529 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18530 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18531 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18532 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18533 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
18534 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18535 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18536 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18537 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18538 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18539 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18540 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18541 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18542 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18543 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18544 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18545 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18546 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18547 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18548 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18549 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18550 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18551 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18552 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18553 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
18554 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18555 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18556 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18557 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18558 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18559 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18560 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18561 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18562 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18563 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
18564 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18565 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18566 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18567 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18568 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18569 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18570 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18571 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18572 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18573 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18574 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18575 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18576 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18577 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18578 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18579 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18580 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18581 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18582 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
d3b6e4ff | 18583 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18584 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, |
18585 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18586 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18587 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18588 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18589 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18590 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18591 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
18592 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18593 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
18594 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18595 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18596 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18597 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18598 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18599 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18600 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18601 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18602 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18603 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18604 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18605 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18606 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18607 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18608 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18609 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
18610 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18611 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18612 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18613 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18614 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18615 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18616 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18617 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
18618 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18619 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18620 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18621 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18622 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18623 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18624 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18625 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
18626 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18627 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18628 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18629 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18630 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18631 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
18632 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18633 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18634 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18635 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18636 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18637 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18638 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18639 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18640 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18641 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18642 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18643 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18644 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18645 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18646 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18647 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18648 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18649 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18650 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18651 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18652 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18653 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18654 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18655 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18656 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18657 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18658 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18659 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18660 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
18661 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18662 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18663 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18664 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18665 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18666 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18667 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18668 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18669 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18670 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18671 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18672 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18673 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18674 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
18675 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18676 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18677 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18678 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18679 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18680 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18681 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18682 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18683 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18684 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18685 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18686 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18687 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18688 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18689 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18690 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18691 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18692 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18693 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18694 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18695 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18696 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18697 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18698 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
18699 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18700 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18701 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18702 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18703 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18704 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18705 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18706 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18707 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
18708 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18709 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18710 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18711 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18712 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18713 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18714 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18715 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18716 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18717 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18718 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18719 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18720 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18721 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18722 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18723 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18724 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18725 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18726 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18727 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
18728 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18729 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18730 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18731 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18732 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 | 18733 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18734 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
18735 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18736 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18737 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 RD |
18738 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
18739 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
18740 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
18741 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18742 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18743 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18744 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18745 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18746 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18747 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18748 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18749 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18750 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b6294124 | 18751 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
18752 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
18753 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18754 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18755 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18756 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18757 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18758 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18759 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18760 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18761 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18762 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18763 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18764 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18765 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18766 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18767 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18768 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
18769 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18770 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18771 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18772 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18773 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18774 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18775 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18776 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
18777 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18778 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18779 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18780 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18781 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18782 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18783 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
18784 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18785 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18786 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18787 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18788 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18789 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18790 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18791 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18792 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18793 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18794 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18795 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18796 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18797 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18798 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18799 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18800 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18801 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18802 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18803 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18804 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18805 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
18806 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18807 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
18808 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18809 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18810 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18811 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18812 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18813 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18814 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18815 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
18816 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18817 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18818 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18819 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18820 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18821 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18822 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18823 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18824 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18825 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18826 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18827 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18828 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18829 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18830 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18831 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18832 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18833 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18834 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18835 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18836 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18837 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18838 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18839 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18840 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18841 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18842 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18843 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18844 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18845 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18846 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18847 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18848 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18849 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18850 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18851 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18852 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18853 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18854 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18855 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18856 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18857 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18858 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18859 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18860 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18861 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18862 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18863 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18864 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18865 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18866 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18867 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18868 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18869 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18870 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18871 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18872 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18873 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18874 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18875 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18876 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18877 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18878 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18879 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18880 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18881 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18882 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18883 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18884 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18885 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18886 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18887 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18888 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18889 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18890 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18891 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18892 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18893 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18894 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18895 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18896 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18897 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18898 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18899 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18900 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18901 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18902 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18903 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18904 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18905 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18906 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18907 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18908 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18909 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18910 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18911 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18912 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18913 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18914 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18915 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18916 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18917 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18918 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18919 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18920 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18921 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18922 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18923 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18924 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18925 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18926 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18927 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18928 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18929 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18930 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18931 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18932 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18933 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18934 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18935 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18936 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18937 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18938 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18939 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18940 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18941 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18942 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18943 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18944 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
18945 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18946 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18947 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18948 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
18949 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
18950 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18951 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18952 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
18953 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18954 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
18955 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18956 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18957 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18958 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18959 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
18960 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18961 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
18962 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18963 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
18964 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18965 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
18966 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18967 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
18968 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18969 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18970 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18971 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18972 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18973 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
18974 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18975 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
18976 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18977 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
18978 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18979 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
18980 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18981 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18982 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18983 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18984 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18985 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18986 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18987 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18988 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18989 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18990 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18991 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
18992 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18993 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18994 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18995 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18996 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
18997 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18998 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18999 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19000 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19001 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19002 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19003 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19004 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19005 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19006 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19007 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19008 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19009 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19010 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19011 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19012 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19013 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19014 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19015 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19016 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19017 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19018 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19019 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19020 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19021 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19022 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19023 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19024 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19025 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19026 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19027 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19028 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19029 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
19030 | }; |
19031 | ||
19032 | ||
19033 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19034 | ||
e811c8ce RD |
19035 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
19036 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19037 | } | |
19038 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19039 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19040 | } | |
19041 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19042 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19043 | } | |
d14a1e28 RD |
19044 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
19045 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19046 | } | |
19047 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19048 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19049 | } | |
d14a1e28 RD |
19050 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
19051 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19052 | } | |
19053 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19054 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19055 | } | |
19056 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19057 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19058 | } | |
19059 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19060 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19061 | } | |
19062 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19063 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19064 | } | |
19065 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19066 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19067 | } | |
19068 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19069 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19070 | } | |
19071 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19072 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19073 | } | |
19074 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19075 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19076 | } | |
19077 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19078 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19079 | } | |
19080 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19081 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19082 | } | |
19083 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19084 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19085 | } | |
19086 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19087 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19088 | } | |
19089 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19090 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19091 | } | |
19092 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19093 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19094 | } | |
19095 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19096 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19097 | } | |
19098 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19099 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19100 | } | |
19101 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19102 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19103 | } | |
19104 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19105 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19106 | } | |
19107 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19108 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19109 | } | |
19110 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19111 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19112 | } | |
19113 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19114 | return (void *)((wxObject *) ((wxDC *) x)); | |
19115 | } | |
19116 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19117 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19118 | } | |
19119 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19120 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19121 | } | |
19122 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19123 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19124 | } | |
19125 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19126 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19127 | } | |
19128 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19129 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19130 | } | |
19131 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19132 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19133 | } | |
19134 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19135 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19136 | } | |
19137 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19138 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19139 | } | |
19140 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19141 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19142 | } | |
19143 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19144 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19145 | } | |
19146 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19147 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19148 | } | |
19149 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19150 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19151 | } | |
19152 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19153 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19154 | } | |
19155 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19156 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19157 | } | |
19158 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19159 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19160 | } | |
19161 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19162 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19163 | } | |
19164 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19165 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19166 | } | |
19167 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19168 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19169 | } | |
19170 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19171 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19172 | } | |
19173 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19174 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19175 | } | |
19176 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19177 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19178 | } | |
19179 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19180 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19181 | } | |
19182 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19183 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19184 | } | |
19185 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19186 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19187 | } | |
19188 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19189 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19190 | } | |
19191 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19192 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19193 | } | |
19194 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19195 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19196 | } | |
19197 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19198 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19199 | } | |
19200 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19201 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19202 | } | |
19203 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19204 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19205 | } | |
19206 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19207 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19208 | } | |
19209 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19210 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19211 | } | |
19212 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19213 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19214 | } | |
19215 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19216 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19217 | } | |
19218 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19219 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19220 | } | |
19221 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19222 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19223 | } | |
19224 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19225 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19226 | } | |
19227 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19228 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19229 | } | |
19230 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19231 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19232 | } | |
19233 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19234 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19235 | } | |
19236 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19237 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19238 | } | |
19239 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19240 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19241 | } | |
19242 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19243 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19244 | } | |
19245 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19246 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19247 | } | |
1e0c8722 RD |
19248 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
19249 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19250 | } | |
d14a1e28 RD |
19251 | static void *_p_wxImageTo_p_wxObject(void *x) { |
19252 | return (void *)((wxObject *) ((wxImage *) x)); | |
19253 | } | |
19254 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19255 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19256 | } | |
d14a1e28 RD |
19257 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
19258 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19259 | } | |
19260 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19261 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19262 | } | |
19263 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19264 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19265 | } | |
19266 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19267 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19268 | } | |
19269 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19270 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19271 | } | |
19272 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19273 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19274 | } | |
19275 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19276 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19277 | } | |
19278 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19279 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19280 | } | |
19281 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19282 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19283 | } | |
19284 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19285 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19286 | } | |
19287 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19288 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19289 | } | |
19290 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19291 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19292 | } | |
19293 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19294 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19295 | } | |
19296 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19297 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19298 | } | |
d14a1e28 RD |
19299 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19300 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19301 | } | |
19302 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19303 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19304 | } | |
19305 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19306 | return (void *)((wxObject *) ((wxMask *) x)); | |
19307 | } | |
19308 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19309 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19310 | } | |
19311 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19312 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19313 | } | |
19314 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19315 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19316 | } | |
19317 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19318 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19319 | } | |
19320 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19321 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19322 | } | |
19323 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19324 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19325 | } | |
19326 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19327 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19328 | } | |
19329 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19330 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19331 | } | |
19332 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19333 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19334 | } | |
19335 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19336 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19337 | } | |
19338 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19339 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19340 | } | |
19341 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19342 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19343 | } | |
19344 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19345 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19346 | } | |
19347 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19348 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19349 | } | |
19350 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19351 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19352 | } | |
19353 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19354 | return (void *)((wxObject *) ((wxColour *) x)); | |
19355 | } | |
19356 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19357 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19358 | } | |
19359 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19360 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19361 | } | |
19362 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19363 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19364 | } | |
e811c8ce RD |
19365 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
19366 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 19367 | } |
e811c8ce RD |
19368 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
19369 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 19370 | } |
e811c8ce RD |
19371 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
19372 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19373 | } | |
19374 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19375 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19376 | } | |
19377 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19378 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19379 | } | |
19380 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19381 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19382 | } | |
19383 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19384 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19385 | } | |
19386 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19387 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19388 | } | |
19389 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19390 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19391 | } | |
19392 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19393 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19394 | } | |
19395 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19396 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19397 | } | |
19398 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19399 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19400 | } | |
e811c8ce RD |
19401 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19402 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19403 | } | |
19404 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19405 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19406 | } | |
19407 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19408 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19409 | } | |
19410 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19411 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19412 | } | |
19413 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19414 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19415 | } | |
19416 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19417 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19418 | } | |
19419 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19420 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19421 | } | |
19422 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19423 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19424 | } | |
15afbcd0 RD |
19425 | 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}}; |
19426 | 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}}; | |
19427 | 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}}; | |
19428 | 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}}; | |
19429 | 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}}; | |
19430 | 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}}; | |
19431 | 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}}; | |
19432 | 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}}; | |
19433 | 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}}; | |
19434 | 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}}; | |
19435 | 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}}; | |
19436 | 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 | 19437 | 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 |
19438 | 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}}; |
19439 | 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 |
19440 | 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}}; |
19441 | 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}}; | |
19442 | 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}}; | |
19443 | 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}}; | |
19444 | 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}}; | |
19445 | 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}}; | |
19446 | 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 | 19447 | 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 |
19448 | 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}}; |
19449 | 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}}; | |
19450 | 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}}; | |
19451 | 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}}; | |
19452 | 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}}; | |
19453 | 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}}; | |
19454 | 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}}; | |
19455 | 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}}; | |
19456 | 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}}; | |
19457 | 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}}; | |
19458 | 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}}; | |
19459 | 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}}; | |
19460 | 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 | 19461 | 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 |
19462 | 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}}; |
19463 | 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}}; | |
19464 | 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 | 19465 | 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 | 19466 | 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 |
19467 | 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}}; |
19468 | 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}}; | |
19469 | 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}}; | |
19470 | 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 | 19471 | 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 |
19472 | 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}}; |
19473 | 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}}; | |
19474 | 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 |
19475 | 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}}; |
19476 | 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}}; | |
19477 | 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}}; | |
19478 | 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}}; | |
19479 | 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 |
19480 | |
19481 | static swig_type_info *swig_types_initial[] = { | |
19482 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
19483 | _swigt__p_wxBrush, |
19484 | _swigt__p_wxColour, | |
d14a1e28 RD |
19485 | _swigt__p_wxDC, |
19486 | _swigt__p_wxMirrorDC, | |
19487 | _swigt__p_byte, | |
19488 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 19489 | _swigt__p_char, |
d14a1e28 RD |
19490 | _swigt__p_wxIconLocation, |
19491 | _swigt__p_wxImage, | |
19492 | _swigt__p_wxMetaFileDC, | |
19493 | _swigt__p_wxMask, | |
b2df227b | 19494 | _swigt__p_wxSize, |
d14a1e28 RD |
19495 | _swigt__p_wxFont, |
19496 | _swigt__p_wxWindow, | |
d14a1e28 RD |
19497 | _swigt__p_double, |
19498 | _swigt__p_wxMemoryDC, | |
19499 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
19500 | _swigt__p_wxEffects, |
19501 | _swigt__p_wxNativeEncodingInfo, | |
19502 | _swigt__p_wxPalette, | |
19503 | _swigt__p_wxBitmap, | |
19504 | _swigt__p_wxObject, | |
19505 | _swigt__p_wxRegionIterator, | |
19506 | _swigt__p_wxRect, | |
19507 | _swigt__p_wxString, | |
19508 | _swigt__p_wxPrinterDC, | |
19509 | _swigt__p_wxIconBundle, | |
19510 | _swigt__p_wxPoint, | |
19511 | _swigt__p_wxDash, | |
19512 | _swigt__p_wxScreenDC, | |
19513 | _swigt__p_wxCursor, | |
19514 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
19515 | _swigt__p_wxBufferedDC, |
19516 | _swigt__p_wxImageList, | |
19517 | _swigt__p_unsigned_char, | |
19518 | _swigt__p_wxGDIObject, | |
d14a1e28 | 19519 | _swigt__p_wxIcon, |
994141e6 | 19520 | _swigt__p_wxLocale, |
d14a1e28 | 19521 | _swigt__p_wxRegion, |
b2df227b | 19522 | _swigt__p_wxLanguageInfo, |
66c033b4 | 19523 | _swigt__p_wxConfigBase, |
d14a1e28 RD |
19524 | _swigt__p_wxWindowDC, |
19525 | _swigt__p_wxPrintData, | |
19526 | _swigt__p_wxBrushList, | |
19527 | _swigt__p_wxFontList, | |
19528 | _swigt__p_wxPen, | |
19529 | _swigt__p_wxBufferedPaintDC, | |
19530 | _swigt__p_wxPaintDC, | |
19531 | _swigt__p_wxPenList, | |
d14a1e28 RD |
19532 | _swigt__p_int, |
19533 | _swigt__p_wxMetaFile, | |
19534 | _swigt__p_wxNativeFontInfo, | |
19535 | _swigt__p_wxEncodingConverter, | |
19536 | _swigt__p_wxColourDatabase, | |
19537 | 0 | |
19538 | }; | |
19539 | ||
19540 | ||
19541 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19542 | ||
19543 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 19544 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
19545 | |
19546 | #ifdef __cplusplus | |
19547 | } | |
19548 | #endif | |
19549 | ||
19550 | #ifdef __cplusplus | |
19551 | extern "C" | |
19552 | #endif | |
19553 | SWIGEXPORT(void) SWIG_init(void) { | |
19554 | static PyObject *SWIG_globals = 0; | |
19555 | static int typeinit = 0; | |
19556 | PyObject *m, *d; | |
19557 | int i; | |
19558 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19559 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19560 | d = PyModule_GetDict(m); | |
19561 | ||
19562 | if (!typeinit) { | |
19563 | for (i = 0; swig_types_initial[i]; i++) { | |
19564 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19565 | } | |
19566 | typeinit = 1; | |
19567 | } | |
19568 | SWIG_InstallConstants(d,swig_const_table); | |
19569 | ||
c32bde28 RD |
19570 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); |
19571 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
19572 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
19573 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
19574 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
19575 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
19576 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
19577 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
19578 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
19579 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
19580 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
19581 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
19582 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
19583 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
19584 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
19585 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
19586 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
19587 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
19588 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
19589 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
19590 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
19591 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
19592 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
19593 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
19594 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
19595 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
19596 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19597 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
19598 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
19599 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
19600 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
19601 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
19602 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
19603 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
19604 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
19605 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
19606 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
19607 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
19608 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
19609 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
19610 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
19611 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
19612 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
19613 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
19614 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
19615 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
19616 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
19617 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
19618 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
19619 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
19620 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
19621 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
19622 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
19623 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
19624 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
19625 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
19626 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
19627 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
19628 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
19629 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
19630 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
19631 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
19632 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
19633 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
19634 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
19635 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
19636 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
19637 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
19638 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
19639 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
19640 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
19641 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
19642 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
19643 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
19644 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
19645 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
19646 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
19647 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
19648 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
19649 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
19650 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
19651 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
19652 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
19653 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
19654 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
19655 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
19656 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
19657 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
19658 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
19659 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
19660 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
19661 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
19662 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
19663 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
19664 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
19665 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
19666 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
19667 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
19668 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
19669 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
19670 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
19671 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
19672 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
19673 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
19674 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
19675 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
19676 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
19677 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
19678 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
19679 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
19680 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
19681 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
19682 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
19683 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
19684 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
19685 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
19686 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
19687 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
19688 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
19689 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
19690 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
19691 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
19692 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
19693 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
19694 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
19695 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
19696 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
19697 | |
19698 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19699 | ||
c32bde28 RD |
19700 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); |
19701 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
19702 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
19703 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
19704 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
19705 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
19706 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
19707 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
19708 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19709 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19710 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19711 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19712 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19713 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19714 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19715 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19716 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19717 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
19718 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
19719 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19720 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19721 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19722 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19723 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
19724 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19725 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
19726 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
19727 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
19728 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
19729 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19730 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
19731 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
19732 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
19733 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
19734 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
19735 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
19736 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
19737 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
19738 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
19739 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
19740 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
19741 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
19742 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
19743 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
19744 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19745 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19746 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19747 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
19748 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19749 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19750 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
19751 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
19752 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
19753 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
19754 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
19755 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19756 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
19757 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
19758 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
19759 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19760 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19761 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19762 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19763 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19764 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19765 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19766 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19767 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19768 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19769 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19770 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19771 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19772 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
19773 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
19774 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
19775 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
19776 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
19777 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
19778 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
19779 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19780 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19781 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19782 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
19783 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
19784 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
19785 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
19786 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
19787 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
19788 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19789 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19790 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19791 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19792 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
19793 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
19794 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
19795 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
19796 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
19797 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
19798 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
19799 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
19800 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
19801 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
19802 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
19803 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
19804 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
19805 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
19806 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
19807 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
19808 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
19809 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19810 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
19811 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
19812 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
19813 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
19814 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19815 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
19816 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
19817 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
19818 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
19819 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
19820 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
19821 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
19822 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
19823 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
19824 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
19825 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
19826 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
19827 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
19828 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
19829 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
19830 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
19831 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
19832 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19833 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19834 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
19835 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
19836 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
19837 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
19838 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
19839 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
19840 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
19841 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
19842 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
19843 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19844 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19845 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
19846 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
19847 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
19848 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
19849 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
19850 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
19851 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19852 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
19853 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
19854 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19855 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
19856 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
19857 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19858 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
19859 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
19860 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
19861 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19862 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
19863 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19864 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19865 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19866 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
19867 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
19868 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
19869 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
19870 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
19871 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
19872 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
19873 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
19874 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
19875 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
19876 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19877 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19878 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
19879 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19880 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19881 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19882 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19883 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19884 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19885 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19886 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19887 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
19888 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19889 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19890 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19891 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
19892 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19893 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19894 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
19895 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19896 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
19897 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
19898 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
19899 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19900 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
19901 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
19902 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
19903 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
19904 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
19905 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
19906 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
19907 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
19908 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
19909 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
19910 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
19911 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
19912 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
19913 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
19914 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
19915 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
19916 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
19917 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19918 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
19919 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19920 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
19921 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
19922 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
19923 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
19924 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
19925 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
19926 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
19927 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
19928 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
19929 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
19930 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
19931 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
19932 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
19933 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
19934 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
19935 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
19936 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
19937 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
19938 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
19939 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
19940 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
19941 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
19942 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
19943 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
19944 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
19945 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
19946 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
19947 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19948 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
19949 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19950 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
19951 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
19952 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19953 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19954 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19955 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19956 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19957 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19958 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19959 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19960 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19961 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19962 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19963 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19964 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19965 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19966 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19967 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19968 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19969 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19970 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19971 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19972 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19973 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19974 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19975 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19976 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19977 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19978 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19979 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19980 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19981 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19982 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19983 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19984 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19985 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19986 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19987 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19988 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19989 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19990 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19991 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19992 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19993 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19994 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19995 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19996 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19997 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19998 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19999 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
20000 | |
20001 | // Work around a chicken/egg problem in drawlist.cpp | |
20002 | wxPyDrawList_SetAPIPtr(); | |
20003 | ||
d14a1e28 RD |
20004 | } |
20005 |