]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
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 | ||
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 | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
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 { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
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 *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d55e5bfc 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 | ||
d55e5bfc 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 | ||
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) | |
174 | ||
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) | |
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 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
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[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
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] | |
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] | |
223 | #define SWIGTYPE_p_wxSize swig_types[12] | |
224 | #define SWIGTYPE_p_wxFont swig_types[13] | |
225 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
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] | |
248 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
249 | #define SWIGTYPE_p_wxLocale swig_types[38] | |
250 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
c24da6d6 RD |
251 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] |
252 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
d55e5bfc 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] | |
c24da6d6 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]; | |
d55e5bfc RD |
267 | |
268 | /* -------- TYPES TABLE (END) -------- */ | |
269 | ||
270 | ||
271 | /*----------------------------------------------- | |
272 | @(target):= _gdi_.so | |
273 | ------------------------------------------------*/ | |
274 | #define SWIG_init init_gdi_ | |
275 | ||
276 | #define SWIG_name "_gdi_" | |
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 | |
d55e5bfc RD |
283 | |
284 | #ifdef __cplusplus | |
285 | #define SWIGSTATICINLINE(a) static inline a | |
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 | |
d55e5bfc | 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) | |
d55e5bfc RD |
295 | |
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) | |
d55e5bfc | 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))) | |
d55e5bfc RD |
308 | |
309 | #endif /* __cplusplus */ | |
310 | ||
311 | ||
c32bde28 RD |
312 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
313 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
314 | /*@@*/ | |
315 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
316 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
317 | /*@@*/ | |
318 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
319 | #define SWIG_From_short PyInt_FromLong | |
320 | /*@@*/ | |
321 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
322 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
323 | /*@@*/ | |
324 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
325 | #define SWIG_From_int PyInt_FromLong | |
326 | /*@@*/ | |
327 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
328 | #define SWIG_From_long PyInt_FromLong | |
329 | /*@@*/ | |
330 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
331 | #define SWIG_From_float PyFloat_FromDouble | |
332 | /*@@*/ | |
333 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
334 | #define SWIG_From_double PyFloat_FromDouble | |
335 | /*@@*/ | |
d55e5bfc RD |
336 | |
337 | ||
338 | #include "wx/wxPython/wxPython.h" | |
339 | #include "wx/wxPython/pyclasses.h" | |
340 | ||
341 | ||
342 | static const wxString wxPyEmptyString(wxEmptyString); | |
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) | |
d55e5bfc | 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; | |
d55e5bfc RD |
367 | } |
368 | ||
369 | ||
c32bde28 | 370 | // See my_fragments.i |
d55e5bfc | 371 | SWIGSTATICINLINE(int) |
c32bde28 | 372 | SWIG_AsVal_long(PyObject* obj, long* val) |
d55e5bfc | 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 | } | |
d55e5bfc | 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 | } | |
d55e5bfc | 401 | } else { |
c32bde28 RD |
402 | PyErr_Clear(); |
403 | } | |
404 | if (val) { | |
405 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
d55e5bfc | 406 | } |
c32bde28 | 407 | return 0; |
d55e5bfc | 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 | |
d55e5bfc 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 | } | |
d55e5bfc RD |
440 | |
441 | ||
c32bde28 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_As_bool(PyObject* obj) | |
d55e5bfc | 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)); | |
d55e5bfc | 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); | |
d55e5bfc 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) | |
d55e5bfc | 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"); | |
d55e5bfc RD |
472 | return 0; |
473 | } | |
c32bde28 RD |
474 | else if (val) |
475 | *val = (unsigned long)v; | |
476 | return 1; | |
d55e5bfc RD |
477 | } |
478 | ||
479 | ||
c32bde28 RD |
480 | SWIGSTATICINLINE(int) |
481 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
482 | unsigned long max_value, | |
483 | const char *errmsg) | |
d55e5bfc | 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); | |
d55e5bfc | 490 | } |
c32bde28 | 491 | return 0; |
d55e5bfc | 492 | } |
c32bde28 RD |
493 | return 1; |
494 | } | |
d55e5bfc RD |
495 | |
496 | ||
c32bde28 RD |
497 | SWIGSTATICINLINE(int) |
498 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
d55e5bfc | 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; | |
d55e5bfc RD |
516 | } |
517 | ||
518 | ||
c32bde28 RD |
519 | SWIGSTATICINLINE(unsigned char) |
520 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
d55e5bfc | 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)); | |
d55e5bfc | 530 | } |
c32bde28 | 531 | return v; |
d55e5bfc RD |
532 | } |
533 | ||
c32bde28 | 534 | |
d55e5bfc | 535 | SWIGSTATICINLINE(int) |
c32bde28 | 536 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
d55e5bfc | 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)); | |
d55e5bfc | 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); | |
d55e5bfc RD |
562 | } |
563 | ||
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 | } | |
579 | unsigned long wxColour_GetRGB(wxColour *self){ | |
580 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
581 | } | |
582 | ||
583 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 584 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
585 | { |
586 | return (value > LONG_MAX) ? | |
587 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 588 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
589 | } |
590 | ||
591 | ||
c32bde28 RD |
592 | SWIGSTATICINLINE(int) |
593 | SWIG_As_int(PyObject* obj) | |
d55e5bfc | 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)); | |
d55e5bfc | 603 | } |
c32bde28 | 604 | return v; |
d55e5bfc RD |
605 | } |
606 | ||
c32bde28 | 607 | |
d55e5bfc | 608 | SWIGSTATICINLINE(int) |
c32bde28 | 609 | SWIG_Check_int(PyObject* obj) |
d55e5bfc | 610 | { |
c32bde28 | 611 | return SWIG_AsVal_int(obj, (int*)0); |
d55e5bfc RD |
612 | } |
613 | ||
614 | ||
c32bde28 | 615 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
616 | PyObject* o2; |
617 | PyObject* o3; | |
c32bde28 | 618 | |
d55e5bfc 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 | } | |
d55e5bfc 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 | } |
d55e5bfc | 640 | |
c32bde28 | 641 | |
d55e5bfc RD |
642 | PyObject *wxPen_GetDashes(wxPen *self){ |
643 | wxDash* dashes; | |
644 | int count = self->GetDashes(&dashes); | |
645 | bool blocked = wxPyBeginBlockThreads(); | |
646 | PyObject* retval = PyList_New(0); | |
a07a67e6 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 | } | |
d55e5bfc RD |
652 | wxPyEndBlockThreads(blocked); |
653 | return retval; | |
654 | } | |
c24da6d6 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; } | |
d55e5bfc | 676 | |
d55e5bfc 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 | } | |
d55e5bfc | 715 | |
c32bde28 RD |
716 | SWIGSTATICINLINE(long) |
717 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 718 | { |
c32bde28 RD |
719 | long v; |
720 | if (!SWIG_AsVal_long(obj, &v)) { | |
721 | /* | |
722 | this is needed to make valgrind/purify happier. the other | |
723 | solution is throw an exception, but since this code should work | |
724 | with plain C .... | |
725 | */ | |
726 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 727 | } |
c32bde28 RD |
728 | return v; |
729 | } | |
730 | ||
731 | ||
732 | SWIGSTATICINLINE(int) | |
733 | SWIG_Check_long(PyObject* obj) | |
734 | { | |
735 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
736 | } |
737 | ||
738 | void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
739 | wxSize wxBitmap_GetSize(wxBitmap *self){ | |
740 | wxSize size(self->GetWidth(), self->GetHeight()); | |
741 | return size; | |
742 | } | |
743 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
744 | wxMask *mask = new wxMask(*self, colour); | |
745 | self->SetMask(mask); | |
746 | } | |
747 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
748 | self->SetWidth(size.x); | |
749 | self->SetHeight(size.y); | |
750 | } | |
ae8162c8 RD |
751 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
752 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
753 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
754 | if ( !colour.Ok() ) | |
755 | return new wxMask(bitmap, *wxBLACK); | |
756 | else | |
757 | return new wxMask(bitmap, colour); | |
758 | } | |
759 | ||
760 | #include <wx/iconbndl.h> | |
761 | ||
762 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
763 | wxIcon* icon = new wxIcon(); | |
764 | icon->CopyFromBitmap(bmp); | |
765 | return icon; | |
766 | } | |
767 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
768 | char** cArray = NULL; | |
769 | wxIcon* icon; | |
770 | ||
771 | cArray = ConvertListOfStrings(listOfStrings); | |
772 | if (! cArray) | |
773 | return NULL; | |
774 | icon = new wxIcon(cArray); | |
775 | delete [] cArray; | |
776 | return icon; | |
777 | } | |
778 | void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
779 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
780 | ||
781 | return new wxIconLocation(*filename, num); | |
782 | ||
783 | ||
784 | ||
785 | } | |
786 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
787 | ||
788 | self->SetIndex(num); | |
789 | ||
790 | ||
791 | ||
792 | } | |
793 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
794 | ||
795 | return self->GetIndex(); | |
796 | ||
797 | ||
798 | ||
799 | } | |
800 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ | |
801 | #ifdef __WXGTK__ | |
ae8162c8 | 802 | wxCHECK_MSG(false, NULL, |
d55e5bfc RD |
803 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); |
804 | #else | |
805 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
806 | #endif | |
807 | } | |
808 | void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
809 | ||
810 | ||
811 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
812 | (*self) ++; | |
813 | } | |
814 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
815 | return self->operator bool(); | |
816 | } | |
817 | ||
818 | #include <wx/fontutil.h> | |
819 | #include <wx/fontmap.h> | |
820 | #include <wx/fontenum.h> | |
821 | ||
822 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
823 | return self->ToString(); | |
824 | } | |
825 | ||
826 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
827 | { wxPyRaiseNotImplemented(); return NULL; } | |
5e483524 | 828 | |
d55e5bfc | 829 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) |
ae8162c8 | 830 | { wxPyRaiseNotImplemented(); return false; } |
d55e5bfc RD |
831 | |
832 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
833 | wxFontEncoding alt_enc; | |
834 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
835 | return PyInt_FromLong(alt_enc); | |
836 | else { | |
837 | Py_INCREF(Py_None); | |
838 | return Py_None; | |
839 | } | |
840 | } | |
841 | wxFont *new_wxFont(wxString const &info){ | |
842 | wxNativeFontInfo nfi; | |
843 | nfi.FromString(info); | |
844 | return new wxFont(nfi); | |
845 | } | |
846 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
847 | return wxFont::New(pointSize, family, flags, face, encoding); | |
848 | } | |
5e483524 RD |
849 | wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){ |
850 | return wxFontBase::New(pixelSize, family, | |
851 | style, weight, underlined, | |
852 | face, encoding); | |
853 | } | |
ae8162c8 RD |
854 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
855 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
856 | |
857 | class wxPyFontEnumerator : public wxFontEnumerator { | |
858 | public: | |
859 | wxPyFontEnumerator() {} | |
860 | ~wxPyFontEnumerator() {} | |
861 | ||
862 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
863 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
864 | ||
865 | PYPRIVATE; | |
866 | }; | |
867 | ||
868 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
869 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
870 | ||
871 | ||
872 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
873 | wxArrayString* arr = self->GetEncodings(); | |
b0f7404b RD |
874 | if (arr) |
875 | return wxArrayString2PyList_helper(*arr); | |
876 | else | |
877 | return PyList_New(0); | |
d55e5bfc RD |
878 | } |
879 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
880 | wxArrayString* arr = self->GetFacenames(); | |
b0f7404b RD |
881 | if (arr) |
882 | return wxArrayString2PyList_helper(*arr); | |
883 | else | |
884 | return PyList_New(0); | |
d55e5bfc RD |
885 | } |
886 | ||
c1cb24a4 | 887 | #include <locale.h> |
d55e5bfc | 888 | |
79fccf9d | 889 | wxLocale *new_wxLocale(int language,int flags){ |
c1cb24a4 | 890 | wxLocale* loc; |
79fccf9d | 891 | if (language == -1) |
c1cb24a4 | 892 | loc = new wxLocale(); |
79fccf9d | 893 | else |
c1cb24a4 RD |
894 | loc = new wxLocale(language, flags); |
895 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
896 | // for the floating point conversions and such to work right. | |
897 | #if PY_VERSION_HEX < 0x02040000 | |
898 | setlocale(LC_NUMERIC, "C"); | |
899 | #endif | |
900 | return loc; | |
901 | } | |
902 | bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){ | |
903 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
904 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
905 | // for the floating point conversions and such to work right. | |
906 | #if PY_VERSION_HEX < 0x02040000 | |
907 | setlocale(LC_NUMERIC, "C"); | |
908 | #endif | |
909 | return rc; | |
910 | } | |
911 | bool wxLocale_Init2(wxLocale *self,int language,int flags){ | |
912 | bool rc = self->Init(language, flags); | |
913 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
914 | // for the floating point conversions and such to work right. | |
915 | #if PY_VERSION_HEX < 0x02040000 | |
916 | setlocale(LC_NUMERIC, "C"); | |
917 | #endif | |
918 | return rc; | |
79fccf9d | 919 | } |
d55e5bfc RD |
920 | |
921 | #include "wx/wxPython/pydrawxxx.h" | |
922 | ||
c24da6d6 | 923 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
924 | wxColour col; |
925 | self->GetPixel(x, y, &col); | |
926 | return col; | |
927 | } | |
c24da6d6 | 928 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
929 | wxColour col; |
930 | self->GetPixel(pt, &col); | |
931 | return col; | |
932 | } | |
933 | ||
c32bde28 RD |
934 | // See my_fragments.i |
935 | SWIGSTATICINLINE(int) | |
936 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 937 | { |
c32bde28 RD |
938 | if (PyNumber_Check(obj)) { |
939 | if (val) *val = PyFloat_AsDouble(obj); | |
940 | return 1; | |
941 | } | |
d55e5bfc RD |
942 | else { |
943 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
944 | obj->ob_type->tp_name); | |
945 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
946 | Py_DECREF(errmsg); | |
d55e5bfc | 947 | } |
c32bde28 | 948 | return 0; |
d55e5bfc RD |
949 | } |
950 | ||
951 | ||
c32bde28 RD |
952 | SWIGSTATICINLINE(double) |
953 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 954 | { |
c32bde28 RD |
955 | double v; |
956 | if (!SWIG_AsVal_double(obj, &v)) { | |
957 | /* | |
958 | this is needed to make valgrind/purify happier. the other | |
959 | solution is throw an exception, but since this code should work | |
960 | with plain C .... | |
961 | */ | |
962 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 963 | } |
c32bde28 RD |
964 | return v; |
965 | } | |
966 | ||
967 | ||
968 | SWIGSTATICINLINE(int) | |
969 | SWIG_Check_double(PyObject* obj) | |
970 | { | |
971 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
972 | } |
973 | ||
974 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
975 | wxRect rv; | |
976 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
977 | return rv; | |
978 | } | |
c32bde28 | 979 | |
d55e5bfc RD |
980 | wxRect wxDC_GetClippingRect(wxDC *self){ |
981 | wxRect rect; | |
982 | self->GetClippingBox(rect); | |
983 | return rect; | |
984 | } | |
985 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
986 | wxArrayInt widths; | |
987 | self->GetPartialTextExtents(text, widths); | |
988 | return widths; | |
989 | } | |
c32bde28 | 990 | |
c24da6d6 RD |
991 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
992 | self->SetLogicalOrigin(point.x, point.y); | |
993 | } | |
994 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
995 | self->SetDeviceOrigin(point.x, point.y); | |
996 | } | |
997 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
998 | self->CalcBoundingBox(point.x, point.y); | |
999 | } | |
d55e5bfc RD |
1000 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
1001 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
1002 | } | |
1003 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1004 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
1005 | } | |
1006 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1007 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
1008 | } | |
1009 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1010 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
1011 | } | |
1012 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1013 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
1014 | } | |
1015 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
1016 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
1017 | } | |
1018 | ||
1019 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
1020 | *x1 = dc->MinX(); | |
1021 | *y1 = dc->MinY(); | |
1022 | *x2 = dc->MaxX(); | |
1023 | *y2 = dc->MaxY(); | |
1024 | } | |
1025 | ||
1026 | ||
1027 | #include <wx/dcbuffer.h> | |
1028 | ||
1029 | ||
1030 | #include <wx/dcps.h> | |
1031 | ||
1032 | ||
1033 | #include <wx/metafile.h> | |
1034 | ||
1035 | ||
1036 | ||
1037 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1038 | self->AddColour(name, wxColour(red, green, blue)); | |
1039 | } | |
1040 | ||
1041 | #include <wx/effects.h> | |
1042 | ||
1043 | #ifdef __cplusplus | |
1044 | extern "C" { | |
1045 | #endif | |
c32bde28 | 1046 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1047 | PyObject *resultobj; |
1048 | wxGDIObject *result; | |
1049 | char *kwnames[] = { | |
1050 | NULL | |
1051 | }; | |
1052 | ||
1053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1054 | { | |
0439c23b | 1055 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1057 | result = (wxGDIObject *)new wxGDIObject(); | |
1058 | ||
1059 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1060 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1061 | } |
1062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
1063 | return resultobj; | |
1064 | fail: | |
1065 | return NULL; | |
1066 | } | |
1067 | ||
1068 | ||
c32bde28 | 1069 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1070 | PyObject *resultobj; |
1071 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1072 | PyObject * obj0 = 0 ; | |
1073 | char *kwnames[] = { | |
1074 | (char *) "self", NULL | |
1075 | }; | |
1076 | ||
1077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
1078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1080 | { | |
1081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1082 | delete arg1; | |
1083 | ||
1084 | wxPyEndAllowThreads(__tstate); | |
1085 | if (PyErr_Occurred()) SWIG_fail; | |
1086 | } | |
1087 | Py_INCREF(Py_None); resultobj = Py_None; | |
1088 | return resultobj; | |
1089 | fail: | |
1090 | return NULL; | |
1091 | } | |
1092 | ||
1093 | ||
c32bde28 | 1094 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1095 | PyObject *resultobj; |
1096 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1097 | bool result; | |
1098 | PyObject * obj0 = 0 ; | |
1099 | char *kwnames[] = { | |
1100 | (char *) "self", NULL | |
1101 | }; | |
1102 | ||
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
1104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1106 | { | |
1107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1108 | result = (bool)(arg1)->GetVisible(); | |
1109 | ||
1110 | wxPyEndAllowThreads(__tstate); | |
1111 | if (PyErr_Occurred()) SWIG_fail; | |
1112 | } | |
1113 | { | |
1114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1115 | } | |
1116 | return resultobj; | |
1117 | fail: | |
1118 | return NULL; | |
1119 | } | |
1120 | ||
1121 | ||
c32bde28 | 1122 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1123 | PyObject *resultobj; |
1124 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1125 | bool arg2 ; | |
1126 | PyObject * obj0 = 0 ; | |
1127 | PyObject * obj1 = 0 ; | |
1128 | char *kwnames[] = { | |
1129 | (char *) "self",(char *) "visible", NULL | |
1130 | }; | |
1131 | ||
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
1133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1135 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
1136 | if (PyErr_Occurred()) SWIG_fail; |
1137 | { | |
1138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1139 | (arg1)->SetVisible(arg2); | |
1140 | ||
1141 | wxPyEndAllowThreads(__tstate); | |
1142 | if (PyErr_Occurred()) SWIG_fail; | |
1143 | } | |
1144 | Py_INCREF(Py_None); resultobj = Py_None; | |
1145 | return resultobj; | |
1146 | fail: | |
1147 | return NULL; | |
1148 | } | |
1149 | ||
1150 | ||
c32bde28 | 1151 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1152 | PyObject *resultobj; |
1153 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1154 | bool result; | |
1155 | PyObject * obj0 = 0 ; | |
1156 | char *kwnames[] = { | |
1157 | (char *) "self", NULL | |
1158 | }; | |
1159 | ||
1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
1161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1163 | { | |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1165 | result = (bool)(arg1)->IsNull(); | |
1166 | ||
1167 | wxPyEndAllowThreads(__tstate); | |
1168 | if (PyErr_Occurred()) SWIG_fail; | |
1169 | } | |
1170 | { | |
1171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1172 | } | |
1173 | return resultobj; | |
1174 | fail: | |
1175 | return NULL; | |
1176 | } | |
1177 | ||
1178 | ||
c32bde28 | 1179 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1180 | PyObject *obj; |
1181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1182 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1183 | Py_INCREF(obj); | |
1184 | return Py_BuildValue((char *)""); | |
1185 | } | |
c32bde28 | 1186 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 1187 | PyObject *resultobj; |
79fccf9d RD |
1188 | byte arg1 = (byte) 0 ; |
1189 | byte arg2 = (byte) 0 ; | |
1190 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1191 | wxColour *result; |
1192 | PyObject * obj0 = 0 ; | |
1193 | PyObject * obj1 = 0 ; | |
1194 | PyObject * obj2 = 0 ; | |
1195 | char *kwnames[] = { | |
1196 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1197 | }; | |
1198 | ||
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1200 | if (obj0) { | |
c32bde28 | 1201 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc RD |
1202 | if (PyErr_Occurred()) SWIG_fail; |
1203 | } | |
1204 | if (obj1) { | |
c32bde28 | 1205 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
1206 | if (PyErr_Occurred()) SWIG_fail; |
1207 | } | |
1208 | if (obj2) { | |
c32bde28 | 1209 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
1210 | if (PyErr_Occurred()) SWIG_fail; |
1211 | } | |
1212 | { | |
1213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1214 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1215 | ||
1216 | wxPyEndAllowThreads(__tstate); | |
1217 | if (PyErr_Occurred()) SWIG_fail; | |
1218 | } | |
1219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1220 | return resultobj; | |
1221 | fail: | |
1222 | return NULL; | |
1223 | } | |
1224 | ||
1225 | ||
c32bde28 | 1226 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1227 | PyObject *resultobj; |
1228 | wxString *arg1 = 0 ; | |
1229 | wxColour *result; | |
ae8162c8 | 1230 | bool temp1 = false ; |
d55e5bfc RD |
1231 | PyObject * obj0 = 0 ; |
1232 | char *kwnames[] = { | |
1233 | (char *) "colorName", NULL | |
1234 | }; | |
1235 | ||
1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1237 | { | |
1238 | arg1 = wxString_in_helper(obj0); | |
1239 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 1240 | temp1 = true; |
d55e5bfc RD |
1241 | } |
1242 | { | |
bf26d883 | 1243 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1245 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1246 | ||
1247 | wxPyEndAllowThreads(__tstate); | |
1248 | if (PyErr_Occurred()) SWIG_fail; | |
1249 | } | |
1250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1251 | { | |
1252 | if (temp1) | |
1253 | delete arg1; | |
1254 | } | |
1255 | return resultobj; | |
1256 | fail: | |
1257 | { | |
1258 | if (temp1) | |
1259 | delete arg1; | |
1260 | } | |
1261 | return NULL; | |
1262 | } | |
1263 | ||
1264 | ||
c32bde28 | 1265 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1266 | PyObject *resultobj; |
1267 | unsigned long arg1 ; | |
1268 | wxColour *result; | |
1269 | PyObject * obj0 = 0 ; | |
1270 | char *kwnames[] = { | |
1271 | (char *) "colRGB", NULL | |
1272 | }; | |
1273 | ||
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
c32bde28 | 1275 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
1276 | if (PyErr_Occurred()) SWIG_fail; |
1277 | { | |
1278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1279 | result = (wxColour *)new wxColour(arg1); | |
1280 | ||
1281 | wxPyEndAllowThreads(__tstate); | |
1282 | if (PyErr_Occurred()) SWIG_fail; | |
1283 | } | |
1284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1285 | return resultobj; | |
1286 | fail: | |
1287 | return NULL; | |
1288 | } | |
1289 | ||
1290 | ||
c32bde28 | 1291 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1292 | PyObject *resultobj; |
1293 | wxColour *arg1 = (wxColour *) 0 ; | |
1294 | PyObject * obj0 = 0 ; | |
1295 | char *kwnames[] = { | |
1296 | (char *) "self", NULL | |
1297 | }; | |
1298 | ||
1299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1302 | { | |
1303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1304 | delete arg1; | |
1305 | ||
1306 | wxPyEndAllowThreads(__tstate); | |
1307 | if (PyErr_Occurred()) SWIG_fail; | |
1308 | } | |
1309 | Py_INCREF(Py_None); resultobj = Py_None; | |
1310 | return resultobj; | |
1311 | fail: | |
1312 | return NULL; | |
1313 | } | |
1314 | ||
1315 | ||
c32bde28 | 1316 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1317 | PyObject *resultobj; |
1318 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1319 | byte result; |
d55e5bfc RD |
1320 | PyObject * obj0 = 0 ; |
1321 | char *kwnames[] = { | |
1322 | (char *) "self", NULL | |
1323 | }; | |
1324 | ||
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1328 | { | |
1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1330 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1331 | |
1332 | wxPyEndAllowThreads(__tstate); | |
1333 | if (PyErr_Occurred()) SWIG_fail; | |
1334 | } | |
c32bde28 | 1335 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1336 | return resultobj; |
1337 | fail: | |
1338 | return NULL; | |
1339 | } | |
1340 | ||
1341 | ||
c32bde28 | 1342 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1343 | PyObject *resultobj; |
1344 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1345 | byte result; |
d55e5bfc RD |
1346 | PyObject * obj0 = 0 ; |
1347 | char *kwnames[] = { | |
1348 | (char *) "self", NULL | |
1349 | }; | |
1350 | ||
1351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1354 | { | |
1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1356 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1357 | |
1358 | wxPyEndAllowThreads(__tstate); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
c32bde28 | 1361 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1362 | return resultobj; |
1363 | fail: | |
1364 | return NULL; | |
1365 | } | |
1366 | ||
1367 | ||
c32bde28 | 1368 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1369 | PyObject *resultobj; |
1370 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1371 | byte result; |
d55e5bfc RD |
1372 | PyObject * obj0 = 0 ; |
1373 | char *kwnames[] = { | |
1374 | (char *) "self", NULL | |
1375 | }; | |
1376 | ||
1377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1380 | { | |
1381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1382 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1383 | |
1384 | wxPyEndAllowThreads(__tstate); | |
1385 | if (PyErr_Occurred()) SWIG_fail; | |
1386 | } | |
c32bde28 | 1387 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1388 | return resultobj; |
1389 | fail: | |
1390 | return NULL; | |
1391 | } | |
1392 | ||
1393 | ||
c32bde28 | 1394 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1395 | PyObject *resultobj; |
1396 | wxColour *arg1 = (wxColour *) 0 ; | |
1397 | bool result; | |
1398 | PyObject * obj0 = 0 ; | |
1399 | char *kwnames[] = { | |
1400 | (char *) "self", NULL | |
1401 | }; | |
1402 | ||
1403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1406 | { | |
1407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1408 | result = (bool)(arg1)->Ok(); | |
1409 | ||
1410 | wxPyEndAllowThreads(__tstate); | |
1411 | if (PyErr_Occurred()) SWIG_fail; | |
1412 | } | |
1413 | { | |
1414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1415 | } | |
1416 | return resultobj; | |
1417 | fail: | |
1418 | return NULL; | |
1419 | } | |
1420 | ||
1421 | ||
c32bde28 | 1422 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1423 | PyObject *resultobj; |
1424 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d RD |
1425 | byte arg2 ; |
1426 | byte arg3 ; | |
1427 | byte arg4 ; | |
d55e5bfc RD |
1428 | PyObject * obj0 = 0 ; |
1429 | PyObject * obj1 = 0 ; | |
1430 | PyObject * obj2 = 0 ; | |
1431 | PyObject * obj3 = 0 ; | |
1432 | char *kwnames[] = { | |
1433 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1434 | }; | |
1435 | ||
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1439 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1440 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1441 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1442 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1443 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1444 | if (PyErr_Occurred()) SWIG_fail; |
1445 | { | |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | (arg1)->Set(arg2,arg3,arg4); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
1452 | Py_INCREF(Py_None); resultobj = Py_None; | |
1453 | return resultobj; | |
1454 | fail: | |
1455 | return NULL; | |
1456 | } | |
1457 | ||
1458 | ||
c32bde28 | 1459 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1460 | PyObject *resultobj; |
1461 | wxColour *arg1 = (wxColour *) 0 ; | |
1462 | unsigned long arg2 ; | |
1463 | PyObject * obj0 = 0 ; | |
1464 | PyObject * obj1 = 0 ; | |
1465 | char *kwnames[] = { | |
1466 | (char *) "self",(char *) "colRGB", NULL | |
1467 | }; | |
1468 | ||
1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1472 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
1473 | if (PyErr_Occurred()) SWIG_fail; |
1474 | { | |
1475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1476 | (arg1)->Set(arg2); | |
1477 | ||
1478 | wxPyEndAllowThreads(__tstate); | |
1479 | if (PyErr_Occurred()) SWIG_fail; | |
1480 | } | |
1481 | Py_INCREF(Py_None); resultobj = Py_None; | |
1482 | return resultobj; | |
1483 | fail: | |
1484 | return NULL; | |
1485 | } | |
1486 | ||
1487 | ||
c32bde28 | 1488 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1489 | PyObject *resultobj; |
1490 | wxColour *arg1 = (wxColour *) 0 ; | |
1491 | wxString *arg2 = 0 ; | |
ae8162c8 | 1492 | bool temp2 = false ; |
d55e5bfc RD |
1493 | PyObject * obj0 = 0 ; |
1494 | PyObject * obj1 = 0 ; | |
1495 | char *kwnames[] = { | |
1496 | (char *) "self",(char *) "colourName", NULL | |
1497 | }; | |
1498 | ||
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1502 | { | |
1503 | arg2 = wxString_in_helper(obj1); | |
1504 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1505 | temp2 = true; |
d55e5bfc RD |
1506 | } |
1507 | { | |
1508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1509 | (arg1)->InitFromName((wxString const &)*arg2); | |
1510 | ||
1511 | wxPyEndAllowThreads(__tstate); | |
1512 | if (PyErr_Occurred()) SWIG_fail; | |
1513 | } | |
1514 | Py_INCREF(Py_None); resultobj = Py_None; | |
1515 | { | |
1516 | if (temp2) | |
1517 | delete arg2; | |
1518 | } | |
1519 | return resultobj; | |
1520 | fail: | |
1521 | { | |
1522 | if (temp2) | |
1523 | delete arg2; | |
1524 | } | |
1525 | return NULL; | |
1526 | } | |
1527 | ||
1528 | ||
c32bde28 | 1529 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1530 | PyObject *resultobj; |
1531 | wxColour *arg1 = (wxColour *) 0 ; | |
1532 | long result; | |
1533 | PyObject * obj0 = 0 ; | |
1534 | char *kwnames[] = { | |
1535 | (char *) "self", NULL | |
1536 | }; | |
1537 | ||
1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1541 | { | |
1542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1543 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1544 | ||
1545 | wxPyEndAllowThreads(__tstate); | |
1546 | if (PyErr_Occurred()) SWIG_fail; | |
1547 | } | |
c32bde28 | 1548 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
1549 | return resultobj; |
1550 | fail: | |
1551 | return NULL; | |
1552 | } | |
1553 | ||
1554 | ||
c32bde28 | 1555 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1556 | PyObject *resultobj; |
1557 | wxColour *arg1 = (wxColour *) 0 ; | |
1558 | wxColour *arg2 = 0 ; | |
1559 | bool result; | |
1560 | wxColour temp2 ; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | PyObject * obj1 = 0 ; | |
1563 | char *kwnames[] = { | |
1564 | (char *) "self",(char *) "colour", NULL | |
1565 | }; | |
1566 | ||
1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1570 | { | |
1571 | arg2 = &temp2; | |
1572 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1573 | } | |
1574 | { | |
1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1576 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1577 | ||
1578 | wxPyEndAllowThreads(__tstate); | |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
1580 | } | |
1581 | { | |
1582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1583 | } | |
1584 | return resultobj; | |
1585 | fail: | |
1586 | return NULL; | |
1587 | } | |
1588 | ||
1589 | ||
c32bde28 | 1590 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1591 | PyObject *resultobj; |
1592 | wxColour *arg1 = (wxColour *) 0 ; | |
1593 | wxColour *arg2 = 0 ; | |
1594 | bool result; | |
1595 | wxColour temp2 ; | |
1596 | PyObject * obj0 = 0 ; | |
1597 | PyObject * obj1 = 0 ; | |
1598 | char *kwnames[] = { | |
1599 | (char *) "self",(char *) "colour", NULL | |
1600 | }; | |
1601 | ||
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1605 | { | |
1606 | arg2 = &temp2; | |
1607 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1608 | } | |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
1616 | { | |
1617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1618 | } | |
1619 | return resultobj; | |
1620 | fail: | |
1621 | return NULL; | |
1622 | } | |
1623 | ||
1624 | ||
c32bde28 | 1625 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1626 | PyObject *resultobj; |
1627 | wxColour *arg1 = (wxColour *) 0 ; | |
1628 | PyObject *result; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "self", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | result = (PyObject *)wxColour_Get(arg1); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
1644 | resultobj = result; | |
1645 | return resultobj; | |
1646 | fail: | |
1647 | return NULL; | |
1648 | } | |
1649 | ||
1650 | ||
c32bde28 | 1651 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1652 | PyObject *resultobj; |
1653 | wxColour *arg1 = (wxColour *) 0 ; | |
1654 | unsigned long result; | |
1655 | PyObject * obj0 = 0 ; | |
1656 | char *kwnames[] = { | |
1657 | (char *) "self", NULL | |
1658 | }; | |
1659 | ||
1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1663 | { | |
1664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1665 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1666 | ||
1667 | wxPyEndAllowThreads(__tstate); | |
1668 | if (PyErr_Occurred()) SWIG_fail; | |
1669 | } | |
c32bde28 | 1670 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
1671 | return resultobj; |
1672 | fail: | |
1673 | return NULL; | |
1674 | } | |
1675 | ||
1676 | ||
c32bde28 | 1677 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1678 | PyObject *obj; |
1679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1680 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1681 | Py_INCREF(obj); | |
1682 | return Py_BuildValue((char *)""); | |
1683 | } | |
c32bde28 | 1684 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1685 | PyObject *resultobj; |
1686 | int arg1 ; | |
1687 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1688 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1689 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1690 | wxPalette *result; | |
1691 | PyObject * obj0 = 0 ; | |
1692 | PyObject * obj1 = 0 ; | |
1693 | PyObject * obj2 = 0 ; | |
1694 | PyObject * obj3 = 0 ; | |
1695 | char *kwnames[] = { | |
1696 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1697 | }; | |
1698 | ||
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 1700 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1701 | if (PyErr_Occurred()) SWIG_fail; |
1702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1704 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1706 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1708 | { | |
0439c23b | 1709 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1711 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1712 | ||
1713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1714 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1715 | } |
1716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1717 | return resultobj; | |
1718 | fail: | |
1719 | return NULL; | |
1720 | } | |
1721 | ||
1722 | ||
c32bde28 | 1723 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1724 | PyObject *resultobj; |
1725 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1726 | PyObject * obj0 = 0 ; | |
1727 | char *kwnames[] = { | |
1728 | (char *) "self", NULL | |
1729 | }; | |
1730 | ||
1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1734 | { | |
1735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1736 | delete arg1; | |
1737 | ||
1738 | wxPyEndAllowThreads(__tstate); | |
1739 | if (PyErr_Occurred()) SWIG_fail; | |
1740 | } | |
1741 | Py_INCREF(Py_None); resultobj = Py_None; | |
1742 | return resultobj; | |
1743 | fail: | |
1744 | return NULL; | |
1745 | } | |
1746 | ||
1747 | ||
c32bde28 | 1748 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1749 | PyObject *resultobj; |
1750 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1751 | byte arg2 ; | |
1752 | byte arg3 ; | |
1753 | byte arg4 ; | |
1754 | int result; | |
1755 | PyObject * obj0 = 0 ; | |
1756 | PyObject * obj1 = 0 ; | |
1757 | PyObject * obj2 = 0 ; | |
1758 | PyObject * obj3 = 0 ; | |
1759 | char *kwnames[] = { | |
1760 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1761 | }; | |
1762 | ||
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1766 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1767 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1768 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1769 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1770 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1771 | if (PyErr_Occurred()) SWIG_fail; |
1772 | { | |
1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1774 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1775 | ||
1776 | wxPyEndAllowThreads(__tstate); | |
1777 | if (PyErr_Occurred()) SWIG_fail; | |
1778 | } | |
c32bde28 | 1779 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1780 | return resultobj; |
1781 | fail: | |
1782 | return NULL; | |
1783 | } | |
1784 | ||
1785 | ||
c32bde28 | 1786 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1787 | PyObject *resultobj; |
1788 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1789 | int arg2 ; | |
1790 | byte *arg3 = (byte *) 0 ; | |
1791 | byte *arg4 = (byte *) 0 ; | |
1792 | byte *arg5 = (byte *) 0 ; | |
1793 | bool result; | |
1794 | byte temp3 ; | |
c32bde28 | 1795 | int res3 = 0 ; |
d55e5bfc | 1796 | byte temp4 ; |
c32bde28 | 1797 | int res4 = 0 ; |
d55e5bfc | 1798 | byte temp5 ; |
c32bde28 | 1799 | int res5 = 0 ; |
d55e5bfc RD |
1800 | PyObject * obj0 = 0 ; |
1801 | PyObject * obj1 = 0 ; | |
1802 | char *kwnames[] = { | |
1803 | (char *) "self",(char *) "pixel", NULL | |
1804 | }; | |
1805 | ||
c32bde28 RD |
1806 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
1807 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1808 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
1810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1812 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1813 | if (PyErr_Occurred()) SWIG_fail; |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | { | |
1822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1823 | } | |
c32bde28 RD |
1824 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
1825 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1826 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1827 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1828 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1829 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
1830 | return resultobj; |
1831 | fail: | |
1832 | return NULL; | |
1833 | } | |
1834 | ||
1835 | ||
c32bde28 | 1836 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1837 | PyObject *resultobj; |
1838 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1839 | bool result; | |
1840 | PyObject * obj0 = 0 ; | |
1841 | char *kwnames[] = { | |
1842 | (char *) "self", NULL | |
1843 | }; | |
1844 | ||
1845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | result = (bool)(arg1)->Ok(); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | { | |
1856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1857 | } | |
1858 | return resultobj; | |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
c32bde28 | 1864 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1865 | PyObject *obj; |
1866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1867 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1868 | Py_INCREF(obj); | |
1869 | return Py_BuildValue((char *)""); | |
1870 | } | |
c32bde28 | 1871 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1872 | PyObject *resultobj; |
1873 | wxColour *arg1 = 0 ; | |
1874 | int arg2 = (int) 1 ; | |
1875 | int arg3 = (int) wxSOLID ; | |
1876 | wxPen *result; | |
1877 | wxColour temp1 ; | |
1878 | PyObject * obj0 = 0 ; | |
1879 | PyObject * obj1 = 0 ; | |
1880 | PyObject * obj2 = 0 ; | |
1881 | char *kwnames[] = { | |
1882 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1883 | }; | |
1884 | ||
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1886 | { | |
1887 | arg1 = &temp1; | |
1888 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1889 | } | |
1890 | if (obj1) { | |
c32bde28 | 1891 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1892 | if (PyErr_Occurred()) SWIG_fail; |
1893 | } | |
1894 | if (obj2) { | |
c32bde28 | 1895 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
1896 | if (PyErr_Occurred()) SWIG_fail; |
1897 | } | |
1898 | { | |
0439c23b | 1899 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1901 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1902 | ||
1903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1904 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1905 | } |
1906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1907 | return resultobj; | |
1908 | fail: | |
1909 | return NULL; | |
1910 | } | |
1911 | ||
1912 | ||
c32bde28 | 1913 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1914 | PyObject *resultobj; |
1915 | wxPen *arg1 = (wxPen *) 0 ; | |
1916 | PyObject * obj0 = 0 ; | |
1917 | char *kwnames[] = { | |
1918 | (char *) "self", NULL | |
1919 | }; | |
1920 | ||
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1924 | { | |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1926 | delete arg1; | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
1929 | if (PyErr_Occurred()) SWIG_fail; | |
1930 | } | |
1931 | Py_INCREF(Py_None); resultobj = Py_None; | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
c32bde28 | 1938 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1939 | PyObject *resultobj; |
1940 | wxPen *arg1 = (wxPen *) 0 ; | |
1941 | int result; | |
1942 | PyObject * obj0 = 0 ; | |
1943 | char *kwnames[] = { | |
1944 | (char *) "self", NULL | |
1945 | }; | |
1946 | ||
1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1950 | { | |
1951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1952 | result = (int)(arg1)->GetCap(); | |
1953 | ||
1954 | wxPyEndAllowThreads(__tstate); | |
1955 | if (PyErr_Occurred()) SWIG_fail; | |
1956 | } | |
c32bde28 | 1957 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1958 | return resultobj; |
1959 | fail: | |
1960 | return NULL; | |
1961 | } | |
1962 | ||
1963 | ||
c32bde28 | 1964 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1965 | PyObject *resultobj; |
1966 | wxPen *arg1 = (wxPen *) 0 ; | |
1967 | wxColour result; | |
1968 | PyObject * obj0 = 0 ; | |
1969 | char *kwnames[] = { | |
1970 | (char *) "self", NULL | |
1971 | }; | |
1972 | ||
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1976 | { | |
1977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1978 | result = (arg1)->GetColour(); | |
1979 | ||
1980 | wxPyEndAllowThreads(__tstate); | |
1981 | if (PyErr_Occurred()) SWIG_fail; | |
1982 | } | |
1983 | { | |
1984 | wxColour * resultptr; | |
1985 | resultptr = new wxColour((wxColour &) result); | |
1986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1987 | } | |
1988 | return resultobj; | |
1989 | fail: | |
1990 | return NULL; | |
1991 | } | |
1992 | ||
1993 | ||
c32bde28 | 1994 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1995 | PyObject *resultobj; |
1996 | wxPen *arg1 = (wxPen *) 0 ; | |
1997 | int result; | |
1998 | PyObject * obj0 = 0 ; | |
1999 | char *kwnames[] = { | |
2000 | (char *) "self", NULL | |
2001 | }; | |
2002 | ||
2003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
2004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2006 | { | |
2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2008 | result = (int)(arg1)->GetJoin(); | |
2009 | ||
2010 | wxPyEndAllowThreads(__tstate); | |
2011 | if (PyErr_Occurred()) SWIG_fail; | |
2012 | } | |
c32bde28 | 2013 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2014 | return resultobj; |
2015 | fail: | |
2016 | return NULL; | |
2017 | } | |
2018 | ||
2019 | ||
c32bde28 | 2020 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2021 | PyObject *resultobj; |
2022 | wxPen *arg1 = (wxPen *) 0 ; | |
2023 | int result; | |
2024 | PyObject * obj0 = 0 ; | |
2025 | char *kwnames[] = { | |
2026 | (char *) "self", NULL | |
2027 | }; | |
2028 | ||
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
2030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2032 | { | |
2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2034 | result = (int)(arg1)->GetStyle(); | |
2035 | ||
2036 | wxPyEndAllowThreads(__tstate); | |
2037 | if (PyErr_Occurred()) SWIG_fail; | |
2038 | } | |
c32bde28 | 2039 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2040 | return resultobj; |
2041 | fail: | |
2042 | return NULL; | |
2043 | } | |
2044 | ||
2045 | ||
c32bde28 | 2046 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2047 | PyObject *resultobj; |
2048 | wxPen *arg1 = (wxPen *) 0 ; | |
2049 | int result; | |
2050 | PyObject * obj0 = 0 ; | |
2051 | char *kwnames[] = { | |
2052 | (char *) "self", NULL | |
2053 | }; | |
2054 | ||
2055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2058 | { | |
2059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2060 | result = (int)(arg1)->GetWidth(); | |
2061 | ||
2062 | wxPyEndAllowThreads(__tstate); | |
2063 | if (PyErr_Occurred()) SWIG_fail; | |
2064 | } | |
c32bde28 | 2065 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2066 | return resultobj; |
2067 | fail: | |
2068 | return NULL; | |
2069 | } | |
2070 | ||
2071 | ||
c32bde28 | 2072 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2073 | PyObject *resultobj; |
2074 | wxPen *arg1 = (wxPen *) 0 ; | |
2075 | bool result; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | char *kwnames[] = { | |
2078 | (char *) "self", NULL | |
2079 | }; | |
2080 | ||
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | result = (bool)(arg1)->Ok(); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | { | |
2092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2093 | } | |
2094 | return resultobj; | |
2095 | fail: | |
2096 | return NULL; | |
2097 | } | |
2098 | ||
2099 | ||
c32bde28 | 2100 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2101 | PyObject *resultobj; |
2102 | wxPen *arg1 = (wxPen *) 0 ; | |
2103 | int arg2 ; | |
2104 | PyObject * obj0 = 0 ; | |
2105 | PyObject * obj1 = 0 ; | |
2106 | char *kwnames[] = { | |
2107 | (char *) "self",(char *) "cap_style", NULL | |
2108 | }; | |
2109 | ||
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
2111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2113 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2114 | if (PyErr_Occurred()) SWIG_fail; |
2115 | { | |
2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2117 | (arg1)->SetCap(arg2); | |
2118 | ||
2119 | wxPyEndAllowThreads(__tstate); | |
2120 | if (PyErr_Occurred()) SWIG_fail; | |
2121 | } | |
2122 | Py_INCREF(Py_None); resultobj = Py_None; | |
2123 | return resultobj; | |
2124 | fail: | |
2125 | return NULL; | |
2126 | } | |
2127 | ||
2128 | ||
c32bde28 | 2129 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2130 | PyObject *resultobj; |
2131 | wxPen *arg1 = (wxPen *) 0 ; | |
2132 | wxColour *arg2 = 0 ; | |
2133 | wxColour temp2 ; | |
2134 | PyObject * obj0 = 0 ; | |
2135 | PyObject * obj1 = 0 ; | |
2136 | char *kwnames[] = { | |
2137 | (char *) "self",(char *) "colour", NULL | |
2138 | }; | |
2139 | ||
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2143 | { | |
2144 | arg2 = &temp2; | |
2145 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2146 | } | |
2147 | { | |
2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2149 | (arg1)->SetColour(*arg2); | |
2150 | ||
2151 | wxPyEndAllowThreads(__tstate); | |
2152 | if (PyErr_Occurred()) SWIG_fail; | |
2153 | } | |
2154 | Py_INCREF(Py_None); resultobj = Py_None; | |
2155 | return resultobj; | |
2156 | fail: | |
2157 | return NULL; | |
2158 | } | |
2159 | ||
2160 | ||
c32bde28 | 2161 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2162 | PyObject *resultobj; |
2163 | wxPen *arg1 = (wxPen *) 0 ; | |
2164 | int arg2 ; | |
2165 | PyObject * obj0 = 0 ; | |
2166 | PyObject * obj1 = 0 ; | |
2167 | char *kwnames[] = { | |
2168 | (char *) "self",(char *) "join_style", NULL | |
2169 | }; | |
2170 | ||
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2174 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2175 | if (PyErr_Occurred()) SWIG_fail; |
2176 | { | |
2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2178 | (arg1)->SetJoin(arg2); | |
2179 | ||
2180 | wxPyEndAllowThreads(__tstate); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | Py_INCREF(Py_None); resultobj = Py_None; | |
2184 | return resultobj; | |
2185 | fail: | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
c32bde28 | 2190 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2191 | PyObject *resultobj; |
2192 | wxPen *arg1 = (wxPen *) 0 ; | |
2193 | int arg2 ; | |
2194 | PyObject * obj0 = 0 ; | |
2195 | PyObject * obj1 = 0 ; | |
2196 | char *kwnames[] = { | |
2197 | (char *) "self",(char *) "style", NULL | |
2198 | }; | |
2199 | ||
2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2203 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2204 | if (PyErr_Occurred()) SWIG_fail; |
2205 | { | |
2206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2207 | (arg1)->SetStyle(arg2); | |
2208 | ||
2209 | wxPyEndAllowThreads(__tstate); | |
2210 | if (PyErr_Occurred()) SWIG_fail; | |
2211 | } | |
2212 | Py_INCREF(Py_None); resultobj = Py_None; | |
2213 | return resultobj; | |
2214 | fail: | |
2215 | return NULL; | |
2216 | } | |
2217 | ||
2218 | ||
c32bde28 | 2219 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2220 | PyObject *resultobj; |
2221 | wxPen *arg1 = (wxPen *) 0 ; | |
2222 | int arg2 ; | |
2223 | PyObject * obj0 = 0 ; | |
2224 | PyObject * obj1 = 0 ; | |
2225 | char *kwnames[] = { | |
2226 | (char *) "self",(char *) "width", NULL | |
2227 | }; | |
2228 | ||
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2232 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2233 | if (PyErr_Occurred()) SWIG_fail; |
2234 | { | |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2236 | (arg1)->SetWidth(arg2); | |
2237 | ||
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
2241 | Py_INCREF(Py_None); resultobj = Py_None; | |
2242 | return resultobj; | |
2243 | fail: | |
2244 | return NULL; | |
2245 | } | |
2246 | ||
2247 | ||
c32bde28 | 2248 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2249 | PyObject *resultobj; |
2250 | wxPen *arg1 = (wxPen *) 0 ; | |
2251 | int arg2 ; | |
2252 | wxDash *arg3 = (wxDash *) 0 ; | |
2253 | PyObject * obj0 = 0 ; | |
2254 | PyObject * obj1 = 0 ; | |
2255 | char *kwnames[] = { | |
2256 | (char *) "self",(char *) "dashes", NULL | |
2257 | }; | |
2258 | ||
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2262 | { | |
2263 | arg2 = PyList_Size(obj1); | |
2264 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2265 | if (arg3 == NULL) SWIG_fail; | |
2266 | } | |
2267 | { | |
2268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2269 | (arg1)->SetDashes(arg2,arg3); | |
2270 | ||
2271 | wxPyEndAllowThreads(__tstate); | |
2272 | if (PyErr_Occurred()) SWIG_fail; | |
2273 | } | |
2274 | Py_INCREF(Py_None); resultobj = Py_None; | |
2275 | { | |
2276 | if (arg3) delete [] arg3; | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | { | |
2281 | if (arg3) delete [] arg3; | |
2282 | } | |
2283 | return NULL; | |
2284 | } | |
2285 | ||
2286 | ||
c32bde28 | 2287 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2288 | PyObject *resultobj; |
2289 | wxPen *arg1 = (wxPen *) 0 ; | |
2290 | PyObject *result; | |
2291 | PyObject * obj0 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2299 | { | |
2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2301 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2302 | ||
2303 | wxPyEndAllowThreads(__tstate); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | } | |
2306 | resultobj = result; | |
2307 | return resultobj; | |
2308 | fail: | |
2309 | return NULL; | |
2310 | } | |
2311 | ||
2312 | ||
c32bde28 | 2313 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2314 | PyObject *resultobj; |
2315 | wxPen *arg1 = (wxPen *) 0 ; | |
c24da6d6 RD |
2316 | PyObject *arg2 = (PyObject *) 0 ; |
2317 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2318 | PyObject * obj0 = 0 ; |
2319 | PyObject * obj1 = 0 ; | |
c24da6d6 | 2320 | PyObject * obj2 = 0 ; |
d55e5bfc | 2321 | char *kwnames[] = { |
c24da6d6 | 2322 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2323 | }; |
2324 | ||
c24da6d6 | 2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c24da6d6 RD |
2328 | arg2 = obj1; |
2329 | arg3 = obj2; | |
d55e5bfc RD |
2330 | { |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2332 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2333 | |
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
c24da6d6 | 2337 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2338 | return resultobj; |
2339 | fail: | |
2340 | return NULL; | |
2341 | } | |
2342 | ||
2343 | ||
c32bde28 | 2344 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2345 | PyObject *resultobj; |
2346 | wxPen *arg1 = (wxPen *) 0 ; | |
2347 | int result; | |
2348 | PyObject * obj0 = 0 ; | |
2349 | char *kwnames[] = { | |
2350 | (char *) "self", NULL | |
2351 | }; | |
2352 | ||
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
c32bde28 | 2363 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2364 | return resultobj; |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
c32bde28 | 2370 | static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2371 | PyObject *resultobj; |
2372 | wxPen *arg1 = (wxPen *) 0 ; | |
2373 | wxBitmap *result; | |
2374 | PyObject * obj0 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "self", NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2382 | { | |
2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2384 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2385 | ||
2386 | wxPyEndAllowThreads(__tstate); | |
2387 | if (PyErr_Occurred()) SWIG_fail; | |
2388 | } | |
2389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2390 | return resultobj; | |
2391 | fail: | |
2392 | return NULL; | |
2393 | } | |
2394 | ||
2395 | ||
c32bde28 | 2396 | static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2397 | PyObject *resultobj; |
2398 | wxPen *arg1 = (wxPen *) 0 ; | |
2399 | wxBitmap *arg2 = 0 ; | |
2400 | PyObject * obj0 = 0 ; | |
2401 | PyObject * obj1 = 0 ; | |
2402 | char *kwnames[] = { | |
2403 | (char *) "self",(char *) "stipple", NULL | |
2404 | }; | |
2405 | ||
2406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2411 | SWIG_fail; | |
2412 | if (arg2 == NULL) { | |
2413 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2414 | SWIG_fail; | |
2415 | } | |
2416 | { | |
2417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2418 | (arg1)->SetStipple(*arg2); | |
2419 | ||
2420 | wxPyEndAllowThreads(__tstate); | |
2421 | if (PyErr_Occurred()) SWIG_fail; | |
2422 | } | |
2423 | Py_INCREF(Py_None); resultobj = Py_None; | |
2424 | return resultobj; | |
2425 | fail: | |
2426 | return NULL; | |
2427 | } | |
2428 | ||
2429 | ||
c32bde28 | 2430 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2431 | PyObject *resultobj; |
c24da6d6 RD |
2432 | wxPen *arg1 = (wxPen *) 0 ; |
2433 | wxPen *arg2 = (wxPen *) 0 ; | |
2434 | bool result; | |
d55e5bfc RD |
2435 | PyObject * obj0 = 0 ; |
2436 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2437 | char *kwnames[] = { |
c24da6d6 | 2438 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2439 | }; |
2440 | ||
c24da6d6 RD |
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
2446 | { |
2447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2448 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2449 | |
2450 | wxPyEndAllowThreads(__tstate); | |
2451 | if (PyErr_Occurred()) SWIG_fail; | |
2452 | } | |
d55e5bfc | 2453 | { |
c24da6d6 | 2454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc | 2455 | } |
d55e5bfc RD |
2456 | return resultobj; |
2457 | fail: | |
2458 | return NULL; | |
2459 | } | |
2460 | ||
2461 | ||
c32bde28 | 2462 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2463 | PyObject *resultobj; |
c24da6d6 RD |
2464 | wxPen *arg1 = (wxPen *) 0 ; |
2465 | wxPen *arg2 = (wxPen *) 0 ; | |
2466 | bool result; | |
d55e5bfc RD |
2467 | PyObject * obj0 = 0 ; |
2468 | PyObject * obj1 = 0 ; | |
2469 | char *kwnames[] = { | |
c24da6d6 | 2470 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2471 | }; |
2472 | ||
c24da6d6 RD |
2473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2478 | { |
2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2480 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2481 | |
2482 | wxPyEndAllowThreads(__tstate); | |
2483 | if (PyErr_Occurred()) SWIG_fail; | |
2484 | } | |
d55e5bfc | 2485 | { |
c24da6d6 | 2486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2487 | } |
2488 | return resultobj; | |
2489 | fail: | |
d55e5bfc RD |
2490 | return NULL; |
2491 | } | |
2492 | ||
2493 | ||
c32bde28 | 2494 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2495 | PyObject *obj; |
2496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
c24da6d6 | 2497 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2498 | Py_INCREF(obj); |
2499 | return Py_BuildValue((char *)""); | |
2500 | } | |
c32bde28 | 2501 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2502 | PyObject *resultobj; |
2503 | wxColour *arg1 = 0 ; | |
2504 | int arg2 = (int) wxSOLID ; | |
2505 | wxBrush *result; | |
2506 | wxColour temp1 ; | |
2507 | PyObject * obj0 = 0 ; | |
2508 | PyObject * obj1 = 0 ; | |
2509 | char *kwnames[] = { | |
2510 | (char *) "colour",(char *) "style", NULL | |
2511 | }; | |
2512 | ||
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2514 | { | |
2515 | arg1 = &temp1; | |
2516 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2517 | } | |
2518 | if (obj1) { | |
c32bde28 | 2519 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2520 | if (PyErr_Occurred()) SWIG_fail; |
2521 | } | |
2522 | { | |
0439c23b | 2523 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2525 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2526 | ||
2527 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2528 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2529 | } |
2530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2531 | return resultobj; | |
2532 | fail: | |
2533 | return NULL; | |
2534 | } | |
2535 | ||
2536 | ||
c32bde28 | 2537 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2538 | PyObject *resultobj; |
2539 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2540 | PyObject * obj0 = 0 ; | |
2541 | char *kwnames[] = { | |
2542 | (char *) "self", NULL | |
2543 | }; | |
2544 | ||
2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2548 | { | |
2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2550 | delete arg1; | |
2551 | ||
2552 | wxPyEndAllowThreads(__tstate); | |
2553 | if (PyErr_Occurred()) SWIG_fail; | |
2554 | } | |
2555 | Py_INCREF(Py_None); resultobj = Py_None; | |
2556 | return resultobj; | |
2557 | fail: | |
2558 | return NULL; | |
2559 | } | |
2560 | ||
2561 | ||
c32bde28 | 2562 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2563 | PyObject *resultobj; |
2564 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2565 | wxColour *arg2 = 0 ; | |
2566 | wxColour temp2 ; | |
2567 | PyObject * obj0 = 0 ; | |
2568 | PyObject * obj1 = 0 ; | |
2569 | char *kwnames[] = { | |
2570 | (char *) "self",(char *) "col", NULL | |
2571 | }; | |
2572 | ||
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2576 | { | |
2577 | arg2 = &temp2; | |
2578 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2579 | } | |
2580 | { | |
2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2582 | (arg1)->SetColour((wxColour const &)*arg2); | |
2583 | ||
2584 | wxPyEndAllowThreads(__tstate); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | } | |
2587 | Py_INCREF(Py_None); resultobj = Py_None; | |
2588 | return resultobj; | |
2589 | fail: | |
2590 | return NULL; | |
2591 | } | |
2592 | ||
2593 | ||
c32bde28 | 2594 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2595 | PyObject *resultobj; |
2596 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2597 | int arg2 ; | |
2598 | PyObject * obj0 = 0 ; | |
2599 | PyObject * obj1 = 0 ; | |
2600 | char *kwnames[] = { | |
2601 | (char *) "self",(char *) "style", NULL | |
2602 | }; | |
2603 | ||
2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2607 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2608 | if (PyErr_Occurred()) SWIG_fail; |
2609 | { | |
2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2611 | (arg1)->SetStyle(arg2); | |
2612 | ||
2613 | wxPyEndAllowThreads(__tstate); | |
2614 | if (PyErr_Occurred()) SWIG_fail; | |
2615 | } | |
2616 | Py_INCREF(Py_None); resultobj = Py_None; | |
2617 | return resultobj; | |
2618 | fail: | |
2619 | return NULL; | |
2620 | } | |
2621 | ||
2622 | ||
c32bde28 | 2623 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2624 | PyObject *resultobj; |
2625 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2626 | wxBitmap *arg2 = 0 ; | |
2627 | PyObject * obj0 = 0 ; | |
2628 | PyObject * obj1 = 0 ; | |
2629 | char *kwnames[] = { | |
2630 | (char *) "self",(char *) "stipple", NULL | |
2631 | }; | |
2632 | ||
2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2638 | SWIG_fail; | |
2639 | if (arg2 == NULL) { | |
2640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2641 | SWIG_fail; | |
2642 | } | |
2643 | { | |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | Py_INCREF(Py_None); resultobj = Py_None; | |
2651 | return resultobj; | |
2652 | fail: | |
2653 | return NULL; | |
2654 | } | |
2655 | ||
2656 | ||
c32bde28 | 2657 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2658 | PyObject *resultobj; |
2659 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2660 | wxColour result; | |
2661 | PyObject * obj0 = 0 ; | |
2662 | char *kwnames[] = { | |
2663 | (char *) "self", NULL | |
2664 | }; | |
2665 | ||
2666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2669 | { | |
2670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2671 | result = ((wxBrush const *)arg1)->GetColour(); | |
2672 | ||
2673 | wxPyEndAllowThreads(__tstate); | |
2674 | if (PyErr_Occurred()) SWIG_fail; | |
2675 | } | |
2676 | { | |
2677 | wxColour * resultptr; | |
2678 | resultptr = new wxColour((wxColour &) result); | |
2679 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2680 | } | |
2681 | return resultobj; | |
2682 | fail: | |
2683 | return NULL; | |
2684 | } | |
2685 | ||
2686 | ||
c32bde28 | 2687 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2688 | PyObject *resultobj; |
2689 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2690 | int result; | |
2691 | PyObject * obj0 = 0 ; | |
2692 | char *kwnames[] = { | |
2693 | (char *) "self", NULL | |
2694 | }; | |
2695 | ||
2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2699 | { | |
2700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2701 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2702 | ||
2703 | wxPyEndAllowThreads(__tstate); | |
2704 | if (PyErr_Occurred()) SWIG_fail; | |
2705 | } | |
c32bde28 | 2706 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2707 | return resultobj; |
2708 | fail: | |
2709 | return NULL; | |
2710 | } | |
2711 | ||
2712 | ||
c32bde28 | 2713 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2714 | PyObject *resultobj; |
2715 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2716 | wxBitmap *result; | |
2717 | PyObject * obj0 = 0 ; | |
2718 | char *kwnames[] = { | |
2719 | (char *) "self", NULL | |
2720 | }; | |
2721 | ||
2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2725 | { | |
2726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2727 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2728 | ||
2729 | wxPyEndAllowThreads(__tstate); | |
2730 | if (PyErr_Occurred()) SWIG_fail; | |
2731 | } | |
2732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2733 | return resultobj; | |
2734 | fail: | |
2735 | return NULL; | |
2736 | } | |
2737 | ||
2738 | ||
c32bde28 | 2739 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2740 | PyObject *resultobj; |
2741 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2742 | bool result; | |
2743 | PyObject * obj0 = 0 ; | |
2744 | char *kwnames[] = { | |
2745 | (char *) "self", NULL | |
2746 | }; | |
2747 | ||
2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | result = (bool)(arg1)->Ok(); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | { | |
2759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2760 | } | |
2761 | return resultobj; | |
2762 | fail: | |
2763 | return NULL; | |
2764 | } | |
2765 | ||
2766 | ||
c32bde28 | 2767 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2768 | PyObject *obj; |
2769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2770 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2771 | Py_INCREF(obj); | |
2772 | return Py_BuildValue((char *)""); | |
2773 | } | |
c32bde28 | 2774 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2775 | PyObject *resultobj; |
2776 | wxString *arg1 = 0 ; | |
2777 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2778 | wxBitmap *result; | |
ae8162c8 | 2779 | bool temp1 = false ; |
d55e5bfc RD |
2780 | PyObject * obj0 = 0 ; |
2781 | PyObject * obj1 = 0 ; | |
2782 | char *kwnames[] = { | |
2783 | (char *) "name",(char *) "type", NULL | |
2784 | }; | |
2785 | ||
2786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2787 | { | |
2788 | arg1 = wxString_in_helper(obj0); | |
2789 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2790 | temp1 = true; |
d55e5bfc RD |
2791 | } |
2792 | if (obj1) { | |
c32bde28 | 2793 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2794 | if (PyErr_Occurred()) SWIG_fail; |
2795 | } | |
2796 | { | |
0439c23b | 2797 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2799 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2800 | ||
2801 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2802 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2803 | } |
2804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2805 | { | |
2806 | if (temp1) | |
2807 | delete arg1; | |
2808 | } | |
2809 | return resultobj; | |
2810 | fail: | |
2811 | { | |
2812 | if (temp1) | |
2813 | delete arg1; | |
2814 | } | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
c32bde28 | 2819 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2820 | PyObject *resultobj; |
2821 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2822 | PyObject * obj0 = 0 ; | |
2823 | char *kwnames[] = { | |
2824 | (char *) "self", NULL | |
2825 | }; | |
2826 | ||
2827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2830 | { | |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | delete arg1; | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | Py_INCREF(Py_None); resultobj = Py_None; | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
c32bde28 | 2844 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
2845 | PyObject *resultobj; |
2846 | int arg1 ; | |
2847 | int arg2 ; | |
2848 | int arg3 = (int) -1 ; | |
2849 | wxBitmap *result; | |
2850 | PyObject * obj0 = 0 ; | |
2851 | PyObject * obj1 = 0 ; | |
2852 | PyObject * obj2 = 0 ; | |
2853 | char *kwnames[] = { | |
2854 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2855 | }; | |
2856 | ||
2857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 2858 | arg1 = (int)SWIG_As_int(obj0); |
c24da6d6 | 2859 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2860 | arg2 = (int)SWIG_As_int(obj1); |
c24da6d6 RD |
2861 | if (PyErr_Occurred()) SWIG_fail; |
2862 | if (obj2) { | |
c32bde28 | 2863 | arg3 = (int)SWIG_As_int(obj2); |
c24da6d6 RD |
2864 | if (PyErr_Occurred()) SWIG_fail; |
2865 | } | |
2866 | { | |
0439c23b | 2867 | if (!wxPyCheckForApp()) SWIG_fail; |
c24da6d6 RD |
2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2869 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2870 | ||
2871 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2872 | if (PyErr_Occurred()) SWIG_fail; |
c24da6d6 RD |
2873 | } |
2874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2875 | return resultobj; | |
2876 | fail: | |
2877 | return NULL; | |
2878 | } | |
2879 | ||
2880 | ||
c32bde28 | 2881 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2882 | PyObject *resultobj; |
2883 | wxIcon *arg1 = 0 ; | |
2884 | wxBitmap *result; | |
2885 | PyObject * obj0 = 0 ; | |
2886 | char *kwnames[] = { | |
2887 | (char *) "icon", NULL | |
2888 | }; | |
2889 | ||
2890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2893 | SWIG_fail; | |
2894 | if (arg1 == NULL) { | |
2895 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2896 | SWIG_fail; | |
2897 | } | |
2898 | { | |
0439c23b | 2899 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2901 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2902 | ||
2903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2904 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2905 | } |
2906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2907 | return resultobj; | |
2908 | fail: | |
2909 | return NULL; | |
2910 | } | |
2911 | ||
2912 | ||
c32bde28 | 2913 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2914 | PyObject *resultobj; |
2915 | wxImage *arg1 = 0 ; | |
2916 | int arg2 = (int) -1 ; | |
2917 | wxBitmap *result; | |
2918 | PyObject * obj0 = 0 ; | |
2919 | PyObject * obj1 = 0 ; | |
2920 | char *kwnames[] = { | |
2921 | (char *) "image",(char *) "depth", NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2927 | SWIG_fail; | |
2928 | if (arg1 == NULL) { | |
2929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2930 | SWIG_fail; | |
2931 | } | |
2932 | if (obj1) { | |
c32bde28 | 2933 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2934 | if (PyErr_Occurred()) SWIG_fail; |
2935 | } | |
2936 | { | |
0439c23b | 2937 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2939 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2940 | ||
2941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2942 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2943 | } |
2944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2945 | return resultobj; | |
2946 | fail: | |
2947 | return NULL; | |
2948 | } | |
2949 | ||
2950 | ||
c32bde28 | 2951 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2952 | PyObject *resultobj; |
2953 | PyObject *arg1 = (PyObject *) 0 ; | |
2954 | wxBitmap *result; | |
2955 | PyObject * obj0 = 0 ; | |
2956 | char *kwnames[] = { | |
2957 | (char *) "listOfStrings", NULL | |
2958 | }; | |
2959 | ||
2960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2961 | arg1 = obj0; | |
2962 | { | |
0439c23b | 2963 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2965 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2968 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2969 | } |
2970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2971 | return resultobj; | |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
c32bde28 | 2977 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2978 | PyObject *resultobj; |
2979 | PyObject *arg1 = (PyObject *) 0 ; | |
2980 | int arg2 ; | |
2981 | int arg3 ; | |
2982 | int arg4 = (int) 1 ; | |
2983 | wxBitmap *result; | |
2984 | PyObject * obj0 = 0 ; | |
2985 | PyObject * obj1 = 0 ; | |
2986 | PyObject * obj2 = 0 ; | |
2987 | PyObject * obj3 = 0 ; | |
2988 | char *kwnames[] = { | |
2989 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2990 | }; | |
2991 | ||
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2993 | arg1 = obj0; | |
c32bde28 | 2994 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2995 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2996 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2997 | if (PyErr_Occurred()) SWIG_fail; |
2998 | if (obj3) { | |
c32bde28 | 2999 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3000 | if (PyErr_Occurred()) SWIG_fail; |
3001 | } | |
3002 | { | |
0439c23b | 3003 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3005 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
3006 | ||
3007 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3008 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3009 | } |
3010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
3011 | return resultobj; | |
3012 | fail: | |
3013 | return NULL; | |
3014 | } | |
3015 | ||
3016 | ||
c32bde28 | 3017 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3018 | PyObject *resultobj; |
c24da6d6 RD |
3019 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
3020 | long result; | |
d55e5bfc | 3021 | PyObject * obj0 = 0 ; |
c24da6d6 RD |
3022 | char *kwnames[] = { |
3023 | (char *) "self", NULL | |
3024 | }; | |
d55e5bfc | 3025 | |
c24da6d6 RD |
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; |
3027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc | 3029 | { |
c24da6d6 RD |
3030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3031 | result = (long)(arg1)->GetHandle(); | |
3032 | ||
3033 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
3034 | if (PyErr_Occurred()) SWIG_fail; |
3035 | } | |
c32bde28 | 3036 | resultobj = SWIG_From_long((long)result); |
c24da6d6 RD |
3037 | return resultobj; |
3038 | fail: | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
c32bde28 | 3043 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
3044 | PyObject *resultobj; |
3045 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3046 | long arg2 ; | |
3047 | PyObject * obj0 = 0 ; | |
3048 | PyObject * obj1 = 0 ; | |
3049 | char *kwnames[] = { | |
3050 | (char *) "self",(char *) "handle", NULL | |
3051 | }; | |
3052 | ||
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
3054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3056 | arg2 = (long)SWIG_As_long(obj1); |
c24da6d6 | 3057 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3058 | { |
3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 3060 | wxBitmap_SetHandle(arg1,arg2); |
d55e5bfc RD |
3061 | |
3062 | wxPyEndAllowThreads(__tstate); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
c24da6d6 | 3065 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3066 | return resultobj; |
3067 | fail: | |
3068 | return NULL; | |
3069 | } | |
3070 | ||
3071 | ||
c32bde28 | 3072 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3073 | PyObject *resultobj; |
3074 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3075 | bool result; | |
3076 | PyObject * obj0 = 0 ; | |
3077 | char *kwnames[] = { | |
3078 | (char *) "self", NULL | |
3079 | }; | |
3080 | ||
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
3082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3084 | { | |
3085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3086 | result = (bool)(arg1)->Ok(); | |
3087 | ||
3088 | wxPyEndAllowThreads(__tstate); | |
3089 | if (PyErr_Occurred()) SWIG_fail; | |
3090 | } | |
3091 | { | |
3092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3093 | } | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
c32bde28 | 3100 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3101 | PyObject *resultobj; |
3102 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3103 | int result; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | char *kwnames[] = { | |
3106 | (char *) "self", NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
3110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | result = (int)(arg1)->GetWidth(); | |
3115 | ||
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
c32bde28 | 3119 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3120 | return resultobj; |
3121 | fail: | |
3122 | return NULL; | |
3123 | } | |
3124 | ||
3125 | ||
c32bde28 | 3126 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3127 | PyObject *resultobj; |
3128 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3129 | int result; | |
3130 | PyObject * obj0 = 0 ; | |
3131 | char *kwnames[] = { | |
3132 | (char *) "self", NULL | |
3133 | }; | |
3134 | ||
3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3138 | { | |
3139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3140 | result = (int)(arg1)->GetHeight(); | |
3141 | ||
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
c32bde28 | 3145 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3146 | return resultobj; |
3147 | fail: | |
3148 | return NULL; | |
3149 | } | |
3150 | ||
3151 | ||
c32bde28 | 3152 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3153 | PyObject *resultobj; |
3154 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3155 | int result; | |
3156 | PyObject * obj0 = 0 ; | |
3157 | char *kwnames[] = { | |
3158 | (char *) "self", NULL | |
3159 | }; | |
3160 | ||
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3164 | { | |
3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3166 | result = (int)(arg1)->GetDepth(); | |
3167 | ||
3168 | wxPyEndAllowThreads(__tstate); | |
3169 | if (PyErr_Occurred()) SWIG_fail; | |
3170 | } | |
c32bde28 | 3171 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3172 | return resultobj; |
3173 | fail: | |
3174 | return NULL; | |
3175 | } | |
3176 | ||
3177 | ||
c32bde28 | 3178 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3179 | PyObject *resultobj; |
3180 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3181 | wxSize result; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3190 | { | |
3191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3192 | result = wxBitmap_GetSize(arg1); | |
3193 | ||
3194 | wxPyEndAllowThreads(__tstate); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | { | |
3198 | wxSize * resultptr; | |
3199 | resultptr = new wxSize((wxSize &) result); | |
3200 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3201 | } | |
3202 | return resultobj; | |
3203 | fail: | |
3204 | return NULL; | |
3205 | } | |
3206 | ||
3207 | ||
c32bde28 | 3208 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3209 | PyObject *resultobj; |
3210 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3211 | SwigValueWrapper< wxImage > result; | |
3212 | PyObject * obj0 = 0 ; | |
3213 | char *kwnames[] = { | |
3214 | (char *) "self", NULL | |
3215 | }; | |
3216 | ||
3217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3220 | { | |
3221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3222 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3223 | ||
3224 | wxPyEndAllowThreads(__tstate); | |
3225 | if (PyErr_Occurred()) SWIG_fail; | |
3226 | } | |
3227 | { | |
3228 | wxImage * resultptr; | |
3229 | resultptr = new wxImage((wxImage &) result); | |
3230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3231 | } | |
3232 | return resultobj; | |
3233 | fail: | |
3234 | return NULL; | |
3235 | } | |
3236 | ||
3237 | ||
c32bde28 | 3238 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3239 | PyObject *resultobj; |
3240 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3241 | wxMask *result; | |
3242 | PyObject * obj0 = 0 ; | |
3243 | char *kwnames[] = { | |
3244 | (char *) "self", NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3250 | { | |
3251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3252 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3253 | ||
3254 | wxPyEndAllowThreads(__tstate); | |
3255 | if (PyErr_Occurred()) SWIG_fail; | |
3256 | } | |
3257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3258 | return resultobj; | |
3259 | fail: | |
3260 | return NULL; | |
3261 | } | |
3262 | ||
3263 | ||
c32bde28 | 3264 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3265 | PyObject *resultobj; |
3266 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3267 | wxMask *arg2 = (wxMask *) 0 ; | |
3268 | PyObject * obj0 = 0 ; | |
3269 | PyObject * obj1 = 0 ; | |
3270 | char *kwnames[] = { | |
3271 | (char *) "self",(char *) "mask", NULL | |
3272 | }; | |
3273 | ||
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3279 | { | |
3280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3281 | (arg1)->SetMask(arg2); | |
3282 | ||
3283 | wxPyEndAllowThreads(__tstate); | |
3284 | if (PyErr_Occurred()) SWIG_fail; | |
3285 | } | |
3286 | Py_INCREF(Py_None); resultobj = Py_None; | |
3287 | return resultobj; | |
3288 | fail: | |
3289 | return NULL; | |
3290 | } | |
3291 | ||
3292 | ||
c32bde28 | 3293 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3294 | PyObject *resultobj; |
3295 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3296 | wxColour *arg2 = 0 ; | |
3297 | wxColour temp2 ; | |
3298 | PyObject * obj0 = 0 ; | |
3299 | PyObject * obj1 = 0 ; | |
3300 | char *kwnames[] = { | |
3301 | (char *) "self",(char *) "colour", NULL | |
3302 | }; | |
3303 | ||
3304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3307 | { | |
3308 | arg2 = &temp2; | |
3309 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3310 | } | |
3311 | { | |
3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3313 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3314 | ||
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | Py_INCREF(Py_None); resultobj = Py_None; | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
c32bde28 | 3325 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3326 | PyObject *resultobj; |
3327 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3328 | wxRect *arg2 = 0 ; | |
3329 | SwigValueWrapper< wxBitmap > result; | |
3330 | wxRect temp2 ; | |
3331 | PyObject * obj0 = 0 ; | |
3332 | PyObject * obj1 = 0 ; | |
3333 | char *kwnames[] = { | |
3334 | (char *) "self",(char *) "rect", NULL | |
3335 | }; | |
3336 | ||
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3340 | { | |
3341 | arg2 = &temp2; | |
3342 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3343 | } | |
3344 | { | |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3346 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3347 | ||
3348 | wxPyEndAllowThreads(__tstate); | |
3349 | if (PyErr_Occurred()) SWIG_fail; | |
3350 | } | |
3351 | { | |
3352 | wxBitmap * resultptr; | |
3353 | resultptr = new wxBitmap((wxBitmap &) result); | |
3354 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3355 | } | |
3356 | return resultobj; | |
3357 | fail: | |
3358 | return NULL; | |
3359 | } | |
3360 | ||
3361 | ||
c32bde28 | 3362 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3363 | PyObject *resultobj; |
3364 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3365 | wxString *arg2 = 0 ; | |
3366 | int arg3 ; | |
c24da6d6 | 3367 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc | 3368 | bool result; |
ae8162c8 | 3369 | bool temp2 = false ; |
d55e5bfc RD |
3370 | PyObject * obj0 = 0 ; |
3371 | PyObject * obj1 = 0 ; | |
3372 | PyObject * obj2 = 0 ; | |
3373 | PyObject * obj3 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3381 | { | |
3382 | arg2 = wxString_in_helper(obj1); | |
3383 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3384 | temp2 = true; |
d55e5bfc | 3385 | } |
c32bde28 | 3386 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3387 | if (PyErr_Occurred()) SWIG_fail; |
3388 | if (obj3) { | |
3389 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3391 | } | |
3392 | { | |
3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3394 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3395 | ||
3396 | wxPyEndAllowThreads(__tstate); | |
3397 | if (PyErr_Occurred()) SWIG_fail; | |
3398 | } | |
3399 | { | |
3400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3401 | } | |
3402 | { | |
3403 | if (temp2) | |
3404 | delete arg2; | |
3405 | } | |
3406 | return resultobj; | |
3407 | fail: | |
3408 | { | |
3409 | if (temp2) | |
3410 | delete arg2; | |
3411 | } | |
3412 | return NULL; | |
3413 | } | |
3414 | ||
3415 | ||
c32bde28 | 3416 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3417 | PyObject *resultobj; |
3418 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3419 | wxString *arg2 = 0 ; | |
3420 | int arg3 ; | |
3421 | bool result; | |
ae8162c8 | 3422 | bool temp2 = false ; |
d55e5bfc RD |
3423 | PyObject * obj0 = 0 ; |
3424 | PyObject * obj1 = 0 ; | |
3425 | PyObject * obj2 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3428 | }; | |
3429 | ||
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3433 | { | |
3434 | arg2 = wxString_in_helper(obj1); | |
3435 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3436 | temp2 = true; |
d55e5bfc | 3437 | } |
c32bde28 | 3438 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3439 | if (PyErr_Occurred()) SWIG_fail; |
3440 | { | |
3441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3442 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3443 | ||
3444 | wxPyEndAllowThreads(__tstate); | |
3445 | if (PyErr_Occurred()) SWIG_fail; | |
3446 | } | |
3447 | { | |
3448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3449 | } | |
3450 | { | |
3451 | if (temp2) | |
3452 | delete arg2; | |
3453 | } | |
3454 | return resultobj; | |
3455 | fail: | |
3456 | { | |
3457 | if (temp2) | |
3458 | delete arg2; | |
3459 | } | |
3460 | return NULL; | |
3461 | } | |
3462 | ||
3463 | ||
c1cb24a4 RD |
3464 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
3465 | PyObject *resultobj; | |
3466 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3467 | wxPalette *result; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "self", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; | |
3474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3476 | { | |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); | |
3484 | return resultobj; | |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3493 | wxPalette *arg2 = 0 ; | |
3494 | PyObject * obj0 = 0 ; | |
3495 | PyObject * obj1 = 0 ; | |
3496 | char *kwnames[] = { | |
3497 | (char *) "self",(char *) "palette", NULL | |
3498 | }; | |
3499 | ||
3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
3501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
3504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3505 | SWIG_fail; | |
3506 | if (arg2 == NULL) { | |
3507 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3508 | SWIG_fail; | |
3509 | } | |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | Py_INCREF(Py_None); resultobj = Py_None; | |
3518 | return resultobj; | |
3519 | fail: | |
3520 | return NULL; | |
3521 | } | |
3522 | ||
3523 | ||
c32bde28 | 3524 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3525 | PyObject *resultobj; |
3526 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3527 | wxIcon *arg2 = 0 ; | |
3528 | bool result; | |
3529 | PyObject * obj0 = 0 ; | |
3530 | PyObject * obj1 = 0 ; | |
3531 | char *kwnames[] = { | |
3532 | (char *) "self",(char *) "icon", NULL | |
3533 | }; | |
3534 | ||
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3540 | SWIG_fail; | |
3541 | if (arg2 == NULL) { | |
3542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3543 | SWIG_fail; | |
3544 | } | |
3545 | { | |
3546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3547 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3548 | ||
3549 | wxPyEndAllowThreads(__tstate); | |
3550 | if (PyErr_Occurred()) SWIG_fail; | |
3551 | } | |
3552 | { | |
3553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3554 | } | |
3555 | return resultobj; | |
3556 | fail: | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
c32bde28 | 3561 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3562 | PyObject *resultobj; |
3563 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3564 | int arg2 ; | |
3565 | PyObject * obj0 = 0 ; | |
3566 | PyObject * obj1 = 0 ; | |
3567 | char *kwnames[] = { | |
3568 | (char *) "self",(char *) "height", NULL | |
3569 | }; | |
3570 | ||
3571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3575 | if (PyErr_Occurred()) SWIG_fail; |
3576 | { | |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | (arg1)->SetHeight(arg2); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
3583 | Py_INCREF(Py_None); resultobj = Py_None; | |
3584 | return resultobj; | |
3585 | fail: | |
3586 | return NULL; | |
3587 | } | |
3588 | ||
3589 | ||
c32bde28 | 3590 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3591 | PyObject *resultobj; |
3592 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3593 | int arg2 ; | |
3594 | PyObject * obj0 = 0 ; | |
3595 | PyObject * obj1 = 0 ; | |
3596 | char *kwnames[] = { | |
3597 | (char *) "self",(char *) "width", NULL | |
3598 | }; | |
3599 | ||
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3603 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3604 | if (PyErr_Occurred()) SWIG_fail; |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | (arg1)->SetWidth(arg2); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | } | |
3612 | Py_INCREF(Py_None); resultobj = Py_None; | |
3613 | return resultobj; | |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
c32bde28 | 3619 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3620 | PyObject *resultobj; |
3621 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3622 | int arg2 ; | |
3623 | PyObject * obj0 = 0 ; | |
3624 | PyObject * obj1 = 0 ; | |
3625 | char *kwnames[] = { | |
3626 | (char *) "self",(char *) "depth", NULL | |
3627 | }; | |
3628 | ||
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3632 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3633 | if (PyErr_Occurred()) SWIG_fail; |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | (arg1)->SetDepth(arg2); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | Py_INCREF(Py_None); resultobj = Py_None; | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
c32bde28 | 3648 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3649 | PyObject *resultobj; |
3650 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3651 | wxSize *arg2 = 0 ; | |
3652 | wxSize temp2 ; | |
3653 | PyObject * obj0 = 0 ; | |
3654 | PyObject * obj1 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "self",(char *) "size", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3662 | { | |
3663 | arg2 = &temp2; | |
3664 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3665 | } | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3669 | ||
3670 | wxPyEndAllowThreads(__tstate); | |
3671 | if (PyErr_Occurred()) SWIG_fail; | |
3672 | } | |
3673 | Py_INCREF(Py_None); resultobj = Py_None; | |
3674 | return resultobj; | |
3675 | fail: | |
3676 | return NULL; | |
3677 | } | |
3678 | ||
3679 | ||
c32bde28 | 3680 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3681 | PyObject *resultobj; |
3682 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3683 | wxCursor *arg2 = 0 ; | |
3684 | bool result; | |
3685 | PyObject * obj0 = 0 ; | |
3686 | PyObject * obj1 = 0 ; | |
3687 | char *kwnames[] = { | |
3688 | (char *) "self",(char *) "cursor", NULL | |
3689 | }; | |
3690 | ||
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
3695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3696 | SWIG_fail; | |
3697 | if (arg2 == NULL) { | |
3698 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3699 | SWIG_fail; | |
3700 | } | |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | { | |
3709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3710 | } | |
3711 | return resultobj; | |
3712 | fail: | |
3713 | return NULL; | |
3714 | } | |
3715 | ||
3716 | ||
c32bde28 | 3717 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3718 | PyObject *resultobj; |
3719 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3720 | int result; | |
3721 | PyObject * obj0 = 0 ; | |
3722 | char *kwnames[] = { | |
3723 | (char *) "self", NULL | |
3724 | }; | |
3725 | ||
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3729 | { | |
3730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3731 | result = (int)(arg1)->GetQuality(); | |
3732 | ||
3733 | wxPyEndAllowThreads(__tstate); | |
3734 | if (PyErr_Occurred()) SWIG_fail; | |
3735 | } | |
c32bde28 | 3736 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3737 | return resultobj; |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
c32bde28 | 3743 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3744 | PyObject *resultobj; |
3745 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3746 | int arg2 ; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | PyObject * obj1 = 0 ; | |
3749 | char *kwnames[] = { | |
3750 | (char *) "self",(char *) "q", NULL | |
3751 | }; | |
3752 | ||
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
3754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3756 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3757 | if (PyErr_Occurred()) SWIG_fail; |
3758 | { | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | (arg1)->SetQuality(arg2); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | Py_INCREF(Py_None); resultobj = Py_None; | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | return NULL; | |
3769 | } | |
3770 | ||
3771 | ||
c32bde28 | 3772 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3773 | PyObject *resultobj; |
3774 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3775 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3776 | bool result; | |
3777 | PyObject * obj0 = 0 ; | |
3778 | PyObject * obj1 = 0 ; | |
3779 | char *kwnames[] = { | |
3780 | (char *) "self",(char *) "other", NULL | |
3781 | }; | |
3782 | ||
3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
3794 | } | |
3795 | { | |
3796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3797 | } | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | return NULL; | |
3801 | } | |
3802 | ||
3803 | ||
c32bde28 | 3804 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3805 | PyObject *resultobj; |
3806 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3807 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3808 | bool result; | |
3809 | PyObject * obj0 = 0 ; | |
3810 | PyObject * obj1 = 0 ; | |
3811 | char *kwnames[] = { | |
3812 | (char *) "self",(char *) "other", NULL | |
3813 | }; | |
3814 | ||
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3820 | { | |
3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3822 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3823 | ||
3824 | wxPyEndAllowThreads(__tstate); | |
3825 | if (PyErr_Occurred()) SWIG_fail; | |
3826 | } | |
3827 | { | |
3828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3829 | } | |
3830 | return resultobj; | |
3831 | fail: | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
c32bde28 | 3836 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3837 | PyObject *obj; |
3838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3839 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3840 | Py_INCREF(obj); | |
3841 | return Py_BuildValue((char *)""); | |
3842 | } | |
c32bde28 | 3843 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3844 | PyObject *resultobj; |
3845 | wxBitmap *arg1 = 0 ; | |
3846 | wxColour const &arg2_defvalue = wxNullColour ; | |
3847 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3848 | wxMask *result; | |
3849 | wxColour temp2 ; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | PyObject * obj1 = 0 ; | |
3852 | char *kwnames[] = { | |
3853 | (char *) "bitmap",(char *) "colour", NULL | |
3854 | }; | |
3855 | ||
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3859 | SWIG_fail; | |
3860 | if (arg1 == NULL) { | |
3861 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3862 | SWIG_fail; | |
3863 | } | |
3864 | if (obj1) { | |
3865 | { | |
3866 | arg2 = &temp2; | |
3867 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3868 | } | |
3869 | } | |
3870 | { | |
0439c23b | 3871 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3873 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3874 | ||
3875 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3876 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3877 | } |
3878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3879 | return resultobj; | |
3880 | fail: | |
3881 | return NULL; | |
3882 | } | |
3883 | ||
3884 | ||
c32bde28 | 3885 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3886 | PyObject *obj; |
3887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3888 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3889 | Py_INCREF(obj); | |
3890 | return Py_BuildValue((char *)""); | |
3891 | } | |
c32bde28 | 3892 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3893 | PyObject *resultobj; |
3894 | wxString *arg1 = 0 ; | |
3895 | int arg2 ; | |
3896 | int arg3 = (int) -1 ; | |
3897 | int arg4 = (int) -1 ; | |
3898 | wxIcon *result; | |
ae8162c8 | 3899 | bool temp1 = false ; |
d55e5bfc RD |
3900 | PyObject * obj0 = 0 ; |
3901 | PyObject * obj1 = 0 ; | |
3902 | PyObject * obj2 = 0 ; | |
3903 | PyObject * obj3 = 0 ; | |
3904 | char *kwnames[] = { | |
3905 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3906 | }; | |
3907 | ||
3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3909 | { | |
3910 | arg1 = wxString_in_helper(obj0); | |
3911 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3912 | temp1 = true; |
d55e5bfc | 3913 | } |
c32bde28 | 3914 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3915 | if (PyErr_Occurred()) SWIG_fail; |
3916 | if (obj2) { | |
c32bde28 | 3917 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3918 | if (PyErr_Occurred()) SWIG_fail; |
3919 | } | |
3920 | if (obj3) { | |
c32bde28 | 3921 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3922 | if (PyErr_Occurred()) SWIG_fail; |
3923 | } | |
3924 | { | |
0439c23b | 3925 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3927 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3928 | ||
3929 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3930 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3931 | } |
3932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3933 | { | |
3934 | if (temp1) | |
3935 | delete arg1; | |
3936 | } | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | { | |
3940 | if (temp1) | |
3941 | delete arg1; | |
3942 | } | |
3943 | return NULL; | |
3944 | } | |
3945 | ||
3946 | ||
c32bde28 | 3947 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3948 | PyObject *resultobj; |
3949 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3950 | PyObject * obj0 = 0 ; | |
3951 | char *kwnames[] = { | |
3952 | (char *) "self", NULL | |
3953 | }; | |
3954 | ||
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3958 | { | |
3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3960 | delete arg1; | |
3961 | ||
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | Py_INCREF(Py_None); resultobj = Py_None; | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
c32bde28 | 3972 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3973 | PyObject *resultobj; |
3974 | wxIcon *result; | |
3975 | char *kwnames[] = { | |
3976 | NULL | |
3977 | }; | |
3978 | ||
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3980 | { | |
0439c23b | 3981 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3983 | result = (wxIcon *)new wxIcon(); | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3986 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3987 | } |
3988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3989 | return resultobj; | |
3990 | fail: | |
3991 | return NULL; | |
3992 | } | |
3993 | ||
3994 | ||
c32bde28 | 3995 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3996 | PyObject *resultobj; |
3997 | wxIconLocation *arg1 = 0 ; | |
3998 | wxIcon *result; | |
3999 | PyObject * obj0 = 0 ; | |
4000 | char *kwnames[] = { | |
4001 | (char *) "loc", NULL | |
4002 | }; | |
4003 | ||
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
4005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4006 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4007 | SWIG_fail; | |
4008 | if (arg1 == NULL) { | |
4009 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4010 | SWIG_fail; | |
4011 | } | |
4012 | { | |
0439c23b | 4013 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4015 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
4016 | ||
4017 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4018 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4019 | } |
4020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
4021 | return resultobj; | |
4022 | fail: | |
4023 | return NULL; | |
4024 | } | |
4025 | ||
4026 | ||
c32bde28 | 4027 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4028 | PyObject *resultobj; |
4029 | wxBitmap *arg1 = 0 ; | |
4030 | wxIcon *result; | |
4031 | PyObject * obj0 = 0 ; | |
4032 | char *kwnames[] = { | |
4033 | (char *) "bmp", NULL | |
4034 | }; | |
4035 | ||
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
4037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4039 | SWIG_fail; | |
4040 | if (arg1 == NULL) { | |
4041 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4042 | SWIG_fail; | |
4043 | } | |
4044 | { | |
0439c23b | 4045 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4047 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
4048 | ||
4049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4050 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4051 | } |
4052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
4053 | return resultobj; | |
4054 | fail: | |
4055 | return NULL; | |
4056 | } | |
4057 | ||
4058 | ||
c32bde28 | 4059 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4060 | PyObject *resultobj; |
4061 | PyObject *arg1 = (PyObject *) 0 ; | |
4062 | wxIcon *result; | |
4063 | PyObject * obj0 = 0 ; | |
4064 | char *kwnames[] = { | |
4065 | (char *) "listOfStrings", NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
4069 | arg1 = obj0; | |
4070 | { | |
0439c23b | 4071 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4073 | result = (wxIcon *)new_wxIcon(arg1); | |
4074 | ||
4075 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4076 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4077 | } |
4078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
4079 | return resultobj; | |
4080 | fail: | |
4081 | return NULL; | |
4082 | } | |
4083 | ||
4084 | ||
c32bde28 | 4085 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4086 | PyObject *resultobj; |
4087 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4088 | wxString *arg2 = 0 ; | |
4089 | int arg3 ; | |
4090 | bool result; | |
ae8162c8 | 4091 | bool temp2 = false ; |
d55e5bfc RD |
4092 | PyObject * obj0 = 0 ; |
4093 | PyObject * obj1 = 0 ; | |
4094 | PyObject * obj2 = 0 ; | |
4095 | char *kwnames[] = { | |
4096 | (char *) "self",(char *) "name",(char *) "type", NULL | |
4097 | }; | |
4098 | ||
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4102 | { | |
4103 | arg2 = wxString_in_helper(obj1); | |
4104 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4105 | temp2 = true; |
d55e5bfc | 4106 | } |
c32bde28 | 4107 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4108 | if (PyErr_Occurred()) SWIG_fail; |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | { | |
4117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4118 | } | |
4119 | { | |
4120 | if (temp2) | |
4121 | delete arg2; | |
4122 | } | |
4123 | return resultobj; | |
4124 | fail: | |
4125 | { | |
4126 | if (temp2) | |
4127 | delete arg2; | |
4128 | } | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
c32bde28 | 4133 | static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4134 | PyObject *resultobj; |
4135 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4136 | long result; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | char *kwnames[] = { | |
4139 | (char *) "self", NULL | |
4140 | }; | |
4141 | ||
4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
4143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4145 | { | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | result = (long)(arg1)->GetHandle(); | |
4148 | ||
4149 | wxPyEndAllowThreads(__tstate); | |
4150 | if (PyErr_Occurred()) SWIG_fail; | |
4151 | } | |
c32bde28 | 4152 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4153 | return resultobj; |
4154 | fail: | |
4155 | return NULL; | |
4156 | } | |
4157 | ||
4158 | ||
c32bde28 | 4159 | static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4160 | PyObject *resultobj; |
4161 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4162 | long arg2 ; | |
4163 | PyObject * obj0 = 0 ; | |
4164 | PyObject * obj1 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self",(char *) "handle", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
4170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4172 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4173 | if (PyErr_Occurred()) SWIG_fail; |
4174 | { | |
4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4176 | wxIcon_SetHandle(arg1,arg2); | |
4177 | ||
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | Py_INCREF(Py_None); resultobj = Py_None; | |
4182 | return resultobj; | |
4183 | fail: | |
4184 | return NULL; | |
4185 | } | |
4186 | ||
4187 | ||
c32bde28 | 4188 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4189 | PyObject *resultobj; |
4190 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4191 | bool result; | |
4192 | PyObject * obj0 = 0 ; | |
4193 | char *kwnames[] = { | |
4194 | (char *) "self", NULL | |
4195 | }; | |
4196 | ||
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
4198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4200 | { | |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | result = (bool)(arg1)->Ok(); | |
4203 | ||
4204 | wxPyEndAllowThreads(__tstate); | |
4205 | if (PyErr_Occurred()) SWIG_fail; | |
4206 | } | |
4207 | { | |
4208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4209 | } | |
4210 | return resultobj; | |
4211 | fail: | |
4212 | return NULL; | |
4213 | } | |
4214 | ||
4215 | ||
c32bde28 | 4216 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4217 | PyObject *resultobj; |
4218 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4219 | int result; | |
4220 | PyObject * obj0 = 0 ; | |
4221 | char *kwnames[] = { | |
4222 | (char *) "self", NULL | |
4223 | }; | |
4224 | ||
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4228 | { | |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | result = (int)(arg1)->GetWidth(); | |
4231 | ||
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
c32bde28 | 4235 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4236 | return resultobj; |
4237 | fail: | |
4238 | return NULL; | |
4239 | } | |
4240 | ||
4241 | ||
c32bde28 | 4242 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4243 | PyObject *resultobj; |
4244 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4245 | int result; | |
4246 | PyObject * obj0 = 0 ; | |
4247 | char *kwnames[] = { | |
4248 | (char *) "self", NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4254 | { | |
4255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4256 | result = (int)(arg1)->GetHeight(); | |
4257 | ||
4258 | wxPyEndAllowThreads(__tstate); | |
4259 | if (PyErr_Occurred()) SWIG_fail; | |
4260 | } | |
c32bde28 | 4261 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4262 | return resultobj; |
4263 | fail: | |
4264 | return NULL; | |
4265 | } | |
4266 | ||
4267 | ||
c32bde28 | 4268 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4269 | PyObject *resultobj; |
4270 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4271 | int result; | |
4272 | PyObject * obj0 = 0 ; | |
4273 | char *kwnames[] = { | |
4274 | (char *) "self", NULL | |
4275 | }; | |
4276 | ||
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4280 | { | |
4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4282 | result = (int)(arg1)->GetDepth(); | |
4283 | ||
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
c32bde28 | 4287 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4288 | return resultobj; |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
c32bde28 | 4294 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4295 | PyObject *resultobj; |
4296 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4297 | int arg2 ; | |
4298 | PyObject * obj0 = 0 ; | |
4299 | PyObject * obj1 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "self",(char *) "w", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4307 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4308 | if (PyErr_Occurred()) SWIG_fail; |
4309 | { | |
4310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4311 | (arg1)->SetWidth(arg2); | |
4312 | ||
4313 | wxPyEndAllowThreads(__tstate); | |
4314 | if (PyErr_Occurred()) SWIG_fail; | |
4315 | } | |
4316 | Py_INCREF(Py_None); resultobj = Py_None; | |
4317 | return resultobj; | |
4318 | fail: | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
c32bde28 | 4323 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4324 | PyObject *resultobj; |
4325 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4326 | int arg2 ; | |
4327 | PyObject * obj0 = 0 ; | |
4328 | PyObject * obj1 = 0 ; | |
4329 | char *kwnames[] = { | |
4330 | (char *) "self",(char *) "h", NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4336 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4337 | if (PyErr_Occurred()) SWIG_fail; |
4338 | { | |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | (arg1)->SetHeight(arg2); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | Py_INCREF(Py_None); resultobj = Py_None; | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
c32bde28 | 4352 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4353 | PyObject *resultobj; |
4354 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4355 | int arg2 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self",(char *) "d", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4365 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4366 | if (PyErr_Occurred()) SWIG_fail; |
4367 | { | |
4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4369 | (arg1)->SetDepth(arg2); | |
4370 | ||
4371 | wxPyEndAllowThreads(__tstate); | |
4372 | if (PyErr_Occurred()) SWIG_fail; | |
4373 | } | |
4374 | Py_INCREF(Py_None); resultobj = Py_None; | |
4375 | return resultobj; | |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
c32bde28 | 4381 | static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4382 | PyObject *resultobj; |
4383 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4384 | wxSize *arg2 = 0 ; | |
4385 | wxSize temp2 ; | |
4386 | PyObject * obj0 = 0 ; | |
4387 | PyObject * obj1 = 0 ; | |
4388 | char *kwnames[] = { | |
4389 | (char *) "self",(char *) "size", NULL | |
4390 | }; | |
4391 | ||
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4395 | { | |
4396 | arg2 = &temp2; | |
4397 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4398 | } | |
4399 | { | |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4401 | (arg1)->SetSize((wxSize const &)*arg2); | |
4402 | ||
4403 | wxPyEndAllowThreads(__tstate); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
4406 | Py_INCREF(Py_None); resultobj = Py_None; | |
4407 | return resultobj; | |
4408 | fail: | |
4409 | return NULL; | |
4410 | } | |
4411 | ||
4412 | ||
c32bde28 | 4413 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4414 | PyObject *resultobj; |
4415 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4416 | wxBitmap *arg2 = 0 ; | |
4417 | PyObject * obj0 = 0 ; | |
4418 | PyObject * obj1 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "self",(char *) "bmp", NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4428 | SWIG_fail; | |
4429 | if (arg2 == NULL) { | |
4430 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4431 | SWIG_fail; | |
4432 | } | |
4433 | { | |
4434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4435 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4436 | ||
4437 | wxPyEndAllowThreads(__tstate); | |
4438 | if (PyErr_Occurred()) SWIG_fail; | |
4439 | } | |
4440 | Py_INCREF(Py_None); resultobj = Py_None; | |
4441 | return resultobj; | |
4442 | fail: | |
4443 | return NULL; | |
4444 | } | |
4445 | ||
4446 | ||
c32bde28 | 4447 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4448 | PyObject *obj; |
4449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4450 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4451 | Py_INCREF(obj); | |
4452 | return Py_BuildValue((char *)""); | |
4453 | } | |
c32bde28 | 4454 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4455 | PyObject *resultobj; |
4456 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4457 | int arg2 = (int) 0 ; | |
4458 | wxIconLocation *result; | |
ae8162c8 | 4459 | bool temp1 = false ; |
d55e5bfc RD |
4460 | PyObject * obj0 = 0 ; |
4461 | PyObject * obj1 = 0 ; | |
4462 | char *kwnames[] = { | |
4463 | (char *) "filename",(char *) "num", NULL | |
4464 | }; | |
4465 | ||
4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4467 | if (obj0) { | |
4468 | { | |
4469 | arg1 = wxString_in_helper(obj0); | |
4470 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4471 | temp1 = true; |
d55e5bfc RD |
4472 | } |
4473 | } | |
4474 | if (obj1) { | |
c32bde28 | 4475 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4476 | if (PyErr_Occurred()) SWIG_fail; |
4477 | } | |
4478 | { | |
4479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4480 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4481 | ||
4482 | wxPyEndAllowThreads(__tstate); | |
4483 | if (PyErr_Occurred()) SWIG_fail; | |
4484 | } | |
4485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4486 | { | |
4487 | if (temp1) | |
4488 | delete arg1; | |
4489 | } | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | { | |
4493 | if (temp1) | |
4494 | delete arg1; | |
4495 | } | |
4496 | return NULL; | |
4497 | } | |
4498 | ||
4499 | ||
c32bde28 | 4500 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4501 | PyObject *resultobj; |
4502 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4503 | PyObject * obj0 = 0 ; | |
4504 | char *kwnames[] = { | |
4505 | (char *) "self", NULL | |
4506 | }; | |
4507 | ||
4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4511 | { | |
4512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4513 | delete arg1; | |
4514 | ||
4515 | wxPyEndAllowThreads(__tstate); | |
4516 | if (PyErr_Occurred()) SWIG_fail; | |
4517 | } | |
4518 | Py_INCREF(Py_None); resultobj = Py_None; | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
c32bde28 | 4525 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4526 | PyObject *resultobj; |
4527 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4528 | bool result; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self", NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4537 | { | |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4539 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4546 | } | |
4547 | return resultobj; | |
4548 | fail: | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
c32bde28 | 4553 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4554 | PyObject *resultobj; |
4555 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4556 | wxString *arg2 = 0 ; | |
ae8162c8 | 4557 | bool temp2 = false ; |
d55e5bfc RD |
4558 | PyObject * obj0 = 0 ; |
4559 | PyObject * obj1 = 0 ; | |
4560 | char *kwnames[] = { | |
4561 | (char *) "self",(char *) "filename", NULL | |
4562 | }; | |
4563 | ||
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4567 | { | |
4568 | arg2 = wxString_in_helper(obj1); | |
4569 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4570 | temp2 = true; |
d55e5bfc RD |
4571 | } |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | (arg1)->SetFileName((wxString const &)*arg2); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | Py_INCREF(Py_None); resultobj = Py_None; | |
4580 | { | |
4581 | if (temp2) | |
4582 | delete arg2; | |
4583 | } | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | { | |
4587 | if (temp2) | |
4588 | delete arg2; | |
4589 | } | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
c32bde28 | 4594 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4595 | PyObject *resultobj; |
4596 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4597 | wxString *result; | |
4598 | PyObject * obj0 = 0 ; | |
4599 | char *kwnames[] = { | |
4600 | (char *) "self", NULL | |
4601 | }; | |
4602 | ||
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4606 | { | |
4607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4608 | { | |
4609 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4610 | result = (wxString *) &_result_ref; | |
4611 | } | |
4612 | ||
4613 | wxPyEndAllowThreads(__tstate); | |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
4615 | } | |
4616 | { | |
4617 | #if wxUSE_UNICODE | |
4618 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4619 | #else | |
4620 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4621 | #endif | |
4622 | } | |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
c32bde28 | 4629 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4630 | PyObject *resultobj; |
4631 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4632 | int arg2 ; | |
4633 | PyObject * obj0 = 0 ; | |
4634 | PyObject * obj1 = 0 ; | |
4635 | char *kwnames[] = { | |
4636 | (char *) "self",(char *) "num", NULL | |
4637 | }; | |
4638 | ||
4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4642 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4643 | if (PyErr_Occurred()) SWIG_fail; |
4644 | { | |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4646 | wxIconLocation_SetIndex(arg1,arg2); | |
4647 | ||
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
4650 | } | |
4651 | Py_INCREF(Py_None); resultobj = Py_None; | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
c32bde28 | 4658 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4659 | PyObject *resultobj; |
4660 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4661 | int result; | |
4662 | PyObject * obj0 = 0 ; | |
4663 | char *kwnames[] = { | |
4664 | (char *) "self", NULL | |
4665 | }; | |
4666 | ||
4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4670 | { | |
4671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4672 | result = (int)wxIconLocation_GetIndex(arg1); | |
4673 | ||
4674 | wxPyEndAllowThreads(__tstate); | |
4675 | if (PyErr_Occurred()) SWIG_fail; | |
4676 | } | |
c32bde28 | 4677 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4678 | return resultobj; |
4679 | fail: | |
4680 | return NULL; | |
4681 | } | |
4682 | ||
4683 | ||
c32bde28 | 4684 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4685 | PyObject *obj; |
4686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4687 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4688 | Py_INCREF(obj); | |
4689 | return Py_BuildValue((char *)""); | |
4690 | } | |
c32bde28 | 4691 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4692 | PyObject *resultobj; |
4693 | wxIconBundle *result; | |
4694 | char *kwnames[] = { | |
4695 | NULL | |
4696 | }; | |
4697 | ||
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4699 | { | |
4700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4701 | result = (wxIconBundle *)new wxIconBundle(); | |
4702 | ||
4703 | wxPyEndAllowThreads(__tstate); | |
4704 | if (PyErr_Occurred()) SWIG_fail; | |
4705 | } | |
4706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4707 | return resultobj; | |
4708 | fail: | |
4709 | return NULL; | |
4710 | } | |
4711 | ||
4712 | ||
c32bde28 | 4713 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4714 | PyObject *resultobj; |
4715 | wxString *arg1 = 0 ; | |
4716 | long arg2 ; | |
4717 | wxIconBundle *result; | |
ae8162c8 | 4718 | bool temp1 = false ; |
d55e5bfc RD |
4719 | PyObject * obj0 = 0 ; |
4720 | PyObject * obj1 = 0 ; | |
4721 | char *kwnames[] = { | |
4722 | (char *) "file",(char *) "type", NULL | |
4723 | }; | |
4724 | ||
4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4726 | { | |
4727 | arg1 = wxString_in_helper(obj0); | |
4728 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4729 | temp1 = true; |
d55e5bfc | 4730 | } |
c32bde28 | 4731 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4732 | if (PyErr_Occurred()) SWIG_fail; |
4733 | { | |
4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4735 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4736 | ||
4737 | wxPyEndAllowThreads(__tstate); | |
4738 | if (PyErr_Occurred()) SWIG_fail; | |
4739 | } | |
4740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4741 | { | |
4742 | if (temp1) | |
4743 | delete arg1; | |
4744 | } | |
4745 | return resultobj; | |
4746 | fail: | |
4747 | { | |
4748 | if (temp1) | |
4749 | delete arg1; | |
4750 | } | |
4751 | return NULL; | |
4752 | } | |
4753 | ||
4754 | ||
c32bde28 | 4755 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4756 | PyObject *resultobj; |
4757 | wxIcon *arg1 = 0 ; | |
4758 | wxIconBundle *result; | |
4759 | PyObject * obj0 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "icon", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4767 | SWIG_fail; | |
4768 | if (arg1 == NULL) { | |
4769 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4770 | SWIG_fail; | |
4771 | } | |
4772 | { | |
4773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4774 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4775 | ||
4776 | wxPyEndAllowThreads(__tstate); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4780 | return resultobj; | |
4781 | fail: | |
4782 | return NULL; | |
4783 | } | |
4784 | ||
4785 | ||
c32bde28 | 4786 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4787 | PyObject *resultobj; |
4788 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4789 | PyObject * obj0 = 0 ; | |
4790 | char *kwnames[] = { | |
4791 | (char *) "self", NULL | |
4792 | }; | |
4793 | ||
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | delete arg1; | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | Py_INCREF(Py_None); resultobj = Py_None; | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
4808 | } | |
4809 | ||
4810 | ||
c32bde28 | 4811 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4812 | PyObject *resultobj; |
4813 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4814 | wxIcon *arg2 = 0 ; | |
4815 | PyObject * obj0 = 0 ; | |
4816 | PyObject * obj1 = 0 ; | |
4817 | char *kwnames[] = { | |
4818 | (char *) "self",(char *) "icon", NULL | |
4819 | }; | |
4820 | ||
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4826 | SWIG_fail; | |
4827 | if (arg2 == NULL) { | |
4828 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4829 | SWIG_fail; | |
4830 | } | |
4831 | { | |
4832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4833 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4834 | ||
4835 | wxPyEndAllowThreads(__tstate); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | Py_INCREF(Py_None); resultobj = Py_None; | |
4839 | return resultobj; | |
4840 | fail: | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
c32bde28 | 4845 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4846 | PyObject *resultobj; |
4847 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4848 | wxString *arg2 = 0 ; | |
4849 | long arg3 ; | |
ae8162c8 | 4850 | bool temp2 = false ; |
d55e5bfc RD |
4851 | PyObject * obj0 = 0 ; |
4852 | PyObject * obj1 = 0 ; | |
4853 | PyObject * obj2 = 0 ; | |
4854 | char *kwnames[] = { | |
4855 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4856 | }; | |
4857 | ||
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4861 | { | |
4862 | arg2 = wxString_in_helper(obj1); | |
4863 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4864 | temp2 = true; |
d55e5bfc | 4865 | } |
c32bde28 | 4866 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
4867 | if (PyErr_Occurred()) SWIG_fail; |
4868 | { | |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4871 | ||
4872 | wxPyEndAllowThreads(__tstate); | |
4873 | if (PyErr_Occurred()) SWIG_fail; | |
4874 | } | |
4875 | Py_INCREF(Py_None); resultobj = Py_None; | |
4876 | { | |
4877 | if (temp2) | |
4878 | delete arg2; | |
4879 | } | |
4880 | return resultobj; | |
4881 | fail: | |
4882 | { | |
4883 | if (temp2) | |
4884 | delete arg2; | |
4885 | } | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
c32bde28 | 4890 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4891 | PyObject *resultobj; |
4892 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4893 | wxSize *arg2 = 0 ; | |
4894 | wxIcon *result; | |
4895 | wxSize temp2 ; | |
4896 | PyObject * obj0 = 0 ; | |
4897 | PyObject * obj1 = 0 ; | |
4898 | char *kwnames[] = { | |
4899 | (char *) "self",(char *) "size", NULL | |
4900 | }; | |
4901 | ||
4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4905 | { | |
4906 | arg2 = &temp2; | |
4907 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4908 | } | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | { | |
4912 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4913 | result = (wxIcon *) &_result_ref; | |
4914 | } | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | } | |
4919 | { | |
4920 | wxIcon* resultptr = new wxIcon(*result); | |
4921 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4922 | } | |
4923 | return resultobj; | |
4924 | fail: | |
4925 | return NULL; | |
4926 | } | |
4927 | ||
4928 | ||
c32bde28 | 4929 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4930 | PyObject *obj; |
4931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4932 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4933 | Py_INCREF(obj); | |
4934 | return Py_BuildValue((char *)""); | |
4935 | } | |
c32bde28 | 4936 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4937 | PyObject *resultobj; |
4938 | wxString *arg1 = (wxString *) 0 ; | |
4939 | long arg2 ; | |
4940 | int arg3 = (int) 0 ; | |
4941 | int arg4 = (int) 0 ; | |
4942 | wxCursor *result; | |
ae8162c8 | 4943 | bool temp1 = false ; |
d55e5bfc RD |
4944 | PyObject * obj0 = 0 ; |
4945 | PyObject * obj1 = 0 ; | |
4946 | PyObject * obj2 = 0 ; | |
4947 | PyObject * obj3 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4950 | }; | |
4951 | ||
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4953 | { | |
4954 | arg1 = wxString_in_helper(obj0); | |
4955 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4956 | temp1 = true; |
d55e5bfc | 4957 | } |
c32bde28 | 4958 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4959 | if (PyErr_Occurred()) SWIG_fail; |
4960 | if (obj2) { | |
c32bde28 | 4961 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4962 | if (PyErr_Occurred()) SWIG_fail; |
4963 | } | |
4964 | if (obj3) { | |
c32bde28 | 4965 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
4966 | if (PyErr_Occurred()) SWIG_fail; |
4967 | } | |
4968 | { | |
0439c23b | 4969 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4971 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4972 | ||
4973 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4974 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4975 | } |
4976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4977 | { | |
4978 | if (temp1) | |
4979 | delete arg1; | |
4980 | } | |
4981 | return resultobj; | |
4982 | fail: | |
4983 | { | |
4984 | if (temp1) | |
4985 | delete arg1; | |
4986 | } | |
4987 | return NULL; | |
4988 | } | |
4989 | ||
4990 | ||
c32bde28 | 4991 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4992 | PyObject *resultobj; |
4993 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | char *kwnames[] = { | |
4996 | (char *) "self", NULL | |
4997 | }; | |
4998 | ||
4999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
5000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | delete arg1; | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | Py_INCREF(Py_None); resultobj = Py_None; | |
5010 | return resultobj; | |
5011 | fail: | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
c32bde28 | 5016 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5017 | PyObject *resultobj; |
5018 | int arg1 ; | |
5019 | wxCursor *result; | |
5020 | PyObject * obj0 = 0 ; | |
5021 | char *kwnames[] = { | |
5022 | (char *) "id", NULL | |
5023 | }; | |
5024 | ||
5025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
c32bde28 | 5026 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5027 | if (PyErr_Occurred()) SWIG_fail; |
5028 | { | |
0439c23b | 5029 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5031 | result = (wxCursor *)new wxCursor(arg1); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5034 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5035 | } |
5036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
5037 | return resultobj; | |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
c32bde28 | 5043 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5044 | PyObject *resultobj; |
5045 | wxImage *arg1 = 0 ; | |
5046 | wxCursor *result; | |
5047 | PyObject * obj0 = 0 ; | |
5048 | char *kwnames[] = { | |
5049 | (char *) "image", NULL | |
5050 | }; | |
5051 | ||
5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
5053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
5054 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5055 | SWIG_fail; | |
5056 | if (arg1 == NULL) { | |
5057 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5058 | SWIG_fail; | |
5059 | } | |
5060 | { | |
0439c23b | 5061 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5063 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
5064 | ||
5065 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5066 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5067 | } |
5068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
5069 | return resultobj; | |
5070 | fail: | |
5071 | return NULL; | |
5072 | } | |
5073 | ||
5074 | ||
c32bde28 | 5075 | static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5076 | PyObject *resultobj; |
5077 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5078 | long result; | |
5079 | PyObject * obj0 = 0 ; | |
5080 | char *kwnames[] = { | |
5081 | (char *) "self", NULL | |
5082 | }; | |
5083 | ||
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
5085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | result = (long)(arg1)->GetHandle(); | |
5090 | ||
5091 | wxPyEndAllowThreads(__tstate); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | } | |
c32bde28 | 5094 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5095 | return resultobj; |
5096 | fail: | |
5097 | return NULL; | |
5098 | } | |
5099 | ||
5100 | ||
c32bde28 | 5101 | static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5102 | PyObject *resultobj; |
5103 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5104 | long arg2 ; | |
5105 | PyObject * obj0 = 0 ; | |
5106 | PyObject * obj1 = 0 ; | |
5107 | char *kwnames[] = { | |
5108 | (char *) "self",(char *) "handle", NULL | |
5109 | }; | |
5110 | ||
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
5112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5114 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5115 | if (PyErr_Occurred()) SWIG_fail; |
5116 | { | |
5117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5118 | wxCursor_SetHandle(arg1,arg2); | |
5119 | ||
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
5123 | Py_INCREF(Py_None); resultobj = Py_None; | |
5124 | return resultobj; | |
5125 | fail: | |
5126 | return NULL; | |
5127 | } | |
5128 | ||
5129 | ||
c32bde28 | 5130 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5131 | PyObject *resultobj; |
5132 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5133 | bool result; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "self", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
5140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | result = (bool)(arg1)->Ok(); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | { | |
5150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5151 | } | |
5152 | return resultobj; | |
5153 | fail: | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
c32bde28 | 5158 | static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5159 | PyObject *resultobj; |
5160 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5161 | int result; | |
5162 | PyObject * obj0 = 0 ; | |
5163 | char *kwnames[] = { | |
5164 | (char *) "self", NULL | |
5165 | }; | |
5166 | ||
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
5168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5170 | { | |
5171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5172 | result = (int)(arg1)->GetWidth(); | |
5173 | ||
5174 | wxPyEndAllowThreads(__tstate); | |
5175 | if (PyErr_Occurred()) SWIG_fail; | |
5176 | } | |
c32bde28 | 5177 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5178 | return resultobj; |
5179 | fail: | |
5180 | return NULL; | |
5181 | } | |
5182 | ||
5183 | ||
c32bde28 | 5184 | static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5185 | PyObject *resultobj; |
5186 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5187 | int result; | |
5188 | PyObject * obj0 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (int)(arg1)->GetHeight(); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
c32bde28 | 5203 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5204 | return resultobj; |
5205 | fail: | |
5206 | return NULL; | |
5207 | } | |
5208 | ||
5209 | ||
c32bde28 | 5210 | static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5211 | PyObject *resultobj; |
5212 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5213 | int result; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | char *kwnames[] = { | |
5216 | (char *) "self", NULL | |
5217 | }; | |
5218 | ||
5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
5220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (int)(arg1)->GetDepth(); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
c32bde28 | 5229 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5230 | return resultobj; |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
c32bde28 | 5236 | static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5237 | PyObject *resultobj; |
5238 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5239 | int arg2 ; | |
5240 | PyObject * obj0 = 0 ; | |
5241 | PyObject * obj1 = 0 ; | |
5242 | char *kwnames[] = { | |
5243 | (char *) "self",(char *) "w", NULL | |
5244 | }; | |
5245 | ||
5246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
5247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5249 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5250 | if (PyErr_Occurred()) SWIG_fail; |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | (arg1)->SetWidth(arg2); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | Py_INCREF(Py_None); resultobj = Py_None; | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
c32bde28 | 5265 | static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5266 | PyObject *resultobj; |
5267 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5268 | int arg2 ; | |
5269 | PyObject * obj0 = 0 ; | |
5270 | PyObject * obj1 = 0 ; | |
5271 | char *kwnames[] = { | |
5272 | (char *) "self",(char *) "h", NULL | |
5273 | }; | |
5274 | ||
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5278 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5279 | if (PyErr_Occurred()) SWIG_fail; |
5280 | { | |
5281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5282 | (arg1)->SetHeight(arg2); | |
5283 | ||
5284 | wxPyEndAllowThreads(__tstate); | |
5285 | if (PyErr_Occurred()) SWIG_fail; | |
5286 | } | |
5287 | Py_INCREF(Py_None); resultobj = Py_None; | |
5288 | return resultobj; | |
5289 | fail: | |
5290 | return NULL; | |
5291 | } | |
5292 | ||
5293 | ||
c32bde28 | 5294 | static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5295 | PyObject *resultobj; |
5296 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5297 | int arg2 ; | |
5298 | PyObject * obj0 = 0 ; | |
5299 | PyObject * obj1 = 0 ; | |
5300 | char *kwnames[] = { | |
5301 | (char *) "self",(char *) "d", NULL | |
5302 | }; | |
5303 | ||
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
5305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5307 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5308 | if (PyErr_Occurred()) SWIG_fail; |
5309 | { | |
5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5311 | (arg1)->SetDepth(arg2); | |
5312 | ||
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
5316 | Py_INCREF(Py_None); resultobj = Py_None; | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
c32bde28 | 5323 | static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5324 | PyObject *resultobj; |
5325 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5326 | wxSize *arg2 = 0 ; | |
5327 | wxSize temp2 ; | |
5328 | PyObject * obj0 = 0 ; | |
5329 | PyObject * obj1 = 0 ; | |
5330 | char *kwnames[] = { | |
5331 | (char *) "self",(char *) "size", NULL | |
5332 | }; | |
5333 | ||
5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5337 | { | |
5338 | arg2 = &temp2; | |
5339 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5340 | } | |
5341 | { | |
5342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5343 | (arg1)->SetSize((wxSize const &)*arg2); | |
5344 | ||
5345 | wxPyEndAllowThreads(__tstate); | |
5346 | if (PyErr_Occurred()) SWIG_fail; | |
5347 | } | |
5348 | Py_INCREF(Py_None); resultobj = Py_None; | |
5349 | return resultobj; | |
5350 | fail: | |
5351 | return NULL; | |
5352 | } | |
5353 | ||
5354 | ||
c32bde28 | 5355 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5356 | PyObject *obj; |
5357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5358 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5359 | Py_INCREF(obj); | |
5360 | return Py_BuildValue((char *)""); | |
5361 | } | |
c32bde28 | 5362 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5363 | PyObject *resultobj; |
5364 | int arg1 = (int) 0 ; | |
5365 | int arg2 = (int) 0 ; | |
5366 | int arg3 = (int) 0 ; | |
5367 | int arg4 = (int) 0 ; | |
5368 | wxRegion *result; | |
5369 | PyObject * obj0 = 0 ; | |
5370 | PyObject * obj1 = 0 ; | |
5371 | PyObject * obj2 = 0 ; | |
5372 | PyObject * obj3 = 0 ; | |
5373 | char *kwnames[] = { | |
5374 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5375 | }; | |
5376 | ||
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5378 | if (obj0) { | |
c32bde28 | 5379 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5380 | if (PyErr_Occurred()) SWIG_fail; |
5381 | } | |
5382 | if (obj1) { | |
c32bde28 | 5383 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5384 | if (PyErr_Occurred()) SWIG_fail; |
5385 | } | |
5386 | if (obj2) { | |
c32bde28 | 5387 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5388 | if (PyErr_Occurred()) SWIG_fail; |
5389 | } | |
5390 | if (obj3) { | |
c32bde28 | 5391 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5392 | if (PyErr_Occurred()) SWIG_fail; |
5393 | } | |
5394 | { | |
0439c23b | 5395 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5397 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5400 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5401 | } |
5402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
c32bde28 | 5409 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5410 | PyObject *resultobj; |
5411 | wxBitmap *arg1 = 0 ; | |
a2569024 RD |
5412 | wxRegion *result; |
5413 | PyObject * obj0 = 0 ; | |
5414 | char *kwnames[] = { | |
5415 | (char *) "bmp", NULL | |
5416 | }; | |
5417 | ||
5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
5419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
5420 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5421 | SWIG_fail; | |
5422 | if (arg1 == NULL) { | |
5423 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5424 | SWIG_fail; | |
5425 | } | |
5426 | { | |
5427 | if (!wxPyCheckForApp()) SWIG_fail; | |
5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5429 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
5430 | ||
5431 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5432 | if (PyErr_Occurred()) SWIG_fail; |
a2569024 RD |
5433 | } |
5434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5435 | return resultobj; | |
5436 | fail: | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
c32bde28 | 5441 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
a2569024 RD |
5442 | PyObject *resultobj; |
5443 | wxBitmap *arg1 = 0 ; | |
5444 | wxColour *arg2 = 0 ; | |
d55e5bfc RD |
5445 | int arg3 = (int) 0 ; |
5446 | wxRegion *result; | |
5447 | wxColour temp2 ; | |
5448 | PyObject * obj0 = 0 ; | |
5449 | PyObject * obj1 = 0 ; | |
5450 | PyObject * obj2 = 0 ; | |
5451 | char *kwnames[] = { | |
5452 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5453 | }; | |
5454 | ||
a2569024 | 5455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
5456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
5457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5458 | SWIG_fail; | |
5459 | if (arg1 == NULL) { | |
5460 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5461 | SWIG_fail; | |
5462 | } | |
a2569024 RD |
5463 | { |
5464 | arg2 = &temp2; | |
5465 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
5466 | } |
5467 | if (obj2) { | |
c32bde28 | 5468 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5469 | if (PyErr_Occurred()) SWIG_fail; |
5470 | } | |
5471 | { | |
0439c23b | 5472 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5474 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5477 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5478 | } |
5479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5480 | return resultobj; | |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
c32bde28 | 5486 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5487 | PyObject *resultobj; |
5488 | int arg1 ; | |
5489 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5490 | int arg3 = (int) wxWINDING_RULE ; | |
5491 | wxRegion *result; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | PyObject * obj1 = 0 ; | |
5494 | char *kwnames[] = { | |
5495 | (char *) "points",(char *) "fillStyle", NULL | |
5496 | }; | |
5497 | ||
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
5499 | { | |
5500 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5501 | if (arg2 == NULL) SWIG_fail; | |
5502 | } | |
5503 | if (obj1) { | |
c32bde28 | 5504 | arg3 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5505 | if (PyErr_Occurred()) SWIG_fail; |
5506 | } | |
5507 | { | |
0439c23b | 5508 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5510 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5511 | ||
5512 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5513 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5514 | } |
5515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5516 | { | |
5517 | if (arg2) delete [] arg2; | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | { | |
5522 | if (arg2) delete [] arg2; | |
5523 | } | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
c32bde28 | 5528 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5529 | PyObject *resultobj; |
5530 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5531 | PyObject * obj0 = 0 ; | |
5532 | char *kwnames[] = { | |
5533 | (char *) "self", NULL | |
5534 | }; | |
5535 | ||
5536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5539 | { | |
5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5541 | delete arg1; | |
5542 | ||
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
5546 | Py_INCREF(Py_None); resultobj = Py_None; | |
5547 | return resultobj; | |
5548 | fail: | |
5549 | return NULL; | |
5550 | } | |
5551 | ||
5552 | ||
c32bde28 | 5553 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5554 | PyObject *resultobj; |
5555 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5556 | PyObject * obj0 = 0 ; | |
5557 | char *kwnames[] = { | |
5558 | (char *) "self", NULL | |
5559 | }; | |
5560 | ||
5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5564 | { | |
5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5566 | (arg1)->Clear(); | |
5567 | ||
5568 | wxPyEndAllowThreads(__tstate); | |
5569 | if (PyErr_Occurred()) SWIG_fail; | |
5570 | } | |
5571 | Py_INCREF(Py_None); resultobj = Py_None; | |
5572 | return resultobj; | |
5573 | fail: | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
c32bde28 | 5578 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5579 | PyObject *resultobj; |
5580 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5581 | int arg2 ; | |
5582 | int arg3 ; | |
5583 | bool result; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | PyObject * obj1 = 0 ; | |
5586 | PyObject * obj2 = 0 ; | |
5587 | char *kwnames[] = { | |
5588 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5589 | }; | |
5590 | ||
5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5594 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5595 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5596 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5597 | if (PyErr_Occurred()) SWIG_fail; |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5601 | ||
5602 | wxPyEndAllowThreads(__tstate); | |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
5605 | { | |
5606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5607 | } | |
5608 | return resultobj; | |
5609 | fail: | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
c32bde28 | 5614 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5615 | PyObject *resultobj; |
5616 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5617 | int arg2 ; | |
5618 | int arg3 ; | |
5619 | int result; | |
5620 | PyObject * obj0 = 0 ; | |
5621 | PyObject * obj1 = 0 ; | |
5622 | PyObject * obj2 = 0 ; | |
5623 | char *kwnames[] = { | |
5624 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5630 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5631 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5632 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5633 | if (PyErr_Occurred()) SWIG_fail; |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | result = (int)(arg1)->Contains(arg2,arg3); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
c32bde28 | 5641 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5642 | return resultobj; |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
c32bde28 | 5648 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5649 | PyObject *resultobj; |
5650 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5651 | wxPoint *arg2 = 0 ; | |
5652 | int result; | |
5653 | wxPoint temp2 ; | |
5654 | PyObject * obj0 = 0 ; | |
5655 | PyObject * obj1 = 0 ; | |
5656 | char *kwnames[] = { | |
5657 | (char *) "self",(char *) "pt", NULL | |
5658 | }; | |
5659 | ||
5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5663 | { | |
5664 | arg2 = &temp2; | |
5665 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5666 | } | |
5667 | { | |
5668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5669 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5670 | ||
5671 | wxPyEndAllowThreads(__tstate); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
c32bde28 | 5674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5675 | return resultobj; |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
c32bde28 | 5681 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5682 | PyObject *resultobj; |
5683 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5684 | wxRect *arg2 = 0 ; | |
5685 | int result; | |
5686 | wxRect temp2 ; | |
5687 | PyObject * obj0 = 0 ; | |
5688 | PyObject * obj1 = 0 ; | |
5689 | char *kwnames[] = { | |
5690 | (char *) "self",(char *) "rect", NULL | |
5691 | }; | |
5692 | ||
5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5696 | { | |
5697 | arg2 = &temp2; | |
5698 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5699 | } | |
5700 | { | |
5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5702 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5703 | ||
5704 | wxPyEndAllowThreads(__tstate); | |
5705 | if (PyErr_Occurred()) SWIG_fail; | |
5706 | } | |
c32bde28 | 5707 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5708 | return resultobj; |
5709 | fail: | |
5710 | return NULL; | |
5711 | } | |
5712 | ||
5713 | ||
c32bde28 | 5714 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5715 | PyObject *resultobj; |
5716 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5717 | int arg2 ; | |
5718 | int arg3 ; | |
5719 | int arg4 ; | |
5720 | int arg5 ; | |
5721 | int result; | |
5722 | PyObject * obj0 = 0 ; | |
5723 | PyObject * obj1 = 0 ; | |
5724 | PyObject * obj2 = 0 ; | |
5725 | PyObject * obj3 = 0 ; | |
5726 | PyObject * obj4 = 0 ; | |
5727 | char *kwnames[] = { | |
5728 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5729 | }; | |
5730 | ||
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5734 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5735 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5736 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5737 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5738 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5739 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5740 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5741 | if (PyErr_Occurred()) SWIG_fail; |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
c32bde28 | 5749 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5750 | return resultobj; |
5751 | fail: | |
5752 | return NULL; | |
5753 | } | |
5754 | ||
5755 | ||
c32bde28 | 5756 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5757 | PyObject *resultobj; |
5758 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5759 | wxRect result; | |
5760 | PyObject * obj0 = 0 ; | |
5761 | char *kwnames[] = { | |
5762 | (char *) "self", NULL | |
5763 | }; | |
5764 | ||
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | result = (arg1)->GetBox(); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
5775 | { | |
5776 | wxRect * resultptr; | |
5777 | resultptr = new wxRect((wxRect &) result); | |
5778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5779 | } | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
c32bde28 | 5786 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5787 | PyObject *resultobj; |
5788 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5789 | int arg2 ; | |
5790 | int arg3 ; | |
5791 | int arg4 ; | |
5792 | int arg5 ; | |
5793 | bool result; | |
5794 | PyObject * obj0 = 0 ; | |
5795 | PyObject * obj1 = 0 ; | |
5796 | PyObject * obj2 = 0 ; | |
5797 | PyObject * obj3 = 0 ; | |
5798 | PyObject * obj4 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5806 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5807 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5808 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5809 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5810 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5811 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5812 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5813 | if (PyErr_Occurred()) SWIG_fail; |
5814 | { | |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5817 | ||
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
5821 | { | |
5822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5823 | } | |
5824 | return resultobj; | |
5825 | fail: | |
5826 | return NULL; | |
5827 | } | |
5828 | ||
5829 | ||
c32bde28 | 5830 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5831 | PyObject *resultobj; |
5832 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5833 | wxRect *arg2 = 0 ; | |
5834 | bool result; | |
5835 | wxRect temp2 ; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | PyObject * obj1 = 0 ; | |
5838 | char *kwnames[] = { | |
5839 | (char *) "self",(char *) "rect", NULL | |
5840 | }; | |
5841 | ||
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5845 | { | |
5846 | arg2 = &temp2; | |
5847 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5848 | } | |
5849 | { | |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5852 | ||
5853 | wxPyEndAllowThreads(__tstate); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
5856 | { | |
5857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5858 | } | |
5859 | return resultobj; | |
5860 | fail: | |
5861 | return NULL; | |
5862 | } | |
5863 | ||
5864 | ||
c32bde28 | 5865 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5866 | PyObject *resultobj; |
5867 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5868 | wxRegion *arg2 = 0 ; | |
5869 | bool result; | |
5870 | PyObject * obj0 = 0 ; | |
5871 | PyObject * obj1 = 0 ; | |
5872 | char *kwnames[] = { | |
5873 | (char *) "self",(char *) "region", NULL | |
5874 | }; | |
5875 | ||
5876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5881 | SWIG_fail; | |
5882 | if (arg2 == NULL) { | |
5883 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5884 | SWIG_fail; | |
5885 | } | |
5886 | { | |
5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5888 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5889 | ||
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5895 | } | |
5896 | return resultobj; | |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
c32bde28 | 5902 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5903 | PyObject *resultobj; |
5904 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5905 | bool result; | |
5906 | PyObject * obj0 = 0 ; | |
5907 | char *kwnames[] = { | |
5908 | (char *) "self", NULL | |
5909 | }; | |
5910 | ||
5911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (bool)(arg1)->IsEmpty(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | { | |
5922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5923 | } | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
c32bde28 | 5930 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5931 | PyObject *resultobj; |
5932 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5933 | int arg2 ; | |
5934 | int arg3 ; | |
5935 | int arg4 ; | |
5936 | int arg5 ; | |
5937 | bool result; | |
5938 | PyObject * obj0 = 0 ; | |
5939 | PyObject * obj1 = 0 ; | |
5940 | PyObject * obj2 = 0 ; | |
5941 | PyObject * obj3 = 0 ; | |
5942 | PyObject * obj4 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5950 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5951 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5952 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5953 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5954 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5955 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5956 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5957 | if (PyErr_Occurred()) SWIG_fail; |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | { | |
5966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5967 | } | |
5968 | return resultobj; | |
5969 | fail: | |
5970 | return NULL; | |
5971 | } | |
5972 | ||
5973 | ||
c32bde28 | 5974 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5975 | PyObject *resultobj; |
5976 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5977 | wxRect *arg2 = 0 ; | |
5978 | bool result; | |
5979 | wxRect temp2 ; | |
5980 | PyObject * obj0 = 0 ; | |
5981 | PyObject * obj1 = 0 ; | |
5982 | char *kwnames[] = { | |
5983 | (char *) "self",(char *) "rect", NULL | |
5984 | }; | |
5985 | ||
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5989 | { | |
5990 | arg2 = &temp2; | |
5991 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5992 | } | |
5993 | { | |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5995 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5996 | ||
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | { | |
6001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6002 | } | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
c32bde28 | 6009 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6010 | PyObject *resultobj; |
6011 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6012 | wxRegion *arg2 = 0 ; | |
6013 | bool result; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | PyObject * obj1 = 0 ; | |
6016 | char *kwnames[] = { | |
6017 | (char *) "self",(char *) "region", NULL | |
6018 | }; | |
6019 | ||
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
6021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6025 | SWIG_fail; | |
6026 | if (arg2 == NULL) { | |
6027 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6028 | SWIG_fail; | |
6029 | } | |
6030 | { | |
6031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6032 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
6033 | ||
6034 | wxPyEndAllowThreads(__tstate); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | } | |
6037 | { | |
6038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6039 | } | |
6040 | return resultobj; | |
6041 | fail: | |
6042 | return NULL; | |
6043 | } | |
6044 | ||
6045 | ||
c32bde28 | 6046 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6047 | PyObject *resultobj; |
6048 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6049 | int arg2 ; | |
6050 | int arg3 ; | |
6051 | int arg4 ; | |
6052 | int arg5 ; | |
6053 | bool result; | |
6054 | PyObject * obj0 = 0 ; | |
6055 | PyObject * obj1 = 0 ; | |
6056 | PyObject * obj2 = 0 ; | |
6057 | PyObject * obj3 = 0 ; | |
6058 | PyObject * obj4 = 0 ; | |
6059 | char *kwnames[] = { | |
6060 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6061 | }; | |
6062 | ||
6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6066 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 6067 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6068 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 6069 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6070 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 6071 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6072 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
6073 | if (PyErr_Occurred()) SWIG_fail; |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | { | |
6082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6083 | } | |
6084 | return resultobj; | |
6085 | fail: | |
6086 | return NULL; | |
6087 | } | |
6088 | ||
6089 | ||
c32bde28 | 6090 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6091 | PyObject *resultobj; |
6092 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6093 | wxRect *arg2 = 0 ; | |
6094 | bool result; | |
6095 | wxRect temp2 ; | |
6096 | PyObject * obj0 = 0 ; | |
6097 | PyObject * obj1 = 0 ; | |
6098 | char *kwnames[] = { | |
6099 | (char *) "self",(char *) "rect", NULL | |
6100 | }; | |
6101 | ||
6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
6103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6105 | { | |
6106 | arg2 = &temp2; | |
6107 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6108 | } | |
6109 | { | |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
6112 | ||
6113 | wxPyEndAllowThreads(__tstate); | |
6114 | if (PyErr_Occurred()) SWIG_fail; | |
6115 | } | |
6116 | { | |
6117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6118 | } | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
c32bde28 | 6125 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6126 | PyObject *resultobj; |
6127 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6128 | wxRegion *arg2 = 0 ; | |
6129 | bool result; | |
6130 | PyObject * obj0 = 0 ; | |
6131 | PyObject * obj1 = 0 ; | |
6132 | char *kwnames[] = { | |
6133 | (char *) "self",(char *) "region", NULL | |
6134 | }; | |
6135 | ||
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
6137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6140 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6141 | SWIG_fail; | |
6142 | if (arg2 == NULL) { | |
6143 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6144 | SWIG_fail; | |
6145 | } | |
6146 | { | |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | { | |
6154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6155 | } | |
6156 | return resultobj; | |
6157 | fail: | |
6158 | return NULL; | |
6159 | } | |
6160 | ||
6161 | ||
c32bde28 | 6162 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6163 | PyObject *resultobj; |
6164 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6165 | int arg2 ; | |
6166 | int arg3 ; | |
6167 | int arg4 ; | |
6168 | int arg5 ; | |
6169 | bool result; | |
6170 | PyObject * obj0 = 0 ; | |
6171 | PyObject * obj1 = 0 ; | |
6172 | PyObject * obj2 = 0 ; | |
6173 | PyObject * obj3 = 0 ; | |
6174 | PyObject * obj4 = 0 ; | |
6175 | char *kwnames[] = { | |
6176 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6182 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 6183 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6184 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 6185 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6186 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 6187 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6188 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
6189 | if (PyErr_Occurred()) SWIG_fail; |
6190 | { | |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
6193 | ||
6194 | wxPyEndAllowThreads(__tstate); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | { | |
6198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6199 | } | |
6200 | return resultobj; | |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
c32bde28 | 6206 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6207 | PyObject *resultobj; |
6208 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6209 | wxRect *arg2 = 0 ; | |
6210 | bool result; | |
6211 | wxRect temp2 ; | |
6212 | PyObject * obj0 = 0 ; | |
6213 | PyObject * obj1 = 0 ; | |
6214 | char *kwnames[] = { | |
6215 | (char *) "self",(char *) "rect", NULL | |
6216 | }; | |
6217 | ||
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
6219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6221 | { | |
6222 | arg2 = &temp2; | |
6223 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6224 | } | |
6225 | { | |
6226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6227 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
6228 | ||
6229 | wxPyEndAllowThreads(__tstate); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | { | |
6233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6234 | } | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
c32bde28 | 6241 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6242 | PyObject *resultobj; |
6243 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6244 | wxRegion *arg2 = 0 ; | |
6245 | bool result; | |
6246 | PyObject * obj0 = 0 ; | |
6247 | PyObject * obj1 = 0 ; | |
6248 | char *kwnames[] = { | |
6249 | (char *) "self",(char *) "region", NULL | |
6250 | }; | |
6251 | ||
6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
6253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6255 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6257 | SWIG_fail; | |
6258 | if (arg2 == NULL) { | |
6259 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6260 | SWIG_fail; | |
6261 | } | |
6262 | { | |
6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6264 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
6265 | ||
6266 | wxPyEndAllowThreads(__tstate); | |
6267 | if (PyErr_Occurred()) SWIG_fail; | |
6268 | } | |
6269 | { | |
6270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6271 | } | |
6272 | return resultobj; | |
6273 | fail: | |
6274 | return NULL; | |
6275 | } | |
6276 | ||
6277 | ||
c32bde28 | 6278 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6279 | PyObject *resultobj; |
6280 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6281 | SwigValueWrapper< wxBitmap > result; | |
6282 | PyObject * obj0 = 0 ; | |
6283 | char *kwnames[] = { | |
6284 | (char *) "self", NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
6288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6290 | { | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | result = (arg1)->ConvertToBitmap(); | |
6293 | ||
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
6297 | { | |
6298 | wxBitmap * resultptr; | |
6299 | resultptr = new wxBitmap((wxBitmap &) result); | |
6300 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
6301 | } | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
c32bde28 | 6308 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6309 | PyObject *resultobj; |
6310 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6311 | wxBitmap *arg2 = 0 ; | |
a2569024 RD |
6312 | bool result; |
6313 | PyObject * obj0 = 0 ; | |
6314 | PyObject * obj1 = 0 ; | |
6315 | char *kwnames[] = { | |
6316 | (char *) "self",(char *) "bmp", NULL | |
6317 | }; | |
6318 | ||
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
6320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6322 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6323 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6324 | SWIG_fail; | |
6325 | if (arg2 == NULL) { | |
6326 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6327 | SWIG_fail; | |
6328 | } | |
6329 | { | |
6330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6331 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
6332 | ||
6333 | wxPyEndAllowThreads(__tstate); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | } | |
6336 | { | |
6337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6338 | } | |
6339 | return resultobj; | |
6340 | fail: | |
6341 | return NULL; | |
6342 | } | |
6343 | ||
6344 | ||
c32bde28 | 6345 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
a2569024 RD |
6346 | PyObject *resultobj; |
6347 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6348 | wxBitmap *arg2 = 0 ; | |
6349 | wxColour *arg3 = 0 ; | |
d55e5bfc RD |
6350 | int arg4 = (int) 0 ; |
6351 | bool result; | |
6352 | wxColour temp3 ; | |
6353 | PyObject * obj0 = 0 ; | |
6354 | PyObject * obj1 = 0 ; | |
6355 | PyObject * obj2 = 0 ; | |
6356 | PyObject * obj3 = 0 ; | |
6357 | char *kwnames[] = { | |
6358 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
6359 | }; | |
6360 | ||
a2569024 | 6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
6362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6365 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6366 | SWIG_fail; | |
6367 | if (arg2 == NULL) { | |
6368 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6369 | SWIG_fail; | |
6370 | } | |
a2569024 RD |
6371 | { |
6372 | arg3 = &temp3; | |
6373 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
6374 | } |
6375 | if (obj3) { | |
c32bde28 | 6376 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6377 | if (PyErr_Occurred()) SWIG_fail; |
6378 | } | |
6379 | { | |
6380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6381 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
6382 | ||
6383 | wxPyEndAllowThreads(__tstate); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
6386 | { | |
6387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6388 | } | |
6389 | return resultobj; | |
6390 | fail: | |
6391 | return NULL; | |
6392 | } | |
6393 | ||
6394 | ||
c32bde28 | 6395 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6396 | PyObject *obj; |
6397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6398 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
6399 | Py_INCREF(obj); | |
6400 | return Py_BuildValue((char *)""); | |
6401 | } | |
c32bde28 | 6402 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6403 | PyObject *resultobj; |
6404 | wxRegion *arg1 = 0 ; | |
6405 | wxRegionIterator *result; | |
6406 | PyObject * obj0 = 0 ; | |
6407 | char *kwnames[] = { | |
6408 | (char *) "region", NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
6412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6413 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6414 | SWIG_fail; | |
6415 | if (arg1 == NULL) { | |
6416 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6417 | SWIG_fail; | |
6418 | } | |
6419 | { | |
0439c23b | 6420 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6422 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6425 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6426 | } |
6427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
6428 | return resultobj; | |
6429 | fail: | |
6430 | return NULL; | |
6431 | } | |
6432 | ||
6433 | ||
c32bde28 | 6434 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6435 | PyObject *resultobj; |
6436 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6437 | PyObject * obj0 = 0 ; | |
6438 | char *kwnames[] = { | |
6439 | (char *) "self", NULL | |
6440 | }; | |
6441 | ||
6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
6443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | delete arg1; | |
6448 | ||
6449 | wxPyEndAllowThreads(__tstate); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | } | |
6452 | Py_INCREF(Py_None); resultobj = Py_None; | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
c32bde28 | 6459 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6460 | PyObject *resultobj; |
6461 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6462 | int result; | |
6463 | PyObject * obj0 = 0 ; | |
6464 | char *kwnames[] = { | |
6465 | (char *) "self", NULL | |
6466 | }; | |
6467 | ||
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
6469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6471 | { | |
6472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6473 | result = (int)(arg1)->GetX(); | |
6474 | ||
6475 | wxPyEndAllowThreads(__tstate); | |
6476 | if (PyErr_Occurred()) SWIG_fail; | |
6477 | } | |
c32bde28 | 6478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6479 | return resultobj; |
6480 | fail: | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
c32bde28 | 6485 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6486 | PyObject *resultobj; |
6487 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6488 | int result; | |
6489 | PyObject * obj0 = 0 ; | |
6490 | char *kwnames[] = { | |
6491 | (char *) "self", NULL | |
6492 | }; | |
6493 | ||
6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
6495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | result = (int)(arg1)->GetY(); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) SWIG_fail; | |
6503 | } | |
c32bde28 | 6504 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6505 | return resultobj; |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
c32bde28 | 6511 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6512 | PyObject *resultobj; |
6513 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6514 | int result; | |
6515 | PyObject * obj0 = 0 ; | |
6516 | char *kwnames[] = { | |
6517 | (char *) "self", NULL | |
6518 | }; | |
6519 | ||
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6523 | { | |
6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6525 | result = (int)(arg1)->GetW(); | |
6526 | ||
6527 | wxPyEndAllowThreads(__tstate); | |
6528 | if (PyErr_Occurred()) SWIG_fail; | |
6529 | } | |
c32bde28 | 6530 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6531 | return resultobj; |
6532 | fail: | |
6533 | return NULL; | |
6534 | } | |
6535 | ||
6536 | ||
c32bde28 | 6537 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6538 | PyObject *resultobj; |
6539 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6540 | int result; | |
6541 | PyObject * obj0 = 0 ; | |
6542 | char *kwnames[] = { | |
6543 | (char *) "self", NULL | |
6544 | }; | |
6545 | ||
6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6549 | { | |
6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6551 | result = (int)(arg1)->GetWidth(); | |
6552 | ||
6553 | wxPyEndAllowThreads(__tstate); | |
6554 | if (PyErr_Occurred()) SWIG_fail; | |
6555 | } | |
c32bde28 | 6556 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6557 | return resultobj; |
6558 | fail: | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
c32bde28 | 6563 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6564 | PyObject *resultobj; |
6565 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6566 | int result; | |
6567 | PyObject * obj0 = 0 ; | |
6568 | char *kwnames[] = { | |
6569 | (char *) "self", NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | result = (int)(arg1)->GetH(); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
c32bde28 | 6582 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6583 | return resultobj; |
6584 | fail: | |
6585 | return NULL; | |
6586 | } | |
6587 | ||
6588 | ||
c32bde28 | 6589 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6590 | PyObject *resultobj; |
6591 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6592 | int result; | |
6593 | PyObject * obj0 = 0 ; | |
6594 | char *kwnames[] = { | |
6595 | (char *) "self", NULL | |
6596 | }; | |
6597 | ||
6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6601 | { | |
6602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6603 | result = (int)(arg1)->GetHeight(); | |
6604 | ||
6605 | wxPyEndAllowThreads(__tstate); | |
6606 | if (PyErr_Occurred()) SWIG_fail; | |
6607 | } | |
c32bde28 | 6608 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6609 | return resultobj; |
6610 | fail: | |
6611 | return NULL; | |
6612 | } | |
6613 | ||
6614 | ||
c32bde28 | 6615 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6616 | PyObject *resultobj; |
6617 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6618 | wxRect result; | |
6619 | PyObject * obj0 = 0 ; | |
6620 | char *kwnames[] = { | |
6621 | (char *) "self", NULL | |
6622 | }; | |
6623 | ||
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6627 | { | |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | result = (arg1)->GetRect(); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | { | |
6635 | wxRect * resultptr; | |
6636 | resultptr = new wxRect((wxRect &) result); | |
6637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6638 | } | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
c32bde28 | 6645 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6646 | PyObject *resultobj; |
6647 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6648 | bool result; | |
6649 | PyObject * obj0 = 0 ; | |
6650 | char *kwnames[] = { | |
6651 | (char *) "self", NULL | |
6652 | }; | |
6653 | ||
6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | result = (bool)(arg1)->HaveRects(); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | { | |
6665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6666 | } | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | return NULL; | |
6670 | } | |
6671 | ||
6672 | ||
c32bde28 | 6673 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6674 | PyObject *resultobj; |
6675 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6676 | PyObject * obj0 = 0 ; | |
6677 | char *kwnames[] = { | |
6678 | (char *) "self", NULL | |
6679 | }; | |
6680 | ||
6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6684 | { | |
6685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6686 | (arg1)->Reset(); | |
6687 | ||
6688 | wxPyEndAllowThreads(__tstate); | |
6689 | if (PyErr_Occurred()) SWIG_fail; | |
6690 | } | |
6691 | Py_INCREF(Py_None); resultobj = Py_None; | |
6692 | return resultobj; | |
6693 | fail: | |
6694 | return NULL; | |
6695 | } | |
6696 | ||
6697 | ||
c32bde28 | 6698 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6699 | PyObject *resultobj; |
6700 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | char *kwnames[] = { | |
6703 | (char *) "self", NULL | |
6704 | }; | |
6705 | ||
6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | wxRegionIterator_Next(arg1); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | Py_INCREF(Py_None); resultobj = Py_None; | |
6717 | return resultobj; | |
6718 | fail: | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
c32bde28 | 6723 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6724 | PyObject *resultobj; |
6725 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6726 | bool result; | |
6727 | PyObject * obj0 = 0 ; | |
6728 | char *kwnames[] = { | |
6729 | (char *) "self", NULL | |
6730 | }; | |
6731 | ||
6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6735 | { | |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | { | |
6743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6744 | } | |
6745 | return resultobj; | |
6746 | fail: | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
c32bde28 | 6751 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6752 | PyObject *obj; |
6753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6754 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6755 | Py_INCREF(obj); | |
6756 | return Py_BuildValue((char *)""); | |
6757 | } | |
c32bde28 | 6758 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6759 | PyObject *resultobj; |
6760 | wxNativeFontInfo *result; | |
6761 | char *kwnames[] = { | |
6762 | NULL | |
6763 | }; | |
6764 | ||
6765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6766 | { | |
6767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6768 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6769 | ||
6770 | wxPyEndAllowThreads(__tstate); | |
6771 | if (PyErr_Occurred()) SWIG_fail; | |
6772 | } | |
6773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6774 | return resultobj; | |
6775 | fail: | |
6776 | return NULL; | |
6777 | } | |
6778 | ||
6779 | ||
c32bde28 | 6780 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6781 | PyObject *resultobj; |
6782 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | char *kwnames[] = { | |
6785 | (char *) "self", NULL | |
6786 | }; | |
6787 | ||
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6791 | { | |
6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6793 | delete arg1; | |
6794 | ||
6795 | wxPyEndAllowThreads(__tstate); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
6798 | Py_INCREF(Py_None); resultobj = Py_None; | |
6799 | return resultobj; | |
6800 | fail: | |
6801 | return NULL; | |
6802 | } | |
6803 | ||
6804 | ||
c32bde28 | 6805 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6806 | PyObject *resultobj; |
6807 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6808 | PyObject * obj0 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | (arg1)->Init(); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | Py_INCREF(Py_None); resultobj = Py_None; | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | return NULL; | |
6827 | } | |
6828 | ||
6829 | ||
c32bde28 | 6830 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6831 | PyObject *resultobj; |
6832 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6833 | wxFont *arg2 = 0 ; | |
6834 | PyObject * obj0 = 0 ; | |
6835 | PyObject * obj1 = 0 ; | |
6836 | char *kwnames[] = { | |
6837 | (char *) "self",(char *) "font", NULL | |
6838 | }; | |
6839 | ||
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6845 | SWIG_fail; | |
6846 | if (arg2 == NULL) { | |
6847 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6848 | SWIG_fail; | |
6849 | } | |
6850 | { | |
6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6852 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6853 | ||
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
6857 | Py_INCREF(Py_None); resultobj = Py_None; | |
6858 | return resultobj; | |
6859 | fail: | |
6860 | return NULL; | |
6861 | } | |
6862 | ||
6863 | ||
c32bde28 | 6864 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6865 | PyObject *resultobj; |
6866 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6867 | int result; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | char *kwnames[] = { | |
6870 | (char *) "self", NULL | |
6871 | }; | |
6872 | ||
6873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6876 | { | |
6877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6878 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6879 | ||
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
c32bde28 | 6883 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6884 | return resultobj; |
6885 | fail: | |
6886 | return NULL; | |
6887 | } | |
6888 | ||
6889 | ||
5e483524 RD |
6890 | static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
6891 | PyObject *resultobj; | |
6892 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6893 | wxSize result; | |
6894 | PyObject * obj0 = 0 ; | |
6895 | char *kwnames[] = { | |
6896 | (char *) "self", NULL | |
6897 | }; | |
6898 | ||
6899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail; | |
6900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
6905 | ||
6906 | wxPyEndAllowThreads(__tstate); | |
6907 | if (PyErr_Occurred()) SWIG_fail; | |
6908 | } | |
6909 | { | |
6910 | wxSize * resultptr; | |
6911 | resultptr = new wxSize((wxSize &) result); | |
6912 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
6913 | } | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
c32bde28 | 6920 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6921 | PyObject *resultobj; |
6922 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6923 | int result; | |
6924 | PyObject * obj0 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6932 | { | |
6933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6934 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6935 | ||
6936 | wxPyEndAllowThreads(__tstate); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
c32bde28 | 6939 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6940 | return resultobj; |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
c32bde28 | 6946 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6947 | PyObject *resultobj; |
6948 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6949 | int result; | |
6950 | PyObject * obj0 = 0 ; | |
6951 | char *kwnames[] = { | |
6952 | (char *) "self", NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6961 | ||
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
c32bde28 | 6965 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6966 | return resultobj; |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
c32bde28 | 6972 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6973 | PyObject *resultobj; |
6974 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6975 | bool result; | |
6976 | PyObject * obj0 = 0 ; | |
6977 | char *kwnames[] = { | |
6978 | (char *) "self", NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6984 | { | |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) SWIG_fail; | |
6990 | } | |
6991 | { | |
6992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6993 | } | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
c32bde28 | 7000 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7001 | PyObject *resultobj; |
7002 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7003 | wxString result; | |
7004 | PyObject * obj0 = 0 ; | |
7005 | char *kwnames[] = { | |
7006 | (char *) "self", NULL | |
7007 | }; | |
7008 | ||
7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
7010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | { | |
7020 | #if wxUSE_UNICODE | |
7021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7022 | #else | |
7023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7024 | #endif | |
7025 | } | |
7026 | return resultobj; | |
7027 | fail: | |
7028 | return NULL; | |
7029 | } | |
7030 | ||
7031 | ||
c32bde28 | 7032 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7033 | PyObject *resultobj; |
7034 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7035 | int result; | |
7036 | PyObject * obj0 = 0 ; | |
7037 | char *kwnames[] = { | |
7038 | (char *) "self", NULL | |
7039 | }; | |
7040 | ||
7041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
7042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7044 | { | |
7045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7046 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
7047 | ||
7048 | wxPyEndAllowThreads(__tstate); | |
7049 | if (PyErr_Occurred()) SWIG_fail; | |
7050 | } | |
c32bde28 | 7051 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7052 | return resultobj; |
7053 | fail: | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
c32bde28 | 7058 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7059 | PyObject *resultobj; |
7060 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7061 | int result; | |
7062 | PyObject * obj0 = 0 ; | |
7063 | char *kwnames[] = { | |
7064 | (char *) "self", NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
7068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7070 | { | |
7071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7072 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
7073 | ||
7074 | wxPyEndAllowThreads(__tstate); | |
7075 | if (PyErr_Occurred()) SWIG_fail; | |
7076 | } | |
c32bde28 | 7077 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7078 | return resultobj; |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
c32bde28 | 7084 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7085 | PyObject *resultobj; |
7086 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7087 | int arg2 ; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | PyObject * obj1 = 0 ; | |
7090 | char *kwnames[] = { | |
7091 | (char *) "self",(char *) "pointsize", NULL | |
7092 | }; | |
7093 | ||
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
7095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7097 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7098 | if (PyErr_Occurred()) SWIG_fail; |
7099 | { | |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7101 | (arg1)->SetPointSize(arg2); | |
7102 | ||
7103 | wxPyEndAllowThreads(__tstate); | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | } | |
7106 | Py_INCREF(Py_None); resultobj = Py_None; | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
5e483524 RD |
7113 | static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
7114 | PyObject *resultobj; | |
7115 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7116 | wxSize *arg2 = 0 ; | |
7117 | wxSize temp2 ; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | PyObject * obj1 = 0 ; | |
7120 | char *kwnames[] = { | |
7121 | (char *) "self",(char *) "pixelSize", NULL | |
7122 | }; | |
7123 | ||
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
7125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7127 | { | |
7128 | arg2 = &temp2; | |
7129 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7130 | } | |
7131 | { | |
7132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7133 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
7134 | ||
7135 | wxPyEndAllowThreads(__tstate); | |
7136 | if (PyErr_Occurred()) SWIG_fail; | |
7137 | } | |
7138 | Py_INCREF(Py_None); resultobj = Py_None; | |
7139 | return resultobj; | |
7140 | fail: | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
c32bde28 | 7145 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7146 | PyObject *resultobj; |
7147 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7148 | int arg2 ; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | PyObject * obj1 = 0 ; | |
7151 | char *kwnames[] = { | |
7152 | (char *) "self",(char *) "style", NULL | |
7153 | }; | |
7154 | ||
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
7156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7158 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7159 | if (PyErr_Occurred()) SWIG_fail; |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | (arg1)->SetStyle((wxFontStyle )arg2); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | Py_INCREF(Py_None); resultobj = Py_None; | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
c32bde28 | 7174 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7175 | PyObject *resultobj; |
7176 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7177 | int arg2 ; | |
7178 | PyObject * obj0 = 0 ; | |
7179 | PyObject * obj1 = 0 ; | |
7180 | char *kwnames[] = { | |
7181 | (char *) "self",(char *) "weight", NULL | |
7182 | }; | |
7183 | ||
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
7185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7187 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7188 | if (PyErr_Occurred()) SWIG_fail; |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | (arg1)->SetWeight((wxFontWeight )arg2); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
7196 | Py_INCREF(Py_None); resultobj = Py_None; | |
7197 | return resultobj; | |
7198 | fail: | |
7199 | return NULL; | |
7200 | } | |
7201 | ||
7202 | ||
c32bde28 | 7203 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7204 | PyObject *resultobj; |
7205 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7206 | bool arg2 ; | |
7207 | PyObject * obj0 = 0 ; | |
7208 | PyObject * obj1 = 0 ; | |
7209 | char *kwnames[] = { | |
7210 | (char *) "self",(char *) "underlined", NULL | |
7211 | }; | |
7212 | ||
7213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7216 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
7217 | if (PyErr_Occurred()) SWIG_fail; |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | (arg1)->SetUnderlined(arg2); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | Py_INCREF(Py_None); resultobj = Py_None; | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
c32bde28 | 7232 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7233 | PyObject *resultobj; |
7234 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7235 | wxString arg2 ; | |
7236 | PyObject * obj0 = 0 ; | |
7237 | PyObject * obj1 = 0 ; | |
7238 | char *kwnames[] = { | |
7239 | (char *) "self",(char *) "facename", NULL | |
7240 | }; | |
7241 | ||
7242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7245 | { | |
7246 | wxString* sptr = wxString_in_helper(obj1); | |
7247 | if (sptr == NULL) SWIG_fail; | |
7248 | arg2 = *sptr; | |
7249 | delete sptr; | |
7250 | } | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | (arg1)->SetFaceName(arg2); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | Py_INCREF(Py_None); resultobj = Py_None; | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
c32bde28 | 7265 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7266 | PyObject *resultobj; |
7267 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7268 | int arg2 ; | |
7269 | PyObject * obj0 = 0 ; | |
7270 | PyObject * obj1 = 0 ; | |
7271 | char *kwnames[] = { | |
7272 | (char *) "self",(char *) "family", NULL | |
7273 | }; | |
7274 | ||
7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
7276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7278 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7279 | if (PyErr_Occurred()) SWIG_fail; |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | (arg1)->SetFamily((wxFontFamily )arg2); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | Py_INCREF(Py_None); resultobj = Py_None; | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
c32bde28 | 7294 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7295 | PyObject *resultobj; |
7296 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7297 | int arg2 ; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | PyObject * obj1 = 0 ; | |
7300 | char *kwnames[] = { | |
7301 | (char *) "self",(char *) "encoding", NULL | |
7302 | }; | |
7303 | ||
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
7305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7307 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7308 | if (PyErr_Occurred()) SWIG_fail; |
7309 | { | |
7310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7311 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7312 | ||
7313 | wxPyEndAllowThreads(__tstate); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
7316 | Py_INCREF(Py_None); resultobj = Py_None; | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
c32bde28 | 7323 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7324 | PyObject *resultobj; |
7325 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7326 | wxString *arg2 = 0 ; | |
7327 | bool result; | |
ae8162c8 | 7328 | bool temp2 = false ; |
d55e5bfc RD |
7329 | PyObject * obj0 = 0 ; |
7330 | PyObject * obj1 = 0 ; | |
7331 | char *kwnames[] = { | |
7332 | (char *) "self",(char *) "s", NULL | |
7333 | }; | |
7334 | ||
7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7338 | { | |
7339 | arg2 = wxString_in_helper(obj1); | |
7340 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7341 | temp2 = true; |
d55e5bfc RD |
7342 | } |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | { | |
7351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7352 | } | |
7353 | { | |
7354 | if (temp2) | |
7355 | delete arg2; | |
7356 | } | |
7357 | return resultobj; | |
7358 | fail: | |
7359 | { | |
7360 | if (temp2) | |
7361 | delete arg2; | |
7362 | } | |
7363 | return NULL; | |
7364 | } | |
7365 | ||
7366 | ||
c32bde28 | 7367 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7368 | PyObject *resultobj; |
7369 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7370 | wxString result; | |
7371 | PyObject * obj0 = 0 ; | |
7372 | char *kwnames[] = { | |
7373 | (char *) "self", NULL | |
7374 | }; | |
7375 | ||
7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
7377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7379 | { | |
7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7381 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
7382 | ||
7383 | wxPyEndAllowThreads(__tstate); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | } | |
7386 | { | |
7387 | #if wxUSE_UNICODE | |
7388 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7389 | #else | |
7390 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7391 | #endif | |
7392 | } | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
c32bde28 | 7399 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7400 | PyObject *resultobj; |
7401 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7402 | wxString result; | |
7403 | PyObject * obj0 = 0 ; | |
7404 | char *kwnames[] = { | |
7405 | (char *) "self", NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
7409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7411 | { | |
7412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7413 | result = wxNativeFontInfo___str__(arg1); | |
7414 | ||
7415 | wxPyEndAllowThreads(__tstate); | |
7416 | if (PyErr_Occurred()) SWIG_fail; | |
7417 | } | |
7418 | { | |
7419 | #if wxUSE_UNICODE | |
7420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7421 | #else | |
7422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7423 | #endif | |
7424 | } | |
7425 | return resultobj; | |
7426 | fail: | |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
c32bde28 | 7431 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7432 | PyObject *resultobj; |
7433 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7434 | wxString *arg2 = 0 ; | |
7435 | bool result; | |
ae8162c8 | 7436 | bool temp2 = false ; |
d55e5bfc RD |
7437 | PyObject * obj0 = 0 ; |
7438 | PyObject * obj1 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "self",(char *) "s", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
7444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7446 | { | |
7447 | arg2 = wxString_in_helper(obj1); | |
7448 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7449 | temp2 = true; |
d55e5bfc RD |
7450 | } |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
7454 | ||
7455 | wxPyEndAllowThreads(__tstate); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | { | |
7459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7460 | } | |
7461 | { | |
7462 | if (temp2) | |
7463 | delete arg2; | |
7464 | } | |
7465 | return resultobj; | |
7466 | fail: | |
7467 | { | |
7468 | if (temp2) | |
7469 | delete arg2; | |
7470 | } | |
7471 | return NULL; | |
7472 | } | |
7473 | ||
7474 | ||
c32bde28 | 7475 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7476 | PyObject *resultobj; |
7477 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7478 | wxString result; | |
7479 | PyObject * obj0 = 0 ; | |
7480 | char *kwnames[] = { | |
7481 | (char *) "self", NULL | |
7482 | }; | |
7483 | ||
7484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
7485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7487 | { | |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | { | |
7495 | #if wxUSE_UNICODE | |
7496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7497 | #else | |
7498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7499 | #endif | |
7500 | } | |
7501 | return resultobj; | |
7502 | fail: | |
7503 | return NULL; | |
7504 | } | |
7505 | ||
7506 | ||
c32bde28 | 7507 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7508 | PyObject *obj; |
7509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7510 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
7511 | Py_INCREF(obj); | |
7512 | return Py_BuildValue((char *)""); | |
7513 | } | |
c32bde28 | 7514 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7515 | PyObject *resultobj; |
7516 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7517 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 7518 | bool temp2 = false ; |
d55e5bfc RD |
7519 | PyObject * obj0 = 0 ; |
7520 | PyObject * obj1 = 0 ; | |
7521 | char *kwnames[] = { | |
7522 | (char *) "self",(char *) "facename", NULL | |
7523 | }; | |
7524 | ||
7525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
7526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7528 | { | |
7529 | arg2 = wxString_in_helper(obj1); | |
7530 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7531 | temp2 = true; |
d55e5bfc RD |
7532 | } |
7533 | if (arg1) (arg1)->facename = *arg2; | |
7534 | ||
7535 | Py_INCREF(Py_None); resultobj = Py_None; | |
7536 | { | |
7537 | if (temp2) | |
7538 | delete arg2; | |
7539 | } | |
7540 | return resultobj; | |
7541 | fail: | |
7542 | { | |
7543 | if (temp2) | |
7544 | delete arg2; | |
7545 | } | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
c32bde28 | 7550 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7551 | PyObject *resultobj; |
7552 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7553 | wxString *result; | |
7554 | PyObject * obj0 = 0 ; | |
7555 | char *kwnames[] = { | |
7556 | (char *) "self", NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
7560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7562 | result = (wxString *)& ((arg1)->facename); | |
7563 | ||
7564 | { | |
7565 | #if wxUSE_UNICODE | |
7566 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7567 | #else | |
7568 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7569 | #endif | |
7570 | } | |
7571 | return resultobj; | |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
c32bde28 | 7577 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7578 | PyObject *resultobj; |
7579 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7580 | int arg2 ; | |
7581 | PyObject * obj0 = 0 ; | |
7582 | PyObject * obj1 = 0 ; | |
7583 | char *kwnames[] = { | |
7584 | (char *) "self",(char *) "encoding", NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7590 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7591 | if (PyErr_Occurred()) SWIG_fail; |
7592 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7593 | ||
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
c32bde28 | 7601 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7602 | PyObject *resultobj; |
7603 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7604 | int result; | |
7605 | PyObject * obj0 = 0 ; | |
7606 | char *kwnames[] = { | |
7607 | (char *) "self", NULL | |
7608 | }; | |
7609 | ||
7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7613 | result = (int) ((arg1)->encoding); | |
7614 | ||
c32bde28 | 7615 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7616 | return resultobj; |
7617 | fail: | |
7618 | return NULL; | |
7619 | } | |
7620 | ||
7621 | ||
c32bde28 | 7622 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7623 | PyObject *resultobj; |
7624 | wxNativeEncodingInfo *result; | |
7625 | char *kwnames[] = { | |
7626 | NULL | |
7627 | }; | |
7628 | ||
7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7630 | { | |
7631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7632 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7633 | ||
7634 | wxPyEndAllowThreads(__tstate); | |
7635 | if (PyErr_Occurred()) SWIG_fail; | |
7636 | } | |
7637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7638 | return resultobj; | |
7639 | fail: | |
7640 | return NULL; | |
7641 | } | |
7642 | ||
7643 | ||
c32bde28 | 7644 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7645 | PyObject *resultobj; |
7646 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7647 | PyObject * obj0 = 0 ; | |
7648 | char *kwnames[] = { | |
7649 | (char *) "self", NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | delete arg1; | |
7658 | ||
7659 | wxPyEndAllowThreads(__tstate); | |
7660 | if (PyErr_Occurred()) SWIG_fail; | |
7661 | } | |
7662 | Py_INCREF(Py_None); resultobj = Py_None; | |
7663 | return resultobj; | |
7664 | fail: | |
7665 | return NULL; | |
7666 | } | |
7667 | ||
7668 | ||
c32bde28 | 7669 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7670 | PyObject *resultobj; |
7671 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7672 | wxString *arg2 = 0 ; | |
7673 | bool result; | |
ae8162c8 | 7674 | bool temp2 = false ; |
d55e5bfc RD |
7675 | PyObject * obj0 = 0 ; |
7676 | PyObject * obj1 = 0 ; | |
7677 | char *kwnames[] = { | |
7678 | (char *) "self",(char *) "s", NULL | |
7679 | }; | |
7680 | ||
7681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7684 | { | |
7685 | arg2 = wxString_in_helper(obj1); | |
7686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7687 | temp2 = true; |
d55e5bfc RD |
7688 | } |
7689 | { | |
7690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7691 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7692 | ||
7693 | wxPyEndAllowThreads(__tstate); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | { | |
7697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7698 | } | |
7699 | { | |
7700 | if (temp2) | |
7701 | delete arg2; | |
7702 | } | |
7703 | return resultobj; | |
7704 | fail: | |
7705 | { | |
7706 | if (temp2) | |
7707 | delete arg2; | |
7708 | } | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
c32bde28 | 7713 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7714 | PyObject *resultobj; |
7715 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7716 | wxString result; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | char *kwnames[] = { | |
7719 | (char *) "self", NULL | |
7720 | }; | |
7721 | ||
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | { | |
7733 | #if wxUSE_UNICODE | |
7734 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7735 | #else | |
7736 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7737 | #endif | |
7738 | } | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
c32bde28 | 7745 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7746 | PyObject *obj; |
7747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7748 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7749 | Py_INCREF(obj); | |
7750 | return Py_BuildValue((char *)""); | |
7751 | } | |
c32bde28 | 7752 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7753 | PyObject *resultobj; |
7754 | int arg1 ; | |
7755 | wxNativeEncodingInfo *result; | |
7756 | PyObject * obj0 = 0 ; | |
7757 | char *kwnames[] = { | |
7758 | (char *) "encoding", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7762 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7763 | if (PyErr_Occurred()) SWIG_fail; |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7772 | return resultobj; | |
7773 | fail: | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
c32bde28 | 7778 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7779 | PyObject *resultobj; |
7780 | wxNativeEncodingInfo *arg1 = 0 ; | |
7781 | bool result; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "info", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7789 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7790 | SWIG_fail; | |
7791 | if (arg1 == NULL) { | |
7792 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7793 | SWIG_fail; | |
7794 | } | |
7795 | { | |
7796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7797 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7798 | ||
7799 | wxPyEndAllowThreads(__tstate); | |
7800 | if (PyErr_Occurred()) SWIG_fail; | |
7801 | } | |
7802 | { | |
7803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7804 | } | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
c32bde28 | 7811 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7812 | PyObject *resultobj; |
7813 | wxFontMapper *result; | |
7814 | char *kwnames[] = { | |
7815 | NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | result = (wxFontMapper *)new wxFontMapper(); | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7827 | return resultobj; | |
7828 | fail: | |
7829 | return NULL; | |
7830 | } | |
7831 | ||
7832 | ||
c32bde28 | 7833 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7834 | PyObject *resultobj; |
7835 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7836 | PyObject * obj0 = 0 ; | |
7837 | char *kwnames[] = { | |
7838 | (char *) "self", NULL | |
7839 | }; | |
7840 | ||
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7844 | { | |
7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7846 | delete arg1; | |
7847 | ||
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | Py_INCREF(Py_None); resultobj = Py_None; | |
7852 | return resultobj; | |
7853 | fail: | |
7854 | return NULL; | |
7855 | } | |
7856 | ||
7857 | ||
c32bde28 | 7858 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7859 | PyObject *resultobj; |
7860 | wxFontMapper *result; | |
7861 | char *kwnames[] = { | |
7862 | NULL | |
7863 | }; | |
7864 | ||
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7866 | { | |
7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7868 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7869 | ||
7870 | wxPyEndAllowThreads(__tstate); | |
7871 | if (PyErr_Occurred()) SWIG_fail; | |
7872 | } | |
7873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7874 | return resultobj; | |
7875 | fail: | |
7876 | return NULL; | |
7877 | } | |
7878 | ||
7879 | ||
c32bde28 | 7880 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7881 | PyObject *resultobj; |
7882 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7883 | wxFontMapper *result; | |
7884 | PyObject * obj0 = 0 ; | |
7885 | char *kwnames[] = { | |
7886 | (char *) "mapper", NULL | |
7887 | }; | |
7888 | ||
7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7892 | { | |
7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7894 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7895 | ||
7896 | wxPyEndAllowThreads(__tstate); | |
7897 | if (PyErr_Occurred()) SWIG_fail; | |
7898 | } | |
7899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7900 | return resultobj; | |
7901 | fail: | |
7902 | return NULL; | |
7903 | } | |
7904 | ||
7905 | ||
c32bde28 | 7906 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7907 | PyObject *resultobj; |
7908 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7909 | wxString *arg2 = 0 ; | |
ae8162c8 | 7910 | bool arg3 = (bool) true ; |
d55e5bfc | 7911 | int result; |
ae8162c8 | 7912 | bool temp2 = false ; |
d55e5bfc RD |
7913 | PyObject * obj0 = 0 ; |
7914 | PyObject * obj1 = 0 ; | |
7915 | PyObject * obj2 = 0 ; | |
7916 | char *kwnames[] = { | |
7917 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7918 | }; | |
7919 | ||
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7923 | { | |
7924 | arg2 = wxString_in_helper(obj1); | |
7925 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7926 | temp2 = true; |
d55e5bfc RD |
7927 | } |
7928 | if (obj2) { | |
c32bde28 | 7929 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7930 | if (PyErr_Occurred()) SWIG_fail; |
7931 | } | |
7932 | { | |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
c32bde28 | 7939 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7940 | { |
7941 | if (temp2) | |
7942 | delete arg2; | |
7943 | } | |
7944 | return resultobj; | |
7945 | fail: | |
7946 | { | |
7947 | if (temp2) | |
7948 | delete arg2; | |
7949 | } | |
7950 | return NULL; | |
7951 | } | |
7952 | ||
7953 | ||
c32bde28 | 7954 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7955 | PyObject *resultobj; |
7956 | size_t result; | |
7957 | char *kwnames[] = { | |
7958 | NULL | |
7959 | }; | |
7960 | ||
7961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7965 | ||
7966 | wxPyEndAllowThreads(__tstate); | |
7967 | if (PyErr_Occurred()) SWIG_fail; | |
7968 | } | |
c32bde28 | 7969 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7970 | return resultobj; |
7971 | fail: | |
7972 | return NULL; | |
7973 | } | |
7974 | ||
7975 | ||
c32bde28 | 7976 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7977 | PyObject *resultobj; |
7978 | size_t arg1 ; | |
7979 | int result; | |
7980 | PyObject * obj0 = 0 ; | |
7981 | char *kwnames[] = { | |
7982 | (char *) "n", NULL | |
7983 | }; | |
7984 | ||
7985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7986 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7987 | if (PyErr_Occurred()) SWIG_fail; |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7991 | ||
7992 | wxPyEndAllowThreads(__tstate); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
c32bde28 | 7995 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7996 | return resultobj; |
7997 | fail: | |
7998 | return NULL; | |
7999 | } | |
8000 | ||
8001 | ||
c32bde28 | 8002 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8003 | PyObject *resultobj; |
8004 | int arg1 ; | |
8005 | wxString result; | |
8006 | PyObject * obj0 = 0 ; | |
8007 | char *kwnames[] = { | |
8008 | (char *) "encoding", NULL | |
8009 | }; | |
8010 | ||
8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
c32bde28 | 8012 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
8013 | if (PyErr_Occurred()) SWIG_fail; |
8014 | { | |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
8021 | { | |
8022 | #if wxUSE_UNICODE | |
8023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8024 | #else | |
8025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8026 | #endif | |
8027 | } | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | return NULL; | |
8031 | } | |
8032 | ||
8033 | ||
c32bde28 | 8034 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8035 | PyObject *resultobj; |
8036 | int arg1 ; | |
8037 | wxString result; | |
8038 | PyObject * obj0 = 0 ; | |
8039 | char *kwnames[] = { | |
8040 | (char *) "encoding", NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
c32bde28 | 8044 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
8045 | if (PyErr_Occurred()) SWIG_fail; |
8046 | { | |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | { | |
8054 | #if wxUSE_UNICODE | |
8055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8056 | #else | |
8057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8058 | #endif | |
8059 | } | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
c32bde28 | 8066 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8067 | PyObject *resultobj; |
8068 | wxString *arg1 = 0 ; | |
8069 | int result; | |
ae8162c8 | 8070 | bool temp1 = false ; |
d55e5bfc RD |
8071 | PyObject * obj0 = 0 ; |
8072 | char *kwnames[] = { | |
8073 | (char *) "name", NULL | |
8074 | }; | |
8075 | ||
8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
8077 | { | |
8078 | arg1 = wxString_in_helper(obj0); | |
8079 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8080 | temp1 = true; |
d55e5bfc RD |
8081 | } |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
8085 | ||
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
c32bde28 | 8089 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8090 | { |
8091 | if (temp1) | |
8092 | delete arg1; | |
8093 | } | |
8094 | return resultobj; | |
8095 | fail: | |
8096 | { | |
8097 | if (temp1) | |
8098 | delete arg1; | |
8099 | } | |
8100 | return NULL; | |
8101 | } | |
8102 | ||
8103 | ||
c32bde28 | 8104 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8105 | PyObject *resultobj; |
8106 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8107 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
8108 | PyObject * obj0 = 0 ; | |
8109 | PyObject * obj1 = 0 ; | |
8110 | char *kwnames[] = { | |
8111 | (char *) "self",(char *) "config", NULL | |
8112 | }; | |
8113 | ||
8114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
8115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8119 | { | |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | (arg1)->SetConfig(arg2); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | Py_INCREF(Py_None); resultobj = Py_None; | |
8127 | return resultobj; | |
8128 | fail: | |
8129 | return NULL; | |
8130 | } | |
8131 | ||
8132 | ||
c32bde28 | 8133 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8134 | PyObject *resultobj; |
8135 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8136 | wxString *arg2 = 0 ; | |
ae8162c8 | 8137 | bool temp2 = false ; |
d55e5bfc RD |
8138 | PyObject * obj0 = 0 ; |
8139 | PyObject * obj1 = 0 ; | |
8140 | char *kwnames[] = { | |
8141 | (char *) "self",(char *) "prefix", NULL | |
8142 | }; | |
8143 | ||
8144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
8145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8147 | { | |
8148 | arg2 = wxString_in_helper(obj1); | |
8149 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8150 | temp2 = true; |
d55e5bfc RD |
8151 | } |
8152 | { | |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8154 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
8155 | ||
8156 | wxPyEndAllowThreads(__tstate); | |
8157 | if (PyErr_Occurred()) SWIG_fail; | |
8158 | } | |
8159 | Py_INCREF(Py_None); resultobj = Py_None; | |
8160 | { | |
8161 | if (temp2) | |
8162 | delete arg2; | |
8163 | } | |
8164 | return resultobj; | |
8165 | fail: | |
8166 | { | |
8167 | if (temp2) | |
8168 | delete arg2; | |
8169 | } | |
8170 | return NULL; | |
8171 | } | |
8172 | ||
8173 | ||
c32bde28 | 8174 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8175 | PyObject *resultobj; |
8176 | wxString result; | |
8177 | char *kwnames[] = { | |
8178 | NULL | |
8179 | }; | |
8180 | ||
8181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | result = wxFontMapper::GetDefaultConfigPath(); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) SWIG_fail; | |
8188 | } | |
8189 | { | |
8190 | #if wxUSE_UNICODE | |
8191 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8192 | #else | |
8193 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8194 | #endif | |
8195 | } | |
8196 | return resultobj; | |
8197 | fail: | |
8198 | return NULL; | |
8199 | } | |
8200 | ||
8201 | ||
c32bde28 | 8202 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8203 | PyObject *resultobj; |
8204 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8205 | int arg2 ; | |
8206 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8207 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 8208 | bool arg4 = (bool) true ; |
d55e5bfc | 8209 | PyObject *result; |
ae8162c8 | 8210 | bool temp3 = false ; |
d55e5bfc RD |
8211 | PyObject * obj0 = 0 ; |
8212 | PyObject * obj1 = 0 ; | |
8213 | PyObject * obj2 = 0 ; | |
8214 | PyObject * obj3 = 0 ; | |
8215 | char *kwnames[] = { | |
8216 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
8217 | }; | |
8218 | ||
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8222 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8223 | if (PyErr_Occurred()) SWIG_fail; |
8224 | if (obj2) { | |
8225 | { | |
8226 | arg3 = wxString_in_helper(obj2); | |
8227 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8228 | temp3 = true; |
d55e5bfc RD |
8229 | } |
8230 | } | |
8231 | if (obj3) { | |
c32bde28 | 8232 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8233 | if (PyErr_Occurred()) SWIG_fail; |
8234 | } | |
8235 | { | |
8236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8237 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
8238 | ||
8239 | wxPyEndAllowThreads(__tstate); | |
8240 | if (PyErr_Occurred()) SWIG_fail; | |
8241 | } | |
8242 | resultobj = result; | |
8243 | { | |
8244 | if (temp3) | |
8245 | delete arg3; | |
8246 | } | |
8247 | return resultobj; | |
8248 | fail: | |
8249 | { | |
8250 | if (temp3) | |
8251 | delete arg3; | |
8252 | } | |
8253 | return NULL; | |
8254 | } | |
8255 | ||
8256 | ||
c32bde28 | 8257 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8258 | PyObject *resultobj; |
8259 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8260 | int arg2 ; | |
8261 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8262 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8263 | bool result; | |
ae8162c8 | 8264 | bool temp3 = false ; |
d55e5bfc RD |
8265 | PyObject * obj0 = 0 ; |
8266 | PyObject * obj1 = 0 ; | |
8267 | PyObject * obj2 = 0 ; | |
8268 | char *kwnames[] = { | |
8269 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
8270 | }; | |
8271 | ||
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8275 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8276 | if (PyErr_Occurred()) SWIG_fail; |
8277 | if (obj2) { | |
8278 | { | |
8279 | arg3 = wxString_in_helper(obj2); | |
8280 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8281 | temp3 = true; |
d55e5bfc RD |
8282 | } |
8283 | } | |
8284 | { | |
8285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8286 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
8287 | ||
8288 | wxPyEndAllowThreads(__tstate); | |
8289 | if (PyErr_Occurred()) SWIG_fail; | |
8290 | } | |
8291 | { | |
8292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8293 | } | |
8294 | { | |
8295 | if (temp3) | |
8296 | delete arg3; | |
8297 | } | |
8298 | return resultobj; | |
8299 | fail: | |
8300 | { | |
8301 | if (temp3) | |
8302 | delete arg3; | |
8303 | } | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
c32bde28 | 8308 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8309 | PyObject *resultobj; |
8310 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8311 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8312 | PyObject * obj0 = 0 ; | |
8313 | PyObject * obj1 = 0 ; | |
8314 | char *kwnames[] = { | |
8315 | (char *) "self",(char *) "parent", NULL | |
8316 | }; | |
8317 | ||
8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
8319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | (arg1)->SetDialogParent(arg2); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
8330 | Py_INCREF(Py_None); resultobj = Py_None; | |
8331 | return resultobj; | |
8332 | fail: | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
c32bde28 | 8337 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8338 | PyObject *resultobj; |
8339 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8340 | wxString *arg2 = 0 ; | |
ae8162c8 | 8341 | bool temp2 = false ; |
d55e5bfc RD |
8342 | PyObject * obj0 = 0 ; |
8343 | PyObject * obj1 = 0 ; | |
8344 | char *kwnames[] = { | |
8345 | (char *) "self",(char *) "title", NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
8349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8351 | { | |
8352 | arg2 = wxString_in_helper(obj1); | |
8353 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8354 | temp2 = true; |
d55e5bfc RD |
8355 | } |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | Py_INCREF(Py_None); resultobj = Py_None; | |
8364 | { | |
8365 | if (temp2) | |
8366 | delete arg2; | |
8367 | } | |
8368 | return resultobj; | |
8369 | fail: | |
8370 | { | |
8371 | if (temp2) | |
8372 | delete arg2; | |
8373 | } | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
c32bde28 | 8378 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8379 | PyObject *obj; |
8380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8381 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
8382 | Py_INCREF(obj); | |
8383 | return Py_BuildValue((char *)""); | |
8384 | } | |
c32bde28 | 8385 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8386 | PyObject *resultobj; |
8387 | int arg1 ; | |
8388 | int arg2 ; | |
8389 | int arg3 ; | |
8390 | int arg4 ; | |
ae8162c8 | 8391 | bool arg5 = (bool) false ; |
d55e5bfc RD |
8392 | wxString const &arg6_defvalue = wxPyEmptyString ; |
8393 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8394 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8395 | wxFont *result; | |
ae8162c8 | 8396 | bool temp6 = false ; |
d55e5bfc RD |
8397 | PyObject * obj0 = 0 ; |
8398 | PyObject * obj1 = 0 ; | |
8399 | PyObject * obj2 = 0 ; | |
8400 | PyObject * obj3 = 0 ; | |
8401 | PyObject * obj4 = 0 ; | |
8402 | PyObject * obj5 = 0 ; | |
8403 | PyObject * obj6 = 0 ; | |
8404 | char *kwnames[] = { | |
8405 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
8406 | }; | |
8407 | ||
8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c32bde28 | 8409 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 8410 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8411 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 8412 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8413 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 8414 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8415 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
8416 | if (PyErr_Occurred()) SWIG_fail; |
8417 | if (obj4) { | |
c32bde28 | 8418 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
8419 | if (PyErr_Occurred()) SWIG_fail; |
8420 | } | |
8421 | if (obj5) { | |
8422 | { | |
8423 | arg6 = wxString_in_helper(obj5); | |
8424 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 8425 | temp6 = true; |
d55e5bfc RD |
8426 | } |
8427 | } | |
8428 | if (obj6) { | |
c32bde28 | 8429 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
8430 | if (PyErr_Occurred()) SWIG_fail; |
8431 | } | |
8432 | { | |
0439c23b | 8433 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8435 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8436 | ||
8437 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8438 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8439 | } |
8440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8441 | { | |
8442 | if (temp6) | |
8443 | delete arg6; | |
8444 | } | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | { | |
8448 | if (temp6) | |
8449 | delete arg6; | |
8450 | } | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
c32bde28 | 8455 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8456 | PyObject *resultobj; |
8457 | wxFont *arg1 = (wxFont *) 0 ; | |
8458 | PyObject * obj0 = 0 ; | |
8459 | char *kwnames[] = { | |
8460 | (char *) "self", NULL | |
8461 | }; | |
8462 | ||
8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
8464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8466 | { | |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8468 | delete arg1; | |
8469 | ||
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | Py_INCREF(Py_None); resultobj = Py_None; | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
c32bde28 | 8480 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8481 | PyObject *resultobj; |
8482 | wxNativeFontInfo *arg1 = 0 ; | |
8483 | wxFont *result; | |
8484 | PyObject * obj0 = 0 ; | |
8485 | char *kwnames[] = { | |
8486 | (char *) "info", NULL | |
8487 | }; | |
8488 | ||
8489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
8490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
8491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8492 | SWIG_fail; | |
8493 | if (arg1 == NULL) { | |
8494 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8495 | SWIG_fail; | |
8496 | } | |
8497 | { | |
0439c23b | 8498 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8500 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
8501 | ||
8502 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8503 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8504 | } |
8505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8506 | return resultobj; | |
8507 | fail: | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
c32bde28 | 8512 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8513 | PyObject *resultobj; |
8514 | wxString *arg1 = 0 ; | |
8515 | wxFont *result; | |
ae8162c8 | 8516 | bool temp1 = false ; |
d55e5bfc RD |
8517 | PyObject * obj0 = 0 ; |
8518 | char *kwnames[] = { | |
8519 | (char *) "info", NULL | |
8520 | }; | |
8521 | ||
8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
8523 | { | |
8524 | arg1 = wxString_in_helper(obj0); | |
8525 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8526 | temp1 = true; |
d55e5bfc RD |
8527 | } |
8528 | { | |
0439c23b | 8529 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8531 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8534 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8535 | } |
8536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8537 | { | |
8538 | if (temp1) | |
8539 | delete arg1; | |
8540 | } | |
8541 | return resultobj; | |
8542 | fail: | |
8543 | { | |
8544 | if (temp1) | |
8545 | delete arg1; | |
8546 | } | |
8547 | return NULL; | |
8548 | } | |
8549 | ||
8550 | ||
c32bde28 | 8551 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8552 | PyObject *resultobj; |
8553 | int arg1 ; | |
8554 | int arg2 ; | |
8555 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
8556 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8557 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8558 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
8559 | wxFont *result; | |
ae8162c8 | 8560 | bool temp4 = false ; |
d55e5bfc RD |
8561 | PyObject * obj0 = 0 ; |
8562 | PyObject * obj1 = 0 ; | |
8563 | PyObject * obj2 = 0 ; | |
8564 | PyObject * obj3 = 0 ; | |
8565 | PyObject * obj4 = 0 ; | |
8566 | char *kwnames[] = { | |
8567 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8568 | }; | |
8569 | ||
8570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
c32bde28 | 8571 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 8572 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8573 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8574 | if (PyErr_Occurred()) SWIG_fail; |
8575 | if (obj2) { | |
c32bde28 | 8576 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8577 | if (PyErr_Occurred()) SWIG_fail; |
8578 | } | |
8579 | if (obj3) { | |
8580 | { | |
8581 | arg4 = wxString_in_helper(obj3); | |
8582 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 8583 | temp4 = true; |
d55e5bfc RD |
8584 | } |
8585 | } | |
8586 | if (obj4) { | |
c32bde28 | 8587 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
8588 | if (PyErr_Occurred()) SWIG_fail; |
8589 | } | |
8590 | { | |
0439c23b | 8591 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8593 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8594 | ||
8595 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8596 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8597 | } |
8598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8599 | { | |
8600 | if (temp4) | |
8601 | delete arg4; | |
8602 | } | |
8603 | return resultobj; | |
8604 | fail: | |
8605 | { | |
8606 | if (temp4) | |
8607 | delete arg4; | |
8608 | } | |
8609 | return NULL; | |
8610 | } | |
8611 | ||
8612 | ||
5e483524 RD |
8613 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8614 | PyObject *resultobj; | |
8615 | wxSize *arg1 = 0 ; | |
8616 | int arg2 ; | |
8617 | int arg3 ; | |
8618 | int arg4 ; | |
8619 | bool arg5 = (bool) false ; | |
8620 | wxString const &arg6_defvalue = wxEmptyString ; | |
8621 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8622 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8623 | wxFont *result; | |
8624 | wxSize temp1 ; | |
8625 | bool temp6 = false ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | PyObject * obj1 = 0 ; | |
8628 | PyObject * obj2 = 0 ; | |
8629 | PyObject * obj3 = 0 ; | |
8630 | PyObject * obj4 = 0 ; | |
8631 | PyObject * obj5 = 0 ; | |
8632 | PyObject * obj6 = 0 ; | |
8633 | char *kwnames[] = { | |
8634 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
8635 | }; | |
8636 | ||
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8638 | { | |
8639 | arg1 = &temp1; | |
8640 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
8641 | } | |
8642 | arg2 = (int)SWIG_As_int(obj1); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
8644 | arg3 = (int)SWIG_As_int(obj2); | |
8645 | if (PyErr_Occurred()) SWIG_fail; | |
8646 | arg4 = (int)SWIG_As_int(obj3); | |
8647 | if (PyErr_Occurred()) SWIG_fail; | |
8648 | if (obj4) { | |
8649 | arg5 = (bool)SWIG_As_bool(obj4); | |
8650 | if (PyErr_Occurred()) SWIG_fail; | |
8651 | } | |
8652 | if (obj5) { | |
8653 | { | |
8654 | arg6 = wxString_in_helper(obj5); | |
8655 | if (arg6 == NULL) SWIG_fail; | |
8656 | temp6 = true; | |
8657 | } | |
8658 | } | |
8659 | if (obj6) { | |
8660 | arg7 = (int)SWIG_As_int(obj6); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | { | |
8664 | if (!wxPyCheckForApp()) SWIG_fail; | |
8665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8666 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8667 | ||
8668 | wxPyEndAllowThreads(__tstate); | |
8669 | if (PyErr_Occurred()) SWIG_fail; | |
8670 | } | |
8671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8672 | { | |
8673 | if (temp6) | |
8674 | delete arg6; | |
8675 | } | |
8676 | return resultobj; | |
8677 | fail: | |
8678 | { | |
8679 | if (temp6) | |
8680 | delete arg6; | |
8681 | } | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
c32bde28 | 8686 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8687 | PyObject *resultobj; |
8688 | wxFont *arg1 = (wxFont *) 0 ; | |
8689 | bool result; | |
8690 | PyObject * obj0 = 0 ; | |
8691 | char *kwnames[] = { | |
8692 | (char *) "self", NULL | |
8693 | }; | |
8694 | ||
8695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8698 | { | |
8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8700 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8701 | ||
8702 | wxPyEndAllowThreads(__tstate); | |
8703 | if (PyErr_Occurred()) SWIG_fail; | |
8704 | } | |
8705 | { | |
8706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8707 | } | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | return NULL; | |
8711 | } | |
8712 | ||
8713 | ||
c32bde28 | 8714 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8715 | PyObject *resultobj; |
8716 | wxFont *arg1 = (wxFont *) 0 ; | |
8717 | wxFont *arg2 = (wxFont *) 0 ; | |
8718 | bool result; | |
8719 | PyObject * obj0 = 0 ; | |
8720 | PyObject * obj1 = 0 ; | |
8721 | char *kwnames[] = { | |
8722 | (char *) "self",(char *) "other", NULL | |
8723 | }; | |
8724 | ||
8725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
8737 | { | |
8738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8739 | } | |
8740 | return resultobj; | |
8741 | fail: | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
c32bde28 | 8746 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8747 | PyObject *resultobj; |
8748 | wxFont *arg1 = (wxFont *) 0 ; | |
8749 | wxFont *arg2 = (wxFont *) 0 ; | |
8750 | bool result; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | PyObject * obj1 = 0 ; | |
8753 | char *kwnames[] = { | |
8754 | (char *) "self",(char *) "other", NULL | |
8755 | }; | |
8756 | ||
8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | { | |
8770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8771 | } | |
8772 | return resultobj; | |
8773 | fail: | |
8774 | return NULL; | |
8775 | } | |
8776 | ||
8777 | ||
c32bde28 | 8778 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8779 | PyObject *resultobj; |
8780 | wxFont *arg1 = (wxFont *) 0 ; | |
8781 | int result; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8790 | { | |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
c32bde28 | 8797 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8798 | return resultobj; |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
5e483524 RD |
8804 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8805 | PyObject *resultobj; | |
8806 | wxFont *arg1 = (wxFont *) 0 ; | |
8807 | wxSize result; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; | |
8814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8816 | { | |
8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8818 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
8819 | ||
8820 | wxPyEndAllowThreads(__tstate); | |
8821 | if (PyErr_Occurred()) SWIG_fail; | |
8822 | } | |
8823 | { | |
8824 | wxSize * resultptr; | |
8825 | resultptr = new wxSize((wxSize &) result); | |
8826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8827 | } | |
8828 | return resultobj; | |
8829 | fail: | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
8834 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject *resultobj; | |
8836 | wxFont *arg1 = (wxFont *) 0 ; | |
8837 | bool result; | |
8838 | PyObject * obj0 = 0 ; | |
8839 | char *kwnames[] = { | |
8840 | (char *) "self", NULL | |
8841 | }; | |
8842 | ||
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; | |
8844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
8849 | ||
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | { | |
8854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8855 | } | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
c32bde28 | 8862 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8863 | PyObject *resultobj; |
8864 | wxFont *arg1 = (wxFont *) 0 ; | |
8865 | int result; | |
8866 | PyObject * obj0 = 0 ; | |
8867 | char *kwnames[] = { | |
8868 | (char *) "self", NULL | |
8869 | }; | |
8870 | ||
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
c32bde28 | 8881 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8882 | return resultobj; |
8883 | fail: | |
8884 | return NULL; | |
8885 | } | |
8886 | ||
8887 | ||
c32bde28 | 8888 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8889 | PyObject *resultobj; |
8890 | wxFont *arg1 = (wxFont *) 0 ; | |
8891 | int result; | |
8892 | PyObject * obj0 = 0 ; | |
8893 | char *kwnames[] = { | |
8894 | (char *) "self", NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8900 | { | |
8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8902 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8903 | ||
8904 | wxPyEndAllowThreads(__tstate); | |
8905 | if (PyErr_Occurred()) SWIG_fail; | |
8906 | } | |
c32bde28 | 8907 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8908 | return resultobj; |
8909 | fail: | |
8910 | return NULL; | |
8911 | } | |
8912 | ||
8913 | ||
c32bde28 | 8914 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8915 | PyObject *resultobj; |
8916 | wxFont *arg1 = (wxFont *) 0 ; | |
8917 | int result; | |
8918 | PyObject * obj0 = 0 ; | |
8919 | char *kwnames[] = { | |
8920 | (char *) "self", NULL | |
8921 | }; | |
8922 | ||
8923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8926 | { | |
8927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8928 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8929 | ||
8930 | wxPyEndAllowThreads(__tstate); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
c32bde28 | 8933 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8934 | return resultobj; |
8935 | fail: | |
8936 | return NULL; | |
8937 | } | |
8938 | ||
8939 | ||
c32bde28 | 8940 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8941 | PyObject *resultobj; |
8942 | wxFont *arg1 = (wxFont *) 0 ; | |
8943 | bool result; | |
8944 | PyObject * obj0 = 0 ; | |
8945 | char *kwnames[] = { | |
8946 | (char *) "self", NULL | |
8947 | }; | |
8948 | ||
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8952 | { | |
8953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8954 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8955 | ||
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
8959 | { | |
8960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8961 | } | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | return NULL; | |
8965 | } | |
8966 | ||
8967 | ||
c32bde28 | 8968 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8969 | PyObject *resultobj; |
8970 | wxFont *arg1 = (wxFont *) 0 ; | |
8971 | wxString result; | |
8972 | PyObject * obj0 = 0 ; | |
8973 | char *kwnames[] = { | |
8974 | (char *) "self", NULL | |
8975 | }; | |
8976 | ||
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8980 | { | |
8981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8982 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8983 | ||
8984 | wxPyEndAllowThreads(__tstate); | |
8985 | if (PyErr_Occurred()) SWIG_fail; | |
8986 | } | |
8987 | { | |
8988 | #if wxUSE_UNICODE | |
8989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8990 | #else | |
8991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8992 | #endif | |
8993 | } | |
8994 | return resultobj; | |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
c32bde28 | 9000 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9001 | PyObject *resultobj; |
9002 | wxFont *arg1 = (wxFont *) 0 ; | |
9003 | int result; | |
9004 | PyObject * obj0 = 0 ; | |
9005 | char *kwnames[] = { | |
9006 | (char *) "self", NULL | |
9007 | }; | |
9008 | ||
9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
9010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9012 | { | |
9013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9014 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
9015 | ||
9016 | wxPyEndAllowThreads(__tstate); | |
9017 | if (PyErr_Occurred()) SWIG_fail; | |
9018 | } | |
c32bde28 | 9019 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9020 | return resultobj; |
9021 | fail: | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
c32bde28 | 9026 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9027 | PyObject *resultobj; |
9028 | wxFont *arg1 = (wxFont *) 0 ; | |
9029 | wxNativeFontInfo *result; | |
9030 | PyObject * obj0 = 0 ; | |
9031 | char *kwnames[] = { | |
9032 | (char *) "self", NULL | |
9033 | }; | |
9034 | ||
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
9036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9038 | { | |
9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9040 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
9041 | ||
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
9045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
c32bde28 | 9052 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9053 | PyObject *resultobj; |
9054 | wxFont *arg1 = (wxFont *) 0 ; | |
9055 | bool result; | |
9056 | PyObject * obj0 = 0 ; | |
9057 | char *kwnames[] = { | |
9058 | (char *) "self", NULL | |
9059 | }; | |
9060 | ||
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
9062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9064 | { | |
9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9066 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
9067 | ||
9068 | wxPyEndAllowThreads(__tstate); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | } | |
9071 | { | |
9072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9073 | } | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9081 | PyObject *resultobj; |
9082 | wxFont *arg1 = (wxFont *) 0 ; | |
9083 | wxString result; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "self", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
9090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9092 | { | |
9093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9094 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
9095 | ||
9096 | wxPyEndAllowThreads(__tstate); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | } | |
9099 | { | |
9100 | #if wxUSE_UNICODE | |
9101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9102 | #else | |
9103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9104 | #endif | |
9105 | } | |
9106 | return resultobj; | |
9107 | fail: | |
9108 | return NULL; | |
9109 | } | |
9110 | ||
9111 | ||
c32bde28 | 9112 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9113 | PyObject *resultobj; |
9114 | wxFont *arg1 = (wxFont *) 0 ; | |
9115 | wxString result; | |
9116 | PyObject * obj0 = 0 ; | |
9117 | char *kwnames[] = { | |
9118 | (char *) "self", NULL | |
9119 | }; | |
9120 | ||
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
9122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9124 | { | |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
9131 | { | |
9132 | #if wxUSE_UNICODE | |
9133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9134 | #else | |
9135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9136 | #endif | |
9137 | } | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
c32bde28 | 9144 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9145 | PyObject *resultobj; |
9146 | wxFont *arg1 = (wxFont *) 0 ; | |
9147 | int arg2 ; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self",(char *) "pointSize", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9157 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9158 | if (PyErr_Occurred()) SWIG_fail; |
9159 | { | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | (arg1)->SetPointSize(arg2); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | Py_INCREF(Py_None); resultobj = Py_None; | |
9167 | return resultobj; | |
9168 | fail: | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
5e483524 RD |
9173 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
9174 | PyObject *resultobj; | |
9175 | wxFont *arg1 = (wxFont *) 0 ; | |
9176 | wxSize *arg2 = 0 ; | |
9177 | wxSize temp2 ; | |
9178 | PyObject * obj0 = 0 ; | |
9179 | PyObject * obj1 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self",(char *) "pixelSize", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
9185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9187 | { | |
9188 | arg2 = &temp2; | |
9189 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9190 | } | |
9191 | { | |
9192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9193 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
9194 | ||
9195 | wxPyEndAllowThreads(__tstate); | |
9196 | if (PyErr_Occurred()) SWIG_fail; | |
9197 | } | |
9198 | Py_INCREF(Py_None); resultobj = Py_None; | |
9199 | return resultobj; | |
9200 | fail: | |
9201 | return NULL; | |
9202 | } | |
9203 | ||
9204 | ||
c32bde28 | 9205 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9206 | PyObject *resultobj; |
9207 | wxFont *arg1 = (wxFont *) 0 ; | |
9208 | int arg2 ; | |
9209 | PyObject * obj0 = 0 ; | |
9210 | PyObject * obj1 = 0 ; | |
9211 | char *kwnames[] = { | |
9212 | (char *) "self",(char *) "family", NULL | |
9213 | }; | |
9214 | ||
9215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
9216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9218 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9219 | if (PyErr_Occurred()) SWIG_fail; |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | (arg1)->SetFamily(arg2); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | Py_INCREF(Py_None); resultobj = Py_None; | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
c32bde28 | 9234 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9235 | PyObject *resultobj; |
9236 | wxFont *arg1 = (wxFont *) 0 ; | |
9237 | int arg2 ; | |
9238 | PyObject * obj0 = 0 ; | |
9239 | PyObject * obj1 = 0 ; | |
9240 | char *kwnames[] = { | |
9241 | (char *) "self",(char *) "style", NULL | |
9242 | }; | |
9243 | ||
9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
9245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9247 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9248 | if (PyErr_Occurred()) SWIG_fail; |
9249 | { | |
9250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9251 | (arg1)->SetStyle(arg2); | |
9252 | ||
9253 | wxPyEndAllowThreads(__tstate); | |
9254 | if (PyErr_Occurred()) SWIG_fail; | |
9255 | } | |
9256 | Py_INCREF(Py_None); resultobj = Py_None; | |
9257 | return resultobj; | |
9258 | fail: | |
9259 | return NULL; | |
9260 | } | |
9261 | ||
9262 | ||
c32bde28 | 9263 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9264 | PyObject *resultobj; |
9265 | wxFont *arg1 = (wxFont *) 0 ; | |
9266 | int arg2 ; | |
9267 | PyObject * obj0 = 0 ; | |
9268 | PyObject * obj1 = 0 ; | |
9269 | char *kwnames[] = { | |
9270 | (char *) "self",(char *) "weight", NULL | |
9271 | }; | |
9272 | ||
9273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
9274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9276 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9277 | if (PyErr_Occurred()) SWIG_fail; |
9278 | { | |
9279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9280 | (arg1)->SetWeight(arg2); | |
9281 | ||
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | Py_INCREF(Py_None); resultobj = Py_None; | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
c32bde28 | 9292 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9293 | PyObject *resultobj; |
9294 | wxFont *arg1 = (wxFont *) 0 ; | |
9295 | wxString *arg2 = 0 ; | |
ae8162c8 | 9296 | bool temp2 = false ; |
d55e5bfc RD |
9297 | PyObject * obj0 = 0 ; |
9298 | PyObject * obj1 = 0 ; | |
9299 | char *kwnames[] = { | |
9300 | (char *) "self",(char *) "faceName", NULL | |
9301 | }; | |
9302 | ||
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
9304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9306 | { | |
9307 | arg2 = wxString_in_helper(obj1); | |
9308 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9309 | temp2 = true; |
d55e5bfc RD |
9310 | } |
9311 | { | |
9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9313 | (arg1)->SetFaceName((wxString const &)*arg2); | |
9314 | ||
9315 | wxPyEndAllowThreads(__tstate); | |
9316 | if (PyErr_Occurred()) SWIG_fail; | |
9317 | } | |
9318 | Py_INCREF(Py_None); resultobj = Py_None; | |
9319 | { | |
9320 | if (temp2) | |
9321 | delete arg2; | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | { | |
9326 | if (temp2) | |
9327 | delete arg2; | |
9328 | } | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
c32bde28 | 9333 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9334 | PyObject *resultobj; |
9335 | wxFont *arg1 = (wxFont *) 0 ; | |
9336 | bool arg2 ; | |
9337 | PyObject * obj0 = 0 ; | |
9338 | PyObject * obj1 = 0 ; | |
9339 | char *kwnames[] = { | |
9340 | (char *) "self",(char *) "underlined", NULL | |
9341 | }; | |
9342 | ||
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
9344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9346 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9347 | if (PyErr_Occurred()) SWIG_fail; |
9348 | { | |
9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9350 | (arg1)->SetUnderlined(arg2); | |
9351 | ||
9352 | wxPyEndAllowThreads(__tstate); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | } | |
9355 | Py_INCREF(Py_None); resultobj = Py_None; | |
9356 | return resultobj; | |
9357 | fail: | |
9358 | return NULL; | |
9359 | } | |
9360 | ||
9361 | ||
c32bde28 | 9362 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9363 | PyObject *resultobj; |
9364 | wxFont *arg1 = (wxFont *) 0 ; | |
9365 | int arg2 ; | |
9366 | PyObject * obj0 = 0 ; | |
9367 | PyObject * obj1 = 0 ; | |
9368 | char *kwnames[] = { | |
9369 | (char *) "self",(char *) "encoding", NULL | |
9370 | }; | |
9371 | ||
9372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
9373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9375 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9376 | if (PyErr_Occurred()) SWIG_fail; |
9377 | { | |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
9380 | ||
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
9384 | Py_INCREF(Py_None); resultobj = Py_None; | |
9385 | return resultobj; | |
9386 | fail: | |
9387 | return NULL; | |
9388 | } | |
9389 | ||
9390 | ||
c32bde28 | 9391 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9392 | PyObject *resultobj; |
9393 | wxFont *arg1 = (wxFont *) 0 ; | |
9394 | wxNativeFontInfo *arg2 = 0 ; | |
9395 | PyObject * obj0 = 0 ; | |
9396 | PyObject * obj1 = 0 ; | |
9397 | char *kwnames[] = { | |
9398 | (char *) "self",(char *) "info", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
9402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
9405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9406 | SWIG_fail; | |
9407 | if (arg2 == NULL) { | |
9408 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9409 | SWIG_fail; | |
9410 | } | |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | Py_INCREF(Py_None); resultobj = Py_None; | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
c32bde28 | 9425 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9426 | PyObject *resultobj; |
9427 | wxFont *arg1 = (wxFont *) 0 ; | |
9428 | wxString *arg2 = 0 ; | |
ae8162c8 | 9429 | bool temp2 = false ; |
d55e5bfc RD |
9430 | PyObject * obj0 = 0 ; |
9431 | PyObject * obj1 = 0 ; | |
9432 | char *kwnames[] = { | |
9433 | (char *) "self",(char *) "info", NULL | |
9434 | }; | |
9435 | ||
9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
9437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9439 | { | |
9440 | arg2 = wxString_in_helper(obj1); | |
9441 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9442 | temp2 = true; |
d55e5bfc RD |
9443 | } |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | Py_INCREF(Py_None); resultobj = Py_None; | |
9452 | { | |
9453 | if (temp2) | |
9454 | delete arg2; | |
9455 | } | |
9456 | return resultobj; | |
9457 | fail: | |
9458 | { | |
9459 | if (temp2) | |
9460 | delete arg2; | |
9461 | } | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
c32bde28 | 9466 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9467 | PyObject *resultobj; |
9468 | wxFont *arg1 = (wxFont *) 0 ; | |
9469 | wxString *arg2 = 0 ; | |
ae8162c8 | 9470 | bool temp2 = false ; |
d55e5bfc RD |
9471 | PyObject * obj0 = 0 ; |
9472 | PyObject * obj1 = 0 ; | |
9473 | char *kwnames[] = { | |
9474 | (char *) "self",(char *) "info", NULL | |
9475 | }; | |
9476 | ||
9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
9478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9480 | { | |
9481 | arg2 = wxString_in_helper(obj1); | |
9482 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9483 | temp2 = true; |
d55e5bfc RD |
9484 | } |
9485 | { | |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
9488 | ||
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | Py_INCREF(Py_None); resultobj = Py_None; | |
9493 | { | |
9494 | if (temp2) | |
9495 | delete arg2; | |
9496 | } | |
9497 | return resultobj; | |
9498 | fail: | |
9499 | { | |
9500 | if (temp2) | |
9501 | delete arg2; | |
9502 | } | |
9503 | return NULL; | |
9504 | } | |
9505 | ||
9506 | ||
c32bde28 | 9507 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9508 | PyObject *resultobj; |
9509 | wxFont *arg1 = (wxFont *) 0 ; | |
9510 | wxString result; | |
9511 | PyObject * obj0 = 0 ; | |
9512 | char *kwnames[] = { | |
9513 | (char *) "self", NULL | |
9514 | }; | |
9515 | ||
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
9517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9521 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
9522 | ||
9523 | wxPyEndAllowThreads(__tstate); | |
9524 | if (PyErr_Occurred()) SWIG_fail; | |
9525 | } | |
9526 | { | |
9527 | #if wxUSE_UNICODE | |
9528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9529 | #else | |
9530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9531 | #endif | |
9532 | } | |
9533 | return resultobj; | |
9534 | fail: | |
9535 | return NULL; | |
9536 | } | |
9537 | ||
9538 | ||
c32bde28 | 9539 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9540 | PyObject *resultobj; |
9541 | wxFont *arg1 = (wxFont *) 0 ; | |
9542 | wxString result; | |
9543 | PyObject * obj0 = 0 ; | |
9544 | char *kwnames[] = { | |
9545 | (char *) "self", NULL | |
9546 | }; | |
9547 | ||
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
9549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9551 | { | |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = ((wxFont const *)arg1)->GetStyleString(); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | { | |
9559 | #if wxUSE_UNICODE | |
9560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9561 | #else | |
9562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9563 | #endif | |
9564 | } | |
9565 | return resultobj; | |
9566 | fail: | |
9567 | return NULL; | |
9568 | } | |
9569 | ||
9570 | ||
c32bde28 | 9571 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9572 | PyObject *resultobj; |
9573 | wxFont *arg1 = (wxFont *) 0 ; | |
9574 | wxString result; | |
9575 | PyObject * obj0 = 0 ; | |
9576 | char *kwnames[] = { | |
9577 | (char *) "self", NULL | |
9578 | }; | |
9579 | ||
9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9586 | ||
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) SWIG_fail; | |
9589 | } | |
9590 | { | |
9591 | #if wxUSE_UNICODE | |
9592 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9593 | #else | |
9594 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9595 | #endif | |
9596 | } | |
9597 | return resultobj; | |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
c32bde28 | 9603 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9604 | PyObject *resultobj; |
9605 | wxFont *arg1 = (wxFont *) 0 ; | |
ae8162c8 | 9606 | bool arg2 = (bool) true ; |
d55e5bfc RD |
9607 | PyObject * obj0 = 0 ; |
9608 | PyObject * obj1 = 0 ; | |
9609 | char *kwnames[] = { | |
9610 | (char *) "self",(char *) "no", NULL | |
9611 | }; | |
9612 | ||
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9616 | if (obj1) { | |
c32bde28 | 9617 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9618 | if (PyErr_Occurred()) SWIG_fail; |
9619 | } | |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | (arg1)->SetNoAntiAliasing(arg2); | |
9623 | ||
9624 | wxPyEndAllowThreads(__tstate); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | Py_INCREF(Py_None); resultobj = Py_None; | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
c32bde28 | 9634 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9635 | PyObject *resultobj; |
9636 | wxFont *arg1 = (wxFont *) 0 ; | |
9637 | bool result; | |
9638 | PyObject * obj0 = 0 ; | |
9639 | char *kwnames[] = { | |
9640 | (char *) "self", NULL | |
9641 | }; | |
9642 | ||
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b0f7404b | 9648 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d55e5bfc RD |
9649 | |
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | { | |
9654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9655 | } | |
9656 | return resultobj; | |
9657 | fail: | |
9658 | return NULL; | |
9659 | } | |
9660 | ||
9661 | ||
c32bde28 | 9662 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9663 | PyObject *resultobj; |
9664 | int result; | |
9665 | char *kwnames[] = { | |
9666 | NULL | |
9667 | }; | |
9668 | ||
9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9670 | { | |
0439c23b | 9671 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9673 | result = (int)wxFont::GetDefaultEncoding(); | |
9674 | ||
9675 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9676 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9677 | } |
c32bde28 | 9678 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9679 | return resultobj; |
9680 | fail: | |
9681 | return NULL; | |
9682 | } | |
9683 | ||
9684 | ||
c32bde28 | 9685 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9686 | PyObject *resultobj; |
9687 | int arg1 ; | |
9688 | PyObject * obj0 = 0 ; | |
9689 | char *kwnames[] = { | |
9690 | (char *) "encoding", NULL | |
9691 | }; | |
9692 | ||
9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 9694 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9695 | if (PyErr_Occurred()) SWIG_fail; |
9696 | { | |
0439c23b | 9697 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9699 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9702 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9703 | } |
9704 | Py_INCREF(Py_None); resultobj = Py_None; | |
9705 | return resultobj; | |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
c32bde28 | 9711 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9712 | PyObject *obj; |
9713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9714 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9715 | Py_INCREF(obj); | |
9716 | return Py_BuildValue((char *)""); | |
9717 | } | |
c32bde28 | 9718 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9719 | PyObject *resultobj; |
9720 | wxPyFontEnumerator *result; | |
9721 | char *kwnames[] = { | |
9722 | NULL | |
9723 | }; | |
9724 | ||
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9726 | { | |
0439c23b | 9727 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9729 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9730 | ||
9731 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9732 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9733 | } |
9734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9735 | return resultobj; | |
9736 | fail: | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
c32bde28 | 9741 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9742 | PyObject *resultobj; |
9743 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9744 | PyObject * obj0 = 0 ; | |
9745 | char *kwnames[] = { | |
9746 | (char *) "self", NULL | |
9747 | }; | |
9748 | ||
9749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | delete arg1; | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | Py_INCREF(Py_None); resultobj = Py_None; | |
9760 | return resultobj; | |
9761 | fail: | |
9762 | return NULL; | |
9763 | } | |
9764 | ||
9765 | ||
c32bde28 | 9766 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9767 | PyObject *resultobj; |
9768 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9769 | PyObject *arg2 = (PyObject *) 0 ; | |
9770 | PyObject *arg3 = (PyObject *) 0 ; | |
9771 | bool arg4 ; | |
9772 | PyObject * obj0 = 0 ; | |
9773 | PyObject * obj1 = 0 ; | |
9774 | PyObject * obj2 = 0 ; | |
9775 | PyObject * obj3 = 0 ; | |
9776 | char *kwnames[] = { | |
9777 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9778 | }; | |
9779 | ||
9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9783 | arg2 = obj1; | |
9784 | arg3 = obj2; | |
c32bde28 | 9785 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
9786 | if (PyErr_Occurred()) SWIG_fail; |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
9794 | Py_INCREF(Py_None); resultobj = Py_None; | |
9795 | return resultobj; | |
9796 | fail: | |
9797 | return NULL; | |
9798 | } | |
9799 | ||
9800 | ||
c32bde28 | 9801 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9802 | PyObject *resultobj; |
9803 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9804 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
ae8162c8 | 9805 | bool arg3 = (bool) false ; |
d55e5bfc RD |
9806 | bool result; |
9807 | PyObject * obj0 = 0 ; | |
9808 | PyObject * obj1 = 0 ; | |
9809 | PyObject * obj2 = 0 ; | |
9810 | char *kwnames[] = { | |
9811 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9812 | }; | |
9813 | ||
9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9817 | if (obj1) { | |
c32bde28 | 9818 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9819 | if (PyErr_Occurred()) SWIG_fail; |
9820 | } | |
9821 | if (obj2) { | |
c32bde28 | 9822 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9823 | if (PyErr_Occurred()) SWIG_fail; |
9824 | } | |
9825 | { | |
9826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9827 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9828 | ||
9829 | wxPyEndAllowThreads(__tstate); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | { | |
9833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9834 | } | |
9835 | return resultobj; | |
9836 | fail: | |
9837 | return NULL; | |
9838 | } | |
9839 | ||
9840 | ||
c32bde28 | 9841 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9842 | PyObject *resultobj; |
9843 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9844 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9845 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9846 | bool result; | |
ae8162c8 | 9847 | bool temp2 = false ; |
d55e5bfc RD |
9848 | PyObject * obj0 = 0 ; |
9849 | PyObject * obj1 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "self",(char *) "facename", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9857 | if (obj1) { | |
9858 | { | |
9859 | arg2 = wxString_in_helper(obj1); | |
9860 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9861 | temp2 = true; |
d55e5bfc RD |
9862 | } |
9863 | } | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9867 | ||
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
9871 | { | |
9872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9873 | } | |
9874 | { | |
9875 | if (temp2) | |
9876 | delete arg2; | |
9877 | } | |
9878 | return resultobj; | |
9879 | fail: | |
9880 | { | |
9881 | if (temp2) | |
9882 | delete arg2; | |
9883 | } | |
9884 | return NULL; | |
9885 | } | |
9886 | ||
9887 | ||
c32bde28 | 9888 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9889 | PyObject *resultobj; |
9890 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9891 | PyObject *result; | |
9892 | PyObject * obj0 = 0 ; | |
9893 | char *kwnames[] = { | |
9894 | (char *) "self", NULL | |
9895 | }; | |
9896 | ||
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | resultobj = result; | |
9908 | return resultobj; | |
9909 | fail: | |
9910 | return NULL; | |
9911 | } | |
9912 | ||
9913 | ||
c32bde28 | 9914 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9915 | PyObject *resultobj; |
9916 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9917 | PyObject *result; | |
9918 | PyObject * obj0 = 0 ; | |
9919 | char *kwnames[] = { | |
9920 | (char *) "self", NULL | |
9921 | }; | |
9922 | ||
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9926 | { | |
9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9928 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9929 | ||
9930 | wxPyEndAllowThreads(__tstate); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | } | |
9933 | resultobj = result; | |
9934 | return resultobj; | |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
c32bde28 | 9940 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9941 | PyObject *obj; |
9942 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9943 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9944 | Py_INCREF(obj); | |
9945 | return Py_BuildValue((char *)""); | |
9946 | } | |
c32bde28 | 9947 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9948 | PyObject *resultobj; |
9949 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9950 | int arg2 ; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | PyObject * obj1 = 0 ; | |
9953 | char *kwnames[] = { | |
9954 | (char *) "self",(char *) "Language", NULL | |
9955 | }; | |
9956 | ||
9957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9960 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9961 | if (PyErr_Occurred()) SWIG_fail; |
9962 | if (arg1) (arg1)->Language = arg2; | |
9963 | ||
9964 | Py_INCREF(Py_None); resultobj = Py_None; | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
c32bde28 | 9971 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9972 | PyObject *resultobj; |
9973 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9974 | int result; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9983 | result = (int) ((arg1)->Language); | |
9984 | ||
c32bde28 | 9985 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9986 | return resultobj; |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
c32bde28 | 9992 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9993 | PyObject *resultobj; |
9994 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9995 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 9996 | bool temp2 = false ; |
d55e5bfc RD |
9997 | PyObject * obj0 = 0 ; |
9998 | PyObject * obj1 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self",(char *) "CanonicalName", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10006 | { | |
10007 | arg2 = wxString_in_helper(obj1); | |
10008 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10009 | temp2 = true; |
d55e5bfc RD |
10010 | } |
10011 | if (arg1) (arg1)->CanonicalName = *arg2; | |
10012 | ||
10013 | Py_INCREF(Py_None); resultobj = Py_None; | |
10014 | { | |
10015 | if (temp2) | |
10016 | delete arg2; | |
10017 | } | |
10018 | return resultobj; | |
10019 | fail: | |
10020 | { | |
10021 | if (temp2) | |
10022 | delete arg2; | |
10023 | } | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
c32bde28 | 10028 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10029 | PyObject *resultobj; |
10030 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
10031 | wxString *result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10040 | result = (wxString *)& ((arg1)->CanonicalName); | |
10041 | ||
10042 | { | |
10043 | #if wxUSE_UNICODE | |
10044 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10045 | #else | |
10046 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10047 | #endif | |
10048 | } | |
10049 | return resultobj; | |
10050 | fail: | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
c32bde28 | 10055 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10056 | PyObject *resultobj; |
10057 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
10058 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 10059 | bool temp2 = false ; |
d55e5bfc RD |
10060 | PyObject * obj0 = 0 ; |
10061 | PyObject * obj1 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "self",(char *) "Description", NULL | |
10064 | }; | |
10065 | ||
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
10067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10069 | { | |
10070 | arg2 = wxString_in_helper(obj1); | |
10071 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10072 | temp2 = true; |
d55e5bfc RD |
10073 | } |
10074 | if (arg1) (arg1)->Description = *arg2; | |
10075 | ||
10076 | Py_INCREF(Py_None); resultobj = Py_None; | |
10077 | { | |
10078 | if (temp2) | |
10079 | delete arg2; | |
10080 | } | |
10081 | return resultobj; | |
10082 | fail: | |
10083 | { | |
10084 | if (temp2) | |
10085 | delete arg2; | |
10086 | } | |
10087 | return NULL; | |
10088 | } | |
10089 | ||
10090 | ||
c32bde28 | 10091 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10092 | PyObject *resultobj; |
10093 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
10094 | wxString *result; | |
10095 | PyObject * obj0 = 0 ; | |
10096 | char *kwnames[] = { | |
10097 | (char *) "self", NULL | |
10098 | }; | |
10099 | ||
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
10101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10103 | result = (wxString *)& ((arg1)->Description); | |
10104 | ||
10105 | { | |
10106 | #if wxUSE_UNICODE | |
10107 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10108 | #else | |
10109 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10110 | #endif | |
10111 | } | |
10112 | return resultobj; | |
10113 | fail: | |
10114 | return NULL; | |
10115 | } | |
10116 | ||
10117 | ||
c32bde28 | 10118 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10119 | PyObject *obj; |
10120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10121 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
10122 | Py_INCREF(obj); | |
10123 | return Py_BuildValue((char *)""); | |
10124 | } | |
c32bde28 | 10125 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 10126 | PyObject *resultobj; |
79fccf9d | 10127 | int arg1 = (int) -1 ; |
d55e5bfc RD |
10128 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
10129 | wxLocale *result; | |
10130 | PyObject * obj0 = 0 ; | |
10131 | PyObject * obj1 = 0 ; | |
10132 | char *kwnames[] = { | |
10133 | (char *) "language",(char *) "flags", NULL | |
10134 | }; | |
10135 | ||
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
10137 | if (obj0) { | |
c32bde28 | 10138 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10139 | if (PyErr_Occurred()) SWIG_fail; |
10140 | } | |
10141 | if (obj1) { | |
c32bde28 | 10142 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10143 | if (PyErr_Occurred()) SWIG_fail; |
10144 | } | |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 10147 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
10148 | |
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
10151 | } | |
10152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
c32bde28 | 10159 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10160 | PyObject *resultobj; |
10161 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10162 | PyObject * obj0 = 0 ; | |
10163 | char *kwnames[] = { | |
10164 | (char *) "self", NULL | |
10165 | }; | |
10166 | ||
10167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
10168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | delete arg1; | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
10177 | Py_INCREF(Py_None); resultobj = Py_None; | |
10178 | return resultobj; | |
10179 | fail: | |
10180 | return NULL; | |
10181 | } | |
10182 | ||
10183 | ||
c32bde28 | 10184 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10185 | PyObject *resultobj; |
10186 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10187 | wxString *arg2 = 0 ; | |
10188 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10189 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10190 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
10191 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
ae8162c8 RD |
10192 | bool arg5 = (bool) true ; |
10193 | bool arg6 = (bool) false ; | |
d55e5bfc | 10194 | bool result; |
ae8162c8 RD |
10195 | bool temp2 = false ; |
10196 | bool temp3 = false ; | |
10197 | bool temp4 = false ; | |
d55e5bfc RD |
10198 | PyObject * obj0 = 0 ; |
10199 | PyObject * obj1 = 0 ; | |
10200 | PyObject * obj2 = 0 ; | |
10201 | PyObject * obj3 = 0 ; | |
10202 | PyObject * obj4 = 0 ; | |
10203 | PyObject * obj5 = 0 ; | |
10204 | char *kwnames[] = { | |
10205 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
10206 | }; | |
10207 | ||
10208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10211 | { | |
10212 | arg2 = wxString_in_helper(obj1); | |
10213 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10214 | temp2 = true; |
d55e5bfc RD |
10215 | } |
10216 | if (obj2) { | |
10217 | { | |
10218 | arg3 = wxString_in_helper(obj2); | |
10219 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10220 | temp3 = true; |
d55e5bfc RD |
10221 | } |
10222 | } | |
10223 | if (obj3) { | |
10224 | { | |
10225 | arg4 = wxString_in_helper(obj3); | |
10226 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10227 | temp4 = true; |
d55e5bfc RD |
10228 | } |
10229 | } | |
10230 | if (obj4) { | |
c32bde28 | 10231 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
10232 | if (PyErr_Occurred()) SWIG_fail; |
10233 | } | |
10234 | if (obj5) { | |
c32bde28 | 10235 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
10236 | if (PyErr_Occurred()) SWIG_fail; |
10237 | } | |
10238 | { | |
10239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 10240 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d55e5bfc RD |
10241 | |
10242 | wxPyEndAllowThreads(__tstate); | |
10243 | if (PyErr_Occurred()) SWIG_fail; | |
10244 | } | |
10245 | { | |
10246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10247 | } | |
10248 | { | |
10249 | if (temp2) | |
10250 | delete arg2; | |
10251 | } | |
10252 | { | |
10253 | if (temp3) | |
10254 | delete arg3; | |
10255 | } | |
10256 | { | |
10257 | if (temp4) | |
10258 | delete arg4; | |
10259 | } | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | { | |
10263 | if (temp2) | |
10264 | delete arg2; | |
10265 | } | |
10266 | { | |
10267 | if (temp3) | |
10268 | delete arg3; | |
10269 | } | |
10270 | { | |
10271 | if (temp4) | |
10272 | delete arg4; | |
10273 | } | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
c32bde28 | 10278 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10279 | PyObject *resultobj; |
10280 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10281 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
10282 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
10283 | bool result; | |
10284 | PyObject * obj0 = 0 ; | |
10285 | PyObject * obj1 = 0 ; | |
10286 | PyObject * obj2 = 0 ; | |
10287 | char *kwnames[] = { | |
10288 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10294 | if (obj1) { | |
c32bde28 | 10295 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10296 | if (PyErr_Occurred()) SWIG_fail; |
10297 | } | |
10298 | if (obj2) { | |
c32bde28 | 10299 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10300 | if (PyErr_Occurred()) SWIG_fail; |
10301 | } | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 10304 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); |
d55e5bfc RD |
10305 | |
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | { | |
10310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10311 | } | |
10312 | return resultobj; | |
10313 | fail: | |
10314 | return NULL; | |
10315 | } | |
10316 | ||
10317 | ||
c32bde28 | 10318 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10319 | PyObject *resultobj; |
10320 | int result; | |
10321 | char *kwnames[] = { | |
10322 | NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | result = (int)wxLocale::GetSystemLanguage(); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
c32bde28 | 10333 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10334 | return resultobj; |
10335 | fail: | |
10336 | return NULL; | |
10337 | } | |
10338 | ||
10339 | ||
c32bde28 | 10340 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10341 | PyObject *resultobj; |
10342 | int result; | |
10343 | char *kwnames[] = { | |
10344 | NULL | |
10345 | }; | |
10346 | ||
10347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
10348 | { | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | result = (int)wxLocale::GetSystemEncoding(); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
c32bde28 | 10355 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10356 | return resultobj; |
10357 | fail: | |
10358 | return NULL; | |
10359 | } | |
10360 | ||
10361 | ||
c32bde28 | 10362 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10363 | PyObject *resultobj; |
10364 | wxString result; | |
10365 | char *kwnames[] = { | |
10366 | NULL | |
10367 | }; | |
10368 | ||
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
10370 | { | |
10371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10372 | result = wxLocale::GetSystemEncodingName(); | |
10373 | ||
10374 | wxPyEndAllowThreads(__tstate); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | } | |
10377 | { | |
10378 | #if wxUSE_UNICODE | |
10379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10380 | #else | |
10381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10382 | #endif | |
10383 | } | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
10387 | } | |
10388 | ||
10389 | ||
c32bde28 | 10390 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10391 | PyObject *resultobj; |
10392 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10393 | bool result; | |
10394 | PyObject * obj0 = 0 ; | |
10395 | char *kwnames[] = { | |
10396 | (char *) "self", NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
10400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10402 | { | |
10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10404 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
10405 | ||
10406 | wxPyEndAllowThreads(__tstate); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | { | |
10410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10411 | } | |
10412 | return resultobj; | |
10413 | fail: | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
c32bde28 | 10418 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10419 | PyObject *resultobj; |
10420 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10421 | wxString result; | |
10422 | PyObject * obj0 = 0 ; | |
10423 | char *kwnames[] = { | |
10424 | (char *) "self", NULL | |
10425 | }; | |
10426 | ||
10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
10428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | result = ((wxLocale const *)arg1)->GetLocale(); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | { | |
10438 | #if wxUSE_UNICODE | |
10439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10440 | #else | |
10441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10442 | #endif | |
10443 | } | |
10444 | return resultobj; | |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
c32bde28 | 10450 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10451 | PyObject *resultobj; |
10452 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10453 | int result; | |
10454 | PyObject * obj0 = 0 ; | |
10455 | char *kwnames[] = { | |
10456 | (char *) "self", NULL | |
10457 | }; | |
10458 | ||
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
10460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10462 | { | |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10464 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
10465 | ||
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | } | |
c32bde28 | 10469 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10470 | return resultobj; |
10471 | fail: | |
10472 | return NULL; | |
10473 | } | |
10474 | ||
10475 | ||
c32bde28 | 10476 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10477 | PyObject *resultobj; |
10478 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10479 | wxString result; | |
10480 | PyObject * obj0 = 0 ; | |
10481 | char *kwnames[] = { | |
10482 | (char *) "self", NULL | |
10483 | }; | |
10484 | ||
10485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
10486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | result = ((wxLocale const *)arg1)->GetSysName(); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | { | |
10496 | #if wxUSE_UNICODE | |
10497 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10498 | #else | |
10499 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10500 | #endif | |
10501 | } | |
10502 | return resultobj; | |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
c32bde28 | 10508 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10509 | PyObject *resultobj; |
10510 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10511 | wxString result; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "self", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
10518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
10523 | ||
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
10527 | { | |
10528 | #if wxUSE_UNICODE | |
10529 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10530 | #else | |
10531 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10532 | #endif | |
10533 | } | |
10534 | return resultobj; | |
10535 | fail: | |
10536 | return NULL; | |
10537 | } | |
10538 | ||
10539 | ||
c32bde28 | 10540 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10541 | PyObject *resultobj; |
10542 | wxString *arg1 = 0 ; | |
ae8162c8 | 10543 | bool temp1 = false ; |
d55e5bfc RD |
10544 | PyObject * obj0 = 0 ; |
10545 | char *kwnames[] = { | |
10546 | (char *) "prefix", NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
10550 | { | |
10551 | arg1 = wxString_in_helper(obj0); | |
10552 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10553 | temp1 = true; |
d55e5bfc RD |
10554 | } |
10555 | { | |
10556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10557 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
10558 | ||
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | Py_INCREF(Py_None); resultobj = Py_None; | |
10563 | { | |
10564 | if (temp1) | |
10565 | delete arg1; | |
10566 | } | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | { | |
10570 | if (temp1) | |
10571 | delete arg1; | |
10572 | } | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
c32bde28 | 10577 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10578 | PyObject *resultobj; |
10579 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10580 | wxString *arg2 = 0 ; | |
10581 | bool result; | |
ae8162c8 | 10582 | bool temp2 = false ; |
d55e5bfc RD |
10583 | PyObject * obj0 = 0 ; |
10584 | PyObject * obj1 = 0 ; | |
10585 | char *kwnames[] = { | |
10586 | (char *) "self",(char *) "szDomain", NULL | |
10587 | }; | |
10588 | ||
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10592 | { | |
10593 | arg2 = wxString_in_helper(obj1); | |
10594 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10595 | temp2 = true; |
d55e5bfc RD |
10596 | } |
10597 | { | |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10599 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10600 | ||
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | { | |
10605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10606 | } | |
10607 | { | |
10608 | if (temp2) | |
10609 | delete arg2; | |
10610 | } | |
10611 | return resultobj; | |
10612 | fail: | |
10613 | { | |
10614 | if (temp2) | |
10615 | delete arg2; | |
10616 | } | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
c32bde28 | 10621 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10622 | PyObject *resultobj; |
10623 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10624 | wxString *arg2 = 0 ; | |
10625 | bool result; | |
ae8162c8 | 10626 | bool temp2 = false ; |
d55e5bfc RD |
10627 | PyObject * obj0 = 0 ; |
10628 | PyObject * obj1 = 0 ; | |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "szDomain", NULL | |
10631 | }; | |
10632 | ||
10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10636 | { | |
10637 | arg2 = wxString_in_helper(obj1); | |
10638 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10639 | temp2 = true; |
d55e5bfc RD |
10640 | } |
10641 | { | |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | { | |
10649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10650 | } | |
10651 | { | |
10652 | if (temp2) | |
10653 | delete arg2; | |
10654 | } | |
10655 | return resultobj; | |
10656 | fail: | |
10657 | { | |
10658 | if (temp2) | |
10659 | delete arg2; | |
10660 | } | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
c32bde28 | 10665 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10666 | PyObject *resultobj; |
10667 | int arg1 ; | |
10668 | wxLanguageInfo *result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "lang", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
c32bde28 | 10675 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10676 | if (PyErr_Occurred()) SWIG_fail; |
10677 | { | |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
10684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10685 | return resultobj; | |
10686 | fail: | |
10687 | return NULL; | |
10688 | } | |
10689 | ||
10690 | ||
c32bde28 | 10691 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10692 | PyObject *resultobj; |
10693 | int arg1 ; | |
10694 | wxString result; | |
10695 | PyObject * obj0 = 0 ; | |
10696 | char *kwnames[] = { | |
10697 | (char *) "lang", NULL | |
10698 | }; | |
10699 | ||
10700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
c32bde28 | 10701 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10702 | if (PyErr_Occurred()) SWIG_fail; |
10703 | { | |
10704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10705 | result = wxLocale::GetLanguageName(arg1); | |
10706 | ||
10707 | wxPyEndAllowThreads(__tstate); | |
10708 | if (PyErr_Occurred()) SWIG_fail; | |
10709 | } | |
10710 | { | |
10711 | #if wxUSE_UNICODE | |
10712 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10713 | #else | |
10714 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10715 | #endif | |
10716 | } | |
10717 | return resultobj; | |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
c32bde28 | 10723 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10724 | PyObject *resultobj; |
10725 | wxString *arg1 = 0 ; | |
10726 | wxLanguageInfo *result; | |
ae8162c8 | 10727 | bool temp1 = false ; |
d55e5bfc RD |
10728 | PyObject * obj0 = 0 ; |
10729 | char *kwnames[] = { | |
10730 | (char *) "locale", NULL | |
10731 | }; | |
10732 | ||
10733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10734 | { | |
10735 | arg1 = wxString_in_helper(obj0); | |
10736 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10737 | temp1 = true; |
d55e5bfc RD |
10738 | } |
10739 | { | |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | } | |
10746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10747 | { | |
10748 | if (temp1) | |
10749 | delete arg1; | |
10750 | } | |
10751 | return resultobj; | |
10752 | fail: | |
10753 | { | |
10754 | if (temp1) | |
10755 | delete arg1; | |
10756 | } | |
10757 | return NULL; | |
10758 | } | |
10759 | ||
10760 | ||
c32bde28 | 10761 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10762 | PyObject *resultobj; |
10763 | wxLanguageInfo *arg1 = 0 ; | |
10764 | PyObject * obj0 = 0 ; | |
10765 | char *kwnames[] = { | |
10766 | (char *) "info", NULL | |
10767 | }; | |
10768 | ||
10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10772 | SWIG_fail; | |
10773 | if (arg1 == NULL) { | |
10774 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10775 | SWIG_fail; | |
10776 | } | |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10780 | ||
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | Py_INCREF(Py_None); resultobj = Py_None; | |
10785 | return resultobj; | |
10786 | fail: | |
10787 | return NULL; | |
10788 | } | |
10789 | ||
10790 | ||
c32bde28 | 10791 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10792 | PyObject *resultobj; |
10793 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10794 | wxString *arg2 = 0 ; | |
10795 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10796 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10797 | wxString result; | |
ae8162c8 RD |
10798 | bool temp2 = false ; |
10799 | bool temp3 = false ; | |
d55e5bfc RD |
10800 | PyObject * obj0 = 0 ; |
10801 | PyObject * obj1 = 0 ; | |
10802 | PyObject * obj2 = 0 ; | |
10803 | char *kwnames[] = { | |
10804 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10805 | }; | |
10806 | ||
10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10810 | { | |
10811 | arg2 = wxString_in_helper(obj1); | |
10812 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10813 | temp2 = true; |
d55e5bfc RD |
10814 | } |
10815 | if (obj2) { | |
10816 | { | |
10817 | arg3 = wxString_in_helper(obj2); | |
10818 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10819 | temp3 = true; |
d55e5bfc RD |
10820 | } |
10821 | } | |
10822 | { | |
10823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10824 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10825 | ||
10826 | wxPyEndAllowThreads(__tstate); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
10828 | } | |
10829 | { | |
10830 | #if wxUSE_UNICODE | |
10831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10832 | #else | |
10833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10834 | #endif | |
10835 | } | |
10836 | { | |
10837 | if (temp2) | |
10838 | delete arg2; | |
10839 | } | |
10840 | { | |
10841 | if (temp3) | |
10842 | delete arg3; | |
10843 | } | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | { | |
10847 | if (temp2) | |
10848 | delete arg2; | |
10849 | } | |
10850 | { | |
10851 | if (temp3) | |
10852 | delete arg3; | |
10853 | } | |
10854 | return NULL; | |
10855 | } | |
10856 | ||
10857 | ||
c32bde28 | 10858 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10859 | PyObject *resultobj; |
10860 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10861 | wxString *result; | |
10862 | PyObject * obj0 = 0 ; | |
10863 | char *kwnames[] = { | |
10864 | (char *) "self", NULL | |
10865 | }; | |
10866 | ||
10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10870 | { | |
10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10872 | { | |
10873 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10874 | result = (wxString *) &_result_ref; | |
10875 | } | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
10880 | { | |
10881 | #if wxUSE_UNICODE | |
10882 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10883 | #else | |
10884 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10885 | #endif | |
10886 | } | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
c32bde28 | 10893 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10894 | PyObject *obj; |
10895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10896 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10897 | Py_INCREF(obj); | |
10898 | return Py_BuildValue((char *)""); | |
10899 | } | |
c32bde28 | 10900 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10901 | PyObject *resultobj; |
10902 | wxLocale *result; | |
10903 | char *kwnames[] = { | |
10904 | NULL | |
10905 | }; | |
10906 | ||
10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10908 | { | |
10909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10910 | result = (wxLocale *)wxGetLocale(); | |
10911 | ||
10912 | wxPyEndAllowThreads(__tstate); | |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
10914 | } | |
10915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | return NULL; | |
10919 | } | |
10920 | ||
10921 | ||
c32bde28 | 10922 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
10923 | PyObject *resultobj; |
10924 | wxString *arg1 = 0 ; | |
10925 | wxString result; | |
ae8162c8 | 10926 | bool temp1 = false ; |
d55e5bfc RD |
10927 | PyObject * obj0 = 0 ; |
10928 | ||
10929 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10930 | { | |
10931 | arg1 = wxString_in_helper(obj0); | |
10932 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10933 | temp1 = true; |
d55e5bfc RD |
10934 | } |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = wxGetTranslation((wxString const &)*arg1); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | { | |
10943 | #if wxUSE_UNICODE | |
10944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10945 | #else | |
10946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10947 | #endif | |
10948 | } | |
10949 | { | |
10950 | if (temp1) | |
10951 | delete arg1; | |
10952 | } | |
10953 | return resultobj; | |
10954 | fail: | |
10955 | { | |
10956 | if (temp1) | |
10957 | delete arg1; | |
10958 | } | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
c32bde28 | 10963 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
10964 | PyObject *resultobj; |
10965 | wxString *arg1 = 0 ; | |
10966 | wxString *arg2 = 0 ; | |
10967 | size_t arg3 ; | |
10968 | wxString result; | |
ae8162c8 RD |
10969 | bool temp1 = false ; |
10970 | bool temp2 = false ; | |
d55e5bfc RD |
10971 | PyObject * obj0 = 0 ; |
10972 | PyObject * obj1 = 0 ; | |
10973 | PyObject * obj2 = 0 ; | |
10974 | ||
10975 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10976 | { | |
10977 | arg1 = wxString_in_helper(obj0); | |
10978 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10979 | temp1 = true; |
d55e5bfc RD |
10980 | } |
10981 | { | |
10982 | arg2 = wxString_in_helper(obj1); | |
10983 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10984 | temp2 = true; |
d55e5bfc | 10985 | } |
c32bde28 | 10986 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
d55e5bfc RD |
10987 | if (PyErr_Occurred()) SWIG_fail; |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | { | |
10996 | #if wxUSE_UNICODE | |
10997 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10998 | #else | |
10999 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11000 | #endif | |
11001 | } | |
11002 | { | |
11003 | if (temp1) | |
11004 | delete arg1; | |
11005 | } | |
11006 | { | |
11007 | if (temp2) | |
11008 | delete arg2; | |
11009 | } | |
11010 | return resultobj; | |
11011 | fail: | |
11012 | { | |
11013 | if (temp1) | |
11014 | delete arg1; | |
11015 | } | |
11016 | { | |
11017 | if (temp2) | |
11018 | delete arg2; | |
11019 | } | |
11020 | return NULL; | |
11021 | } | |
11022 | ||
11023 | ||
11024 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
11025 | int argc; | |
11026 | PyObject *argv[4]; | |
11027 | int ii; | |
11028 | ||
11029 | argc = PyObject_Length(args); | |
11030 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11031 | argv[ii] = PyTuple_GetItem(args,ii); | |
11032 | } | |
11033 | if (argc == 1) { | |
11034 | int _v; | |
11035 | { | |
11036 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11037 | } | |
11038 | if (_v) { | |
11039 | return _wrap_GetTranslation__SWIG_0(self,args); | |
11040 | } | |
11041 | } | |
11042 | if (argc == 3) { | |
11043 | int _v; | |
11044 | { | |
11045 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11046 | } | |
11047 | if (_v) { | |
11048 | { | |
11049 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11050 | } | |
11051 | if (_v) { | |
c32bde28 | 11052 | _v = SWIG_Check_unsigned_SS_long(argv[2]); |
d55e5bfc RD |
11053 | if (_v) { |
11054 | return _wrap_GetTranslation__SWIG_1(self,args); | |
11055 | } | |
11056 | } | |
11057 | } | |
11058 | } | |
11059 | ||
11060 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
c32bde28 | 11065 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11066 | PyObject *resultobj; |
11067 | wxEncodingConverter *result; | |
11068 | char *kwnames[] = { | |
11069 | NULL | |
11070 | }; | |
11071 | ||
11072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
c32bde28 | 11087 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11088 | PyObject *resultobj; |
11089 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
11090 | PyObject * obj0 = 0 ; | |
11091 | char *kwnames[] = { | |
11092 | (char *) "self", NULL | |
11093 | }; | |
11094 | ||
11095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
11096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
11097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11098 | { | |
11099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11100 | delete arg1; | |
11101 | ||
11102 | wxPyEndAllowThreads(__tstate); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | } | |
11105 | Py_INCREF(Py_None); resultobj = Py_None; | |
11106 | return resultobj; | |
11107 | fail: | |
11108 | return NULL; | |
11109 | } | |
11110 | ||
11111 | ||
c32bde28 | 11112 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11113 | PyObject *resultobj; |
11114 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
11115 | int arg2 ; | |
11116 | int arg3 ; | |
11117 | int arg4 = (int) wxCONVERT_STRICT ; | |
11118 | bool result; | |
11119 | PyObject * obj0 = 0 ; | |
11120 | PyObject * obj1 = 0 ; | |
11121 | PyObject * obj2 = 0 ; | |
11122 | PyObject * obj3 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
11129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11130 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11131 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11132 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11133 | if (PyErr_Occurred()) SWIG_fail; |
11134 | if (obj3) { | |
c32bde28 | 11135 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11136 | if (PyErr_Occurred()) SWIG_fail; |
11137 | } | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
11141 | ||
11142 | wxPyEndAllowThreads(__tstate); | |
11143 | if (PyErr_Occurred()) SWIG_fail; | |
11144 | } | |
11145 | { | |
11146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11147 | } | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
c32bde28 | 11154 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11155 | PyObject *resultobj; |
11156 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
11157 | wxString *arg2 = 0 ; | |
11158 | wxString result; | |
ae8162c8 | 11159 | bool temp2 = false ; |
d55e5bfc RD |
11160 | PyObject * obj0 = 0 ; |
11161 | PyObject * obj1 = 0 ; | |
11162 | char *kwnames[] = { | |
11163 | (char *) "self",(char *) "input", NULL | |
11164 | }; | |
11165 | ||
11166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
11167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
11168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11169 | { | |
11170 | arg2 = wxString_in_helper(obj1); | |
11171 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11172 | temp2 = true; |
d55e5bfc RD |
11173 | } |
11174 | { | |
11175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11176 | result = (arg1)->Convert((wxString const &)*arg2); | |
11177 | ||
11178 | wxPyEndAllowThreads(__tstate); | |
11179 | if (PyErr_Occurred()) SWIG_fail; | |
11180 | } | |
11181 | { | |
11182 | #if wxUSE_UNICODE | |
11183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11184 | #else | |
11185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11186 | #endif | |
11187 | } | |
11188 | { | |
11189 | if (temp2) | |
11190 | delete arg2; | |
11191 | } | |
11192 | return resultobj; | |
11193 | fail: | |
11194 | { | |
11195 | if (temp2) | |
11196 | delete arg2; | |
11197 | } | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
c32bde28 | 11202 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11203 | PyObject *resultobj; |
11204 | int arg1 ; | |
11205 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
11206 | wxFontEncodingArray result; | |
11207 | PyObject * obj0 = 0 ; | |
11208 | PyObject * obj1 = 0 ; | |
11209 | char *kwnames[] = { | |
11210 | (char *) "enc",(char *) "platform", NULL | |
11211 | }; | |
11212 | ||
11213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 11214 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
11215 | if (PyErr_Occurred()) SWIG_fail; |
11216 | if (obj1) { | |
c32bde28 | 11217 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11218 | if (PyErr_Occurred()) SWIG_fail; |
11219 | } | |
11220 | { | |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
11223 | ||
11224 | wxPyEndAllowThreads(__tstate); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | } | |
11227 | { | |
11228 | resultobj = PyList_New(0); | |
11229 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
11230 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
11231 | PyList_Append(resultobj, number); | |
11232 | Py_DECREF(number); | |
11233 | } | |
11234 | } | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
c32bde28 | 11241 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11242 | PyObject *resultobj; |
11243 | int arg1 ; | |
11244 | wxFontEncodingArray result; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | char *kwnames[] = { | |
11247 | (char *) "enc", NULL | |
11248 | }; | |
11249 | ||
11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
c32bde28 | 11251 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
11252 | if (PyErr_Occurred()) SWIG_fail; |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
11260 | { | |
11261 | resultobj = PyList_New(0); | |
11262 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
11263 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
11264 | PyList_Append(resultobj, number); | |
11265 | Py_DECREF(number); | |
11266 | } | |
11267 | } | |
11268 | return resultobj; | |
11269 | fail: | |
11270 | return NULL; | |
11271 | } | |
11272 | ||
11273 | ||
c32bde28 | 11274 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11275 | PyObject *resultobj; |
11276 | int arg1 ; | |
11277 | int arg2 ; | |
11278 | bool result; | |
11279 | PyObject * obj0 = 0 ; | |
11280 | PyObject * obj1 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "encIn",(char *) "encOut", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 11286 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 11287 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11288 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11289 | if (PyErr_Occurred()) SWIG_fail; |
11290 | { | |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11292 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
11293 | ||
11294 | wxPyEndAllowThreads(__tstate); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
11297 | { | |
11298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11299 | } | |
11300 | return resultobj; | |
11301 | fail: | |
11302 | return NULL; | |
11303 | } | |
11304 | ||
11305 | ||
c32bde28 | 11306 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11307 | PyObject *obj; |
11308 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11309 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
11310 | Py_INCREF(obj); | |
11311 | return Py_BuildValue((char *)""); | |
11312 | } | |
c32bde28 | 11313 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11314 | PyObject *resultobj; |
11315 | wxDC *arg1 = (wxDC *) 0 ; | |
11316 | PyObject * obj0 = 0 ; | |
11317 | char *kwnames[] = { | |
11318 | (char *) "self", NULL | |
11319 | }; | |
11320 | ||
11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
11322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11324 | { | |
11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11326 | delete arg1; | |
11327 | ||
11328 | wxPyEndAllowThreads(__tstate); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | } | |
11331 | Py_INCREF(Py_None); resultobj = Py_None; | |
11332 | return resultobj; | |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
c32bde28 | 11338 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11339 | PyObject *resultobj; |
11340 | wxDC *arg1 = (wxDC *) 0 ; | |
11341 | PyObject * obj0 = 0 ; | |
11342 | char *kwnames[] = { | |
11343 | (char *) "self", NULL | |
11344 | }; | |
11345 | ||
11346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
11347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11349 | { | |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | (arg1)->BeginDrawing(); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
11356 | Py_INCREF(Py_None); resultobj = Py_None; | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
c32bde28 | 11363 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11364 | PyObject *resultobj; |
11365 | wxDC *arg1 = (wxDC *) 0 ; | |
11366 | PyObject * obj0 = 0 ; | |
11367 | char *kwnames[] = { | |
11368 | (char *) "self", NULL | |
11369 | }; | |
11370 | ||
11371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
11372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | (arg1)->EndDrawing(); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | Py_INCREF(Py_None); resultobj = Py_None; | |
11382 | return resultobj; | |
11383 | fail: | |
11384 | return NULL; | |
11385 | } | |
11386 | ||
11387 | ||
c32bde28 | 11388 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11389 | PyObject *resultobj; |
11390 | wxDC *arg1 = (wxDC *) 0 ; | |
11391 | int arg2 ; | |
11392 | int arg3 ; | |
11393 | wxColour *arg4 = 0 ; | |
11394 | int arg5 = (int) wxFLOOD_SURFACE ; | |
11395 | bool result; | |
11396 | wxColour temp4 ; | |
11397 | PyObject * obj0 = 0 ; | |
11398 | PyObject * obj1 = 0 ; | |
11399 | PyObject * obj2 = 0 ; | |
11400 | PyObject * obj3 = 0 ; | |
11401 | PyObject * obj4 = 0 ; | |
11402 | char *kwnames[] = { | |
11403 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
11404 | }; | |
11405 | ||
c24da6d6 | 11406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11409 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11410 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11411 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11412 | if (PyErr_Occurred()) SWIG_fail; |
11413 | { | |
11414 | arg4 = &temp4; | |
11415 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
11416 | } | |
11417 | if (obj4) { | |
c32bde28 | 11418 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11419 | if (PyErr_Occurred()) SWIG_fail; |
11420 | } | |
11421 | { | |
11422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11423 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
11424 | ||
11425 | wxPyEndAllowThreads(__tstate); | |
11426 | if (PyErr_Occurred()) SWIG_fail; | |
11427 | } | |
11428 | { | |
11429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11430 | } | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
c32bde28 | 11437 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11438 | PyObject *resultobj; |
11439 | wxDC *arg1 = (wxDC *) 0 ; | |
11440 | wxPoint *arg2 = 0 ; | |
11441 | wxColour *arg3 = 0 ; | |
11442 | int arg4 = (int) wxFLOOD_SURFACE ; | |
11443 | bool result; | |
11444 | wxPoint temp2 ; | |
11445 | wxColour temp3 ; | |
11446 | PyObject * obj0 = 0 ; | |
11447 | PyObject * obj1 = 0 ; | |
11448 | PyObject * obj2 = 0 ; | |
11449 | PyObject * obj3 = 0 ; | |
11450 | char *kwnames[] = { | |
11451 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
11452 | }; | |
11453 | ||
c24da6d6 | 11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11457 | { | |
11458 | arg2 = &temp2; | |
11459 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11460 | } | |
11461 | { | |
11462 | arg3 = &temp3; | |
11463 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11464 | } | |
11465 | if (obj3) { | |
c32bde28 | 11466 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11467 | if (PyErr_Occurred()) SWIG_fail; |
11468 | } | |
11469 | { | |
11470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11471 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
11472 | ||
11473 | wxPyEndAllowThreads(__tstate); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
11476 | { | |
11477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11478 | } | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
c32bde28 | 11485 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11486 | PyObject *resultobj; |
11487 | wxDC *arg1 = (wxDC *) 0 ; | |
11488 | int arg2 ; | |
11489 | int arg3 ; | |
11490 | wxColour result; | |
11491 | PyObject * obj0 = 0 ; | |
11492 | PyObject * obj1 = 0 ; | |
11493 | PyObject * obj2 = 0 ; | |
11494 | char *kwnames[] = { | |
11495 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11496 | }; | |
11497 | ||
c24da6d6 | 11498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11501 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11502 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11503 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11504 | if (PyErr_Occurred()) SWIG_fail; |
11505 | { | |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11507 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
11508 | |
11509 | wxPyEndAllowThreads(__tstate); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | wxColour * resultptr; | |
11514 | resultptr = new wxColour((wxColour &) result); | |
11515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11516 | } | |
11517 | return resultobj; | |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
c32bde28 | 11523 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11524 | PyObject *resultobj; |
11525 | wxDC *arg1 = (wxDC *) 0 ; | |
11526 | wxPoint *arg2 = 0 ; | |
11527 | wxColour result; | |
11528 | wxPoint temp2 ; | |
11529 | PyObject * obj0 = 0 ; | |
11530 | PyObject * obj1 = 0 ; | |
11531 | char *kwnames[] = { | |
11532 | (char *) "self",(char *) "pt", NULL | |
11533 | }; | |
11534 | ||
c24da6d6 | 11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11538 | { | |
11539 | arg2 = &temp2; | |
11540 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11541 | } | |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11544 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
11545 | |
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | { | |
11550 | wxColour * resultptr; | |
11551 | resultptr = new wxColour((wxColour &) result); | |
11552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11553 | } | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
c32bde28 | 11560 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11561 | PyObject *resultobj; |
11562 | wxDC *arg1 = (wxDC *) 0 ; | |
11563 | int arg2 ; | |
11564 | int arg3 ; | |
11565 | int arg4 ; | |
11566 | int arg5 ; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | PyObject * obj1 = 0 ; | |
11569 | PyObject * obj2 = 0 ; | |
11570 | PyObject * obj3 = 0 ; | |
11571 | PyObject * obj4 = 0 ; | |
11572 | char *kwnames[] = { | |
11573 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11574 | }; | |
11575 | ||
c24da6d6 | 11576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11579 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11580 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11581 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11582 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11583 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11584 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11585 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11586 | if (PyErr_Occurred()) SWIG_fail; |
11587 | { | |
11588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11589 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11590 | ||
11591 | wxPyEndAllowThreads(__tstate); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | } | |
11594 | Py_INCREF(Py_None); resultobj = Py_None; | |
11595 | return resultobj; | |
11596 | fail: | |
11597 | return NULL; | |
11598 | } | |
11599 | ||
11600 | ||
c32bde28 | 11601 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11602 | PyObject *resultobj; |
11603 | wxDC *arg1 = (wxDC *) 0 ; | |
11604 | wxPoint *arg2 = 0 ; | |
11605 | wxPoint *arg3 = 0 ; | |
11606 | wxPoint temp2 ; | |
11607 | wxPoint temp3 ; | |
11608 | PyObject * obj0 = 0 ; | |
11609 | PyObject * obj1 = 0 ; | |
11610 | PyObject * obj2 = 0 ; | |
11611 | char *kwnames[] = { | |
11612 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11613 | }; | |
11614 | ||
c24da6d6 | 11615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11618 | { | |
11619 | arg2 = &temp2; | |
11620 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11621 | } | |
11622 | { | |
11623 | arg3 = &temp3; | |
11624 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11625 | } | |
11626 | { | |
11627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11628 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | Py_INCREF(Py_None); resultobj = Py_None; | |
11634 | return resultobj; | |
11635 | fail: | |
11636 | return NULL; | |
11637 | } | |
11638 | ||
11639 | ||
c32bde28 | 11640 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11641 | PyObject *resultobj; |
11642 | wxDC *arg1 = (wxDC *) 0 ; | |
11643 | int arg2 ; | |
11644 | int arg3 ; | |
11645 | PyObject * obj0 = 0 ; | |
11646 | PyObject * obj1 = 0 ; | |
11647 | PyObject * obj2 = 0 ; | |
11648 | char *kwnames[] = { | |
11649 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11650 | }; | |
11651 | ||
c24da6d6 | 11652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11656 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11657 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11658 | if (PyErr_Occurred()) SWIG_fail; |
11659 | { | |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | (arg1)->CrossHair(arg2,arg3); | |
11662 | ||
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
11666 | Py_INCREF(Py_None); resultobj = Py_None; | |
11667 | return resultobj; | |
11668 | fail: | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
c32bde28 | 11673 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11674 | PyObject *resultobj; |
11675 | wxDC *arg1 = (wxDC *) 0 ; | |
11676 | wxPoint *arg2 = 0 ; | |
11677 | wxPoint temp2 ; | |
11678 | PyObject * obj0 = 0 ; | |
11679 | PyObject * obj1 = 0 ; | |
11680 | char *kwnames[] = { | |
11681 | (char *) "self",(char *) "pt", NULL | |
11682 | }; | |
11683 | ||
c24da6d6 | 11684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11687 | { | |
11688 | arg2 = &temp2; | |
11689 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11690 | } | |
11691 | { | |
11692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11693 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11694 | ||
11695 | wxPyEndAllowThreads(__tstate); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | } | |
11698 | Py_INCREF(Py_None); resultobj = Py_None; | |
11699 | return resultobj; | |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
c32bde28 | 11705 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11706 | PyObject *resultobj; |
11707 | wxDC *arg1 = (wxDC *) 0 ; | |
11708 | int arg2 ; | |
11709 | int arg3 ; | |
11710 | int arg4 ; | |
11711 | int arg5 ; | |
11712 | int arg6 ; | |
11713 | int arg7 ; | |
11714 | PyObject * obj0 = 0 ; | |
11715 | PyObject * obj1 = 0 ; | |
11716 | PyObject * obj2 = 0 ; | |
11717 | PyObject * obj3 = 0 ; | |
11718 | PyObject * obj4 = 0 ; | |
11719 | PyObject * obj5 = 0 ; | |
11720 | PyObject * obj6 = 0 ; | |
11721 | char *kwnames[] = { | |
11722 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11723 | }; | |
11724 | ||
c24da6d6 | 11725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11728 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11729 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11730 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11731 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11732 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11733 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11734 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11735 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11736 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 11737 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11738 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11739 | if (PyErr_Occurred()) SWIG_fail; |
11740 | { | |
11741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11742 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11743 | ||
11744 | wxPyEndAllowThreads(__tstate); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
11747 | Py_INCREF(Py_None); resultobj = Py_None; | |
11748 | return resultobj; | |
11749 | fail: | |
11750 | return NULL; | |
11751 | } | |
11752 | ||
11753 | ||
c32bde28 | 11754 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11755 | PyObject *resultobj; |
11756 | wxDC *arg1 = (wxDC *) 0 ; | |
11757 | wxPoint *arg2 = 0 ; | |
11758 | wxPoint *arg3 = 0 ; | |
11759 | wxPoint *arg4 = 0 ; | |
11760 | wxPoint temp2 ; | |
11761 | wxPoint temp3 ; | |
11762 | wxPoint temp4 ; | |
11763 | PyObject * obj0 = 0 ; | |
11764 | PyObject * obj1 = 0 ; | |
11765 | PyObject * obj2 = 0 ; | |
11766 | PyObject * obj3 = 0 ; | |
11767 | char *kwnames[] = { | |
f5b96ee1 | 11768 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d55e5bfc RD |
11769 | }; |
11770 | ||
c24da6d6 | 11771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11774 | { | |
11775 | arg2 = &temp2; | |
11776 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11777 | } | |
11778 | { | |
11779 | arg3 = &temp3; | |
11780 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11781 | } | |
11782 | { | |
11783 | arg4 = &temp4; | |
11784 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11785 | } | |
11786 | { | |
11787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11788 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11789 | ||
11790 | wxPyEndAllowThreads(__tstate); | |
11791 | if (PyErr_Occurred()) SWIG_fail; | |
11792 | } | |
11793 | Py_INCREF(Py_None); resultobj = Py_None; | |
11794 | return resultobj; | |
11795 | fail: | |
11796 | return NULL; | |
11797 | } | |
11798 | ||
11799 | ||
c32bde28 | 11800 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11801 | PyObject *resultobj; |
11802 | wxDC *arg1 = (wxDC *) 0 ; | |
11803 | int arg2 ; | |
11804 | int arg3 ; | |
11805 | int arg4 ; | |
11806 | int arg5 ; | |
11807 | PyObject * obj0 = 0 ; | |
11808 | PyObject * obj1 = 0 ; | |
11809 | PyObject * obj2 = 0 ; | |
11810 | PyObject * obj3 = 0 ; | |
11811 | PyObject * obj4 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11814 | }; | |
11815 | ||
c24da6d6 | 11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11819 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11820 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11821 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11822 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11823 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11824 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11825 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11826 | if (PyErr_Occurred()) SWIG_fail; |
11827 | { | |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
11834 | Py_INCREF(Py_None); resultobj = Py_None; | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
c32bde28 | 11841 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11842 | PyObject *resultobj; |
11843 | wxDC *arg1 = (wxDC *) 0 ; | |
11844 | wxRect *arg2 = 0 ; | |
11845 | wxRect temp2 ; | |
11846 | PyObject * obj0 = 0 ; | |
11847 | PyObject * obj1 = 0 ; | |
11848 | char *kwnames[] = { | |
11849 | (char *) "self",(char *) "rect", NULL | |
11850 | }; | |
11851 | ||
c24da6d6 | 11852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11855 | { | |
11856 | arg2 = &temp2; | |
11857 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11858 | } | |
11859 | { | |
11860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11861 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11862 | ||
11863 | wxPyEndAllowThreads(__tstate); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | Py_INCREF(Py_None); resultobj = Py_None; | |
11867 | return resultobj; | |
11868 | fail: | |
11869 | return NULL; | |
11870 | } | |
11871 | ||
11872 | ||
c32bde28 | 11873 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11874 | PyObject *resultobj; |
11875 | wxDC *arg1 = (wxDC *) 0 ; | |
11876 | int arg2 ; | |
11877 | int arg3 ; | |
11878 | int arg4 ; | |
11879 | int arg5 ; | |
11880 | double arg6 ; | |
11881 | double arg7 ; | |
11882 | PyObject * obj0 = 0 ; | |
11883 | PyObject * obj1 = 0 ; | |
11884 | PyObject * obj2 = 0 ; | |
11885 | PyObject * obj3 = 0 ; | |
11886 | PyObject * obj4 = 0 ; | |
11887 | PyObject * obj5 = 0 ; | |
11888 | PyObject * obj6 = 0 ; | |
11889 | char *kwnames[] = { | |
f5b96ee1 | 11890 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11891 | }; |
11892 | ||
c24da6d6 | 11893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11896 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11897 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11898 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11899 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11900 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11901 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11902 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11903 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11904 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc | 11905 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11906 | arg7 = (double)SWIG_As_double(obj6); |
d55e5bfc RD |
11907 | if (PyErr_Occurred()) SWIG_fail; |
11908 | { | |
11909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11910 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11911 | ||
11912 | wxPyEndAllowThreads(__tstate); | |
11913 | if (PyErr_Occurred()) SWIG_fail; | |
11914 | } | |
11915 | Py_INCREF(Py_None); resultobj = Py_None; | |
11916 | return resultobj; | |
11917 | fail: | |
11918 | return NULL; | |
11919 | } | |
11920 | ||
11921 | ||
c32bde28 | 11922 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11923 | PyObject *resultobj; |
11924 | wxDC *arg1 = (wxDC *) 0 ; | |
11925 | wxPoint *arg2 = 0 ; | |
11926 | wxSize *arg3 = 0 ; | |
11927 | double arg4 ; | |
11928 | double arg5 ; | |
11929 | wxPoint temp2 ; | |
11930 | wxSize temp3 ; | |
11931 | PyObject * obj0 = 0 ; | |
11932 | PyObject * obj1 = 0 ; | |
11933 | PyObject * obj2 = 0 ; | |
11934 | PyObject * obj3 = 0 ; | |
11935 | PyObject * obj4 = 0 ; | |
11936 | char *kwnames[] = { | |
f5b96ee1 | 11937 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11938 | }; |
11939 | ||
c24da6d6 | 11940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11943 | { | |
11944 | arg2 = &temp2; | |
11945 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11946 | } | |
11947 | { | |
11948 | arg3 = &temp3; | |
11949 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11950 | } | |
c32bde28 | 11951 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc | 11952 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11953 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
11954 | if (PyErr_Occurred()) SWIG_fail; |
11955 | { | |
11956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11957 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11958 | ||
11959 | wxPyEndAllowThreads(__tstate); | |
11960 | if (PyErr_Occurred()) SWIG_fail; | |
11961 | } | |
11962 | Py_INCREF(Py_None); resultobj = Py_None; | |
11963 | return resultobj; | |
11964 | fail: | |
11965 | return NULL; | |
11966 | } | |
11967 | ||
11968 | ||
c32bde28 | 11969 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11970 | PyObject *resultobj; |
11971 | wxDC *arg1 = (wxDC *) 0 ; | |
11972 | int arg2 ; | |
11973 | int arg3 ; | |
11974 | PyObject * obj0 = 0 ; | |
11975 | PyObject * obj1 = 0 ; | |
11976 | PyObject * obj2 = 0 ; | |
11977 | char *kwnames[] = { | |
11978 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11979 | }; | |
11980 | ||
c24da6d6 | 11981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11984 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11985 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11986 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11987 | if (PyErr_Occurred()) SWIG_fail; |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | (arg1)->DrawPoint(arg2,arg3); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
11995 | Py_INCREF(Py_None); resultobj = Py_None; | |
11996 | return resultobj; | |
11997 | fail: | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
c32bde28 | 12002 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12003 | PyObject *resultobj; |
12004 | wxDC *arg1 = (wxDC *) 0 ; | |
12005 | wxPoint *arg2 = 0 ; | |
12006 | wxPoint temp2 ; | |
12007 | PyObject * obj0 = 0 ; | |
12008 | PyObject * obj1 = 0 ; | |
12009 | char *kwnames[] = { | |
12010 | (char *) "self",(char *) "pt", NULL | |
12011 | }; | |
12012 | ||
c24da6d6 | 12013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12016 | { | |
12017 | arg2 = &temp2; | |
12018 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12019 | } | |
12020 | { | |
12021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12022 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
12023 | ||
12024 | wxPyEndAllowThreads(__tstate); | |
12025 | if (PyErr_Occurred()) SWIG_fail; | |
12026 | } | |
12027 | Py_INCREF(Py_None); resultobj = Py_None; | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | return NULL; | |
12031 | } | |
12032 | ||
12033 | ||
c32bde28 | 12034 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12035 | PyObject *resultobj; |
12036 | wxDC *arg1 = (wxDC *) 0 ; | |
12037 | int arg2 ; | |
12038 | int arg3 ; | |
12039 | int arg4 ; | |
12040 | int arg5 ; | |
12041 | PyObject * obj0 = 0 ; | |
12042 | PyObject * obj1 = 0 ; | |
12043 | PyObject * obj2 = 0 ; | |
12044 | PyObject * obj3 = 0 ; | |
12045 | PyObject * obj4 = 0 ; | |
12046 | char *kwnames[] = { | |
12047 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12048 | }; | |
12049 | ||
c24da6d6 | 12050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12053 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12054 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12055 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12056 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12057 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12058 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12059 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12060 | if (PyErr_Occurred()) SWIG_fail; |
12061 | { | |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
12064 | ||
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | Py_INCREF(Py_None); resultobj = Py_None; | |
12069 | return resultobj; | |
12070 | fail: | |
12071 | return NULL; | |
12072 | } | |
12073 | ||
12074 | ||
c32bde28 | 12075 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12076 | PyObject *resultobj; |
12077 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12078 | wxRect *arg2 = 0 ; |
12079 | wxRect temp2 ; | |
d55e5bfc RD |
12080 | PyObject * obj0 = 0 ; |
12081 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12082 | char *kwnames[] = { |
c24da6d6 | 12083 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
12084 | }; |
12085 | ||
c24da6d6 | 12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12089 | { | |
12090 | arg2 = &temp2; | |
c24da6d6 | 12091 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
12092 | } |
12093 | { | |
12094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12095 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
12096 | |
12097 | wxPyEndAllowThreads(__tstate); | |
12098 | if (PyErr_Occurred()) SWIG_fail; | |
12099 | } | |
12100 | Py_INCREF(Py_None); resultobj = Py_None; | |
12101 | return resultobj; | |
12102 | fail: | |
12103 | return NULL; | |
12104 | } | |
12105 | ||
12106 | ||
c32bde28 | 12107 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12108 | PyObject *resultobj; |
12109 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12110 | wxPoint *arg2 = 0 ; |
12111 | wxSize *arg3 = 0 ; | |
12112 | wxPoint temp2 ; | |
12113 | wxSize temp3 ; | |
d55e5bfc RD |
12114 | PyObject * obj0 = 0 ; |
12115 | PyObject * obj1 = 0 ; | |
c24da6d6 | 12116 | PyObject * obj2 = 0 ; |
d55e5bfc | 12117 | char *kwnames[] = { |
c24da6d6 | 12118 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
12119 | }; |
12120 | ||
c24da6d6 | 12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12124 | { | |
12125 | arg2 = &temp2; | |
c24da6d6 RD |
12126 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12127 | } | |
12128 | { | |
12129 | arg3 = &temp3; | |
12130 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12131 | } |
12132 | { | |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12134 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
12135 | |
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
12139 | Py_INCREF(Py_None); resultobj = Py_None; | |
12140 | return resultobj; | |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
c32bde28 | 12146 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12147 | PyObject *resultobj; |
12148 | wxDC *arg1 = (wxDC *) 0 ; | |
12149 | int arg2 ; | |
12150 | int arg3 ; | |
12151 | int arg4 ; | |
12152 | int arg5 ; | |
12153 | double arg6 ; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | PyObject * obj1 = 0 ; | |
12156 | PyObject * obj2 = 0 ; | |
12157 | PyObject * obj3 = 0 ; | |
12158 | PyObject * obj4 = 0 ; | |
12159 | PyObject * obj5 = 0 ; | |
12160 | char *kwnames[] = { | |
12161 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
12162 | }; | |
12163 | ||
c24da6d6 | 12164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
12165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12167 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12168 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12169 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12170 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12171 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12172 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12173 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 12174 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12175 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc RD |
12176 | if (PyErr_Occurred()) SWIG_fail; |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | Py_INCREF(Py_None); resultobj = Py_None; | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
c32bde28 | 12191 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12192 | PyObject *resultobj; |
12193 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12194 | wxRect *arg2 = 0 ; |
12195 | double arg3 ; | |
12196 | wxRect temp2 ; | |
d55e5bfc RD |
12197 | PyObject * obj0 = 0 ; |
12198 | PyObject * obj1 = 0 ; | |
12199 | PyObject * obj2 = 0 ; | |
d55e5bfc | 12200 | char *kwnames[] = { |
c24da6d6 | 12201 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
12202 | }; |
12203 | ||
c24da6d6 | 12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12207 | { | |
12208 | arg2 = &temp2; | |
c24da6d6 | 12209 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 12210 | } |
c32bde28 | 12211 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
12212 | if (PyErr_Occurred()) SWIG_fail; |
12213 | { | |
12214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12215 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
12216 | |
12217 | wxPyEndAllowThreads(__tstate); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | Py_INCREF(Py_None); resultobj = Py_None; | |
12221 | return resultobj; | |
12222 | fail: | |
12223 | return NULL; | |
12224 | } | |
12225 | ||
12226 | ||
c32bde28 | 12227 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12228 | PyObject *resultobj; |
12229 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12230 | wxPoint *arg2 = 0 ; |
12231 | wxSize *arg3 = 0 ; | |
12232 | double arg4 ; | |
12233 | wxPoint temp2 ; | |
12234 | wxSize temp3 ; | |
d55e5bfc RD |
12235 | PyObject * obj0 = 0 ; |
12236 | PyObject * obj1 = 0 ; | |
12237 | PyObject * obj2 = 0 ; | |
c24da6d6 | 12238 | PyObject * obj3 = 0 ; |
d55e5bfc | 12239 | char *kwnames[] = { |
c24da6d6 | 12240 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
12241 | }; |
12242 | ||
c24da6d6 | 12243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12246 | { | |
12247 | arg2 = &temp2; | |
c24da6d6 | 12248 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 12249 | } |
c24da6d6 RD |
12250 | { |
12251 | arg3 = &temp3; | |
12252 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12253 | } | |
c32bde28 | 12254 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
12255 | if (PyErr_Occurred()) SWIG_fail; |
12256 | { | |
12257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12258 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
12259 | |
12260 | wxPyEndAllowThreads(__tstate); | |
12261 | if (PyErr_Occurred()) SWIG_fail; | |
12262 | } | |
12263 | Py_INCREF(Py_None); resultobj = Py_None; | |
12264 | return resultobj; | |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
c32bde28 | 12270 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12271 | PyObject *resultobj; |
12272 | wxDC *arg1 = (wxDC *) 0 ; | |
12273 | int arg2 ; | |
12274 | int arg3 ; | |
12275 | int arg4 ; | |
12276 | PyObject * obj0 = 0 ; | |
12277 | PyObject * obj1 = 0 ; | |
12278 | PyObject * obj2 = 0 ; | |
12279 | PyObject * obj3 = 0 ; | |
12280 | char *kwnames[] = { | |
12281 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
12282 | }; | |
12283 | ||
c24da6d6 | 12284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12287 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12288 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12289 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12290 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12291 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12292 | if (PyErr_Occurred()) SWIG_fail; |
12293 | { | |
12294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12295 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
12296 | ||
12297 | wxPyEndAllowThreads(__tstate); | |
12298 | if (PyErr_Occurred()) SWIG_fail; | |
12299 | } | |
12300 | Py_INCREF(Py_None); resultobj = Py_None; | |
12301 | return resultobj; | |
12302 | fail: | |
12303 | return NULL; | |
12304 | } | |
12305 | ||
12306 | ||
c32bde28 | 12307 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12308 | PyObject *resultobj; |
12309 | wxDC *arg1 = (wxDC *) 0 ; | |
12310 | wxPoint *arg2 = 0 ; | |
12311 | int arg3 ; | |
12312 | wxPoint temp2 ; | |
12313 | PyObject * obj0 = 0 ; | |
12314 | PyObject * obj1 = 0 ; | |
12315 | PyObject * obj2 = 0 ; | |
12316 | char *kwnames[] = { | |
12317 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
12318 | }; | |
12319 | ||
c24da6d6 | 12320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12323 | { | |
12324 | arg2 = &temp2; | |
12325 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12326 | } | |
c32bde28 | 12327 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12328 | if (PyErr_Occurred()) SWIG_fail; |
12329 | { | |
12330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12331 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
12332 | ||
12333 | wxPyEndAllowThreads(__tstate); | |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
12335 | } | |
12336 | Py_INCREF(Py_None); resultobj = Py_None; | |
12337 | return resultobj; | |
12338 | fail: | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
c32bde28 | 12343 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12344 | PyObject *resultobj; |
12345 | wxDC *arg1 = (wxDC *) 0 ; | |
12346 | int arg2 ; | |
12347 | int arg3 ; | |
12348 | int arg4 ; | |
12349 | int arg5 ; | |
12350 | PyObject * obj0 = 0 ; | |
12351 | PyObject * obj1 = 0 ; | |
12352 | PyObject * obj2 = 0 ; | |
12353 | PyObject * obj3 = 0 ; | |
12354 | PyObject * obj4 = 0 ; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12357 | }; | |
12358 | ||
c24da6d6 | 12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12362 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12363 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12364 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12365 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12366 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12367 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12368 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12369 | if (PyErr_Occurred()) SWIG_fail; |
12370 | { | |
12371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12372 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
12373 | ||
12374 | wxPyEndAllowThreads(__tstate); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
12377 | Py_INCREF(Py_None); resultobj = Py_None; | |
12378 | return resultobj; | |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
c32bde28 | 12384 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12385 | PyObject *resultobj; |
12386 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12387 | wxRect *arg2 = 0 ; |
12388 | wxRect temp2 ; | |
d55e5bfc RD |
12389 | PyObject * obj0 = 0 ; |
12390 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12391 | char *kwnames[] = { |
c24da6d6 | 12392 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
12393 | }; |
12394 | ||
c24da6d6 | 12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12398 | { | |
12399 | arg2 = &temp2; | |
c24da6d6 | 12400 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
12401 | } |
12402 | { | |
12403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12404 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
12405 | |
12406 | wxPyEndAllowThreads(__tstate); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
12409 | Py_INCREF(Py_None); resultobj = Py_None; | |
12410 | return resultobj; | |
12411 | fail: | |
12412 | return NULL; | |
12413 | } | |
12414 | ||
12415 | ||
c32bde28 | 12416 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12417 | PyObject *resultobj; |
12418 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12419 | wxPoint *arg2 = 0 ; |
12420 | wxSize *arg3 = 0 ; | |
12421 | wxPoint temp2 ; | |
12422 | wxSize temp3 ; | |
d55e5bfc RD |
12423 | PyObject * obj0 = 0 ; |
12424 | PyObject * obj1 = 0 ; | |
c24da6d6 | 12425 | PyObject * obj2 = 0 ; |
d55e5bfc | 12426 | char *kwnames[] = { |
c24da6d6 | 12427 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
12428 | }; |
12429 | ||
c24da6d6 | 12430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12433 | { | |
12434 | arg2 = &temp2; | |
c24da6d6 RD |
12435 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12436 | } | |
12437 | { | |
12438 | arg3 = &temp3; | |
12439 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12440 | } |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12443 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
12444 | |
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | Py_INCREF(Py_None); resultobj = Py_None; | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
c32bde28 | 12455 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12456 | PyObject *resultobj; |
12457 | wxDC *arg1 = (wxDC *) 0 ; | |
12458 | wxIcon *arg2 = 0 ; | |
12459 | int arg3 ; | |
12460 | int arg4 ; | |
12461 | PyObject * obj0 = 0 ; | |
12462 | PyObject * obj1 = 0 ; | |
12463 | PyObject * obj2 = 0 ; | |
12464 | PyObject * obj3 = 0 ; | |
12465 | char *kwnames[] = { | |
12466 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
12467 | }; | |
12468 | ||
c24da6d6 | 12469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12474 | SWIG_fail; | |
12475 | if (arg2 == NULL) { | |
12476 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12477 | SWIG_fail; | |
12478 | } | |
c32bde28 | 12479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12480 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12481 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12482 | if (PyErr_Occurred()) SWIG_fail; |
12483 | { | |
12484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12485 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
12486 | ||
12487 | wxPyEndAllowThreads(__tstate); | |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
12489 | } | |
12490 | Py_INCREF(Py_None); resultobj = Py_None; | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | return NULL; | |
12494 | } | |
12495 | ||
12496 | ||
c32bde28 | 12497 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12498 | PyObject *resultobj; |
12499 | wxDC *arg1 = (wxDC *) 0 ; | |
12500 | wxIcon *arg2 = 0 ; | |
12501 | wxPoint *arg3 = 0 ; | |
12502 | wxPoint temp3 ; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | PyObject * obj1 = 0 ; | |
12505 | PyObject * obj2 = 0 ; | |
12506 | char *kwnames[] = { | |
12507 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
12508 | }; | |
12509 | ||
c24da6d6 | 12510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12515 | SWIG_fail; | |
12516 | if (arg2 == NULL) { | |
12517 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12518 | SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | arg3 = &temp3; | |
12522 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12523 | } | |
12524 | { | |
12525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12526 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
12531 | Py_INCREF(Py_None); resultobj = Py_None; | |
12532 | return resultobj; | |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
c32bde28 | 12538 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12539 | PyObject *resultobj; |
12540 | wxDC *arg1 = (wxDC *) 0 ; | |
12541 | wxBitmap *arg2 = 0 ; | |
12542 | int arg3 ; | |
12543 | int arg4 ; | |
ae8162c8 | 12544 | bool arg5 = (bool) false ; |
d55e5bfc RD |
12545 | PyObject * obj0 = 0 ; |
12546 | PyObject * obj1 = 0 ; | |
12547 | PyObject * obj2 = 0 ; | |
12548 | PyObject * obj3 = 0 ; | |
12549 | PyObject * obj4 = 0 ; | |
12550 | char *kwnames[] = { | |
12551 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
12552 | }; | |
12553 | ||
c24da6d6 | 12554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12559 | SWIG_fail; | |
12560 | if (arg2 == NULL) { | |
12561 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12562 | SWIG_fail; | |
12563 | } | |
c32bde28 | 12564 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12565 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12566 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12567 | if (PyErr_Occurred()) SWIG_fail; |
12568 | if (obj4) { | |
c32bde28 | 12569 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
12570 | if (PyErr_Occurred()) SWIG_fail; |
12571 | } | |
12572 | { | |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12574 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12575 | ||
12576 | wxPyEndAllowThreads(__tstate); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
12579 | Py_INCREF(Py_None); resultobj = Py_None; | |
12580 | return resultobj; | |
12581 | fail: | |
12582 | return NULL; | |
12583 | } | |
12584 | ||
12585 | ||
c32bde28 | 12586 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12587 | PyObject *resultobj; |
12588 | wxDC *arg1 = (wxDC *) 0 ; | |
12589 | wxBitmap *arg2 = 0 ; | |
12590 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12591 | bool arg4 = (bool) false ; |
d55e5bfc RD |
12592 | wxPoint temp3 ; |
12593 | PyObject * obj0 = 0 ; | |
12594 | PyObject * obj1 = 0 ; | |
12595 | PyObject * obj2 = 0 ; | |
12596 | PyObject * obj3 = 0 ; | |
12597 | char *kwnames[] = { | |
12598 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12599 | }; | |
12600 | ||
c24da6d6 | 12601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12604 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12606 | SWIG_fail; | |
12607 | if (arg2 == NULL) { | |
12608 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12609 | SWIG_fail; | |
12610 | } | |
12611 | { | |
12612 | arg3 = &temp3; | |
12613 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12614 | } | |
12615 | if (obj3) { | |
c32bde28 | 12616 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
12617 | if (PyErr_Occurred()) SWIG_fail; |
12618 | } | |
12619 | { | |
12620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12621 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12622 | ||
12623 | wxPyEndAllowThreads(__tstate); | |
12624 | if (PyErr_Occurred()) SWIG_fail; | |
12625 | } | |
12626 | Py_INCREF(Py_None); resultobj = Py_None; | |
12627 | return resultobj; | |
12628 | fail: | |
12629 | return NULL; | |
12630 | } | |
12631 | ||
12632 | ||
c32bde28 | 12633 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12634 | PyObject *resultobj; |
12635 | wxDC *arg1 = (wxDC *) 0 ; | |
12636 | wxString *arg2 = 0 ; | |
12637 | int arg3 ; | |
12638 | int arg4 ; | |
ae8162c8 | 12639 | bool temp2 = false ; |
d55e5bfc RD |
12640 | PyObject * obj0 = 0 ; |
12641 | PyObject * obj1 = 0 ; | |
12642 | PyObject * obj2 = 0 ; | |
12643 | PyObject * obj3 = 0 ; | |
12644 | char *kwnames[] = { | |
12645 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12646 | }; | |
12647 | ||
c24da6d6 | 12648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12651 | { | |
12652 | arg2 = wxString_in_helper(obj1); | |
12653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12654 | temp2 = true; |
d55e5bfc | 12655 | } |
c32bde28 | 12656 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12657 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12658 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12659 | if (PyErr_Occurred()) SWIG_fail; |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | Py_INCREF(Py_None); resultobj = Py_None; | |
12668 | { | |
12669 | if (temp2) | |
12670 | delete arg2; | |
12671 | } | |
12672 | return resultobj; | |
12673 | fail: | |
12674 | { | |
12675 | if (temp2) | |
12676 | delete arg2; | |
12677 | } | |
12678 | return NULL; | |
12679 | } | |
12680 | ||
12681 | ||
c32bde28 | 12682 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12683 | PyObject *resultobj; |
12684 | wxDC *arg1 = (wxDC *) 0 ; | |
12685 | wxString *arg2 = 0 ; | |
12686 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12687 | bool temp2 = false ; |
d55e5bfc RD |
12688 | wxPoint temp3 ; |
12689 | PyObject * obj0 = 0 ; | |
12690 | PyObject * obj1 = 0 ; | |
12691 | PyObject * obj2 = 0 ; | |
12692 | char *kwnames[] = { | |
12693 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12694 | }; | |
12695 | ||
c24da6d6 | 12696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12699 | { | |
12700 | arg2 = wxString_in_helper(obj1); | |
12701 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12702 | temp2 = true; |
d55e5bfc RD |
12703 | } |
12704 | { | |
12705 | arg3 = &temp3; | |
12706 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | Py_INCREF(Py_None); resultobj = Py_None; | |
12716 | { | |
12717 | if (temp2) | |
12718 | delete arg2; | |
12719 | } | |
12720 | return resultobj; | |
12721 | fail: | |
12722 | { | |
12723 | if (temp2) | |
12724 | delete arg2; | |
12725 | } | |
12726 | return NULL; | |
12727 | } | |
12728 | ||
12729 | ||
c32bde28 | 12730 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12731 | PyObject *resultobj; |
12732 | wxDC *arg1 = (wxDC *) 0 ; | |
12733 | wxString *arg2 = 0 ; | |
12734 | int arg3 ; | |
12735 | int arg4 ; | |
12736 | double arg5 ; | |
ae8162c8 | 12737 | bool temp2 = false ; |
d55e5bfc RD |
12738 | PyObject * obj0 = 0 ; |
12739 | PyObject * obj1 = 0 ; | |
12740 | PyObject * obj2 = 0 ; | |
12741 | PyObject * obj3 = 0 ; | |
12742 | PyObject * obj4 = 0 ; | |
12743 | char *kwnames[] = { | |
12744 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12745 | }; | |
12746 | ||
c24da6d6 | 12747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12750 | { | |
12751 | arg2 = wxString_in_helper(obj1); | |
12752 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12753 | temp2 = true; |
d55e5bfc | 12754 | } |
c32bde28 | 12755 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12756 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12757 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12758 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12759 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
12760 | if (PyErr_Occurred()) SWIG_fail; |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | Py_INCREF(Py_None); resultobj = Py_None; | |
12769 | { | |
12770 | if (temp2) | |
12771 | delete arg2; | |
12772 | } | |
12773 | return resultobj; | |
12774 | fail: | |
12775 | { | |
12776 | if (temp2) | |
12777 | delete arg2; | |
12778 | } | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
c32bde28 | 12783 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12784 | PyObject *resultobj; |
12785 | wxDC *arg1 = (wxDC *) 0 ; | |
12786 | wxString *arg2 = 0 ; | |
12787 | wxPoint *arg3 = 0 ; | |
12788 | double arg4 ; | |
ae8162c8 | 12789 | bool temp2 = false ; |
d55e5bfc RD |
12790 | wxPoint temp3 ; |
12791 | PyObject * obj0 = 0 ; | |
12792 | PyObject * obj1 = 0 ; | |
12793 | PyObject * obj2 = 0 ; | |
12794 | PyObject * obj3 = 0 ; | |
12795 | char *kwnames[] = { | |
12796 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12797 | }; | |
12798 | ||
c24da6d6 | 12799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12802 | { | |
12803 | arg2 = wxString_in_helper(obj1); | |
12804 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12805 | temp2 = true; |
d55e5bfc RD |
12806 | } |
12807 | { | |
12808 | arg3 = &temp3; | |
12809 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12810 | } | |
c32bde28 | 12811 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
12812 | if (PyErr_Occurred()) SWIG_fail; |
12813 | { | |
12814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12815 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12816 | ||
12817 | wxPyEndAllowThreads(__tstate); | |
12818 | if (PyErr_Occurred()) SWIG_fail; | |
12819 | } | |
12820 | Py_INCREF(Py_None); resultobj = Py_None; | |
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_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12836 | PyObject *resultobj; |
12837 | wxDC *arg1 = (wxDC *) 0 ; | |
12838 | int arg2 ; | |
12839 | int arg3 ; | |
12840 | int arg4 ; | |
12841 | int arg5 ; | |
12842 | wxDC *arg6 = (wxDC *) 0 ; | |
12843 | int arg7 ; | |
12844 | int arg8 ; | |
12845 | int arg9 = (int) wxCOPY ; | |
ae8162c8 | 12846 | bool arg10 = (bool) false ; |
d55e5bfc RD |
12847 | int arg11 = (int) -1 ; |
12848 | int arg12 = (int) -1 ; | |
12849 | bool result; | |
12850 | PyObject * obj0 = 0 ; | |
12851 | PyObject * obj1 = 0 ; | |
12852 | PyObject * obj2 = 0 ; | |
12853 | PyObject * obj3 = 0 ; | |
12854 | PyObject * obj4 = 0 ; | |
12855 | PyObject * obj5 = 0 ; | |
12856 | PyObject * obj6 = 0 ; | |
12857 | PyObject * obj7 = 0 ; | |
12858 | PyObject * obj8 = 0 ; | |
12859 | PyObject * obj9 = 0 ; | |
12860 | PyObject * obj10 = 0 ; | |
12861 | PyObject * obj11 = 0 ; | |
12862 | char *kwnames[] = { | |
12863 | (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 | |
12864 | }; | |
12865 | ||
c24da6d6 | 12866 | 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; |
d55e5bfc RD |
12867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12869 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12870 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12871 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12872 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12873 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12874 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12875 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12876 | if (PyErr_Occurred()) SWIG_fail; |
12877 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12879 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc | 12880 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12881 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
12882 | if (PyErr_Occurred()) SWIG_fail; |
12883 | if (obj8) { | |
c32bde28 | 12884 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
12885 | if (PyErr_Occurred()) SWIG_fail; |
12886 | } | |
12887 | if (obj9) { | |
c32bde28 | 12888 | arg10 = (bool)SWIG_As_bool(obj9); |
d55e5bfc RD |
12889 | if (PyErr_Occurred()) SWIG_fail; |
12890 | } | |
12891 | if (obj10) { | |
c32bde28 | 12892 | arg11 = (int)SWIG_As_int(obj10); |
d55e5bfc RD |
12893 | if (PyErr_Occurred()) SWIG_fail; |
12894 | } | |
12895 | if (obj11) { | |
c32bde28 | 12896 | arg12 = (int)SWIG_As_int(obj11); |
d55e5bfc RD |
12897 | if (PyErr_Occurred()) SWIG_fail; |
12898 | } | |
12899 | { | |
12900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12901 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12902 | ||
12903 | wxPyEndAllowThreads(__tstate); | |
12904 | if (PyErr_Occurred()) SWIG_fail; | |
12905 | } | |
12906 | { | |
12907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12908 | } | |
12909 | return resultobj; | |
12910 | fail: | |
12911 | return NULL; | |
12912 | } | |
12913 | ||
12914 | ||
c32bde28 | 12915 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12916 | PyObject *resultobj; |
12917 | wxDC *arg1 = (wxDC *) 0 ; | |
12918 | wxPoint *arg2 = 0 ; | |
12919 | wxSize *arg3 = 0 ; | |
12920 | wxDC *arg4 = (wxDC *) 0 ; | |
12921 | wxPoint *arg5 = 0 ; | |
12922 | int arg6 = (int) wxCOPY ; | |
ae8162c8 | 12923 | bool arg7 = (bool) false ; |
d55e5bfc RD |
12924 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12925 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12926 | bool result; | |
12927 | wxPoint temp2 ; | |
12928 | wxSize temp3 ; | |
12929 | wxPoint temp5 ; | |
12930 | wxPoint temp8 ; | |
12931 | PyObject * obj0 = 0 ; | |
12932 | PyObject * obj1 = 0 ; | |
12933 | PyObject * obj2 = 0 ; | |
12934 | PyObject * obj3 = 0 ; | |
12935 | PyObject * obj4 = 0 ; | |
12936 | PyObject * obj5 = 0 ; | |
12937 | PyObject * obj6 = 0 ; | |
12938 | PyObject * obj7 = 0 ; | |
12939 | char *kwnames[] = { | |
12940 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12941 | }; | |
12942 | ||
c24da6d6 | 12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12946 | { | |
12947 | arg2 = &temp2; | |
12948 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12949 | } | |
12950 | { | |
12951 | arg3 = &temp3; | |
12952 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12953 | } | |
12954 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12956 | { | |
12957 | arg5 = &temp5; | |
12958 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12959 | } | |
12960 | if (obj5) { | |
c32bde28 | 12961 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
12962 | if (PyErr_Occurred()) SWIG_fail; |
12963 | } | |
12964 | if (obj6) { | |
c32bde28 | 12965 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
12966 | if (PyErr_Occurred()) SWIG_fail; |
12967 | } | |
12968 | if (obj7) { | |
12969 | { | |
12970 | arg8 = &temp8; | |
12971 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12972 | } | |
12973 | } | |
12974 | { | |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 RD |
12976 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | { | |
12982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12983 | } | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
c32bde28 | 12990 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
12991 | PyObject *resultobj; |
12992 | wxDC *arg1 = (wxDC *) 0 ; | |
12993 | int arg2 ; | |
12994 | int arg3 ; | |
12995 | int arg4 ; | |
12996 | int arg5 ; | |
12997 | PyObject * obj0 = 0 ; | |
12998 | PyObject * obj1 = 0 ; | |
12999 | PyObject * obj2 = 0 ; | |
13000 | PyObject * obj3 = 0 ; | |
13001 | PyObject * obj4 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
13004 | }; | |
13005 | ||
13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13009 | arg2 = (int)SWIG_As_int(obj1); |
c24da6d6 | 13010 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13011 | arg3 = (int)SWIG_As_int(obj2); |
c24da6d6 | 13012 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13013 | arg4 = (int)SWIG_As_int(obj3); |
c24da6d6 | 13014 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13015 | arg5 = (int)SWIG_As_int(obj4); |
c24da6d6 RD |
13016 | if (PyErr_Occurred()) SWIG_fail; |
13017 | { | |
13018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13019 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
13020 | ||
13021 | wxPyEndAllowThreads(__tstate); | |
13022 | if (PyErr_Occurred()) SWIG_fail; | |
13023 | } | |
13024 | Py_INCREF(Py_None); resultobj = Py_None; | |
13025 | return resultobj; | |
13026 | fail: | |
13027 | return NULL; | |
13028 | } | |
13029 | ||
13030 | ||
c32bde28 | 13031 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
13032 | PyObject *resultobj; |
13033 | wxDC *arg1 = (wxDC *) 0 ; | |
13034 | wxPoint *arg2 = 0 ; | |
13035 | wxSize *arg3 = 0 ; | |
13036 | wxPoint temp2 ; | |
13037 | wxSize temp3 ; | |
13038 | PyObject * obj0 = 0 ; | |
13039 | PyObject * obj1 = 0 ; | |
13040 | PyObject * obj2 = 0 ; | |
13041 | char *kwnames[] = { | |
13042 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
13043 | }; | |
13044 | ||
13045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13048 | { | |
13049 | arg2 = &temp2; | |
13050 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13051 | } | |
13052 | { | |
13053 | arg3 = &temp3; | |
13054 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13055 | } | |
13056 | { | |
13057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13058 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13059 | ||
13060 | wxPyEndAllowThreads(__tstate); | |
13061 | if (PyErr_Occurred()) SWIG_fail; | |
13062 | } | |
13063 | Py_INCREF(Py_None); resultobj = Py_None; | |
13064 | return resultobj; | |
13065 | fail: | |
13066 | return NULL; | |
13067 | } | |
13068 | ||
13069 | ||
c32bde28 | 13070 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
13071 | PyObject *resultobj; |
13072 | wxDC *arg1 = (wxDC *) 0 ; | |
13073 | wxRegion *arg2 = 0 ; | |
13074 | PyObject * obj0 = 0 ; | |
13075 | PyObject * obj1 = 0 ; | |
13076 | char *kwnames[] = { | |
13077 | (char *) "self",(char *) "region", NULL | |
13078 | }; | |
13079 | ||
13080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
13081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
13084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13085 | SWIG_fail; | |
13086 | if (arg2 == NULL) { | |
13087 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13088 | SWIG_fail; | |
13089 | } | |
13090 | { | |
13091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13092 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
13093 | ||
13094 | wxPyEndAllowThreads(__tstate); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
13097 | Py_INCREF(Py_None); resultobj = Py_None; | |
13098 | return resultobj; | |
13099 | fail: | |
13100 | return NULL; | |
13101 | } | |
13102 | ||
13103 | ||
c32bde28 | 13104 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
13105 | PyObject *resultobj; |
13106 | wxDC *arg1 = (wxDC *) 0 ; | |
13107 | wxRect *arg2 = 0 ; | |
13108 | wxRect temp2 ; | |
13109 | PyObject * obj0 = 0 ; | |
13110 | PyObject * obj1 = 0 ; | |
13111 | char *kwnames[] = { | |
13112 | (char *) "self",(char *) "rect", NULL | |
13113 | }; | |
13114 | ||
13115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
13116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13118 | { | |
13119 | arg2 = &temp2; | |
13120 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13121 | } | |
13122 | { | |
13123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13124 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
13125 | |
13126 | wxPyEndAllowThreads(__tstate); | |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
13128 | } | |
c24da6d6 | 13129 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13130 | return resultobj; |
13131 | fail: | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
c32bde28 | 13136 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13137 | PyObject *resultobj; |
13138 | wxDC *arg1 = (wxDC *) 0 ; | |
13139 | int arg2 ; | |
13140 | wxPoint *arg3 = (wxPoint *) 0 ; | |
13141 | int arg4 = (int) 0 ; | |
13142 | int arg5 = (int) 0 ; | |
13143 | PyObject * obj0 = 0 ; | |
13144 | PyObject * obj1 = 0 ; | |
13145 | PyObject * obj2 = 0 ; | |
13146 | PyObject * obj3 = 0 ; | |
13147 | char *kwnames[] = { | |
13148 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
13149 | }; | |
13150 | ||
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13154 | { | |
13155 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
13156 | if (arg3 == NULL) SWIG_fail; | |
13157 | } | |
13158 | if (obj2) { | |
c32bde28 | 13159 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13160 | if (PyErr_Occurred()) SWIG_fail; |
13161 | } | |
13162 | if (obj3) { | |
c32bde28 | 13163 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13164 | if (PyErr_Occurred()) SWIG_fail; |
13165 | } | |
13166 | { | |
13167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13168 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
13169 | ||
13170 | wxPyEndAllowThreads(__tstate); | |
13171 | if (PyErr_Occurred()) SWIG_fail; | |
13172 | } | |
13173 | Py_INCREF(Py_None); resultobj = Py_None; | |
13174 | { | |
13175 | if (arg3) delete [] arg3; | |
13176 | } | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | { | |
13180 | if (arg3) delete [] arg3; | |
13181 | } | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
c32bde28 | 13186 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13187 | PyObject *resultobj; |
13188 | wxDC *arg1 = (wxDC *) 0 ; | |
13189 | int arg2 ; | |
13190 | wxPoint *arg3 = (wxPoint *) 0 ; | |
13191 | int arg4 = (int) 0 ; | |
13192 | int arg5 = (int) 0 ; | |
13193 | int arg6 = (int) wxODDEVEN_RULE ; | |
13194 | PyObject * obj0 = 0 ; | |
13195 | PyObject * obj1 = 0 ; | |
13196 | PyObject * obj2 = 0 ; | |
13197 | PyObject * obj3 = 0 ; | |
13198 | PyObject * obj4 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13206 | { | |
13207 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
13208 | if (arg3 == NULL) SWIG_fail; | |
13209 | } | |
13210 | if (obj2) { | |
c32bde28 | 13211 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13212 | if (PyErr_Occurred()) SWIG_fail; |
13213 | } | |
13214 | if (obj3) { | |
c32bde28 | 13215 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13216 | if (PyErr_Occurred()) SWIG_fail; |
13217 | } | |
13218 | if (obj4) { | |
c32bde28 | 13219 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
13220 | if (PyErr_Occurred()) SWIG_fail; |
13221 | } | |
13222 | { | |
13223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13224 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
13225 | ||
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | Py_INCREF(Py_None); resultobj = Py_None; | |
13230 | { | |
13231 | if (arg3) delete [] arg3; | |
13232 | } | |
13233 | return resultobj; | |
13234 | fail: | |
13235 | { | |
13236 | if (arg3) delete [] arg3; | |
13237 | } | |
13238 | return NULL; | |
13239 | } | |
13240 | ||
13241 | ||
c32bde28 | 13242 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13243 | PyObject *resultobj; |
13244 | wxDC *arg1 = (wxDC *) 0 ; | |
13245 | wxString *arg2 = 0 ; | |
13246 | wxRect *arg3 = 0 ; | |
13247 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
13248 | int arg5 = (int) -1 ; | |
ae8162c8 | 13249 | bool temp2 = false ; |
d55e5bfc RD |
13250 | wxRect temp3 ; |
13251 | PyObject * obj0 = 0 ; | |
13252 | PyObject * obj1 = 0 ; | |
13253 | PyObject * obj2 = 0 ; | |
13254 | PyObject * obj3 = 0 ; | |
13255 | PyObject * obj4 = 0 ; | |
13256 | char *kwnames[] = { | |
13257 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
13258 | }; | |
13259 | ||
13260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13263 | { | |
13264 | arg2 = wxString_in_helper(obj1); | |
13265 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13266 | temp2 = true; |
d55e5bfc RD |
13267 | } |
13268 | { | |
13269 | arg3 = &temp3; | |
13270 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
13271 | } | |
13272 | if (obj3) { | |
c32bde28 | 13273 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13274 | if (PyErr_Occurred()) SWIG_fail; |
13275 | } | |
13276 | if (obj4) { | |
c32bde28 | 13277 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
13278 | if (PyErr_Occurred()) SWIG_fail; |
13279 | } | |
13280 | { | |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | Py_INCREF(Py_None); resultobj = Py_None; | |
13288 | { | |
13289 | if (temp2) | |
13290 | delete arg2; | |
13291 | } | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | { | |
13295 | if (temp2) | |
13296 | delete arg2; | |
13297 | } | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
c32bde28 | 13302 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13303 | PyObject *resultobj; |
13304 | wxDC *arg1 = (wxDC *) 0 ; | |
13305 | wxString *arg2 = 0 ; | |
13306 | wxBitmap *arg3 = 0 ; | |
13307 | wxRect *arg4 = 0 ; | |
13308 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
13309 | int arg6 = (int) -1 ; | |
13310 | wxRect result; | |
ae8162c8 | 13311 | bool temp2 = false ; |
d55e5bfc RD |
13312 | wxRect temp4 ; |
13313 | PyObject * obj0 = 0 ; | |
13314 | PyObject * obj1 = 0 ; | |
13315 | PyObject * obj2 = 0 ; | |
13316 | PyObject * obj3 = 0 ; | |
13317 | PyObject * obj4 = 0 ; | |
13318 | PyObject * obj5 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13326 | { | |
13327 | arg2 = wxString_in_helper(obj1); | |
13328 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13329 | temp2 = true; |
d55e5bfc RD |
13330 | } |
13331 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
13332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13333 | SWIG_fail; | |
13334 | if (arg3 == NULL) { | |
13335 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13336 | SWIG_fail; | |
13337 | } | |
13338 | { | |
13339 | arg4 = &temp4; | |
13340 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
13341 | } | |
13342 | if (obj4) { | |
c32bde28 | 13343 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
13344 | if (PyErr_Occurred()) SWIG_fail; |
13345 | } | |
13346 | if (obj5) { | |
c32bde28 | 13347 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
13348 | if (PyErr_Occurred()) SWIG_fail; |
13349 | } | |
13350 | { | |
13351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13352 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
13353 | ||
13354 | wxPyEndAllowThreads(__tstate); | |
13355 | if (PyErr_Occurred()) SWIG_fail; | |
13356 | } | |
13357 | { | |
13358 | wxRect * resultptr; | |
13359 | resultptr = new wxRect((wxRect &) result); | |
13360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13361 | } | |
13362 | { | |
13363 | if (temp2) | |
13364 | delete arg2; | |
13365 | } | |
13366 | return resultobj; | |
13367 | fail: | |
13368 | { | |
13369 | if (temp2) | |
13370 | delete arg2; | |
13371 | } | |
13372 | return NULL; | |
13373 | } | |
13374 | ||
13375 | ||
c32bde28 | 13376 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13377 | PyObject *resultobj; |
13378 | wxDC *arg1 = (wxDC *) 0 ; | |
13379 | int arg2 ; | |
13380 | wxPoint *arg3 = (wxPoint *) 0 ; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | PyObject * obj1 = 0 ; | |
13383 | char *kwnames[] = { | |
13384 | (char *) "self",(char *) "points", NULL | |
13385 | }; | |
13386 | ||
13387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
13388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13390 | { | |
13391 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
13392 | if (arg3 == NULL) SWIG_fail; | |
13393 | } | |
13394 | { | |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | (arg1)->DrawSpline(arg2,arg3); | |
13397 | ||
13398 | wxPyEndAllowThreads(__tstate); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
13401 | Py_INCREF(Py_None); resultobj = Py_None; | |
13402 | { | |
13403 | if (arg3) delete [] arg3; | |
13404 | } | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | { | |
13408 | if (arg3) delete [] arg3; | |
13409 | } | |
13410 | return NULL; | |
13411 | } | |
13412 | ||
13413 | ||
c32bde28 | 13414 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13415 | PyObject *resultobj; |
13416 | wxDC *arg1 = (wxDC *) 0 ; | |
13417 | PyObject * obj0 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
13423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13425 | { | |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13427 | (arg1)->Clear(); | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
13432 | Py_INCREF(Py_None); resultobj = Py_None; | |
13433 | return resultobj; | |
13434 | fail: | |
13435 | return NULL; | |
13436 | } | |
13437 | ||
13438 | ||
c32bde28 | 13439 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13440 | PyObject *resultobj; |
13441 | wxDC *arg1 = (wxDC *) 0 ; | |
13442 | wxString *arg2 = 0 ; | |
13443 | bool result; | |
ae8162c8 | 13444 | bool temp2 = false ; |
d55e5bfc RD |
13445 | PyObject * obj0 = 0 ; |
13446 | PyObject * obj1 = 0 ; | |
13447 | char *kwnames[] = { | |
13448 | (char *) "self",(char *) "message", NULL | |
13449 | }; | |
13450 | ||
13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
13452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13454 | { | |
13455 | arg2 = wxString_in_helper(obj1); | |
13456 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13457 | temp2 = true; |
d55e5bfc RD |
13458 | } |
13459 | { | |
13460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13461 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
13462 | ||
13463 | wxPyEndAllowThreads(__tstate); | |
13464 | if (PyErr_Occurred()) SWIG_fail; | |
13465 | } | |
13466 | { | |
13467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13468 | } | |
13469 | { | |
13470 | if (temp2) | |
13471 | delete arg2; | |
13472 | } | |
13473 | return resultobj; | |
13474 | fail: | |
13475 | { | |
13476 | if (temp2) | |
13477 | delete arg2; | |
13478 | } | |
13479 | return NULL; | |
13480 | } | |
13481 | ||
13482 | ||
c32bde28 | 13483 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13484 | PyObject *resultobj; |
13485 | wxDC *arg1 = (wxDC *) 0 ; | |
13486 | PyObject * obj0 = 0 ; | |
13487 | char *kwnames[] = { | |
13488 | (char *) "self", NULL | |
13489 | }; | |
13490 | ||
13491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
13492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13494 | { | |
13495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13496 | (arg1)->EndDoc(); | |
13497 | ||
13498 | wxPyEndAllowThreads(__tstate); | |
13499 | if (PyErr_Occurred()) SWIG_fail; | |
13500 | } | |
13501 | Py_INCREF(Py_None); resultobj = Py_None; | |
13502 | return resultobj; | |
13503 | fail: | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
c32bde28 | 13508 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13509 | PyObject *resultobj; |
13510 | wxDC *arg1 = (wxDC *) 0 ; | |
13511 | PyObject * obj0 = 0 ; | |
13512 | char *kwnames[] = { | |
13513 | (char *) "self", NULL | |
13514 | }; | |
13515 | ||
13516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
13517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13519 | { | |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13521 | (arg1)->StartPage(); | |
13522 | ||
13523 | wxPyEndAllowThreads(__tstate); | |
13524 | if (PyErr_Occurred()) SWIG_fail; | |
13525 | } | |
13526 | Py_INCREF(Py_None); resultobj = Py_None; | |
13527 | return resultobj; | |
13528 | fail: | |
13529 | return NULL; | |
13530 | } | |
13531 | ||
13532 | ||
c32bde28 | 13533 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13534 | PyObject *resultobj; |
13535 | wxDC *arg1 = (wxDC *) 0 ; | |
13536 | PyObject * obj0 = 0 ; | |
13537 | char *kwnames[] = { | |
13538 | (char *) "self", NULL | |
13539 | }; | |
13540 | ||
13541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
13542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13544 | { | |
13545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13546 | (arg1)->EndPage(); | |
13547 | ||
13548 | wxPyEndAllowThreads(__tstate); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | } | |
13551 | Py_INCREF(Py_None); resultobj = Py_None; | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
c32bde28 | 13558 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13559 | PyObject *resultobj; |
13560 | wxDC *arg1 = (wxDC *) 0 ; | |
13561 | wxFont *arg2 = 0 ; | |
13562 | PyObject * obj0 = 0 ; | |
13563 | PyObject * obj1 = 0 ; | |
13564 | char *kwnames[] = { | |
13565 | (char *) "self",(char *) "font", NULL | |
13566 | }; | |
13567 | ||
13568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13573 | SWIG_fail; | |
13574 | if (arg2 == NULL) { | |
13575 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13576 | SWIG_fail; | |
13577 | } | |
13578 | { | |
13579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13580 | (arg1)->SetFont((wxFont const &)*arg2); | |
13581 | ||
13582 | wxPyEndAllowThreads(__tstate); | |
13583 | if (PyErr_Occurred()) SWIG_fail; | |
13584 | } | |
13585 | Py_INCREF(Py_None); resultobj = Py_None; | |
13586 | return resultobj; | |
13587 | fail: | |
13588 | return NULL; | |
13589 | } | |
13590 | ||
13591 | ||
c32bde28 | 13592 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13593 | PyObject *resultobj; |
13594 | wxDC *arg1 = (wxDC *) 0 ; | |
13595 | wxPen *arg2 = 0 ; | |
13596 | PyObject * obj0 = 0 ; | |
13597 | PyObject * obj1 = 0 ; | |
13598 | char *kwnames[] = { | |
13599 | (char *) "self",(char *) "pen", NULL | |
13600 | }; | |
13601 | ||
13602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13607 | SWIG_fail; | |
13608 | if (arg2 == NULL) { | |
13609 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13610 | SWIG_fail; | |
13611 | } | |
13612 | { | |
13613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13614 | (arg1)->SetPen((wxPen const &)*arg2); | |
13615 | ||
13616 | wxPyEndAllowThreads(__tstate); | |
13617 | if (PyErr_Occurred()) SWIG_fail; | |
13618 | } | |
13619 | Py_INCREF(Py_None); resultobj = Py_None; | |
13620 | return resultobj; | |
13621 | fail: | |
13622 | return NULL; | |
13623 | } | |
13624 | ||
13625 | ||
c32bde28 | 13626 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13627 | PyObject *resultobj; |
13628 | wxDC *arg1 = (wxDC *) 0 ; | |
13629 | wxBrush *arg2 = 0 ; | |
13630 | PyObject * obj0 = 0 ; | |
13631 | PyObject * obj1 = 0 ; | |
13632 | char *kwnames[] = { | |
13633 | (char *) "self",(char *) "brush", NULL | |
13634 | }; | |
13635 | ||
13636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13640 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13641 | SWIG_fail; | |
13642 | if (arg2 == NULL) { | |
13643 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13644 | SWIG_fail; | |
13645 | } | |
13646 | { | |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
13653 | Py_INCREF(Py_None); resultobj = Py_None; | |
13654 | return resultobj; | |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
c32bde28 | 13660 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13661 | PyObject *resultobj; |
13662 | wxDC *arg1 = (wxDC *) 0 ; | |
13663 | wxBrush *arg2 = 0 ; | |
13664 | PyObject * obj0 = 0 ; | |
13665 | PyObject * obj1 = 0 ; | |
13666 | char *kwnames[] = { | |
13667 | (char *) "self",(char *) "brush", NULL | |
13668 | }; | |
13669 | ||
13670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13674 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13675 | SWIG_fail; | |
13676 | if (arg2 == NULL) { | |
13677 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13678 | SWIG_fail; | |
13679 | } | |
13680 | { | |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13683 | ||
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
13687 | Py_INCREF(Py_None); resultobj = Py_None; | |
13688 | return resultobj; | |
13689 | fail: | |
13690 | return NULL; | |
13691 | } | |
13692 | ||
13693 | ||
c32bde28 | 13694 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13695 | PyObject *resultobj; |
13696 | wxDC *arg1 = (wxDC *) 0 ; | |
13697 | int arg2 ; | |
13698 | PyObject * obj0 = 0 ; | |
13699 | PyObject * obj1 = 0 ; | |
13700 | char *kwnames[] = { | |
13701 | (char *) "self",(char *) "mode", NULL | |
13702 | }; | |
13703 | ||
13704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13707 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13708 | if (PyErr_Occurred()) SWIG_fail; |
13709 | { | |
13710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13711 | (arg1)->SetBackgroundMode(arg2); | |
13712 | ||
13713 | wxPyEndAllowThreads(__tstate); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
13715 | } | |
13716 | Py_INCREF(Py_None); resultobj = Py_None; | |
13717 | return resultobj; | |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
c32bde28 | 13723 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13724 | PyObject *resultobj; |
13725 | wxDC *arg1 = (wxDC *) 0 ; | |
13726 | wxPalette *arg2 = 0 ; | |
13727 | PyObject * obj0 = 0 ; | |
13728 | PyObject * obj1 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self",(char *) "palette", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13737 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13738 | SWIG_fail; | |
13739 | if (arg2 == NULL) { | |
13740 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13741 | SWIG_fail; | |
13742 | } | |
13743 | { | |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13745 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13746 | ||
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | Py_INCREF(Py_None); resultobj = Py_None; | |
13751 | return resultobj; | |
13752 | fail: | |
13753 | return NULL; | |
13754 | } | |
13755 | ||
13756 | ||
c32bde28 | 13757 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13758 | PyObject *resultobj; |
13759 | wxDC *arg1 = (wxDC *) 0 ; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | char *kwnames[] = { | |
13762 | (char *) "self", NULL | |
13763 | }; | |
13764 | ||
13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | (arg1)->DestroyClippingRegion(); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | Py_INCREF(Py_None); resultobj = Py_None; | |
13776 | return resultobj; | |
13777 | fail: | |
13778 | return NULL; | |
13779 | } | |
13780 | ||
13781 | ||
c32bde28 | 13782 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13783 | PyObject *resultobj; |
13784 | wxDC *arg1 = (wxDC *) 0 ; | |
13785 | int *arg2 = (int *) 0 ; | |
13786 | int *arg3 = (int *) 0 ; | |
13787 | int *arg4 = (int *) 0 ; | |
13788 | int *arg5 = (int *) 0 ; | |
13789 | int temp2 ; | |
c32bde28 | 13790 | int res2 = 0 ; |
d55e5bfc | 13791 | int temp3 ; |
c32bde28 | 13792 | int res3 = 0 ; |
d55e5bfc | 13793 | int temp4 ; |
c32bde28 | 13794 | int res4 = 0 ; |
d55e5bfc | 13795 | int temp5 ; |
c32bde28 | 13796 | int res5 = 0 ; |
d55e5bfc RD |
13797 | PyObject * obj0 = 0 ; |
13798 | char *kwnames[] = { | |
13799 | (char *) "self", NULL | |
13800 | }; | |
13801 | ||
c32bde28 RD |
13802 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13803 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13804 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13805 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; |
13807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13809 | { | |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13811 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
13816 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13817 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13818 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13819 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13820 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13821 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13822 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13823 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13824 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13825 | return resultobj; |
13826 | fail: | |
13827 | return NULL; | |
13828 | } | |
13829 | ||
13830 | ||
c32bde28 | 13831 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13832 | PyObject *resultobj; |
13833 | wxDC *arg1 = (wxDC *) 0 ; | |
13834 | wxRect result; | |
13835 | PyObject * obj0 = 0 ; | |
13836 | char *kwnames[] = { | |
13837 | (char *) "self", NULL | |
13838 | }; | |
13839 | ||
13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | result = wxDC_GetClippingRect(arg1); | |
13846 | ||
13847 | wxPyEndAllowThreads(__tstate); | |
13848 | if (PyErr_Occurred()) SWIG_fail; | |
13849 | } | |
13850 | { | |
13851 | wxRect * resultptr; | |
13852 | resultptr = new wxRect((wxRect &) result); | |
13853 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13854 | } | |
13855 | return resultobj; | |
13856 | fail: | |
13857 | return NULL; | |
13858 | } | |
13859 | ||
13860 | ||
c32bde28 | 13861 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13862 | PyObject *resultobj; |
13863 | wxDC *arg1 = (wxDC *) 0 ; | |
13864 | int result; | |
13865 | PyObject * obj0 = 0 ; | |
13866 | char *kwnames[] = { | |
13867 | (char *) "self", NULL | |
13868 | }; | |
13869 | ||
13870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13873 | { | |
13874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13875 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13876 | ||
13877 | wxPyEndAllowThreads(__tstate); | |
13878 | if (PyErr_Occurred()) SWIG_fail; | |
13879 | } | |
c32bde28 | 13880 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13881 | return resultobj; |
13882 | fail: | |
13883 | return NULL; | |
13884 | } | |
13885 | ||
13886 | ||
c32bde28 | 13887 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13888 | PyObject *resultobj; |
13889 | wxDC *arg1 = (wxDC *) 0 ; | |
13890 | int result; | |
13891 | PyObject * obj0 = 0 ; | |
13892 | char *kwnames[] = { | |
13893 | (char *) "self", NULL | |
13894 | }; | |
13895 | ||
13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13899 | { | |
13900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13901 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13902 | ||
13903 | wxPyEndAllowThreads(__tstate); | |
13904 | if (PyErr_Occurred()) SWIG_fail; | |
13905 | } | |
c32bde28 | 13906 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13907 | return resultobj; |
13908 | fail: | |
13909 | return NULL; | |
13910 | } | |
13911 | ||
13912 | ||
c32bde28 | 13913 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13914 | PyObject *resultobj; |
13915 | wxDC *arg1 = (wxDC *) 0 ; | |
13916 | wxString *arg2 = 0 ; | |
13917 | int *arg3 = (int *) 0 ; | |
13918 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 13919 | bool temp2 = false ; |
d55e5bfc | 13920 | int temp3 ; |
c32bde28 | 13921 | int res3 = 0 ; |
d55e5bfc | 13922 | int temp4 ; |
c32bde28 | 13923 | int res4 = 0 ; |
d55e5bfc RD |
13924 | PyObject * obj0 = 0 ; |
13925 | PyObject * obj1 = 0 ; | |
13926 | char *kwnames[] = { | |
13927 | (char *) "self",(char *) "string", NULL | |
13928 | }; | |
13929 | ||
c32bde28 RD |
13930 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13931 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
13933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13935 | { | |
13936 | arg2 = wxString_in_helper(obj1); | |
13937 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13938 | temp2 = true; |
d55e5bfc RD |
13939 | } |
13940 | { | |
13941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13942 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13943 | ||
13944 | wxPyEndAllowThreads(__tstate); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | } | |
13947 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13948 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13949 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13950 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13951 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13952 | { |
13953 | if (temp2) | |
13954 | delete arg2; | |
13955 | } | |
13956 | return resultobj; | |
13957 | fail: | |
13958 | { | |
13959 | if (temp2) | |
13960 | delete arg2; | |
13961 | } | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
c32bde28 | 13966 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13967 | PyObject *resultobj; |
13968 | wxDC *arg1 = (wxDC *) 0 ; | |
13969 | wxString *arg2 = 0 ; | |
13970 | int *arg3 = (int *) 0 ; | |
13971 | int *arg4 = (int *) 0 ; | |
13972 | int *arg5 = (int *) 0 ; | |
13973 | int *arg6 = (int *) 0 ; | |
13974 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 13975 | bool temp2 = false ; |
d55e5bfc | 13976 | int temp3 ; |
c32bde28 | 13977 | int res3 = 0 ; |
d55e5bfc | 13978 | int temp4 ; |
c32bde28 | 13979 | int res4 = 0 ; |
d55e5bfc | 13980 | int temp5 ; |
c32bde28 | 13981 | int res5 = 0 ; |
d55e5bfc | 13982 | int temp6 ; |
c32bde28 | 13983 | int res6 = 0 ; |
d55e5bfc RD |
13984 | PyObject * obj0 = 0 ; |
13985 | PyObject * obj1 = 0 ; | |
13986 | PyObject * obj2 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13989 | }; | |
13990 | ||
c32bde28 RD |
13991 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13992 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13993 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13994 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13998 | { | |
13999 | arg2 = wxString_in_helper(obj1); | |
14000 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14001 | temp2 = true; |
d55e5bfc RD |
14002 | } |
14003 | if (obj2) { | |
14004 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
14005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14006 | } | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14015 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
14016 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
14017 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
14018 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
14019 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
14020 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
14021 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
14022 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14023 | { |
14024 | if (temp2) | |
14025 | delete arg2; | |
14026 | } | |
14027 | return resultobj; | |
14028 | fail: | |
14029 | { | |
14030 | if (temp2) | |
14031 | delete arg2; | |
14032 | } | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
c32bde28 | 14037 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14038 | PyObject *resultobj; |
14039 | wxDC *arg1 = (wxDC *) 0 ; | |
14040 | wxString *arg2 = 0 ; | |
14041 | int *arg3 = (int *) 0 ; | |
14042 | int *arg4 = (int *) 0 ; | |
14043 | int *arg5 = (int *) 0 ; | |
14044 | wxFont *arg6 = (wxFont *) NULL ; | |
ae8162c8 | 14045 | bool temp2 = false ; |
d55e5bfc | 14046 | int temp3 ; |
c32bde28 | 14047 | int res3 = 0 ; |
d55e5bfc | 14048 | int temp4 ; |
c32bde28 | 14049 | int res4 = 0 ; |
d55e5bfc | 14050 | int temp5 ; |
c32bde28 | 14051 | int res5 = 0 ; |
d55e5bfc RD |
14052 | PyObject * obj0 = 0 ; |
14053 | PyObject * obj1 = 0 ; | |
14054 | PyObject * obj2 = 0 ; | |
14055 | char *kwnames[] = { | |
14056 | (char *) "self",(char *) "text",(char *) "font", NULL | |
14057 | }; | |
14058 | ||
c32bde28 RD |
14059 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
14060 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
14061 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14065 | { | |
14066 | arg2 = wxString_in_helper(obj1); | |
14067 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14068 | temp2 = true; |
d55e5bfc RD |
14069 | } |
14070 | if (obj2) { | |
14071 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
14072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14073 | } | |
14074 | { | |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
14077 | ||
14078 | wxPyEndAllowThreads(__tstate); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14082 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
14083 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
14084 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
14085 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
14086 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
14087 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14088 | { |
14089 | if (temp2) | |
14090 | delete arg2; | |
14091 | } | |
14092 | return resultobj; | |
14093 | fail: | |
14094 | { | |
14095 | if (temp2) | |
14096 | delete arg2; | |
14097 | } | |
14098 | return NULL; | |
14099 | } | |
14100 | ||
14101 | ||
c32bde28 | 14102 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14103 | PyObject *resultobj; |
14104 | wxDC *arg1 = (wxDC *) 0 ; | |
14105 | wxString *arg2 = 0 ; | |
14106 | wxArrayInt result; | |
ae8162c8 | 14107 | bool temp2 = false ; |
d55e5bfc RD |
14108 | PyObject * obj0 = 0 ; |
14109 | PyObject * obj1 = 0 ; | |
14110 | char *kwnames[] = { | |
14111 | (char *) "self",(char *) "text", NULL | |
14112 | }; | |
14113 | ||
14114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
14115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14117 | { | |
14118 | arg2 = wxString_in_helper(obj1); | |
14119 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14120 | temp2 = true; |
d55e5bfc RD |
14121 | } |
14122 | { | |
14123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14124 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
14125 | ||
14126 | wxPyEndAllowThreads(__tstate); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | } | |
14129 | { | |
14130 | resultobj = PyList_New(0); | |
14131 | size_t idx; | |
14132 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
14133 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
14134 | PyList_Append(resultobj, val); | |
14135 | Py_DECREF(val); | |
14136 | } | |
14137 | } | |
14138 | { | |
14139 | if (temp2) | |
14140 | delete arg2; | |
14141 | } | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | { | |
14145 | if (temp2) | |
14146 | delete arg2; | |
14147 | } | |
14148 | return NULL; | |
14149 | } | |
14150 | ||
14151 | ||
c32bde28 | 14152 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14153 | PyObject *resultobj; |
14154 | wxDC *arg1 = (wxDC *) 0 ; | |
14155 | wxSize result; | |
14156 | PyObject * obj0 = 0 ; | |
14157 | char *kwnames[] = { | |
14158 | (char *) "self", NULL | |
14159 | }; | |
14160 | ||
14161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
14162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14164 | { | |
14165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14166 | result = (arg1)->GetSize(); | |
14167 | ||
14168 | wxPyEndAllowThreads(__tstate); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
14170 | } | |
14171 | { | |
14172 | wxSize * resultptr; | |
14173 | resultptr = new wxSize((wxSize &) result); | |
14174 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14175 | } | |
14176 | return resultobj; | |
14177 | fail: | |
14178 | return NULL; | |
14179 | } | |
14180 | ||
14181 | ||
c32bde28 | 14182 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14183 | PyObject *resultobj; |
14184 | wxDC *arg1 = (wxDC *) 0 ; | |
14185 | int *arg2 = (int *) 0 ; | |
14186 | int *arg3 = (int *) 0 ; | |
14187 | int temp2 ; | |
c32bde28 | 14188 | int res2 = 0 ; |
d55e5bfc | 14189 | int temp3 ; |
c32bde28 | 14190 | int res3 = 0 ; |
d55e5bfc RD |
14191 | PyObject * obj0 = 0 ; |
14192 | char *kwnames[] = { | |
14193 | (char *) "self", NULL | |
14194 | }; | |
14195 | ||
c32bde28 RD |
14196 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14197 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; |
14199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14201 | { | |
14202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14203 | (arg1)->GetSize(arg2,arg3); | |
14204 | ||
14205 | wxPyEndAllowThreads(__tstate); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
14208 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14209 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14210 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14211 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14212 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14213 | return resultobj; |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
c32bde28 | 14219 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14220 | PyObject *resultobj; |
14221 | wxDC *arg1 = (wxDC *) 0 ; | |
14222 | wxSize result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14231 | { | |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14233 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
14234 | ||
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
14238 | { | |
14239 | wxSize * resultptr; | |
14240 | resultptr = new wxSize((wxSize &) result); | |
14241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14242 | } | |
14243 | return resultobj; | |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
c32bde28 | 14249 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14250 | PyObject *resultobj; |
14251 | wxDC *arg1 = (wxDC *) 0 ; | |
14252 | int *arg2 = (int *) 0 ; | |
14253 | int *arg3 = (int *) 0 ; | |
14254 | int temp2 ; | |
c32bde28 | 14255 | int res2 = 0 ; |
d55e5bfc | 14256 | int temp3 ; |
c32bde28 | 14257 | int res3 = 0 ; |
d55e5bfc RD |
14258 | PyObject * obj0 = 0 ; |
14259 | char *kwnames[] = { | |
14260 | (char *) "self", NULL | |
14261 | }; | |
14262 | ||
c32bde28 RD |
14263 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14264 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
14266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14268 | { | |
14269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14270 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
14271 | ||
14272 | wxPyEndAllowThreads(__tstate); | |
14273 | if (PyErr_Occurred()) SWIG_fail; | |
14274 | } | |
14275 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14276 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14277 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14278 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14279 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14280 | return resultobj; |
14281 | fail: | |
14282 | return NULL; | |
14283 | } | |
14284 | ||
14285 | ||
c32bde28 | 14286 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14287 | PyObject *resultobj; |
14288 | wxDC *arg1 = (wxDC *) 0 ; | |
14289 | int arg2 ; | |
14290 | int result; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | PyObject * obj1 = 0 ; | |
14293 | char *kwnames[] = { | |
14294 | (char *) "self",(char *) "x", NULL | |
14295 | }; | |
14296 | ||
14297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
14298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14300 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14301 | if (PyErr_Occurred()) SWIG_fail; |
14302 | { | |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
c32bde28 | 14309 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14310 | return resultobj; |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
c32bde28 | 14316 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14317 | PyObject *resultobj; |
14318 | wxDC *arg1 = (wxDC *) 0 ; | |
14319 | int arg2 ; | |
14320 | int result; | |
14321 | PyObject * obj0 = 0 ; | |
14322 | PyObject * obj1 = 0 ; | |
14323 | char *kwnames[] = { | |
14324 | (char *) "self",(char *) "y", NULL | |
14325 | }; | |
14326 | ||
14327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
14328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14330 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14331 | if (PyErr_Occurred()) SWIG_fail; |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
c32bde28 | 14339 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14340 | return resultobj; |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
c32bde28 | 14346 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14347 | PyObject *resultobj; |
14348 | wxDC *arg1 = (wxDC *) 0 ; | |
14349 | int arg2 ; | |
14350 | int result; | |
14351 | PyObject * obj0 = 0 ; | |
14352 | PyObject * obj1 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self",(char *) "x", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
14358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14360 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14361 | if (PyErr_Occurred()) SWIG_fail; |
14362 | { | |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
c32bde28 | 14369 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14370 | return resultobj; |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
c32bde28 | 14376 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14377 | PyObject *resultobj; |
14378 | wxDC *arg1 = (wxDC *) 0 ; | |
14379 | int arg2 ; | |
14380 | int result; | |
14381 | PyObject * obj0 = 0 ; | |
14382 | PyObject * obj1 = 0 ; | |
14383 | char *kwnames[] = { | |
14384 | (char *) "self",(char *) "y", NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
14388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14390 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14391 | if (PyErr_Occurred()) SWIG_fail; |
14392 | { | |
14393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14394 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
14395 | ||
14396 | wxPyEndAllowThreads(__tstate); | |
14397 | if (PyErr_Occurred()) SWIG_fail; | |
14398 | } | |
c32bde28 | 14399 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14400 | return resultobj; |
14401 | fail: | |
14402 | return NULL; | |
14403 | } | |
14404 | ||
14405 | ||
c32bde28 | 14406 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14407 | PyObject *resultobj; |
14408 | wxDC *arg1 = (wxDC *) 0 ; | |
14409 | int arg2 ; | |
14410 | int result; | |
14411 | PyObject * obj0 = 0 ; | |
14412 | PyObject * obj1 = 0 ; | |
14413 | char *kwnames[] = { | |
14414 | (char *) "self",(char *) "x", NULL | |
14415 | }; | |
14416 | ||
14417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
14418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14420 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14421 | if (PyErr_Occurred()) SWIG_fail; |
14422 | { | |
14423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14424 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
14425 | ||
14426 | wxPyEndAllowThreads(__tstate); | |
14427 | if (PyErr_Occurred()) SWIG_fail; | |
14428 | } | |
c32bde28 | 14429 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14430 | return resultobj; |
14431 | fail: | |
14432 | return NULL; | |
14433 | } | |
14434 | ||
14435 | ||
c32bde28 | 14436 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14437 | PyObject *resultobj; |
14438 | wxDC *arg1 = (wxDC *) 0 ; | |
14439 | int arg2 ; | |
14440 | int result; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | PyObject * obj1 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (char *) "self",(char *) "y", NULL | |
14445 | }; | |
14446 | ||
14447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
14448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14450 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14451 | if (PyErr_Occurred()) SWIG_fail; |
14452 | { | |
14453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14454 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
14455 | ||
14456 | wxPyEndAllowThreads(__tstate); | |
14457 | if (PyErr_Occurred()) SWIG_fail; | |
14458 | } | |
c32bde28 | 14459 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14460 | return resultobj; |
14461 | fail: | |
14462 | return NULL; | |
14463 | } | |
14464 | ||
14465 | ||
c32bde28 | 14466 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14467 | PyObject *resultobj; |
14468 | wxDC *arg1 = (wxDC *) 0 ; | |
14469 | int arg2 ; | |
14470 | int result; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | PyObject * obj1 = 0 ; | |
14473 | char *kwnames[] = { | |
14474 | (char *) "self",(char *) "x", NULL | |
14475 | }; | |
14476 | ||
14477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
14478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14480 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14481 | if (PyErr_Occurred()) SWIG_fail; |
14482 | { | |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
c32bde28 | 14489 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14490 | return resultobj; |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
c32bde28 | 14496 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14497 | PyObject *resultobj; |
14498 | wxDC *arg1 = (wxDC *) 0 ; | |
14499 | int arg2 ; | |
14500 | int result; | |
14501 | PyObject * obj0 = 0 ; | |
14502 | PyObject * obj1 = 0 ; | |
14503 | char *kwnames[] = { | |
14504 | (char *) "self",(char *) "y", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
14508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14510 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14511 | if (PyErr_Occurred()) SWIG_fail; |
14512 | { | |
14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14514 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
14515 | ||
14516 | wxPyEndAllowThreads(__tstate); | |
14517 | if (PyErr_Occurred()) SWIG_fail; | |
14518 | } | |
c32bde28 | 14519 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14520 | return resultobj; |
14521 | fail: | |
14522 | return NULL; | |
14523 | } | |
14524 | ||
14525 | ||
c32bde28 | 14526 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14527 | PyObject *resultobj; |
14528 | wxDC *arg1 = (wxDC *) 0 ; | |
14529 | bool result; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self", NULL | |
14533 | }; | |
14534 | ||
14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14538 | { | |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
14545 | { | |
14546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14547 | } | |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
c32bde28 | 14554 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14555 | PyObject *resultobj; |
14556 | wxDC *arg1 = (wxDC *) 0 ; | |
14557 | bool result; | |
14558 | PyObject * obj0 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | { | |
14574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14575 | } | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
c32bde28 | 14582 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14583 | PyObject *resultobj; |
14584 | wxDC *arg1 = (wxDC *) 0 ; | |
14585 | int result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14594 | { | |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14596 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14597 | ||
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
c32bde28 | 14601 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14602 | return resultobj; |
14603 | fail: | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
c32bde28 | 14608 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14609 | PyObject *resultobj; |
14610 | wxDC *arg1 = (wxDC *) 0 ; | |
14611 | wxSize result; | |
14612 | PyObject * obj0 = 0 ; | |
14613 | char *kwnames[] = { | |
14614 | (char *) "self", NULL | |
14615 | }; | |
14616 | ||
14617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = ((wxDC const *)arg1)->GetPPI(); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
14627 | { | |
14628 | wxSize * resultptr; | |
14629 | resultptr = new wxSize((wxSize &) result); | |
14630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14631 | } | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
c32bde28 | 14638 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14639 | PyObject *resultobj; |
14640 | wxDC *arg1 = (wxDC *) 0 ; | |
14641 | bool result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14650 | { | |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | { | |
14658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14659 | } | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
c32bde28 | 14666 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14667 | PyObject *resultobj; |
14668 | wxDC *arg1 = (wxDC *) 0 ; | |
14669 | int result; | |
14670 | PyObject * obj0 = 0 ; | |
14671 | char *kwnames[] = { | |
14672 | (char *) "self", NULL | |
14673 | }; | |
14674 | ||
14675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
c32bde28 | 14685 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14686 | return resultobj; |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
c32bde28 | 14692 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14693 | PyObject *resultobj; |
14694 | wxDC *arg1 = (wxDC *) 0 ; | |
14695 | wxBrush *result; | |
14696 | PyObject * obj0 = 0 ; | |
14697 | char *kwnames[] = { | |
14698 | (char *) "self", NULL | |
14699 | }; | |
14700 | ||
14701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14704 | { | |
14705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14706 | { | |
14707 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14708 | result = (wxBrush *) &_result_ref; | |
14709 | } | |
14710 | ||
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | { | |
14715 | wxBrush* resultptr = new wxBrush(*result); | |
14716 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14717 | } | |
14718 | return resultobj; | |
14719 | fail: | |
14720 | return NULL; | |
14721 | } | |
14722 | ||
14723 | ||
c32bde28 | 14724 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14725 | PyObject *resultobj; |
14726 | wxDC *arg1 = (wxDC *) 0 ; | |
14727 | wxBrush *result; | |
14728 | PyObject * obj0 = 0 ; | |
14729 | char *kwnames[] = { | |
14730 | (char *) "self", NULL | |
14731 | }; | |
14732 | ||
14733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14736 | { | |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | { | |
14739 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14740 | result = (wxBrush *) &_result_ref; | |
14741 | } | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
14746 | { | |
14747 | wxBrush* resultptr = new wxBrush(*result); | |
14748 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14749 | } | |
14750 | return resultobj; | |
14751 | fail: | |
14752 | return NULL; | |
14753 | } | |
14754 | ||
14755 | ||
c32bde28 | 14756 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14757 | PyObject *resultobj; |
14758 | wxDC *arg1 = (wxDC *) 0 ; | |
14759 | wxFont *result; | |
14760 | PyObject * obj0 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "self", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14768 | { | |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | { | |
14771 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14772 | result = (wxFont *) &_result_ref; | |
14773 | } | |
14774 | ||
14775 | wxPyEndAllowThreads(__tstate); | |
14776 | if (PyErr_Occurred()) SWIG_fail; | |
14777 | } | |
14778 | { | |
14779 | wxFont* resultptr = new wxFont(*result); | |
14780 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14781 | } | |
14782 | return resultobj; | |
14783 | fail: | |
14784 | return NULL; | |
14785 | } | |
14786 | ||
14787 | ||
c32bde28 | 14788 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14789 | PyObject *resultobj; |
14790 | wxDC *arg1 = (wxDC *) 0 ; | |
14791 | wxPen *result; | |
14792 | PyObject * obj0 = 0 ; | |
14793 | char *kwnames[] = { | |
14794 | (char *) "self", NULL | |
14795 | }; | |
14796 | ||
14797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | { | |
14803 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14804 | result = (wxPen *) &_result_ref; | |
14805 | } | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | { | |
14811 | wxPen* resultptr = new wxPen(*result); | |
14812 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14813 | } | |
14814 | return resultobj; | |
14815 | fail: | |
14816 | return NULL; | |
14817 | } | |
14818 | ||
14819 | ||
c32bde28 | 14820 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14821 | PyObject *resultobj; |
14822 | wxDC *arg1 = (wxDC *) 0 ; | |
14823 | wxColour *result; | |
14824 | PyObject * obj0 = 0 ; | |
14825 | char *kwnames[] = { | |
14826 | (char *) "self", NULL | |
14827 | }; | |
14828 | ||
14829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14832 | { | |
14833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14834 | { | |
14835 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14836 | result = (wxColour *) &_result_ref; | |
14837 | } | |
14838 | ||
14839 | wxPyEndAllowThreads(__tstate); | |
14840 | if (PyErr_Occurred()) SWIG_fail; | |
14841 | } | |
14842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
c32bde28 | 14849 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14850 | PyObject *resultobj; |
14851 | wxDC *arg1 = (wxDC *) 0 ; | |
14852 | wxColour *result; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | char *kwnames[] = { | |
14855 | (char *) "self", NULL | |
14856 | }; | |
14857 | ||
14858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14861 | { | |
14862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14863 | { | |
14864 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14865 | result = (wxColour *) &_result_ref; | |
14866 | } | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
c32bde28 | 14878 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14879 | PyObject *resultobj; |
14880 | wxDC *arg1 = (wxDC *) 0 ; | |
14881 | wxColour *arg2 = 0 ; | |
14882 | wxColour temp2 ; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | PyObject * obj1 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self",(char *) "colour", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14892 | { | |
14893 | arg2 = &temp2; | |
14894 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14895 | } | |
14896 | { | |
14897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14898 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14899 | ||
14900 | wxPyEndAllowThreads(__tstate); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
14902 | } | |
14903 | Py_INCREF(Py_None); resultobj = Py_None; | |
14904 | return resultobj; | |
14905 | fail: | |
14906 | return NULL; | |
14907 | } | |
14908 | ||
14909 | ||
c32bde28 | 14910 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14911 | PyObject *resultobj; |
14912 | wxDC *arg1 = (wxDC *) 0 ; | |
14913 | wxColour *arg2 = 0 ; | |
14914 | wxColour temp2 ; | |
14915 | PyObject * obj0 = 0 ; | |
14916 | PyObject * obj1 = 0 ; | |
14917 | char *kwnames[] = { | |
14918 | (char *) "self",(char *) "colour", NULL | |
14919 | }; | |
14920 | ||
14921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14924 | { | |
14925 | arg2 = &temp2; | |
14926 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14927 | } | |
14928 | { | |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
14935 | Py_INCREF(Py_None); resultobj = Py_None; | |
14936 | return resultobj; | |
14937 | fail: | |
14938 | return NULL; | |
14939 | } | |
14940 | ||
14941 | ||
c32bde28 | 14942 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14943 | PyObject *resultobj; |
14944 | wxDC *arg1 = (wxDC *) 0 ; | |
14945 | int result; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14954 | { | |
14955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14956 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14957 | ||
14958 | wxPyEndAllowThreads(__tstate); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | } | |
c32bde28 | 14961 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14962 | return resultobj; |
14963 | fail: | |
14964 | return NULL; | |
14965 | } | |
14966 | ||
14967 | ||
c32bde28 | 14968 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14969 | PyObject *resultobj; |
14970 | wxDC *arg1 = (wxDC *) 0 ; | |
14971 | int arg2 ; | |
14972 | PyObject * obj0 = 0 ; | |
14973 | PyObject * obj1 = 0 ; | |
14974 | char *kwnames[] = { | |
14975 | (char *) "self",(char *) "mode", NULL | |
14976 | }; | |
14977 | ||
14978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14981 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14982 | if (PyErr_Occurred()) SWIG_fail; |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | (arg1)->SetMapMode(arg2); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
14990 | Py_INCREF(Py_None); resultobj = Py_None; | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
c32bde28 | 14997 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14998 | PyObject *resultobj; |
14999 | wxDC *arg1 = (wxDC *) 0 ; | |
15000 | double *arg2 = (double *) 0 ; | |
15001 | double *arg3 = (double *) 0 ; | |
15002 | double temp2 ; | |
c32bde28 | 15003 | int res2 = 0 ; |
d55e5bfc | 15004 | double temp3 ; |
c32bde28 | 15005 | int res3 = 0 ; |
d55e5bfc RD |
15006 | PyObject * obj0 = 0 ; |
15007 | char *kwnames[] = { | |
15008 | (char *) "self", NULL | |
15009 | }; | |
15010 | ||
c32bde28 RD |
15011 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15012 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; |
15014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15016 | { | |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15018 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15024 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15025 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
15026 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15027 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
15028 | return resultobj; |
15029 | fail: | |
15030 | return NULL; | |
15031 | } | |
15032 | ||
15033 | ||
c32bde28 | 15034 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15035 | PyObject *resultobj; |
15036 | wxDC *arg1 = (wxDC *) 0 ; | |
15037 | double arg2 ; | |
15038 | double arg3 ; | |
15039 | PyObject * obj0 = 0 ; | |
15040 | PyObject * obj1 = 0 ; | |
15041 | PyObject * obj2 = 0 ; | |
15042 | char *kwnames[] = { | |
15043 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15044 | }; | |
15045 | ||
15046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15049 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 15050 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15051 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15052 | if (PyErr_Occurred()) SWIG_fail; |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | (arg1)->SetUserScale(arg2,arg3); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | Py_INCREF(Py_None); resultobj = Py_None; | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
c32bde28 | 15067 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15068 | PyObject *resultobj; |
15069 | wxDC *arg1 = (wxDC *) 0 ; | |
15070 | double *arg2 = (double *) 0 ; | |
15071 | double *arg3 = (double *) 0 ; | |
15072 | double temp2 ; | |
c32bde28 | 15073 | int res2 = 0 ; |
d55e5bfc | 15074 | double temp3 ; |
c32bde28 | 15075 | int res3 = 0 ; |
d55e5bfc RD |
15076 | PyObject * obj0 = 0 ; |
15077 | char *kwnames[] = { | |
15078 | (char *) "self", NULL | |
15079 | }; | |
15080 | ||
c32bde28 RD |
15081 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15082 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; |
15084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15086 | { | |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | (arg1)->GetLogicalScale(arg2,arg3); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
15093 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15094 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15095 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
15096 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15097 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
15098 | return resultobj; |
15099 | fail: | |
15100 | return NULL; | |
15101 | } | |
15102 | ||
15103 | ||
c32bde28 | 15104 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15105 | PyObject *resultobj; |
15106 | wxDC *arg1 = (wxDC *) 0 ; | |
15107 | double arg2 ; | |
15108 | double arg3 ; | |
15109 | PyObject * obj0 = 0 ; | |
15110 | PyObject * obj1 = 0 ; | |
15111 | PyObject * obj2 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15119 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 15120 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15121 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15122 | if (PyErr_Occurred()) SWIG_fail; |
15123 | { | |
15124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15125 | (arg1)->SetLogicalScale(arg2,arg3); | |
15126 | ||
15127 | wxPyEndAllowThreads(__tstate); | |
15128 | if (PyErr_Occurred()) SWIG_fail; | |
15129 | } | |
15130 | Py_INCREF(Py_None); resultobj = Py_None; | |
15131 | return resultobj; | |
15132 | fail: | |
15133 | return NULL; | |
15134 | } | |
15135 | ||
15136 | ||
c32bde28 | 15137 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15138 | PyObject *resultobj; |
15139 | wxDC *arg1 = (wxDC *) 0 ; | |
15140 | wxPoint result; | |
15141 | PyObject * obj0 = 0 ; | |
15142 | char *kwnames[] = { | |
15143 | (char *) "self", NULL | |
15144 | }; | |
15145 | ||
15146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
15147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15149 | { | |
15150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15151 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
15152 | ||
15153 | wxPyEndAllowThreads(__tstate); | |
15154 | if (PyErr_Occurred()) SWIG_fail; | |
15155 | } | |
15156 | { | |
15157 | wxPoint * resultptr; | |
15158 | resultptr = new wxPoint((wxPoint &) result); | |
15159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15160 | } | |
15161 | return resultobj; | |
15162 | fail: | |
15163 | return NULL; | |
15164 | } | |
15165 | ||
15166 | ||
c32bde28 | 15167 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15168 | PyObject *resultobj; |
15169 | wxDC *arg1 = (wxDC *) 0 ; | |
15170 | int *arg2 = (int *) 0 ; | |
15171 | int *arg3 = (int *) 0 ; | |
15172 | int temp2 ; | |
c32bde28 | 15173 | int res2 = 0 ; |
d55e5bfc | 15174 | int temp3 ; |
c32bde28 | 15175 | int res3 = 0 ; |
d55e5bfc RD |
15176 | PyObject * obj0 = 0 ; |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
c32bde28 RD |
15181 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15182 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
15184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15186 | { | |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
15193 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15194 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15195 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15196 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15197 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15198 | return resultobj; |
15199 | fail: | |
15200 | return NULL; | |
15201 | } | |
15202 | ||
15203 | ||
c32bde28 | 15204 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15205 | PyObject *resultobj; |
15206 | wxDC *arg1 = (wxDC *) 0 ; | |
15207 | int arg2 ; | |
15208 | int arg3 ; | |
15209 | PyObject * obj0 = 0 ; | |
15210 | PyObject * obj1 = 0 ; | |
15211 | PyObject * obj2 = 0 ; | |
15212 | char *kwnames[] = { | |
15213 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15214 | }; | |
15215 | ||
15216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15219 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 15220 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15221 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15222 | if (PyErr_Occurred()) SWIG_fail; |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | Py_INCREF(Py_None); resultobj = Py_None; | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
c32bde28 | 15237 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
15238 | PyObject *resultobj; |
15239 | wxDC *arg1 = (wxDC *) 0 ; | |
15240 | wxPoint *arg2 = 0 ; | |
15241 | wxPoint temp2 ; | |
15242 | PyObject * obj0 = 0 ; | |
15243 | PyObject * obj1 = 0 ; | |
15244 | char *kwnames[] = { | |
15245 | (char *) "self",(char *) "point", NULL | |
15246 | }; | |
15247 | ||
15248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
15249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15251 | { | |
15252 | arg2 = &temp2; | |
15253 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15254 | } | |
15255 | { | |
15256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15257 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
15258 | ||
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15262 | Py_INCREF(Py_None); resultobj = Py_None; | |
15263 | return resultobj; | |
15264 | fail: | |
15265 | return NULL; | |
15266 | } | |
15267 | ||
15268 | ||
c32bde28 | 15269 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15270 | PyObject *resultobj; |
15271 | wxDC *arg1 = (wxDC *) 0 ; | |
15272 | wxPoint result; | |
15273 | PyObject * obj0 = 0 ; | |
15274 | char *kwnames[] = { | |
15275 | (char *) "self", NULL | |
15276 | }; | |
15277 | ||
15278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
15279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15281 | { | |
15282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15283 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
15284 | ||
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | { | |
15289 | wxPoint * resultptr; | |
15290 | resultptr = new wxPoint((wxPoint &) result); | |
15291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15292 | } | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
c32bde28 | 15299 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15300 | PyObject *resultobj; |
15301 | wxDC *arg1 = (wxDC *) 0 ; | |
15302 | int *arg2 = (int *) 0 ; | |
15303 | int *arg3 = (int *) 0 ; | |
15304 | int temp2 ; | |
c32bde28 | 15305 | int res2 = 0 ; |
d55e5bfc | 15306 | int temp3 ; |
c32bde28 | 15307 | int res3 = 0 ; |
d55e5bfc RD |
15308 | PyObject * obj0 = 0 ; |
15309 | char *kwnames[] = { | |
15310 | (char *) "self", NULL | |
15311 | }; | |
15312 | ||
c32bde28 RD |
15313 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15314 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; |
15316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15318 | { | |
15319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15320 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
15321 | ||
15322 | wxPyEndAllowThreads(__tstate); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | } | |
15325 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15326 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15327 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15328 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15329 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15330 | return resultobj; |
15331 | fail: | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
c32bde28 | 15336 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15337 | PyObject *resultobj; |
15338 | wxDC *arg1 = (wxDC *) 0 ; | |
15339 | int arg2 ; | |
15340 | int arg3 ; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | PyObject * obj1 = 0 ; | |
15343 | PyObject * obj2 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15351 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 15352 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15353 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15354 | if (PyErr_Occurred()) SWIG_fail; |
15355 | { | |
15356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15357 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
15358 | ||
15359 | wxPyEndAllowThreads(__tstate); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | Py_INCREF(Py_None); resultobj = Py_None; | |
15363 | return resultobj; | |
15364 | fail: | |
15365 | return NULL; | |
15366 | } | |
15367 | ||
15368 | ||
c32bde28 | 15369 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
15370 | PyObject *resultobj; |
15371 | wxDC *arg1 = (wxDC *) 0 ; | |
15372 | wxPoint *arg2 = 0 ; | |
15373 | wxPoint temp2 ; | |
15374 | PyObject * obj0 = 0 ; | |
15375 | PyObject * obj1 = 0 ; | |
15376 | char *kwnames[] = { | |
15377 | (char *) "self",(char *) "point", NULL | |
15378 | }; | |
15379 | ||
15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
15381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15383 | { | |
15384 | arg2 = &temp2; | |
15385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15386 | } | |
15387 | { | |
15388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15389 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
15390 | ||
15391 | wxPyEndAllowThreads(__tstate); | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | } | |
15394 | Py_INCREF(Py_None); resultobj = Py_None; | |
15395 | return resultobj; | |
15396 | fail: | |
15397 | return NULL; | |
15398 | } | |
15399 | ||
15400 | ||
c32bde28 | 15401 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15402 | PyObject *resultobj; |
15403 | wxDC *arg1 = (wxDC *) 0 ; | |
15404 | bool arg2 ; | |
15405 | bool arg3 ; | |
15406 | PyObject * obj0 = 0 ; | |
15407 | PyObject * obj1 = 0 ; | |
15408 | PyObject * obj2 = 0 ; | |
15409 | char *kwnames[] = { | |
15410 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
15411 | }; | |
15412 | ||
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15416 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc | 15417 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15418 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15419 | if (PyErr_Occurred()) SWIG_fail; |
15420 | { | |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | (arg1)->SetAxisOrientation(arg2,arg3); | |
15423 | ||
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
15427 | Py_INCREF(Py_None); resultobj = Py_None; | |
15428 | return resultobj; | |
15429 | fail: | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
c32bde28 | 15434 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15435 | PyObject *resultobj; |
15436 | wxDC *arg1 = (wxDC *) 0 ; | |
15437 | int result; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15446 | { | |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
15449 | ||
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
c32bde28 | 15453 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15454 | return resultobj; |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
c32bde28 | 15460 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15461 | PyObject *resultobj; |
15462 | wxDC *arg1 = (wxDC *) 0 ; | |
15463 | int arg2 ; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | PyObject * obj1 = 0 ; | |
15466 | char *kwnames[] = { | |
15467 | (char *) "self",(char *) "function", NULL | |
15468 | }; | |
15469 | ||
15470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
15471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15473 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15474 | if (PyErr_Occurred()) SWIG_fail; |
15475 | { | |
15476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15477 | (arg1)->SetLogicalFunction(arg2); | |
15478 | ||
15479 | wxPyEndAllowThreads(__tstate); | |
15480 | if (PyErr_Occurred()) SWIG_fail; | |
15481 | } | |
15482 | Py_INCREF(Py_None); resultobj = Py_None; | |
15483 | return resultobj; | |
15484 | fail: | |
15485 | return NULL; | |
15486 | } | |
15487 | ||
15488 | ||
c32bde28 | 15489 | static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15490 | PyObject *resultobj; |
15491 | wxDC *arg1 = (wxDC *) 0 ; | |
15492 | bool arg2 ; | |
15493 | PyObject * obj0 = 0 ; | |
15494 | PyObject * obj1 = 0 ; | |
15495 | char *kwnames[] = { | |
f5b96ee1 | 15496 | (char *) "self",(char *) "optimize", NULL |
d55e5bfc RD |
15497 | }; |
15498 | ||
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15502 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15503 | if (PyErr_Occurred()) SWIG_fail; |
15504 | { | |
15505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15506 | (arg1)->SetOptimization(arg2); | |
15507 | ||
15508 | wxPyEndAllowThreads(__tstate); | |
15509 | if (PyErr_Occurred()) SWIG_fail; | |
15510 | } | |
15511 | Py_INCREF(Py_None); resultobj = Py_None; | |
15512 | return resultobj; | |
15513 | fail: | |
15514 | return NULL; | |
15515 | } | |
15516 | ||
15517 | ||
c32bde28 | 15518 | static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15519 | PyObject *resultobj; |
15520 | wxDC *arg1 = (wxDC *) 0 ; | |
15521 | bool result; | |
15522 | PyObject * obj0 = 0 ; | |
15523 | char *kwnames[] = { | |
15524 | (char *) "self", NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15530 | { | |
15531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15532 | result = (bool)(arg1)->GetOptimization(); | |
15533 | ||
15534 | wxPyEndAllowThreads(__tstate); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | } | |
15537 | { | |
15538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15539 | } | |
15540 | return resultobj; | |
15541 | fail: | |
15542 | return NULL; | |
15543 | } | |
15544 | ||
15545 | ||
c32bde28 | 15546 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15547 | PyObject *resultobj; |
15548 | wxDC *arg1 = (wxDC *) 0 ; | |
15549 | int arg2 ; | |
15550 | int arg3 ; | |
15551 | PyObject * obj0 = 0 ; | |
15552 | PyObject * obj1 = 0 ; | |
15553 | PyObject * obj2 = 0 ; | |
15554 | char *kwnames[] = { | |
15555 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15556 | }; | |
15557 | ||
15558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15561 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 15562 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15563 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15564 | if (PyErr_Occurred()) SWIG_fail; |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | (arg1)->CalcBoundingBox(arg2,arg3); | |
15568 | ||
15569 | wxPyEndAllowThreads(__tstate); | |
15570 | if (PyErr_Occurred()) SWIG_fail; | |
15571 | } | |
15572 | Py_INCREF(Py_None); resultobj = Py_None; | |
15573 | return resultobj; | |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
c32bde28 | 15579 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
15580 | PyObject *resultobj; |
15581 | wxDC *arg1 = (wxDC *) 0 ; | |
15582 | wxPoint *arg2 = 0 ; | |
15583 | wxPoint temp2 ; | |
15584 | PyObject * obj0 = 0 ; | |
15585 | PyObject * obj1 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self",(char *) "point", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15593 | { | |
15594 | arg2 = &temp2; | |
15595 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15596 | } | |
15597 | { | |
15598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15599 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15600 | ||
15601 | wxPyEndAllowThreads(__tstate); | |
15602 | if (PyErr_Occurred()) SWIG_fail; | |
15603 | } | |
15604 | Py_INCREF(Py_None); resultobj = Py_None; | |
15605 | return resultobj; | |
15606 | fail: | |
15607 | return NULL; | |
15608 | } | |
15609 | ||
15610 | ||
c32bde28 | 15611 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15612 | PyObject *resultobj; |
15613 | wxDC *arg1 = (wxDC *) 0 ; | |
15614 | PyObject * obj0 = 0 ; | |
15615 | char *kwnames[] = { | |
15616 | (char *) "self", NULL | |
15617 | }; | |
15618 | ||
15619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15622 | { | |
15623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15624 | (arg1)->ResetBoundingBox(); | |
15625 | ||
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | Py_INCREF(Py_None); resultobj = Py_None; | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
c32bde28 | 15636 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15637 | PyObject *resultobj; |
15638 | wxDC *arg1 = (wxDC *) 0 ; | |
15639 | int result; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | char *kwnames[] = { | |
15642 | (char *) "self", NULL | |
15643 | }; | |
15644 | ||
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15648 | { | |
15649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15650 | result = (int)((wxDC const *)arg1)->MinX(); | |
15651 | ||
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
c32bde28 | 15655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15656 | return resultobj; |
15657 | fail: | |
15658 | return NULL; | |
15659 | } | |
15660 | ||
15661 | ||
c32bde28 | 15662 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15663 | PyObject *resultobj; |
15664 | wxDC *arg1 = (wxDC *) 0 ; | |
15665 | int result; | |
15666 | PyObject * obj0 = 0 ; | |
15667 | char *kwnames[] = { | |
15668 | (char *) "self", NULL | |
15669 | }; | |
15670 | ||
15671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15674 | { | |
15675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15676 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15677 | ||
15678 | wxPyEndAllowThreads(__tstate); | |
15679 | if (PyErr_Occurred()) SWIG_fail; | |
15680 | } | |
c32bde28 | 15681 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15682 | return resultobj; |
15683 | fail: | |
15684 | return NULL; | |
15685 | } | |
15686 | ||
15687 | ||
c32bde28 | 15688 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15689 | PyObject *resultobj; |
15690 | wxDC *arg1 = (wxDC *) 0 ; | |
15691 | int result; | |
15692 | PyObject * obj0 = 0 ; | |
15693 | char *kwnames[] = { | |
15694 | (char *) "self", NULL | |
15695 | }; | |
15696 | ||
15697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | result = (int)((wxDC const *)arg1)->MinY(); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
c32bde28 | 15707 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15708 | return resultobj; |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
c32bde28 | 15714 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15715 | PyObject *resultobj; |
15716 | wxDC *arg1 = (wxDC *) 0 ; | |
15717 | int result; | |
15718 | PyObject * obj0 = 0 ; | |
15719 | char *kwnames[] = { | |
15720 | (char *) "self", NULL | |
15721 | }; | |
15722 | ||
15723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15726 | { | |
15727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15728 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15729 | ||
15730 | wxPyEndAllowThreads(__tstate); | |
15731 | if (PyErr_Occurred()) SWIG_fail; | |
15732 | } | |
c32bde28 | 15733 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15734 | return resultobj; |
15735 | fail: | |
15736 | return NULL; | |
15737 | } | |
15738 | ||
15739 | ||
c32bde28 | 15740 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15741 | PyObject *resultobj; |
15742 | wxDC *arg1 = (wxDC *) 0 ; | |
15743 | int *arg2 = (int *) 0 ; | |
15744 | int *arg3 = (int *) 0 ; | |
15745 | int *arg4 = (int *) 0 ; | |
15746 | int *arg5 = (int *) 0 ; | |
15747 | int temp2 ; | |
c32bde28 | 15748 | int res2 = 0 ; |
d55e5bfc | 15749 | int temp3 ; |
c32bde28 | 15750 | int res3 = 0 ; |
d55e5bfc | 15751 | int temp4 ; |
c32bde28 | 15752 | int res4 = 0 ; |
d55e5bfc | 15753 | int temp5 ; |
c32bde28 | 15754 | int res5 = 0 ; |
d55e5bfc RD |
15755 | PyObject * obj0 = 0 ; |
15756 | char *kwnames[] = { | |
15757 | (char *) "self", NULL | |
15758 | }; | |
15759 | ||
c32bde28 RD |
15760 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15761 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15762 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15763 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; |
15765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15767 | { | |
15768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15769 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15770 | ||
15771 | wxPyEndAllowThreads(__tstate); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
15774 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15775 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15776 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15777 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15778 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15779 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15780 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15781 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15782 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15783 | return resultobj; |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
c32bde28 | 15789 | static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) { |
0439c23b RD |
15790 | PyObject *resultobj; |
15791 | wxDC *arg1 = (wxDC *) 0 ; | |
15792 | long result; | |
15793 | PyObject * obj0 = 0 ; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "self", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail; | |
15799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15801 | { | |
15802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15803 | result = (long)(arg1)->GetHDC(); | |
15804 | ||
15805 | wxPyEndAllowThreads(__tstate); | |
15806 | if (PyErr_Occurred()) SWIG_fail; | |
15807 | } | |
c32bde28 | 15808 | resultobj = SWIG_From_long((long)result); |
0439c23b RD |
15809 | return resultobj; |
15810 | fail: | |
15811 | return NULL; | |
15812 | } | |
15813 | ||
15814 | ||
c32bde28 | 15815 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15816 | PyObject *resultobj; |
15817 | wxDC *arg1 = (wxDC *) 0 ; | |
15818 | PyObject *arg2 = (PyObject *) 0 ; | |
15819 | PyObject *arg3 = (PyObject *) 0 ; | |
15820 | PyObject *arg4 = (PyObject *) 0 ; | |
15821 | PyObject *result; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | PyObject * obj1 = 0 ; | |
15824 | PyObject * obj2 = 0 ; | |
15825 | PyObject * obj3 = 0 ; | |
15826 | char *kwnames[] = { | |
15827 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15828 | }; | |
15829 | ||
15830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15833 | arg2 = obj1; | |
15834 | arg3 = obj2; | |
15835 | arg4 = obj3; | |
15836 | { | |
15837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15838 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15839 | ||
15840 | wxPyEndAllowThreads(__tstate); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
15843 | resultobj = result; | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
c32bde28 | 15850 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15851 | PyObject *resultobj; |
15852 | wxDC *arg1 = (wxDC *) 0 ; | |
15853 | PyObject *arg2 = (PyObject *) 0 ; | |
15854 | PyObject *arg3 = (PyObject *) 0 ; | |
15855 | PyObject *arg4 = (PyObject *) 0 ; | |
15856 | PyObject *result; | |
15857 | PyObject * obj0 = 0 ; | |
15858 | PyObject * obj1 = 0 ; | |
15859 | PyObject * obj2 = 0 ; | |
15860 | PyObject * obj3 = 0 ; | |
15861 | char *kwnames[] = { | |
15862 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15863 | }; | |
15864 | ||
15865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15868 | arg2 = obj1; | |
15869 | arg3 = obj2; | |
15870 | arg4 = obj3; | |
15871 | { | |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15873 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15874 | ||
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | resultobj = result; | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
c32bde28 | 15885 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15886 | PyObject *resultobj; |
15887 | wxDC *arg1 = (wxDC *) 0 ; | |
15888 | PyObject *arg2 = (PyObject *) 0 ; | |
15889 | PyObject *arg3 = (PyObject *) 0 ; | |
15890 | PyObject *arg4 = (PyObject *) 0 ; | |
15891 | PyObject *result; | |
15892 | PyObject * obj0 = 0 ; | |
15893 | PyObject * obj1 = 0 ; | |
15894 | PyObject * obj2 = 0 ; | |
15895 | PyObject * obj3 = 0 ; | |
15896 | char *kwnames[] = { | |
15897 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15898 | }; | |
15899 | ||
15900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15903 | arg2 = obj1; | |
15904 | arg3 = obj2; | |
15905 | arg4 = obj3; | |
15906 | { | |
15907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15908 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15909 | ||
15910 | wxPyEndAllowThreads(__tstate); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | } | |
15913 | resultobj = result; | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
c32bde28 | 15920 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15921 | PyObject *resultobj; |
15922 | wxDC *arg1 = (wxDC *) 0 ; | |
15923 | PyObject *arg2 = (PyObject *) 0 ; | |
15924 | PyObject *arg3 = (PyObject *) 0 ; | |
15925 | PyObject *arg4 = (PyObject *) 0 ; | |
15926 | PyObject *result; | |
15927 | PyObject * obj0 = 0 ; | |
15928 | PyObject * obj1 = 0 ; | |
15929 | PyObject * obj2 = 0 ; | |
15930 | PyObject * obj3 = 0 ; | |
15931 | char *kwnames[] = { | |
15932 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15933 | }; | |
15934 | ||
15935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15938 | arg2 = obj1; | |
15939 | arg3 = obj2; | |
15940 | arg4 = obj3; | |
15941 | { | |
15942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15943 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15944 | ||
15945 | wxPyEndAllowThreads(__tstate); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
15947 | } | |
15948 | resultobj = result; | |
15949 | return resultobj; | |
15950 | fail: | |
15951 | return NULL; | |
15952 | } | |
15953 | ||
15954 | ||
c32bde28 | 15955 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15956 | PyObject *resultobj; |
15957 | wxDC *arg1 = (wxDC *) 0 ; | |
15958 | PyObject *arg2 = (PyObject *) 0 ; | |
15959 | PyObject *arg3 = (PyObject *) 0 ; | |
15960 | PyObject *arg4 = (PyObject *) 0 ; | |
15961 | PyObject *result; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | PyObject * obj1 = 0 ; | |
15964 | PyObject * obj2 = 0 ; | |
15965 | PyObject * obj3 = 0 ; | |
15966 | char *kwnames[] = { | |
15967 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15968 | }; | |
15969 | ||
15970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15973 | arg2 = obj1; | |
15974 | arg3 = obj2; | |
15975 | arg4 = obj3; | |
15976 | { | |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | resultobj = result; | |
15984 | return resultobj; | |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
c32bde28 | 15990 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15991 | PyObject *resultobj; |
15992 | wxDC *arg1 = (wxDC *) 0 ; | |
15993 | PyObject *arg2 = (PyObject *) 0 ; | |
15994 | PyObject *arg3 = (PyObject *) 0 ; | |
15995 | PyObject *arg4 = (PyObject *) 0 ; | |
15996 | PyObject *arg5 = (PyObject *) 0 ; | |
15997 | PyObject *result; | |
15998 | PyObject * obj0 = 0 ; | |
15999 | PyObject * obj1 = 0 ; | |
16000 | PyObject * obj2 = 0 ; | |
16001 | PyObject * obj3 = 0 ; | |
16002 | PyObject * obj4 = 0 ; | |
16003 | char *kwnames[] = { | |
16004 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
16005 | }; | |
16006 | ||
16007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16010 | arg2 = obj1; | |
16011 | arg3 = obj2; | |
16012 | arg4 = obj3; | |
16013 | arg5 = obj4; | |
16014 | { | |
16015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16016 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
16017 | ||
16018 | wxPyEndAllowThreads(__tstate); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
16021 | resultobj = result; | |
16022 | return resultobj; | |
16023 | fail: | |
16024 | return NULL; | |
16025 | } | |
16026 | ||
16027 | ||
c32bde28 | 16028 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16029 | PyObject *obj; |
16030 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16031 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
16032 | Py_INCREF(obj); | |
16033 | return Py_BuildValue((char *)""); | |
16034 | } | |
c32bde28 | 16035 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16036 | PyObject *resultobj; |
16037 | wxMemoryDC *result; | |
16038 | char *kwnames[] = { | |
16039 | NULL | |
16040 | }; | |
16041 | ||
16042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
16043 | { | |
0439c23b | 16044 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16046 | result = (wxMemoryDC *)new wxMemoryDC(); | |
16047 | ||
16048 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16049 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16050 | } |
16051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
16052 | return resultobj; | |
16053 | fail: | |
16054 | return NULL; | |
16055 | } | |
16056 | ||
16057 | ||
c32bde28 | 16058 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16059 | PyObject *resultobj; |
16060 | wxDC *arg1 = (wxDC *) 0 ; | |
16061 | wxMemoryDC *result; | |
16062 | PyObject * obj0 = 0 ; | |
16063 | char *kwnames[] = { | |
16064 | (char *) "oldDC", NULL | |
16065 | }; | |
16066 | ||
16067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
16068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16070 | { | |
0439c23b | 16071 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16073 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
16074 | ||
16075 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16076 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16077 | } |
16078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
16079 | return resultobj; | |
16080 | fail: | |
16081 | return NULL; | |
16082 | } | |
16083 | ||
16084 | ||
c32bde28 | 16085 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16086 | PyObject *resultobj; |
16087 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
16088 | wxBitmap *arg2 = 0 ; | |
16089 | PyObject * obj0 = 0 ; | |
16090 | PyObject * obj1 = 0 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "self",(char *) "bitmap", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
16096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
16097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16098 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16099 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16100 | SWIG_fail; | |
16101 | if (arg2 == NULL) { | |
16102 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16103 | SWIG_fail; | |
16104 | } | |
16105 | { | |
16106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16107 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
16108 | ||
16109 | wxPyEndAllowThreads(__tstate); | |
16110 | if (PyErr_Occurred()) SWIG_fail; | |
16111 | } | |
16112 | Py_INCREF(Py_None); resultobj = Py_None; | |
16113 | return resultobj; | |
16114 | fail: | |
16115 | return NULL; | |
16116 | } | |
16117 | ||
16118 | ||
c32bde28 | 16119 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16120 | PyObject *obj; |
16121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16122 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
16123 | Py_INCREF(obj); | |
16124 | return Py_BuildValue((char *)""); | |
16125 | } | |
c32bde28 | 16126 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
16127 | PyObject *resultobj; |
16128 | wxDC *arg1 = (wxDC *) 0 ; | |
16129 | wxBitmap *arg2 = 0 ; | |
16130 | wxBufferedDC *result; | |
16131 | PyObject * obj0 = 0 ; | |
16132 | PyObject * obj1 = 0 ; | |
16133 | ||
16134 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
16135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16138 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16139 | SWIG_fail; | |
16140 | if (arg2 == NULL) { | |
16141 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16142 | SWIG_fail; | |
16143 | } | |
16144 | { | |
0439c23b | 16145 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16147 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
16148 | ||
16149 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16150 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16151 | } |
16152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
16153 | return resultobj; | |
16154 | fail: | |
16155 | return NULL; | |
16156 | } | |
16157 | ||
16158 | ||
c32bde28 | 16159 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
16160 | PyObject *resultobj; |
16161 | wxDC *arg1 = (wxDC *) 0 ; | |
16162 | wxSize *arg2 = 0 ; | |
16163 | wxBufferedDC *result; | |
16164 | wxSize temp2 ; | |
16165 | PyObject * obj0 = 0 ; | |
16166 | PyObject * obj1 = 0 ; | |
16167 | ||
16168 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
16169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16171 | { | |
16172 | arg2 = &temp2; | |
16173 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16174 | } | |
16175 | { | |
0439c23b | 16176 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16178 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
16179 | ||
16180 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16181 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16182 | } |
16183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
16184 | return resultobj; | |
16185 | fail: | |
16186 | return NULL; | |
16187 | } | |
16188 | ||
16189 | ||
16190 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
16191 | int argc; | |
16192 | PyObject *argv[3]; | |
16193 | int ii; | |
16194 | ||
16195 | argc = PyObject_Length(args); | |
16196 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
16197 | argv[ii] = PyTuple_GetItem(args,ii); | |
16198 | } | |
16199 | if (argc == 2) { | |
16200 | int _v; | |
16201 | { | |
16202 | void *ptr; | |
16203 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
16204 | _v = 0; | |
16205 | PyErr_Clear(); | |
16206 | } else { | |
16207 | _v = 1; | |
16208 | } | |
16209 | } | |
16210 | if (_v) { | |
16211 | { | |
16212 | void *ptr; | |
16213 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
16214 | _v = 0; | |
16215 | PyErr_Clear(); | |
16216 | } else { | |
16217 | _v = 1; | |
16218 | } | |
16219 | } | |
16220 | if (_v) { | |
16221 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
16222 | } | |
16223 | } | |
16224 | } | |
16225 | if (argc == 2) { | |
16226 | int _v; | |
16227 | { | |
16228 | void *ptr; | |
16229 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
16230 | _v = 0; | |
16231 | PyErr_Clear(); | |
16232 | } else { | |
16233 | _v = 1; | |
16234 | } | |
16235 | } | |
16236 | if (_v) { | |
16237 | { | |
16238 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
16239 | } | |
16240 | if (_v) { | |
16241 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
16242 | } | |
16243 | } | |
16244 | } | |
16245 | ||
16246 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
16247 | return NULL; | |
16248 | } | |
16249 | ||
16250 | ||
c32bde28 | 16251 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16252 | PyObject *resultobj; |
16253 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
16254 | PyObject * obj0 = 0 ; | |
16255 | char *kwnames[] = { | |
16256 | (char *) "self", NULL | |
16257 | }; | |
16258 | ||
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
16261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | delete arg1; | |
16265 | ||
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | Py_INCREF(Py_None); resultobj = Py_None; | |
16270 | return resultobj; | |
16271 | fail: | |
16272 | return NULL; | |
16273 | } | |
16274 | ||
16275 | ||
c32bde28 | 16276 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16277 | PyObject *resultobj; |
16278 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "self", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
16286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16287 | { | |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | (arg1)->UnMask(); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
16294 | Py_INCREF(Py_None); resultobj = Py_None; | |
16295 | return resultobj; | |
16296 | fail: | |
16297 | return NULL; | |
16298 | } | |
16299 | ||
16300 | ||
c32bde28 | 16301 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16302 | PyObject *obj; |
16303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16304 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
16305 | Py_INCREF(obj); | |
16306 | return Py_BuildValue((char *)""); | |
16307 | } | |
c32bde28 | 16308 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16309 | PyObject *resultobj; |
16310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16311 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
16312 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
16313 | wxBufferedPaintDC *result; | |
16314 | PyObject * obj0 = 0 ; | |
16315 | PyObject * obj1 = 0 ; | |
16316 | char *kwnames[] = { | |
16317 | (char *) "window",(char *) "buffer", NULL | |
16318 | }; | |
16319 | ||
16320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
16321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16323 | if (obj1) { | |
16324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16326 | SWIG_fail; | |
16327 | if (arg2 == NULL) { | |
16328 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16329 | SWIG_fail; | |
16330 | } | |
16331 | } | |
16332 | { | |
0439c23b | 16333 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16335 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
16336 | ||
16337 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16338 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16339 | } |
16340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
16341 | return resultobj; | |
16342 | fail: | |
16343 | return NULL; | |
16344 | } | |
16345 | ||
16346 | ||
c32bde28 | 16347 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16348 | PyObject *obj; |
16349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16350 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
16351 | Py_INCREF(obj); | |
16352 | return Py_BuildValue((char *)""); | |
16353 | } | |
c32bde28 | 16354 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16355 | PyObject *resultobj; |
16356 | wxScreenDC *result; | |
16357 | char *kwnames[] = { | |
16358 | NULL | |
16359 | }; | |
16360 | ||
16361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
16362 | { | |
0439c23b | 16363 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16365 | result = (wxScreenDC *)new wxScreenDC(); | |
16366 | ||
16367 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16368 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16369 | } |
16370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
16371 | return resultobj; | |
16372 | fail: | |
16373 | return NULL; | |
16374 | } | |
16375 | ||
16376 | ||
c32bde28 | 16377 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16378 | PyObject *resultobj; |
16379 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16380 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16381 | bool result; | |
16382 | PyObject * obj0 = 0 ; | |
16383 | PyObject * obj1 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self",(char *) "window", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16393 | { | |
16394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16395 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16396 | ||
16397 | wxPyEndAllowThreads(__tstate); | |
16398 | if (PyErr_Occurred()) SWIG_fail; | |
16399 | } | |
16400 | { | |
16401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16402 | } | |
16403 | return resultobj; | |
16404 | fail: | |
16405 | return NULL; | |
16406 | } | |
16407 | ||
16408 | ||
c32bde28 | 16409 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16410 | PyObject *resultobj; |
16411 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16412 | wxRect *arg2 = (wxRect *) NULL ; | |
16413 | bool result; | |
16414 | PyObject * obj0 = 0 ; | |
16415 | PyObject * obj1 = 0 ; | |
16416 | char *kwnames[] = { | |
16417 | (char *) "self",(char *) "rect", NULL | |
16418 | }; | |
16419 | ||
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
16421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16423 | if (obj1) { | |
16424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16426 | } | |
16427 | { | |
16428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16429 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16430 | ||
16431 | wxPyEndAllowThreads(__tstate); | |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
16433 | } | |
16434 | { | |
16435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16436 | } | |
16437 | return resultobj; | |
16438 | fail: | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
c32bde28 | 16443 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16444 | PyObject *resultobj; |
16445 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16446 | bool result; | |
16447 | PyObject * obj0 = 0 ; | |
16448 | char *kwnames[] = { | |
16449 | (char *) "self", NULL | |
16450 | }; | |
16451 | ||
16452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
16453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16455 | { | |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16457 | result = (bool)(arg1)->EndDrawingOnTop(); | |
16458 | ||
16459 | wxPyEndAllowThreads(__tstate); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | { | |
16463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16464 | } | |
16465 | return resultobj; | |
16466 | fail: | |
16467 | return NULL; | |
16468 | } | |
16469 | ||
16470 | ||
c32bde28 | 16471 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16472 | PyObject *obj; |
16473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16474 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
16475 | Py_INCREF(obj); | |
16476 | return Py_BuildValue((char *)""); | |
16477 | } | |
c32bde28 | 16478 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16479 | PyObject *resultobj; |
16480 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16481 | wxClientDC *result; | |
16482 | PyObject * obj0 = 0 ; | |
16483 | char *kwnames[] = { | |
16484 | (char *) "win", NULL | |
16485 | }; | |
16486 | ||
16487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
16488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16490 | { | |
0439c23b | 16491 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16493 | result = (wxClientDC *)new wxClientDC(arg1); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16496 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16497 | } |
16498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
16499 | return resultobj; | |
16500 | fail: | |
16501 | return NULL; | |
16502 | } | |
16503 | ||
16504 | ||
c32bde28 | 16505 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16506 | PyObject *obj; |
16507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16508 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
16509 | Py_INCREF(obj); | |
16510 | return Py_BuildValue((char *)""); | |
16511 | } | |
c32bde28 | 16512 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16513 | PyObject *resultobj; |
16514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16515 | wxPaintDC *result; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "win", NULL | |
16519 | }; | |
16520 | ||
16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
16522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16524 | { | |
0439c23b | 16525 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16527 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
16528 | ||
16529 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16530 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16531 | } |
16532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
16533 | return resultobj; | |
16534 | fail: | |
16535 | return NULL; | |
16536 | } | |
16537 | ||
16538 | ||
c32bde28 | 16539 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16540 | PyObject *obj; |
16541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16542 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
16543 | Py_INCREF(obj); | |
16544 | return Py_BuildValue((char *)""); | |
16545 | } | |
c32bde28 | 16546 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16547 | PyObject *resultobj; |
16548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16549 | wxWindowDC *result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | char *kwnames[] = { | |
16552 | (char *) "win", NULL | |
16553 | }; | |
16554 | ||
16555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
16556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16558 | { | |
0439c23b | 16559 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16561 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16564 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16565 | } |
16566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
16567 | return resultobj; | |
16568 | fail: | |
16569 | return NULL; | |
16570 | } | |
16571 | ||
16572 | ||
c32bde28 | 16573 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16574 | PyObject *obj; |
16575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16576 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
16577 | Py_INCREF(obj); | |
16578 | return Py_BuildValue((char *)""); | |
16579 | } | |
c32bde28 | 16580 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16581 | PyObject *resultobj; |
16582 | wxDC *arg1 = 0 ; | |
16583 | bool arg2 ; | |
16584 | wxMirrorDC *result; | |
16585 | PyObject * obj0 = 0 ; | |
16586 | PyObject * obj1 = 0 ; | |
16587 | char *kwnames[] = { | |
16588 | (char *) "dc",(char *) "mirror", NULL | |
16589 | }; | |
16590 | ||
16591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
16592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16594 | SWIG_fail; | |
16595 | if (arg1 == NULL) { | |
16596 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16597 | SWIG_fail; | |
16598 | } | |
c32bde28 | 16599 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16600 | if (PyErr_Occurred()) SWIG_fail; |
16601 | { | |
0439c23b | 16602 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16604 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
16605 | ||
16606 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16607 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16608 | } |
16609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
c32bde28 | 16616 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16617 | PyObject *obj; |
16618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16619 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
16620 | Py_INCREF(obj); | |
16621 | return Py_BuildValue((char *)""); | |
16622 | } | |
c32bde28 | 16623 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16624 | PyObject *resultobj; |
16625 | wxPrintData *arg1 = 0 ; | |
16626 | wxPostScriptDC *result; | |
16627 | PyObject * obj0 = 0 ; | |
16628 | char *kwnames[] = { | |
16629 | (char *) "printData", NULL | |
16630 | }; | |
16631 | ||
16632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16635 | SWIG_fail; | |
16636 | if (arg1 == NULL) { | |
16637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16638 | SWIG_fail; | |
16639 | } | |
16640 | { | |
0439c23b | 16641 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16643 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16644 | ||
16645 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16646 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16647 | } |
16648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16649 | return resultobj; | |
16650 | fail: | |
16651 | return NULL; | |
16652 | } | |
16653 | ||
16654 | ||
c32bde28 | 16655 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16656 | PyObject *resultobj; |
16657 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16658 | wxPrintData *result; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | char *kwnames[] = { | |
16661 | (char *) "self", NULL | |
16662 | }; | |
16663 | ||
16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16667 | { | |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | { | |
16670 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16671 | result = (wxPrintData *) &_result_ref; | |
16672 | } | |
16673 | ||
16674 | wxPyEndAllowThreads(__tstate); | |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
16676 | } | |
16677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16678 | return resultobj; | |
16679 | fail: | |
16680 | return NULL; | |
16681 | } | |
16682 | ||
16683 | ||
c32bde28 | 16684 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16685 | PyObject *resultobj; |
16686 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16687 | wxPrintData *arg2 = 0 ; | |
16688 | PyObject * obj0 = 0 ; | |
16689 | PyObject * obj1 = 0 ; | |
16690 | char *kwnames[] = { | |
16691 | (char *) "self",(char *) "data", NULL | |
16692 | }; | |
16693 | ||
16694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16697 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16698 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16699 | SWIG_fail; | |
16700 | if (arg2 == NULL) { | |
16701 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16702 | SWIG_fail; | |
16703 | } | |
16704 | { | |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | Py_INCREF(Py_None); resultobj = Py_None; | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
c32bde28 | 16718 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16719 | PyObject *resultobj; |
16720 | int arg1 ; | |
16721 | PyObject * obj0 = 0 ; | |
16722 | char *kwnames[] = { | |
16723 | (char *) "ppi", NULL | |
16724 | }; | |
16725 | ||
16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
c32bde28 | 16727 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
16728 | if (PyErr_Occurred()) SWIG_fail; |
16729 | { | |
16730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16731 | wxPostScriptDC::SetResolution(arg1); | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | Py_INCREF(Py_None); resultobj = Py_None; | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | return NULL; | |
16740 | } | |
16741 | ||
16742 | ||
c32bde28 | 16743 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16744 | PyObject *resultobj; |
16745 | int result; | |
16746 | char *kwnames[] = { | |
16747 | NULL | |
16748 | }; | |
16749 | ||
16750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16751 | { | |
16752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16753 | result = (int)wxPostScriptDC::GetResolution(); | |
16754 | ||
16755 | wxPyEndAllowThreads(__tstate); | |
16756 | if (PyErr_Occurred()) SWIG_fail; | |
16757 | } | |
c32bde28 | 16758 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16759 | return resultobj; |
16760 | fail: | |
16761 | return NULL; | |
16762 | } | |
16763 | ||
16764 | ||
c32bde28 | 16765 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16766 | PyObject *obj; |
16767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16768 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16769 | Py_INCREF(obj); | |
16770 | return Py_BuildValue((char *)""); | |
16771 | } | |
c32bde28 | 16772 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16773 | PyObject *resultobj; |
16774 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16775 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16776 | wxMetaFile *result; | |
ae8162c8 | 16777 | bool temp1 = false ; |
d55e5bfc RD |
16778 | PyObject * obj0 = 0 ; |
16779 | char *kwnames[] = { | |
16780 | (char *) "filename", NULL | |
16781 | }; | |
16782 | ||
16783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16784 | if (obj0) { | |
16785 | { | |
16786 | arg1 = wxString_in_helper(obj0); | |
16787 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16788 | temp1 = true; |
d55e5bfc RD |
16789 | } |
16790 | } | |
16791 | { | |
0439c23b | 16792 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16794 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16797 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16798 | } |
16799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16800 | { | |
16801 | if (temp1) | |
16802 | delete arg1; | |
16803 | } | |
16804 | return resultobj; | |
16805 | fail: | |
16806 | { | |
16807 | if (temp1) | |
16808 | delete arg1; | |
16809 | } | |
16810 | return NULL; | |
16811 | } | |
16812 | ||
16813 | ||
c32bde28 | 16814 | static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16815 | PyObject *resultobj; |
16816 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16817 | PyObject * obj0 = 0 ; | |
16818 | char *kwnames[] = { | |
16819 | (char *) "self", NULL | |
16820 | }; | |
16821 | ||
16822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
16823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | delete arg1; | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | Py_INCREF(Py_None); resultobj = Py_None; | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
c32bde28 | 16839 | static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16840 | PyObject *resultobj; |
16841 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16842 | bool result; | |
16843 | PyObject * obj0 = 0 ; | |
16844 | char *kwnames[] = { | |
16845 | (char *) "self", NULL | |
16846 | }; | |
16847 | ||
16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16851 | { | |
16852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16853 | result = (bool)(arg1)->Ok(); | |
16854 | ||
16855 | wxPyEndAllowThreads(__tstate); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
16858 | { | |
16859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16860 | } | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | return NULL; | |
16864 | } | |
16865 | ||
16866 | ||
c32bde28 | 16867 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16868 | PyObject *resultobj; |
16869 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16870 | int arg2 = (int) 0 ; | |
16871 | int arg3 = (int) 0 ; | |
16872 | bool result; | |
16873 | PyObject * obj0 = 0 ; | |
16874 | PyObject * obj1 = 0 ; | |
16875 | PyObject * obj2 = 0 ; | |
16876 | char *kwnames[] = { | |
16877 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16878 | }; | |
16879 | ||
16880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16883 | if (obj1) { | |
c32bde28 | 16884 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16885 | if (PyErr_Occurred()) SWIG_fail; |
16886 | } | |
16887 | if (obj2) { | |
c32bde28 | 16888 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16889 | if (PyErr_Occurred()) SWIG_fail; |
16890 | } | |
16891 | { | |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16894 | ||
16895 | wxPyEndAllowThreads(__tstate); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | } | |
16898 | { | |
16899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16900 | } | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | return NULL; | |
16904 | } | |
16905 | ||
16906 | ||
c32bde28 | 16907 | static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16908 | PyObject *resultobj; |
16909 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16910 | wxSize result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | char *kwnames[] = { | |
16913 | (char *) "self", NULL | |
16914 | }; | |
16915 | ||
16916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = (arg1)->GetSize(); | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | { | |
16927 | wxSize * resultptr; | |
16928 | resultptr = new wxSize((wxSize &) result); | |
16929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16930 | } | |
16931 | return resultobj; | |
16932 | fail: | |
16933 | return NULL; | |
16934 | } | |
16935 | ||
16936 | ||
c32bde28 | 16937 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16938 | PyObject *resultobj; |
16939 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16940 | int result; | |
16941 | PyObject * obj0 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "self", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16949 | { | |
16950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16951 | result = (int)(arg1)->GetWidth(); | |
16952 | ||
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
c32bde28 | 16956 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16957 | return resultobj; |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
c32bde28 | 16963 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16964 | PyObject *resultobj; |
16965 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16966 | int result; | |
16967 | PyObject * obj0 = 0 ; | |
16968 | char *kwnames[] = { | |
16969 | (char *) "self", NULL | |
16970 | }; | |
16971 | ||
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16975 | { | |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16977 | result = (int)(arg1)->GetHeight(); | |
16978 | ||
16979 | wxPyEndAllowThreads(__tstate); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | } | |
c32bde28 | 16982 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16983 | return resultobj; |
16984 | fail: | |
16985 | return NULL; | |
16986 | } | |
16987 | ||
16988 | ||
c32bde28 | 16989 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16990 | PyObject *resultobj; |
16991 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16992 | wxString *result; | |
16993 | PyObject * obj0 = 0 ; | |
16994 | char *kwnames[] = { | |
16995 | (char *) "self", NULL | |
16996 | }; | |
16997 | ||
16998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
16999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
17000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | { | |
17004 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
17005 | result = (wxString *) &_result_ref; | |
17006 | } | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | { | |
17012 | #if wxUSE_UNICODE | |
17013 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17014 | #else | |
17015 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17016 | #endif | |
17017 | } | |
17018 | return resultobj; | |
17019 | fail: | |
17020 | return NULL; | |
17021 | } | |
17022 | ||
17023 | ||
c32bde28 | 17024 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17025 | PyObject *obj; |
17026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17027 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
17028 | Py_INCREF(obj); | |
17029 | return Py_BuildValue((char *)""); | |
17030 | } | |
c32bde28 | 17031 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17032 | PyObject *resultobj; |
17033 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
17034 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
17035 | int arg2 = (int) 0 ; | |
17036 | int arg3 = (int) 0 ; | |
17037 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17038 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17039 | wxMetaFileDC *result; | |
ae8162c8 RD |
17040 | bool temp1 = false ; |
17041 | bool temp4 = false ; | |
d55e5bfc RD |
17042 | PyObject * obj0 = 0 ; |
17043 | PyObject * obj1 = 0 ; | |
17044 | PyObject * obj2 = 0 ; | |
17045 | PyObject * obj3 = 0 ; | |
17046 | char *kwnames[] = { | |
17047 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
17048 | }; | |
17049 | ||
17050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17051 | if (obj0) { | |
17052 | { | |
17053 | arg1 = wxString_in_helper(obj0); | |
17054 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17055 | temp1 = true; |
d55e5bfc RD |
17056 | } |
17057 | } | |
17058 | if (obj1) { | |
c32bde28 | 17059 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17060 | if (PyErr_Occurred()) SWIG_fail; |
17061 | } | |
17062 | if (obj2) { | |
c32bde28 | 17063 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17064 | if (PyErr_Occurred()) SWIG_fail; |
17065 | } | |
17066 | if (obj3) { | |
17067 | { | |
17068 | arg4 = wxString_in_helper(obj3); | |
17069 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17070 | temp4 = true; |
d55e5bfc RD |
17071 | } |
17072 | } | |
17073 | { | |
0439c23b | 17074 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17076 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
17077 | ||
17078 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17079 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17080 | } |
17081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
17082 | { | |
17083 | if (temp1) | |
17084 | delete arg1; | |
17085 | } | |
17086 | { | |
17087 | if (temp4) | |
17088 | delete arg4; | |
17089 | } | |
17090 | return resultobj; | |
17091 | fail: | |
17092 | { | |
17093 | if (temp1) | |
17094 | delete arg1; | |
17095 | } | |
17096 | { | |
17097 | if (temp4) | |
17098 | delete arg4; | |
17099 | } | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
c32bde28 | 17104 | static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17105 | PyObject *resultobj; |
17106 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
17107 | wxMetaFile *result; | |
17108 | PyObject * obj0 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
17112 | ||
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
17114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
17115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17116 | { | |
17117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17118 | result = (wxMetaFile *)(arg1)->Close(); | |
17119 | ||
17120 | wxPyEndAllowThreads(__tstate); | |
17121 | if (PyErr_Occurred()) SWIG_fail; | |
17122 | } | |
17123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
17124 | return resultobj; | |
17125 | fail: | |
17126 | return NULL; | |
17127 | } | |
17128 | ||
17129 | ||
c32bde28 | 17130 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17131 | PyObject *obj; |
17132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17133 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
17134 | Py_INCREF(obj); | |
17135 | return Py_BuildValue((char *)""); | |
17136 | } | |
c32bde28 | 17137 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17138 | PyObject *resultobj; |
17139 | wxPrintData *arg1 = 0 ; | |
17140 | wxPrinterDC *result; | |
17141 | PyObject * obj0 = 0 ; | |
17142 | char *kwnames[] = { | |
17143 | (char *) "printData", NULL | |
17144 | }; | |
17145 | ||
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
17147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17148 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17149 | SWIG_fail; | |
17150 | if (arg1 == NULL) { | |
17151 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17152 | SWIG_fail; | |
17153 | } | |
17154 | { | |
0439c23b | 17155 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17157 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
17158 | ||
17159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17160 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17161 | } |
17162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
17163 | return resultobj; | |
17164 | fail: | |
17165 | return NULL; | |
17166 | } | |
17167 | ||
17168 | ||
c32bde28 | 17169 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17170 | PyObject *obj; |
17171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17172 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
17173 | Py_INCREF(obj); | |
17174 | return Py_BuildValue((char *)""); | |
17175 | } | |
c32bde28 | 17176 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17177 | PyObject *resultobj; |
17178 | int arg1 ; | |
17179 | int arg2 ; | |
ae8162c8 | 17180 | int arg3 = (int) true ; |
d55e5bfc RD |
17181 | int arg4 = (int) 1 ; |
17182 | wxImageList *result; | |
17183 | PyObject * obj0 = 0 ; | |
17184 | PyObject * obj1 = 0 ; | |
17185 | PyObject * obj2 = 0 ; | |
17186 | PyObject * obj3 = 0 ; | |
17187 | char *kwnames[] = { | |
17188 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
17189 | }; | |
17190 | ||
17191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 17192 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 17193 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17194 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17195 | if (PyErr_Occurred()) SWIG_fail; |
17196 | if (obj2) { | |
c32bde28 | 17197 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17198 | if (PyErr_Occurred()) SWIG_fail; |
17199 | } | |
17200 | if (obj3) { | |
c32bde28 | 17201 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17202 | if (PyErr_Occurred()) SWIG_fail; |
17203 | } | |
17204 | { | |
0439c23b | 17205 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17207 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
17208 | ||
17209 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17210 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17211 | } |
17212 | { | |
412d302d | 17213 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
17214 | } |
17215 | return resultobj; | |
17216 | fail: | |
17217 | return NULL; | |
17218 | } | |
17219 | ||
17220 | ||
c32bde28 | 17221 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17222 | PyObject *resultobj; |
17223 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17224 | PyObject * obj0 = 0 ; | |
17225 | char *kwnames[] = { | |
17226 | (char *) "self", NULL | |
17227 | }; | |
17228 | ||
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
17230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17232 | { | |
17233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17234 | delete arg1; | |
17235 | ||
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | Py_INCREF(Py_None); resultobj = Py_None; | |
17240 | return resultobj; | |
17241 | fail: | |
17242 | return NULL; | |
17243 | } | |
17244 | ||
17245 | ||
c32bde28 | 17246 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17247 | PyObject *resultobj; |
17248 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17249 | wxBitmap *arg2 = 0 ; | |
17250 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
17251 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
17252 | int result; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | PyObject * obj1 = 0 ; | |
17255 | PyObject * obj2 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17264 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17265 | SWIG_fail; | |
17266 | if (arg2 == NULL) { | |
17267 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17268 | SWIG_fail; | |
17269 | } | |
17270 | if (obj2) { | |
17271 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
17272 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17273 | SWIG_fail; | |
17274 | if (arg3 == NULL) { | |
17275 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17276 | SWIG_fail; | |
17277 | } | |
17278 | } | |
17279 | { | |
17280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17281 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
17282 | ||
17283 | wxPyEndAllowThreads(__tstate); | |
17284 | if (PyErr_Occurred()) SWIG_fail; | |
17285 | } | |
c32bde28 | 17286 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17287 | return resultobj; |
17288 | fail: | |
17289 | return NULL; | |
17290 | } | |
17291 | ||
17292 | ||
c32bde28 | 17293 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17294 | PyObject *resultobj; |
17295 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17296 | wxBitmap *arg2 = 0 ; | |
17297 | wxColour *arg3 = 0 ; | |
17298 | int result; | |
17299 | wxColour temp3 ; | |
17300 | PyObject * obj0 = 0 ; | |
17301 | PyObject * obj1 = 0 ; | |
17302 | PyObject * obj2 = 0 ; | |
17303 | char *kwnames[] = { | |
17304 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
17305 | }; | |
17306 | ||
17307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17312 | SWIG_fail; | |
17313 | if (arg2 == NULL) { | |
17314 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17315 | SWIG_fail; | |
17316 | } | |
17317 | { | |
17318 | arg3 = &temp3; | |
17319 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17320 | } | |
17321 | { | |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
c32bde28 | 17328 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17329 | return resultobj; |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
c32bde28 | 17335 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17336 | PyObject *resultobj; |
17337 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17338 | wxIcon *arg2 = 0 ; | |
17339 | int result; | |
17340 | PyObject * obj0 = 0 ; | |
17341 | PyObject * obj1 = 0 ; | |
17342 | char *kwnames[] = { | |
17343 | (char *) "self",(char *) "icon", NULL | |
17344 | }; | |
17345 | ||
17346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
17347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17349 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
17350 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17351 | SWIG_fail; | |
17352 | if (arg2 == NULL) { | |
17353 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17354 | SWIG_fail; | |
17355 | } | |
17356 | { | |
17357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17358 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
17359 | ||
17360 | wxPyEndAllowThreads(__tstate); | |
17361 | if (PyErr_Occurred()) SWIG_fail; | |
17362 | } | |
c32bde28 | 17363 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17364 | return resultobj; |
17365 | fail: | |
17366 | return NULL; | |
17367 | } | |
17368 | ||
17369 | ||
c32bde28 | 17370 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17371 | PyObject *resultobj; |
17372 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17373 | int arg2 ; | |
17374 | wxBitmap *arg3 = 0 ; | |
17375 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
17376 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
17377 | bool result; | |
17378 | PyObject * obj0 = 0 ; | |
17379 | PyObject * obj1 = 0 ; | |
17380 | PyObject * obj2 = 0 ; | |
17381 | PyObject * obj3 = 0 ; | |
17382 | char *kwnames[] = { | |
17383 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
17384 | }; | |
17385 | ||
17386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17389 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17390 | if (PyErr_Occurred()) SWIG_fail; |
17391 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
17392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17393 | SWIG_fail; | |
17394 | if (arg3 == NULL) { | |
17395 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17396 | SWIG_fail; | |
17397 | } | |
17398 | if (obj3) { | |
17399 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
17400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17401 | SWIG_fail; | |
17402 | if (arg4 == NULL) { | |
17403 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17404 | SWIG_fail; | |
17405 | } | |
17406 | } | |
17407 | { | |
17408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17409 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
17410 | ||
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | { | |
17415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17416 | } | |
17417 | return resultobj; | |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
c32bde28 | 17423 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17424 | PyObject *resultobj; |
17425 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17426 | int arg2 ; | |
17427 | wxDC *arg3 = 0 ; | |
17428 | int arg4 ; | |
17429 | int arg5 ; | |
17430 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
ae8162c8 | 17431 | bool arg7 = (bool) (bool)false ; |
d55e5bfc RD |
17432 | bool result; |
17433 | PyObject * obj0 = 0 ; | |
17434 | PyObject * obj1 = 0 ; | |
17435 | PyObject * obj2 = 0 ; | |
17436 | PyObject * obj3 = 0 ; | |
17437 | PyObject * obj4 = 0 ; | |
17438 | PyObject * obj5 = 0 ; | |
17439 | PyObject * obj6 = 0 ; | |
17440 | char *kwnames[] = { | |
17441 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
17442 | }; | |
17443 | ||
17444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17447 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17448 | if (PyErr_Occurred()) SWIG_fail; |
17449 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
17450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17451 | SWIG_fail; | |
17452 | if (arg3 == NULL) { | |
17453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17454 | SWIG_fail; | |
17455 | } | |
c32bde28 | 17456 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 17457 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17458 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
17459 | if (PyErr_Occurred()) SWIG_fail; |
17460 | if (obj5) { | |
c32bde28 | 17461 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17462 | if (PyErr_Occurred()) SWIG_fail; |
17463 | } | |
17464 | if (obj6) { | |
c32bde28 | 17465 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
17466 | if (PyErr_Occurred()) SWIG_fail; |
17467 | } | |
17468 | { | |
17469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17470 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
17471 | ||
17472 | wxPyEndAllowThreads(__tstate); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
17475 | { | |
17476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17477 | } | |
17478 | return resultobj; | |
17479 | fail: | |
17480 | return NULL; | |
17481 | } | |
17482 | ||
17483 | ||
c32bde28 | 17484 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17485 | PyObject *resultobj; |
17486 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17487 | int result; | |
17488 | PyObject * obj0 = 0 ; | |
17489 | char *kwnames[] = { | |
17490 | (char *) "self", NULL | |
17491 | }; | |
17492 | ||
17493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
17494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17496 | { | |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | result = (int)(arg1)->GetImageCount(); | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
c32bde28 | 17503 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17504 | return resultobj; |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
c32bde28 | 17510 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17511 | PyObject *resultobj; |
17512 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17513 | int arg2 ; | |
17514 | bool result; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | PyObject * obj1 = 0 ; | |
17517 | char *kwnames[] = { | |
17518 | (char *) "self",(char *) "index", NULL | |
17519 | }; | |
17520 | ||
17521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
17522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17524 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17525 | if (PyErr_Occurred()) SWIG_fail; |
17526 | { | |
17527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17528 | result = (bool)(arg1)->Remove(arg2); | |
17529 | ||
17530 | wxPyEndAllowThreads(__tstate); | |
17531 | if (PyErr_Occurred()) SWIG_fail; | |
17532 | } | |
17533 | { | |
17534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17535 | } | |
17536 | return resultobj; | |
17537 | fail: | |
17538 | return NULL; | |
17539 | } | |
17540 | ||
17541 | ||
c32bde28 | 17542 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17543 | PyObject *resultobj; |
17544 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17545 | bool result; | |
17546 | PyObject * obj0 = 0 ; | |
17547 | char *kwnames[] = { | |
17548 | (char *) "self", NULL | |
17549 | }; | |
17550 | ||
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
17552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17554 | { | |
17555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17556 | result = (bool)(arg1)->RemoveAll(); | |
17557 | ||
17558 | wxPyEndAllowThreads(__tstate); | |
17559 | if (PyErr_Occurred()) SWIG_fail; | |
17560 | } | |
17561 | { | |
17562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17563 | } | |
17564 | return resultobj; | |
17565 | fail: | |
17566 | return NULL; | |
17567 | } | |
17568 | ||
17569 | ||
c32bde28 | 17570 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17571 | PyObject *resultobj; |
17572 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17573 | int arg2 ; | |
17574 | int *arg3 = 0 ; | |
17575 | int *arg4 = 0 ; | |
17576 | int temp3 ; | |
c32bde28 | 17577 | int res3 = 0 ; |
d55e5bfc | 17578 | int temp4 ; |
c32bde28 | 17579 | int res4 = 0 ; |
d55e5bfc RD |
17580 | PyObject * obj0 = 0 ; |
17581 | PyObject * obj1 = 0 ; | |
17582 | char *kwnames[] = { | |
17583 | (char *) "self",(char *) "index", NULL | |
17584 | }; | |
17585 | ||
c32bde28 RD |
17586 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
17587 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
17589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17591 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17592 | if (PyErr_Occurred()) SWIG_fail; |
17593 | { | |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
17600 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
17601 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17602 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
17603 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
17604 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
17605 | return resultobj; |
17606 | fail: | |
17607 | return NULL; | |
17608 | } | |
17609 | ||
17610 | ||
c32bde28 | 17611 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17612 | PyObject *obj; |
17613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17614 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
17615 | Py_INCREF(obj); | |
17616 | return Py_BuildValue((char *)""); | |
17617 | } | |
c32bde28 | 17618 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
d55e5bfc RD |
17619 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
17620 | return 1; | |
17621 | } | |
17622 | ||
17623 | ||
17624 | static PyObject *_wrap_NORMAL_FONT_get() { | |
17625 | PyObject *pyobj; | |
17626 | ||
17627 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
17628 | return pyobj; | |
17629 | } | |
17630 | ||
17631 | ||
c32bde28 | 17632 | static int _wrap_SMALL_FONT_set(PyObject *) { |
d55e5bfc RD |
17633 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
17634 | return 1; | |
17635 | } | |
17636 | ||
17637 | ||
17638 | static PyObject *_wrap_SMALL_FONT_get() { | |
17639 | PyObject *pyobj; | |
17640 | ||
17641 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
17642 | return pyobj; | |
17643 | } | |
17644 | ||
17645 | ||
c32bde28 | 17646 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
d55e5bfc RD |
17647 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
17648 | return 1; | |
17649 | } | |
17650 | ||
17651 | ||
17652 | static PyObject *_wrap_ITALIC_FONT_get() { | |
17653 | PyObject *pyobj; | |
17654 | ||
17655 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
17656 | return pyobj; | |
17657 | } | |
17658 | ||
17659 | ||
c32bde28 | 17660 | static int _wrap_SWISS_FONT_set(PyObject *) { |
d55e5bfc RD |
17661 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
17662 | return 1; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_SWISS_FONT_get() { | |
17667 | PyObject *pyobj; | |
17668 | ||
17669 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
17670 | return pyobj; | |
17671 | } | |
17672 | ||
17673 | ||
c32bde28 | 17674 | static int _wrap_RED_PEN_set(PyObject *) { |
d55e5bfc RD |
17675 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
17676 | return 1; | |
17677 | } | |
17678 | ||
17679 | ||
17680 | static PyObject *_wrap_RED_PEN_get() { | |
17681 | PyObject *pyobj; | |
17682 | ||
17683 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
17684 | return pyobj; | |
17685 | } | |
17686 | ||
17687 | ||
c32bde28 | 17688 | static int _wrap_CYAN_PEN_set(PyObject *) { |
d55e5bfc RD |
17689 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
17690 | return 1; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static PyObject *_wrap_CYAN_PEN_get() { | |
17695 | PyObject *pyobj; | |
17696 | ||
17697 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
17698 | return pyobj; | |
17699 | } | |
17700 | ||
17701 | ||
c32bde28 | 17702 | static int _wrap_GREEN_PEN_set(PyObject *) { |
d55e5bfc RD |
17703 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
17704 | return 1; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static PyObject *_wrap_GREEN_PEN_get() { | |
17709 | PyObject *pyobj; | |
17710 | ||
17711 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
17712 | return pyobj; | |
17713 | } | |
17714 | ||
17715 | ||
c32bde28 | 17716 | static int _wrap_BLACK_PEN_set(PyObject *) { |
d55e5bfc RD |
17717 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
17718 | return 1; | |
17719 | } | |
17720 | ||
17721 | ||
17722 | static PyObject *_wrap_BLACK_PEN_get() { | |
17723 | PyObject *pyobj; | |
17724 | ||
17725 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
17726 | return pyobj; | |
17727 | } | |
17728 | ||
17729 | ||
c32bde28 | 17730 | static int _wrap_WHITE_PEN_set(PyObject *) { |
d55e5bfc RD |
17731 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
17732 | return 1; | |
17733 | } | |
17734 | ||
17735 | ||
17736 | static PyObject *_wrap_WHITE_PEN_get() { | |
17737 | PyObject *pyobj; | |
17738 | ||
17739 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
17740 | return pyobj; | |
17741 | } | |
17742 | ||
17743 | ||
c32bde28 | 17744 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
d55e5bfc RD |
17745 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
17746 | return 1; | |
17747 | } | |
17748 | ||
17749 | ||
17750 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17751 | PyObject *pyobj; | |
17752 | ||
17753 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
17754 | return pyobj; | |
17755 | } | |
17756 | ||
17757 | ||
c32bde28 | 17758 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
d55e5bfc RD |
17759 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
17760 | return 1; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17765 | PyObject *pyobj; | |
17766 | ||
17767 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
17768 | return pyobj; | |
17769 | } | |
17770 | ||
17771 | ||
c32bde28 | 17772 | static int _wrap_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17773 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
17774 | return 1; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static PyObject *_wrap_GREY_PEN_get() { | |
17779 | PyObject *pyobj; | |
17780 | ||
17781 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17782 | return pyobj; | |
17783 | } | |
17784 | ||
17785 | ||
c32bde28 | 17786 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17787 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
17788 | return 1; | |
17789 | } | |
17790 | ||
17791 | ||
17792 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17793 | PyObject *pyobj; | |
17794 | ||
17795 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17796 | return pyobj; | |
17797 | } | |
17798 | ||
17799 | ||
c32bde28 | 17800 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17801 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
17802 | return 1; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17807 | PyObject *pyobj; | |
17808 | ||
17809 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17810 | return pyobj; | |
17811 | } | |
17812 | ||
17813 | ||
c32bde28 | 17814 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17815 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
17816 | return 1; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
17821 | PyObject *pyobj; | |
17822 | ||
17823 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17824 | return pyobj; | |
17825 | } | |
17826 | ||
17827 | ||
c32bde28 | 17828 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17829 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
17830 | return 1; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
17835 | PyObject *pyobj; | |
17836 | ||
17837 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17838 | return pyobj; | |
17839 | } | |
17840 | ||
17841 | ||
c32bde28 | 17842 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17843 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
17844 | return 1; | |
17845 | } | |
17846 | ||
17847 | ||
17848 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
17849 | PyObject *pyobj; | |
17850 | ||
17851 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17852 | return pyobj; | |
17853 | } | |
17854 | ||
17855 | ||
c32bde28 | 17856 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17857 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
17858 | return 1; | |
17859 | } | |
17860 | ||
17861 | ||
17862 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
17863 | PyObject *pyobj; | |
17864 | ||
17865 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17866 | return pyobj; | |
17867 | } | |
17868 | ||
17869 | ||
c32bde28 | 17870 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17871 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
17872 | return 1; | |
17873 | } | |
17874 | ||
17875 | ||
17876 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17877 | PyObject *pyobj; | |
17878 | ||
17879 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17880 | return pyobj; | |
17881 | } | |
17882 | ||
17883 | ||
c32bde28 | 17884 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17885 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
17886 | return 1; | |
17887 | } | |
17888 | ||
17889 | ||
17890 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17891 | PyObject *pyobj; | |
17892 | ||
17893 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17894 | return pyobj; | |
17895 | } | |
17896 | ||
17897 | ||
c32bde28 | 17898 | static int _wrap_RED_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17899 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
17900 | return 1; | |
17901 | } | |
17902 | ||
17903 | ||
17904 | static PyObject *_wrap_RED_BRUSH_get() { | |
17905 | PyObject *pyobj; | |
17906 | ||
17907 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17908 | return pyobj; | |
17909 | } | |
17910 | ||
17911 | ||
c32bde28 | 17912 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17913 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
17914 | return 1; | |
17915 | } | |
17916 | ||
17917 | ||
17918 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17919 | PyObject *pyobj; | |
17920 | ||
17921 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17922 | return pyobj; | |
17923 | } | |
17924 | ||
17925 | ||
c32bde28 | 17926 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17927 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
17928 | return 1; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17933 | PyObject *pyobj; | |
17934 | ||
17935 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17936 | return pyobj; | |
17937 | } | |
17938 | ||
17939 | ||
c32bde28 | 17940 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17941 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
17942 | return 1; | |
17943 | } | |
17944 | ||
17945 | ||
17946 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17947 | PyObject *pyobj; | |
17948 | ||
17949 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17950 | return pyobj; | |
17951 | } | |
17952 | ||
17953 | ||
c32bde28 | 17954 | static int _wrap_BLACK_set(PyObject *) { |
d55e5bfc RD |
17955 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
17956 | return 1; | |
17957 | } | |
17958 | ||
17959 | ||
17960 | static PyObject *_wrap_BLACK_get() { | |
17961 | PyObject *pyobj; | |
17962 | ||
17963 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17964 | return pyobj; | |
17965 | } | |
17966 | ||
17967 | ||
c32bde28 | 17968 | static int _wrap_WHITE_set(PyObject *) { |
d55e5bfc RD |
17969 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
17970 | return 1; | |
17971 | } | |
17972 | ||
17973 | ||
17974 | static PyObject *_wrap_WHITE_get() { | |
17975 | PyObject *pyobj; | |
17976 | ||
17977 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17978 | return pyobj; | |
17979 | } | |
17980 | ||
17981 | ||
c32bde28 | 17982 | static int _wrap_RED_set(PyObject *) { |
d55e5bfc RD |
17983 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
17984 | return 1; | |
17985 | } | |
17986 | ||
17987 | ||
17988 | static PyObject *_wrap_RED_get() { | |
17989 | PyObject *pyobj; | |
17990 | ||
17991 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17992 | return pyobj; | |
17993 | } | |
17994 | ||
17995 | ||
c32bde28 | 17996 | static int _wrap_BLUE_set(PyObject *) { |
d55e5bfc RD |
17997 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
17998 | return 1; | |
17999 | } | |
18000 | ||
18001 | ||
18002 | static PyObject *_wrap_BLUE_get() { | |
18003 | PyObject *pyobj; | |
18004 | ||
18005 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
18006 | return pyobj; | |
18007 | } | |
18008 | ||
18009 | ||
c32bde28 | 18010 | static int _wrap_GREEN_set(PyObject *) { |
d55e5bfc RD |
18011 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
18012 | return 1; | |
18013 | } | |
18014 | ||
18015 | ||
18016 | static PyObject *_wrap_GREEN_get() { | |
18017 | PyObject *pyobj; | |
18018 | ||
18019 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
18020 | return pyobj; | |
18021 | } | |
18022 | ||
18023 | ||
c32bde28 | 18024 | static int _wrap_CYAN_set(PyObject *) { |
d55e5bfc RD |
18025 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
18026 | return 1; | |
18027 | } | |
18028 | ||
18029 | ||
18030 | static PyObject *_wrap_CYAN_get() { | |
18031 | PyObject *pyobj; | |
18032 | ||
18033 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
18034 | return pyobj; | |
18035 | } | |
18036 | ||
18037 | ||
c32bde28 | 18038 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
d55e5bfc RD |
18039 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
18040 | return 1; | |
18041 | } | |
18042 | ||
18043 | ||
18044 | static PyObject *_wrap_LIGHT_GREY_get() { | |
18045 | PyObject *pyobj; | |
18046 | ||
18047 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
18048 | return pyobj; | |
18049 | } | |
18050 | ||
18051 | ||
c32bde28 | 18052 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
d55e5bfc RD |
18053 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
18054 | return 1; | |
18055 | } | |
18056 | ||
18057 | ||
18058 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
18059 | PyObject *pyobj; | |
18060 | ||
18061 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
18062 | return pyobj; | |
18063 | } | |
18064 | ||
18065 | ||
c32bde28 | 18066 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
18067 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
18068 | return 1; | |
18069 | } | |
18070 | ||
18071 | ||
18072 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
18073 | PyObject *pyobj; | |
18074 | ||
18075 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
18076 | return pyobj; | |
18077 | } | |
18078 | ||
18079 | ||
c32bde28 | 18080 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
18081 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
18082 | return 1; | |
18083 | } | |
18084 | ||
18085 | ||
18086 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
18087 | PyObject *pyobj; | |
18088 | ||
18089 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
18090 | return pyobj; | |
18091 | } | |
18092 | ||
18093 | ||
c32bde28 | 18094 | static int _wrap_NullBitmap_set(PyObject *) { |
d55e5bfc RD |
18095 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
18096 | return 1; | |
18097 | } | |
18098 | ||
18099 | ||
18100 | static PyObject *_wrap_NullBitmap_get() { | |
18101 | PyObject *pyobj; | |
18102 | ||
18103 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
18104 | return pyobj; | |
18105 | } | |
18106 | ||
18107 | ||
c32bde28 | 18108 | static int _wrap_NullIcon_set(PyObject *) { |
d55e5bfc RD |
18109 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
18110 | return 1; | |
18111 | } | |
18112 | ||
18113 | ||
18114 | static PyObject *_wrap_NullIcon_get() { | |
18115 | PyObject *pyobj; | |
18116 | ||
18117 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
18118 | return pyobj; | |
18119 | } | |
18120 | ||
18121 | ||
c32bde28 | 18122 | static int _wrap_NullCursor_set(PyObject *) { |
d55e5bfc RD |
18123 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
18124 | return 1; | |
18125 | } | |
18126 | ||
18127 | ||
18128 | static PyObject *_wrap_NullCursor_get() { | |
18129 | PyObject *pyobj; | |
18130 | ||
18131 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
18132 | return pyobj; | |
18133 | } | |
18134 | ||
18135 | ||
c32bde28 | 18136 | static int _wrap_NullPen_set(PyObject *) { |
d55e5bfc RD |
18137 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
18138 | return 1; | |
18139 | } | |
18140 | ||
18141 | ||
18142 | static PyObject *_wrap_NullPen_get() { | |
18143 | PyObject *pyobj; | |
18144 | ||
18145 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
18146 | return pyobj; | |
18147 | } | |
18148 | ||
18149 | ||
c32bde28 | 18150 | static int _wrap_NullBrush_set(PyObject *) { |
d55e5bfc RD |
18151 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
18152 | return 1; | |
18153 | } | |
18154 | ||
18155 | ||
18156 | static PyObject *_wrap_NullBrush_get() { | |
18157 | PyObject *pyobj; | |
18158 | ||
18159 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
18160 | return pyobj; | |
18161 | } | |
18162 | ||
18163 | ||
c32bde28 | 18164 | static int _wrap_NullPalette_set(PyObject *) { |
d55e5bfc RD |
18165 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
18166 | return 1; | |
18167 | } | |
18168 | ||
18169 | ||
18170 | static PyObject *_wrap_NullPalette_get() { | |
18171 | PyObject *pyobj; | |
18172 | ||
18173 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
18174 | return pyobj; | |
18175 | } | |
18176 | ||
18177 | ||
c32bde28 | 18178 | static int _wrap_NullFont_set(PyObject *) { |
d55e5bfc RD |
18179 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
18180 | return 1; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject *_wrap_NullFont_get() { | |
18185 | PyObject *pyobj; | |
18186 | ||
18187 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
18188 | return pyobj; | |
18189 | } | |
18190 | ||
18191 | ||
c32bde28 | 18192 | static int _wrap_NullColour_set(PyObject *) { |
d55e5bfc RD |
18193 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
18194 | return 1; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject *_wrap_NullColour_get() { | |
18199 | PyObject *pyobj; | |
18200 | ||
18201 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
18202 | return pyobj; | |
18203 | } | |
18204 | ||
18205 | ||
c32bde28 | 18206 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18207 | PyObject *resultobj; |
18208 | wxPenList *arg1 = (wxPenList *) 0 ; | |
18209 | wxPen *arg2 = (wxPen *) 0 ; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | PyObject * obj1 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "self",(char *) "pen", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
18217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
18220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18221 | { | |
18222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18223 | (arg1)->AddPen(arg2); | |
18224 | ||
18225 | wxPyEndAllowThreads(__tstate); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | Py_INCREF(Py_None); resultobj = Py_None; | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
c32bde28 | 18235 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18236 | PyObject *resultobj; |
18237 | wxPenList *arg1 = (wxPenList *) 0 ; | |
18238 | wxColour *arg2 = 0 ; | |
18239 | int arg3 ; | |
18240 | int arg4 ; | |
18241 | wxPen *result; | |
18242 | wxColour temp2 ; | |
18243 | PyObject * obj0 = 0 ; | |
18244 | PyObject * obj1 = 0 ; | |
18245 | PyObject * obj2 = 0 ; | |
18246 | PyObject * obj3 = 0 ; | |
18247 | char *kwnames[] = { | |
18248 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
18249 | }; | |
18250 | ||
18251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18254 | { | |
18255 | arg2 = &temp2; | |
18256 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18257 | } | |
c32bde28 | 18258 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18259 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18260 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18261 | if (PyErr_Occurred()) SWIG_fail; |
18262 | { | |
18263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18264 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
18265 | ||
18266 | wxPyEndAllowThreads(__tstate); | |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
18268 | } | |
18269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
18270 | return resultobj; | |
18271 | fail: | |
18272 | return NULL; | |
18273 | } | |
18274 | ||
18275 | ||
c32bde28 | 18276 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18277 | PyObject *resultobj; |
18278 | wxPenList *arg1 = (wxPenList *) 0 ; | |
18279 | wxPen *arg2 = (wxPen *) 0 ; | |
18280 | PyObject * obj0 = 0 ; | |
18281 | PyObject * obj1 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "self",(char *) "pen", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
18287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
18290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18291 | { | |
18292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18293 | (arg1)->RemovePen(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_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18306 | PyObject *resultobj; |
18307 | wxPenList *arg1 = (wxPenList *) 0 ; | |
18308 | int result; | |
18309 | PyObject * obj0 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
18315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18317 | { | |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | result = (int)(arg1)->GetCount(); | |
18320 | ||
18321 | wxPyEndAllowThreads(__tstate); | |
18322 | if (PyErr_Occurred()) SWIG_fail; | |
18323 | } | |
c32bde28 | 18324 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18325 | return resultobj; |
18326 | fail: | |
18327 | return NULL; | |
18328 | } | |
18329 | ||
18330 | ||
c32bde28 | 18331 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18332 | PyObject *obj; |
18333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18334 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
18335 | Py_INCREF(obj); | |
18336 | return Py_BuildValue((char *)""); | |
18337 | } | |
c32bde28 | 18338 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18339 | PyObject *resultobj; |
18340 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18341 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18342 | PyObject * obj0 = 0 ; | |
18343 | PyObject * obj1 = 0 ; | |
18344 | char *kwnames[] = { | |
18345 | (char *) "self",(char *) "brush", NULL | |
18346 | }; | |
18347 | ||
18348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
18349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18353 | { | |
18354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18355 | (arg1)->AddBrush(arg2); | |
18356 | ||
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | Py_INCREF(Py_None); resultobj = Py_None; | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
c32bde28 | 18367 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18368 | PyObject *resultobj; |
18369 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18370 | wxColour *arg2 = 0 ; | |
18371 | int arg3 ; | |
18372 | wxBrush *result; | |
18373 | wxColour temp2 ; | |
18374 | PyObject * obj0 = 0 ; | |
18375 | PyObject * obj1 = 0 ; | |
18376 | PyObject * obj2 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18384 | { | |
18385 | arg2 = &temp2; | |
18386 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18387 | } | |
c32bde28 | 18388 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18389 | if (PyErr_Occurred()) SWIG_fail; |
18390 | { | |
18391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18392 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
18393 | ||
18394 | wxPyEndAllowThreads(__tstate); | |
18395 | if (PyErr_Occurred()) SWIG_fail; | |
18396 | } | |
18397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
18398 | return resultobj; | |
18399 | fail: | |
18400 | return NULL; | |
18401 | } | |
18402 | ||
18403 | ||
c32bde28 | 18404 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18405 | PyObject *resultobj; |
18406 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18407 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18408 | PyObject * obj0 = 0 ; | |
18409 | PyObject * obj1 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self",(char *) "brush", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18417 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18419 | { | |
18420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18421 | (arg1)->RemoveBrush(arg2); | |
18422 | ||
18423 | wxPyEndAllowThreads(__tstate); | |
18424 | if (PyErr_Occurred()) SWIG_fail; | |
18425 | } | |
18426 | Py_INCREF(Py_None); resultobj = Py_None; | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | return NULL; | |
18430 | } | |
18431 | ||
18432 | ||
c32bde28 | 18433 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18434 | PyObject *resultobj; |
18435 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18436 | int result; | |
18437 | PyObject * obj0 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18445 | { | |
18446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18447 | result = (int)(arg1)->GetCount(); | |
18448 | ||
18449 | wxPyEndAllowThreads(__tstate); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | } | |
c32bde28 | 18452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18453 | return resultobj; |
18454 | fail: | |
18455 | return NULL; | |
18456 | } | |
18457 | ||
18458 | ||
c32bde28 | 18459 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18460 | PyObject *obj; |
18461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18462 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
18463 | Py_INCREF(obj); | |
18464 | return Py_BuildValue((char *)""); | |
18465 | } | |
c32bde28 | 18466 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18467 | PyObject *resultobj; |
18468 | wxColourDatabase *result; | |
18469 | char *kwnames[] = { | |
18470 | NULL | |
18471 | }; | |
18472 | ||
18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
18474 | { | |
0439c23b | 18475 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18477 | result = (wxColourDatabase *)new wxColourDatabase(); | |
18478 | ||
18479 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18480 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18481 | } |
18482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
18483 | return resultobj; | |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
c32bde28 | 18489 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18490 | PyObject *resultobj; |
18491 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18492 | PyObject * obj0 = 0 ; | |
18493 | char *kwnames[] = { | |
18494 | (char *) "self", NULL | |
18495 | }; | |
18496 | ||
18497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
18498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18500 | { | |
18501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18502 | delete arg1; | |
18503 | ||
18504 | wxPyEndAllowThreads(__tstate); | |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
18506 | } | |
18507 | Py_INCREF(Py_None); resultobj = Py_None; | |
18508 | return resultobj; | |
18509 | fail: | |
18510 | return NULL; | |
18511 | } | |
18512 | ||
18513 | ||
c32bde28 | 18514 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18515 | PyObject *resultobj; |
18516 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18517 | wxString *arg2 = 0 ; | |
18518 | wxColour result; | |
ae8162c8 | 18519 | bool temp2 = false ; |
d55e5bfc RD |
18520 | PyObject * obj0 = 0 ; |
18521 | PyObject * obj1 = 0 ; | |
18522 | char *kwnames[] = { | |
18523 | (char *) "self",(char *) "name", NULL | |
18524 | }; | |
18525 | ||
18526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
18527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18529 | { | |
18530 | arg2 = wxString_in_helper(obj1); | |
18531 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18532 | temp2 = true; |
d55e5bfc RD |
18533 | } |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | wxColour * resultptr; | |
18543 | resultptr = new wxColour((wxColour &) result); | |
18544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18545 | } | |
18546 | { | |
18547 | if (temp2) | |
18548 | delete arg2; | |
18549 | } | |
18550 | return resultobj; | |
18551 | fail: | |
18552 | { | |
18553 | if (temp2) | |
18554 | delete arg2; | |
18555 | } | |
18556 | return NULL; | |
18557 | } | |
18558 | ||
18559 | ||
c32bde28 | 18560 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18561 | PyObject *resultobj; |
18562 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18563 | wxColour *arg2 = 0 ; | |
18564 | wxString result; | |
18565 | wxColour temp2 ; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self",(char *) "colour", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18575 | { | |
18576 | arg2 = &temp2; | |
18577 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18578 | } | |
18579 | { | |
18580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18581 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
18582 | ||
18583 | wxPyEndAllowThreads(__tstate); | |
18584 | if (PyErr_Occurred()) SWIG_fail; | |
18585 | } | |
18586 | { | |
18587 | #if wxUSE_UNICODE | |
18588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18589 | #else | |
18590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18591 | #endif | |
18592 | } | |
18593 | return resultobj; | |
18594 | fail: | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
c32bde28 | 18599 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18600 | PyObject *resultobj; |
18601 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18602 | wxString *arg2 = 0 ; | |
18603 | wxColour *arg3 = 0 ; | |
ae8162c8 | 18604 | bool temp2 = false ; |
d55e5bfc RD |
18605 | wxColour temp3 ; |
18606 | PyObject * obj0 = 0 ; | |
18607 | PyObject * obj1 = 0 ; | |
18608 | PyObject * obj2 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18616 | { | |
18617 | arg2 = wxString_in_helper(obj1); | |
18618 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18619 | temp2 = true; |
d55e5bfc RD |
18620 | } |
18621 | { | |
18622 | arg3 = &temp3; | |
18623 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18624 | } | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
18628 | ||
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
18632 | Py_INCREF(Py_None); resultobj = Py_None; | |
18633 | { | |
18634 | if (temp2) | |
18635 | delete arg2; | |
18636 | } | |
18637 | return resultobj; | |
18638 | fail: | |
18639 | { | |
18640 | if (temp2) | |
18641 | delete arg2; | |
18642 | } | |
18643 | return NULL; | |
18644 | } | |
18645 | ||
18646 | ||
c32bde28 | 18647 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18648 | PyObject *resultobj; |
18649 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18650 | wxString *arg2 = 0 ; | |
18651 | int arg3 ; | |
18652 | int arg4 ; | |
18653 | int arg5 ; | |
ae8162c8 | 18654 | bool temp2 = false ; |
d55e5bfc RD |
18655 | PyObject * obj0 = 0 ; |
18656 | PyObject * obj1 = 0 ; | |
18657 | PyObject * obj2 = 0 ; | |
18658 | PyObject * obj3 = 0 ; | |
18659 | PyObject * obj4 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18667 | { | |
18668 | arg2 = wxString_in_helper(obj1); | |
18669 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18670 | temp2 = true; |
d55e5bfc | 18671 | } |
c32bde28 | 18672 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18673 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18674 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18675 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18676 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18677 | if (PyErr_Occurred()) SWIG_fail; |
18678 | { | |
18679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18680 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18681 | ||
18682 | wxPyEndAllowThreads(__tstate); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
18685 | Py_INCREF(Py_None); resultobj = Py_None; | |
18686 | { | |
18687 | if (temp2) | |
18688 | delete arg2; | |
18689 | } | |
18690 | return resultobj; | |
18691 | fail: | |
18692 | { | |
18693 | if (temp2) | |
18694 | delete arg2; | |
18695 | } | |
18696 | return NULL; | |
18697 | } | |
18698 | ||
18699 | ||
c32bde28 | 18700 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18701 | PyObject *obj; |
18702 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18703 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18704 | Py_INCREF(obj); | |
18705 | return Py_BuildValue((char *)""); | |
18706 | } | |
c32bde28 | 18707 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18708 | PyObject *resultobj; |
18709 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18710 | wxFont *arg2 = (wxFont *) 0 ; | |
18711 | PyObject * obj0 = 0 ; | |
18712 | PyObject * obj1 = 0 ; | |
18713 | char *kwnames[] = { | |
18714 | (char *) "self",(char *) "font", NULL | |
18715 | }; | |
18716 | ||
18717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
18718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18722 | { | |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | (arg1)->AddFont(arg2); | |
18725 | ||
18726 | wxPyEndAllowThreads(__tstate); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
18729 | Py_INCREF(Py_None); resultobj = Py_None; | |
18730 | return resultobj; | |
18731 | fail: | |
18732 | return NULL; | |
18733 | } | |
18734 | ||
18735 | ||
c32bde28 | 18736 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18737 | PyObject *resultobj; |
18738 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18739 | int arg2 ; | |
18740 | int arg3 ; | |
18741 | int arg4 ; | |
18742 | int arg5 ; | |
ae8162c8 | 18743 | bool arg6 = (bool) false ; |
d55e5bfc RD |
18744 | wxString const &arg7_defvalue = wxPyEmptyString ; |
18745 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18746 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18747 | wxFont *result; | |
ae8162c8 | 18748 | bool temp7 = false ; |
d55e5bfc RD |
18749 | PyObject * obj0 = 0 ; |
18750 | PyObject * obj1 = 0 ; | |
18751 | PyObject * obj2 = 0 ; | |
18752 | PyObject * obj3 = 0 ; | |
18753 | PyObject * obj4 = 0 ; | |
18754 | PyObject * obj5 = 0 ; | |
18755 | PyObject * obj6 = 0 ; | |
18756 | PyObject * obj7 = 0 ; | |
18757 | char *kwnames[] = { | |
18758 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18759 | }; | |
18760 | ||
18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18764 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18765 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18766 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18767 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18768 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18769 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18770 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18771 | if (PyErr_Occurred()) SWIG_fail; |
18772 | if (obj5) { | |
c32bde28 | 18773 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
18774 | if (PyErr_Occurred()) SWIG_fail; |
18775 | } | |
18776 | if (obj6) { | |
18777 | { | |
18778 | arg7 = wxString_in_helper(obj6); | |
18779 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 18780 | temp7 = true; |
d55e5bfc RD |
18781 | } |
18782 | } | |
18783 | if (obj7) { | |
c32bde28 | 18784 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18785 | if (PyErr_Occurred()) SWIG_fail; |
18786 | } | |
18787 | { | |
18788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18789 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18790 | ||
18791 | wxPyEndAllowThreads(__tstate); | |
18792 | if (PyErr_Occurred()) SWIG_fail; | |
18793 | } | |
18794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
18795 | { | |
18796 | if (temp7) | |
18797 | delete arg7; | |
18798 | } | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | { | |
18802 | if (temp7) | |
18803 | delete arg7; | |
18804 | } | |
18805 | return NULL; | |
18806 | } | |
18807 | ||
18808 | ||
c32bde28 | 18809 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18810 | PyObject *resultobj; |
18811 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18812 | wxFont *arg2 = (wxFont *) 0 ; | |
18813 | PyObject * obj0 = 0 ; | |
18814 | PyObject * obj1 = 0 ; | |
18815 | char *kwnames[] = { | |
18816 | (char *) "self",(char *) "font", NULL | |
18817 | }; | |
18818 | ||
18819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
18820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | (arg1)->RemoveFont(arg2); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | Py_INCREF(Py_None); resultobj = Py_None; | |
18832 | return resultobj; | |
18833 | fail: | |
18834 | return NULL; | |
18835 | } | |
18836 | ||
18837 | ||
c32bde28 | 18838 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18839 | PyObject *resultobj; |
18840 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18841 | int result; | |
18842 | PyObject * obj0 = 0 ; | |
18843 | char *kwnames[] = { | |
18844 | (char *) "self", NULL | |
18845 | }; | |
18846 | ||
18847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
18848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18850 | { | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = (int)(arg1)->GetCount(); | |
18853 | ||
18854 | wxPyEndAllowThreads(__tstate); | |
18855 | if (PyErr_Occurred()) SWIG_fail; | |
18856 | } | |
c32bde28 | 18857 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18858 | return resultobj; |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
c32bde28 | 18864 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18865 | PyObject *obj; |
18866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18867 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18868 | Py_INCREF(obj); | |
18869 | return Py_BuildValue((char *)""); | |
18870 | } | |
c32bde28 | 18871 | static int _wrap_TheFontList_set(PyObject *) { |
d55e5bfc RD |
18872 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
18873 | return 1; | |
18874 | } | |
18875 | ||
18876 | ||
18877 | static PyObject *_wrap_TheFontList_get() { | |
18878 | PyObject *pyobj; | |
18879 | ||
18880 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18881 | return pyobj; | |
18882 | } | |
18883 | ||
18884 | ||
c32bde28 | 18885 | static int _wrap_ThePenList_set(PyObject *) { |
d55e5bfc RD |
18886 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
18887 | return 1; | |
18888 | } | |
18889 | ||
18890 | ||
18891 | static PyObject *_wrap_ThePenList_get() { | |
18892 | PyObject *pyobj; | |
18893 | ||
18894 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18895 | return pyobj; | |
18896 | } | |
18897 | ||
18898 | ||
c32bde28 | 18899 | static int _wrap_TheBrushList_set(PyObject *) { |
d55e5bfc RD |
18900 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18901 | return 1; | |
18902 | } | |
18903 | ||
18904 | ||
18905 | static PyObject *_wrap_TheBrushList_get() { | |
18906 | PyObject *pyobj; | |
18907 | ||
18908 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18909 | return pyobj; | |
18910 | } | |
18911 | ||
18912 | ||
c32bde28 | 18913 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d55e5bfc RD |
18914 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18915 | return 1; | |
18916 | } | |
18917 | ||
18918 | ||
18919 | static PyObject *_wrap_TheColourDatabase_get() { | |
18920 | PyObject *pyobj; | |
18921 | ||
18922 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18923 | return pyobj; | |
18924 | } | |
18925 | ||
18926 | ||
c32bde28 | 18927 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18928 | PyObject *resultobj; |
18929 | wxEffects *result; | |
18930 | char *kwnames[] = { | |
18931 | NULL | |
18932 | }; | |
18933 | ||
18934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18935 | { | |
18936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18937 | result = (wxEffects *)new wxEffects(); | |
18938 | ||
18939 | wxPyEndAllowThreads(__tstate); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | } | |
18942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18943 | return resultobj; | |
18944 | fail: | |
18945 | return NULL; | |
18946 | } | |
18947 | ||
18948 | ||
c32bde28 | 18949 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18950 | PyObject *resultobj; |
18951 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18952 | wxColour result; | |
18953 | PyObject * obj0 = 0 ; | |
18954 | char *kwnames[] = { | |
18955 | (char *) "self", NULL | |
18956 | }; | |
18957 | ||
18958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18961 | { | |
18962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18963 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18964 | ||
18965 | wxPyEndAllowThreads(__tstate); | |
18966 | if (PyErr_Occurred()) SWIG_fail; | |
18967 | } | |
18968 | { | |
18969 | wxColour * resultptr; | |
18970 | resultptr = new wxColour((wxColour &) result); | |
18971 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18972 | } | |
18973 | return resultobj; | |
18974 | fail: | |
18975 | return NULL; | |
18976 | } | |
18977 | ||
18978 | ||
c32bde28 | 18979 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18980 | PyObject *resultobj; |
18981 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18982 | wxColour result; | |
18983 | PyObject * obj0 = 0 ; | |
18984 | char *kwnames[] = { | |
18985 | (char *) "self", NULL | |
18986 | }; | |
18987 | ||
18988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18991 | { | |
18992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18993 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18994 | ||
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
18998 | { | |
18999 | wxColour * resultptr; | |
19000 | resultptr = new wxColour((wxColour &) result); | |
19001 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19002 | } | |
19003 | return resultobj; | |
19004 | fail: | |
19005 | return NULL; | |
19006 | } | |
19007 | ||
19008 | ||
c32bde28 | 19009 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19010 | PyObject *resultobj; |
19011 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19012 | wxColour result; | |
19013 | PyObject * obj0 = 0 ; | |
19014 | char *kwnames[] = { | |
19015 | (char *) "self", NULL | |
19016 | }; | |
19017 | ||
19018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
19019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19021 | { | |
19022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19023 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
19024 | ||
19025 | wxPyEndAllowThreads(__tstate); | |
19026 | if (PyErr_Occurred()) SWIG_fail; | |
19027 | } | |
19028 | { | |
19029 | wxColour * resultptr; | |
19030 | resultptr = new wxColour((wxColour &) result); | |
19031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19032 | } | |
19033 | return resultobj; | |
19034 | fail: | |
19035 | return NULL; | |
19036 | } | |
19037 | ||
19038 | ||
c32bde28 | 19039 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19040 | PyObject *resultobj; |
19041 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19042 | wxColour result; | |
19043 | PyObject * obj0 = 0 ; | |
19044 | char *kwnames[] = { | |
19045 | (char *) "self", NULL | |
19046 | }; | |
19047 | ||
19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
19049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19051 | { | |
19052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19053 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
19054 | ||
19055 | wxPyEndAllowThreads(__tstate); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | } | |
19058 | { | |
19059 | wxColour * resultptr; | |
19060 | resultptr = new wxColour((wxColour &) result); | |
19061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19062 | } | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
c32bde28 | 19069 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19070 | PyObject *resultobj; |
19071 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19072 | wxColour result; | |
19073 | PyObject * obj0 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
19079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19081 | { | |
19082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19083 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
19084 | ||
19085 | wxPyEndAllowThreads(__tstate); | |
19086 | if (PyErr_Occurred()) SWIG_fail; | |
19087 | } | |
19088 | { | |
19089 | wxColour * resultptr; | |
19090 | resultptr = new wxColour((wxColour &) result); | |
19091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19092 | } | |
19093 | return resultobj; | |
19094 | fail: | |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
c32bde28 | 19099 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19100 | PyObject *resultobj; |
19101 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19102 | wxColour *arg2 = 0 ; | |
19103 | wxColour temp2 ; | |
19104 | PyObject * obj0 = 0 ; | |
19105 | PyObject * obj1 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self",(char *) "c", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | { | |
19114 | arg2 = &temp2; | |
19115 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19116 | } | |
19117 | { | |
19118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19119 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
19120 | ||
19121 | wxPyEndAllowThreads(__tstate); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
19124 | Py_INCREF(Py_None); resultobj = Py_None; | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
c32bde28 | 19131 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19132 | PyObject *resultobj; |
19133 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19134 | wxColour *arg2 = 0 ; | |
19135 | wxColour temp2 ; | |
19136 | PyObject * obj0 = 0 ; | |
19137 | PyObject * obj1 = 0 ; | |
19138 | char *kwnames[] = { | |
19139 | (char *) "self",(char *) "c", NULL | |
19140 | }; | |
19141 | ||
19142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
19143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19145 | { | |
19146 | arg2 = &temp2; | |
19147 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19148 | } | |
19149 | { | |
19150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19151 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
19152 | ||
19153 | wxPyEndAllowThreads(__tstate); | |
19154 | if (PyErr_Occurred()) SWIG_fail; | |
19155 | } | |
19156 | Py_INCREF(Py_None); resultobj = Py_None; | |
19157 | return resultobj; | |
19158 | fail: | |
19159 | return NULL; | |
19160 | } | |
19161 | ||
19162 | ||
c32bde28 | 19163 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19164 | PyObject *resultobj; |
19165 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19166 | wxColour *arg2 = 0 ; | |
19167 | wxColour temp2 ; | |
19168 | PyObject * obj0 = 0 ; | |
19169 | PyObject * obj1 = 0 ; | |
19170 | char *kwnames[] = { | |
19171 | (char *) "self",(char *) "c", NULL | |
19172 | }; | |
19173 | ||
19174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
19175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19177 | { | |
19178 | arg2 = &temp2; | |
19179 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19180 | } | |
19181 | { | |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19183 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
19184 | ||
19185 | wxPyEndAllowThreads(__tstate); | |
19186 | if (PyErr_Occurred()) SWIG_fail; | |
19187 | } | |
19188 | Py_INCREF(Py_None); resultobj = Py_None; | |
19189 | return resultobj; | |
19190 | fail: | |
19191 | return NULL; | |
19192 | } | |
19193 | ||
19194 | ||
c32bde28 | 19195 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19196 | PyObject *resultobj; |
19197 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19198 | wxColour *arg2 = 0 ; | |
19199 | wxColour temp2 ; | |
19200 | PyObject * obj0 = 0 ; | |
19201 | PyObject * obj1 = 0 ; | |
19202 | char *kwnames[] = { | |
19203 | (char *) "self",(char *) "c", NULL | |
19204 | }; | |
19205 | ||
19206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
19207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19209 | { | |
19210 | arg2 = &temp2; | |
19211 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19212 | } | |
19213 | { | |
19214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19215 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
19216 | ||
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
19220 | Py_INCREF(Py_None); resultobj = Py_None; | |
19221 | return resultobj; | |
19222 | fail: | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
c32bde28 | 19227 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19228 | PyObject *resultobj; |
19229 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19230 | wxColour *arg2 = 0 ; | |
19231 | wxColour temp2 ; | |
19232 | PyObject * obj0 = 0 ; | |
19233 | PyObject * obj1 = 0 ; | |
19234 | char *kwnames[] = { | |
19235 | (char *) "self",(char *) "c", NULL | |
19236 | }; | |
19237 | ||
19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
19239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19241 | { | |
19242 | arg2 = &temp2; | |
19243 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19244 | } | |
19245 | { | |
19246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19247 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
19248 | ||
19249 | wxPyEndAllowThreads(__tstate); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
19251 | } | |
19252 | Py_INCREF(Py_None); resultobj = Py_None; | |
19253 | return resultobj; | |
19254 | fail: | |
19255 | return NULL; | |
19256 | } | |
19257 | ||
19258 | ||
c32bde28 | 19259 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19260 | PyObject *resultobj; |
19261 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19262 | wxColour *arg2 = 0 ; | |
19263 | wxColour *arg3 = 0 ; | |
19264 | wxColour *arg4 = 0 ; | |
19265 | wxColour *arg5 = 0 ; | |
19266 | wxColour *arg6 = 0 ; | |
19267 | wxColour temp2 ; | |
19268 | wxColour temp3 ; | |
19269 | wxColour temp4 ; | |
19270 | wxColour temp5 ; | |
19271 | wxColour temp6 ; | |
19272 | PyObject * obj0 = 0 ; | |
19273 | PyObject * obj1 = 0 ; | |
19274 | PyObject * obj2 = 0 ; | |
19275 | PyObject * obj3 = 0 ; | |
19276 | PyObject * obj4 = 0 ; | |
19277 | PyObject * obj5 = 0 ; | |
19278 | char *kwnames[] = { | |
19279 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
19280 | }; | |
19281 | ||
19282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
19283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19285 | { | |
19286 | arg2 = &temp2; | |
19287 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19288 | } | |
19289 | { | |
19290 | arg3 = &temp3; | |
19291 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19292 | } | |
19293 | { | |
19294 | arg4 = &temp4; | |
19295 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
19296 | } | |
19297 | { | |
19298 | arg5 = &temp5; | |
19299 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
19300 | } | |
19301 | { | |
19302 | arg6 = &temp6; | |
19303 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
19304 | } | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | Py_INCREF(Py_None); resultobj = Py_None; | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | return NULL; | |
19316 | } | |
19317 | ||
19318 | ||
c32bde28 | 19319 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19320 | PyObject *resultobj; |
19321 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19322 | wxDC *arg2 = 0 ; | |
19323 | wxRect *arg3 = 0 ; | |
19324 | int arg4 = (int) 1 ; | |
19325 | wxRect temp3 ; | |
19326 | PyObject * obj0 = 0 ; | |
19327 | PyObject * obj1 = 0 ; | |
19328 | PyObject * obj2 = 0 ; | |
19329 | PyObject * obj3 = 0 ; | |
19330 | char *kwnames[] = { | |
19331 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
19332 | }; | |
19333 | ||
19334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19339 | SWIG_fail; | |
19340 | if (arg2 == NULL) { | |
19341 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19342 | SWIG_fail; | |
19343 | } | |
19344 | { | |
19345 | arg3 = &temp3; | |
19346 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
19347 | } | |
19348 | if (obj3) { | |
c32bde28 | 19349 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19350 | if (PyErr_Occurred()) SWIG_fail; |
19351 | } | |
19352 | { | |
19353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19354 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
19355 | ||
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | Py_INCREF(Py_None); resultobj = Py_None; | |
19360 | return resultobj; | |
19361 | fail: | |
19362 | return NULL; | |
19363 | } | |
19364 | ||
19365 | ||
c32bde28 | 19366 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19367 | PyObject *resultobj; |
19368 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19369 | wxRect *arg2 = 0 ; | |
19370 | wxDC *arg3 = 0 ; | |
19371 | wxBitmap *arg4 = 0 ; | |
19372 | bool result; | |
19373 | wxRect temp2 ; | |
19374 | PyObject * obj0 = 0 ; | |
19375 | PyObject * obj1 = 0 ; | |
19376 | PyObject * obj2 = 0 ; | |
19377 | PyObject * obj3 = 0 ; | |
19378 | char *kwnames[] = { | |
19379 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
19380 | }; | |
19381 | ||
19382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19385 | { | |
19386 | arg2 = &temp2; | |
19387 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19388 | } | |
19389 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
19390 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19391 | SWIG_fail; | |
19392 | if (arg3 == NULL) { | |
19393 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19394 | SWIG_fail; | |
19395 | } | |
19396 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
19397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19398 | SWIG_fail; | |
19399 | if (arg4 == NULL) { | |
19400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19401 | SWIG_fail; | |
19402 | } | |
19403 | { | |
19404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19405 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
19406 | ||
19407 | wxPyEndAllowThreads(__tstate); | |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
19409 | } | |
19410 | { | |
19411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19412 | } | |
19413 | return resultobj; | |
19414 | fail: | |
19415 | return NULL; | |
19416 | } | |
19417 | ||
19418 | ||
c32bde28 | 19419 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19420 | PyObject *obj; |
19421 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19422 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
19423 | Py_INCREF(obj); | |
19424 | return Py_BuildValue((char *)""); | |
19425 | } | |
19426 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
19427 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
19428 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19429 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19430 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19431 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19432 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
19433 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19434 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19435 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19436 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19437 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19438 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19439 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19440 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19441 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19442 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19443 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19444 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19445 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19446 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19447 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19448 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19449 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
19450 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19451 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19452 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19453 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19454 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19455 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
19456 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19457 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19458 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19459 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19460 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19461 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19462 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19463 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19464 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19465 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19466 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19467 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19468 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19469 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19470 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19471 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19472 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19473 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19474 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19475 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19476 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19477 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
19478 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19479 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19480 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19481 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19482 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19483 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19484 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19485 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19486 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19487 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
19488 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19489 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19490 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19491 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19492 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19493 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19494 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
19495 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
19496 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19497 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19498 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19499 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19500 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19501 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19502 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19503 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19504 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19505 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19506 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19507 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19508 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 RD |
19509 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, |
19510 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
19511 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, |
19512 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19513 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19514 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19515 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19516 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19517 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19518 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19519 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19520 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19521 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
19522 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19523 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
19524 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19525 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19526 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19527 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19528 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19529 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19530 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19531 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19532 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19533 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19534 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19535 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19536 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19537 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19538 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19539 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19540 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19541 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19542 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
19543 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19544 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19545 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19546 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19547 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19548 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19549 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19550 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
19551 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19552 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19553 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19554 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19555 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19556 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19557 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19558 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
19559 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19560 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19561 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19562 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19563 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19564 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19565 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19566 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19567 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19568 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19569 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19570 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19571 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19572 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19573 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
19574 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19575 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19576 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19577 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19578 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19579 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19580 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19581 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19582 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19583 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19584 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19585 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19586 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19587 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19588 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19589 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19590 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19591 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19592 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19593 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19594 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19595 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19596 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19597 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19598 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19599 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19600 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19601 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19602 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
19603 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19604 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19605 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19606 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19607 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19608 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19609 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19610 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19611 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19612 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19613 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19614 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19615 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19616 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
19617 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19618 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19619 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19620 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19621 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 19622 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
19623 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, |
19624 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19625 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19626 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19627 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19628 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19629 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 19630 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
19631 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, |
19632 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19633 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19634 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19635 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19636 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19637 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19638 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19639 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19640 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19641 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19642 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
19643 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19644 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19645 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19646 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19647 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19648 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19649 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19650 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19651 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
19652 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19653 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19654 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19655 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19656 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19657 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19658 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19659 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19660 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19661 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19662 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19663 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19664 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19665 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19666 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19667 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19668 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19669 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19670 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19671 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
19672 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19673 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19674 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19675 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19676 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 19677 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
19678 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
19679 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19680 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19681 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 RD |
19682 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
19683 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
19684 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
19685 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19686 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19687 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19688 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19689 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19690 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19691 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19692 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19693 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19694 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 19695 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
19696 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
19697 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19698 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19699 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19700 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19701 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19702 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19703 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19704 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19705 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19706 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19707 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19708 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19709 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19710 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19711 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19712 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
19713 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19714 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19715 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19716 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19717 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19718 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19719 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19720 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
19721 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19722 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19723 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19724 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19725 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19726 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19727 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
19728 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19729 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19730 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19731 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19732 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19733 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19734 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19735 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19736 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19737 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19738 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19739 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19740 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19741 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19742 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19743 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19744 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19745 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19746 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19747 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19748 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19749 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
19750 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19751 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
19752 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19753 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19754 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19755 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19756 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19757 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19758 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19759 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
19760 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19761 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19762 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19763 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19764 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19765 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19766 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19767 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19768 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19769 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19770 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19771 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19772 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19773 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19774 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19775 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19776 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19777 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19778 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19779 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19780 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19781 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19782 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19783 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19784 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19785 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19786 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19787 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19788 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19789 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19790 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19791 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19792 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19793 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19794 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19795 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19796 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19797 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19798 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19799 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19800 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19801 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19802 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19803 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19804 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19805 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19806 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19807 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19808 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19809 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19810 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19811 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19812 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19813 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19814 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19815 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19816 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19817 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19818 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19819 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19820 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19821 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19822 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19823 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19824 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19825 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19826 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19827 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19828 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19829 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19830 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19831 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19832 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19833 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19834 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19835 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19836 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19837 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19838 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19839 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19840 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19841 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19842 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19843 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19844 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19845 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19846 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19847 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19848 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19849 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19850 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19851 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19852 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19853 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19854 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19855 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19856 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19857 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19858 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19859 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19860 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19861 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19862 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19863 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19864 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19865 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19866 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19867 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19868 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19869 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19870 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19871 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19872 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19873 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19874 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19875 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19876 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19877 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19878 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19879 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19880 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19881 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19882 | { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19883 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19884 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19885 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19886 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19887 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19888 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19889 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
19890 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19891 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19892 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19893 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
19894 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
19895 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19896 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19897 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
19898 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19899 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
19900 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19901 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19902 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19903 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19904 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
19905 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19906 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
19907 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19908 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
19909 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19910 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
19911 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19912 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
19913 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19914 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19915 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19916 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19917 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19918 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
19919 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19920 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19921 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19922 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19923 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19924 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19925 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19926 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19927 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
19928 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19929 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19930 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
19931 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19932 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
19933 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19934 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19935 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19936 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19937 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19938 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19939 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19940 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19941 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19942 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19943 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19944 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
19945 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19946 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19947 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19948 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19949 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
19950 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19951 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19952 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19953 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19954 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19955 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19956 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19957 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19958 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19959 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19960 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19961 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19962 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19963 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19964 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19965 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19966 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19967 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19968 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19969 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19970 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19971 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19972 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19973 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19974 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19975 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19976 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19977 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19978 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19979 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19980 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19981 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19982 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
19983 | }; |
19984 | ||
19985 | ||
19986 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19987 | ||
19988 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19989 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19990 | } | |
19991 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19992 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19993 | } | |
19994 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19995 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19996 | } | |
19997 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19998 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19999 | } | |
20000 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
20001 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20002 | } | |
20003 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
20004 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
20005 | } | |
20006 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
20007 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
20008 | } | |
20009 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
20010 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
20011 | } | |
20012 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
20013 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
20014 | } | |
20015 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
20016 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
20017 | } | |
20018 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
20019 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
20020 | } | |
20021 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
20022 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
20023 | } | |
20024 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
20025 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
20026 | } | |
20027 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
20028 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
20029 | } | |
20030 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
20031 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
20032 | } | |
20033 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
20034 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
20035 | } | |
20036 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
20037 | return (void *)((wxObject *) ((wxSizer *) x)); | |
20038 | } | |
20039 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
20040 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
20041 | } | |
20042 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
20043 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
20044 | } | |
20045 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
20046 | return (void *)((wxObject *) ((wxPenList *) x)); | |
20047 | } | |
20048 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
20049 | return (void *)((wxObject *) ((wxEvent *) x)); | |
20050 | } | |
20051 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
20052 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
20053 | } | |
20054 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
20055 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
20056 | } | |
20057 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
20058 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
20059 | } | |
20060 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
20061 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
20062 | } | |
20063 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
20064 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
20065 | } | |
20066 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
20067 | return (void *)((wxObject *) ((wxDC *) x)); | |
20068 | } | |
20069 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
20070 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
20071 | } | |
20072 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
20073 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
20074 | } | |
20075 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
20076 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
20077 | } | |
20078 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
20079 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
20080 | } | |
20081 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
20082 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
20083 | } | |
20084 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
20085 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
20086 | } | |
20087 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
20088 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
20089 | } | |
20090 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
20091 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
20092 | } | |
20093 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
20094 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
20095 | } | |
20096 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
20097 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
20098 | } | |
20099 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
20100 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
20101 | } | |
20102 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
20103 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
20104 | } | |
20105 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
20106 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
20107 | } | |
20108 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
20109 | return (void *)((wxObject *) ((wxEffects *) x)); | |
20110 | } | |
20111 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
20112 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
20113 | } | |
20114 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
20115 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
20116 | } | |
20117 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
20118 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
20119 | } | |
20120 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
20121 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
20122 | } | |
20123 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
20124 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
20125 | } | |
20126 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
20127 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
20128 | } | |
20129 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
20130 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
20131 | } | |
20132 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
20133 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
20134 | } | |
20135 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
20136 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
20137 | } | |
20138 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
20139 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
20140 | } | |
20141 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
20142 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
20143 | } | |
20144 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
20145 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
20146 | } | |
20147 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
20148 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
20149 | } | |
20150 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
20151 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
20152 | } | |
20153 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
20154 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
20155 | } | |
20156 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
20157 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
20158 | } | |
20159 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
20160 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
20161 | } | |
20162 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
20163 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
20164 | } | |
20165 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
20166 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
20167 | } | |
20168 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
20169 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
20170 | } | |
20171 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
20172 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
20173 | } | |
20174 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
20175 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
20176 | } | |
20177 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
20178 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
20179 | } | |
20180 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
20181 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
20182 | } | |
20183 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
20184 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
20185 | } | |
20186 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
20187 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
20188 | } | |
20189 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
20190 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20191 | } | |
20192 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
20193 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
20194 | } | |
20195 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
20196 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
20197 | } | |
20198 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
20199 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
20200 | } | |
20201 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
20202 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
20203 | } | |
20204 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
20205 | return (void *)((wxObject *) ((wxImage *) x)); | |
20206 | } | |
20207 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
20208 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
20209 | } | |
20210 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
20211 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
20212 | } | |
20213 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
20214 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
20215 | } | |
20216 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
20217 | return (void *)((wxObject *) ((wxImageList *) x)); | |
20218 | } | |
20219 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
20220 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
20221 | } | |
20222 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
20223 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
20224 | } | |
20225 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
20226 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
20227 | } | |
20228 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
20229 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
20230 | } | |
20231 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
20232 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
20233 | } | |
20234 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
20235 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
20236 | } | |
20237 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
20238 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
20239 | } | |
20240 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
20241 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
20242 | } | |
20243 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
20244 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
20245 | } | |
20246 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
20247 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
20248 | } | |
20249 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
20250 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
20251 | } | |
d55e5bfc RD |
20252 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
20253 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
20254 | } | |
20255 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
20256 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
20257 | } | |
20258 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
20259 | return (void *)((wxObject *) ((wxMask *) x)); | |
20260 | } | |
20261 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
20262 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
20263 | } | |
20264 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
20265 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
20266 | } | |
20267 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
20268 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
20269 | } | |
20270 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
20271 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
20272 | } | |
20273 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
20274 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
20275 | } | |
20276 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
20277 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
20278 | } | |
20279 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
20280 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
20281 | } | |
20282 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
20283 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
20284 | } | |
20285 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
20286 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
20287 | } | |
20288 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
20289 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
20290 | } | |
20291 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
20292 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
20293 | } | |
20294 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
20295 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
20296 | } | |
20297 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
20298 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
20299 | } | |
20300 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
20301 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
20302 | } | |
20303 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
20304 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
20305 | } | |
20306 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
20307 | return (void *)((wxObject *) ((wxColour *) x)); | |
20308 | } | |
20309 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
20310 | return (void *)((wxObject *) ((wxFontList *) x)); | |
20311 | } | |
20312 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
20313 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
20314 | } | |
20315 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
20316 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
20317 | } | |
20318 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
20319 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20320 | } | |
20321 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
20322 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
20323 | } | |
20324 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
20325 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
20326 | } | |
20327 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
20328 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
20329 | } | |
20330 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
20331 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
20332 | } | |
20333 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
20334 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
20335 | } | |
20336 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
20337 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
20338 | } | |
20339 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
20340 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20341 | } | |
20342 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
20343 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
20344 | } | |
20345 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
20346 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
20347 | } | |
20348 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
20349 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
20350 | } | |
20351 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
20352 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
20353 | } | |
d55e5bfc RD |
20354 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
20355 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
20356 | } | |
20357 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
20358 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
20359 | } | |
20360 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
20361 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
20362 | } | |
20363 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
20364 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
20365 | } | |
20366 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
20367 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
20368 | } | |
20369 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
20370 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
20371 | } | |
20372 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
20373 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
20374 | } | |
20375 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
20376 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
20377 | } | |
d55e5bfc RD |
20378 | 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}}; |
20379 | 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}}; | |
20380 | 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}}; | |
20381 | 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}}; | |
20382 | 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}}; | |
20383 | 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}}; | |
20384 | 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}}; | |
20385 | 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}}; | |
20386 | 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}}; | |
20387 | 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}}; | |
20388 | 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}}; | |
20389 | 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}}; | |
20390 | 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}}; | |
20391 | 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}}; | |
20392 | 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}}; | |
20393 | 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}}; | |
20394 | 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}}; | |
20395 | 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}}; | |
20396 | 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}}; | |
20397 | 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}}; | |
20398 | 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}}; | |
20399 | 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}}; | |
c24da6d6 | 20400 | 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}}; |
d55e5bfc RD |
20401 | 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}}; |
20402 | 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}}; | |
20403 | 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}}; | |
20404 | 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}}; | |
20405 | 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}}; | |
20406 | 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}}; | |
20407 | 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}}; | |
20408 | 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}}; | |
20409 | 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}}; | |
20410 | 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}}; | |
20411 | 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}}; | |
20412 | 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}}; | |
20413 | 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}}; | |
c24da6d6 | 20414 | 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}}; |
d55e5bfc RD |
20415 | 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}}; |
20416 | 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}}; | |
20417 | 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}}; | |
d55e5bfc | 20418 | 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}}; |
c24da6d6 | 20419 | 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}}; |
d55e5bfc RD |
20420 | 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}}; |
20421 | 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}}; | |
20422 | 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}}; | |
20423 | 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}}; | |
c24da6d6 | 20424 | 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}}; |
d55e5bfc RD |
20425 | 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}}; |
20426 | 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}}; | |
20427 | 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}}; | |
d55e5bfc RD |
20428 | 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}}; |
20429 | 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}}; | |
20430 | 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}}; | |
20431 | 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}}; | |
20432 | 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}}; | |
20433 | ||
20434 | static swig_type_info *swig_types_initial[] = { | |
20435 | _swigt__p_wxPostScriptDC, | |
20436 | _swigt__p_wxBrush, | |
20437 | _swigt__p_wxColour, | |
20438 | _swigt__p_wxDC, | |
20439 | _swigt__p_wxMirrorDC, | |
20440 | _swigt__p_byte, | |
20441 | _swigt__p_wxPyFontEnumerator, | |
20442 | _swigt__p_char, | |
20443 | _swigt__p_wxIconLocation, | |
20444 | _swigt__p_wxImage, | |
20445 | _swigt__p_wxMetaFileDC, | |
20446 | _swigt__p_wxMask, | |
20447 | _swigt__p_wxSize, | |
20448 | _swigt__p_wxFont, | |
20449 | _swigt__p_wxWindow, | |
20450 | _swigt__p_double, | |
20451 | _swigt__p_wxMemoryDC, | |
20452 | _swigt__p_wxFontMapper, | |
20453 | _swigt__p_wxEffects, | |
20454 | _swigt__p_wxNativeEncodingInfo, | |
20455 | _swigt__p_wxPalette, | |
20456 | _swigt__p_wxBitmap, | |
20457 | _swigt__p_wxObject, | |
20458 | _swigt__p_wxRegionIterator, | |
20459 | _swigt__p_wxRect, | |
20460 | _swigt__p_wxString, | |
20461 | _swigt__p_wxPrinterDC, | |
20462 | _swigt__p_wxIconBundle, | |
20463 | _swigt__p_wxPoint, | |
20464 | _swigt__p_wxDash, | |
20465 | _swigt__p_wxScreenDC, | |
20466 | _swigt__p_wxCursor, | |
20467 | _swigt__p_wxClientDC, | |
20468 | _swigt__p_wxBufferedDC, | |
20469 | _swigt__p_wxImageList, | |
20470 | _swigt__p_unsigned_char, | |
20471 | _swigt__p_wxGDIObject, | |
20472 | _swigt__p_wxIcon, | |
20473 | _swigt__p_wxLocale, | |
20474 | _swigt__p_wxRegion, | |
d55e5bfc | 20475 | _swigt__p_wxLanguageInfo, |
c24da6d6 | 20476 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
20477 | _swigt__p_wxWindowDC, |
20478 | _swigt__p_wxPrintData, | |
20479 | _swigt__p_wxBrushList, | |
20480 | _swigt__p_wxFontList, | |
20481 | _swigt__p_wxPen, | |
20482 | _swigt__p_wxBufferedPaintDC, | |
20483 | _swigt__p_wxPaintDC, | |
20484 | _swigt__p_wxPenList, | |
d55e5bfc RD |
20485 | _swigt__p_int, |
20486 | _swigt__p_wxMetaFile, | |
20487 | _swigt__p_wxNativeFontInfo, | |
20488 | _swigt__p_wxEncodingConverter, | |
20489 | _swigt__p_wxColourDatabase, | |
20490 | 0 | |
20491 | }; | |
20492 | ||
20493 | ||
20494 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
20495 | ||
20496 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 20497 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
20498 | |
20499 | #ifdef __cplusplus | |
20500 | } | |
20501 | #endif | |
20502 | ||
20503 | #ifdef __cplusplus | |
20504 | extern "C" | |
20505 | #endif | |
20506 | SWIGEXPORT(void) SWIG_init(void) { | |
20507 | static PyObject *SWIG_globals = 0; | |
20508 | static int typeinit = 0; | |
20509 | PyObject *m, *d; | |
20510 | int i; | |
20511 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
20512 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
20513 | d = PyModule_GetDict(m); | |
20514 | ||
20515 | if (!typeinit) { | |
20516 | for (i = 0; swig_types_initial[i]; i++) { | |
20517 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
20518 | } | |
20519 | typeinit = 1; | |
20520 | } | |
20521 | SWIG_InstallConstants(d,swig_const_table); | |
20522 | ||
c32bde28 RD |
20523 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); |
20524 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
20525 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
20526 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
20527 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
20528 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
20529 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
20530 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
20531 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
20532 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
20533 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
20534 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
20535 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
20536 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
20537 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
20538 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
20539 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
20540 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
20541 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
20542 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
20543 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
20544 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
20545 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
20546 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
20547 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
20548 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
20549 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
20550 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
20551 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
20552 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
20553 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
20554 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
20555 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
20556 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
20557 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
20558 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
20559 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
20560 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
20561 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
20562 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
20563 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
20564 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
20565 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
20566 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
20567 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
20568 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
20569 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
20570 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
20571 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
20572 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
20573 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
20574 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
20575 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
20576 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
20577 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
20578 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
20579 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
20580 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
20581 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
20582 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
20583 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
20584 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
20585 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
20586 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
20587 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
20588 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
20589 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
20590 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
20591 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
20592 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
20593 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
20594 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
20595 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
20596 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
20597 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
20598 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
20599 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
20600 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
20601 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
20602 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
20603 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
20604 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
20605 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
20606 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
20607 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
20608 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
20609 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
20610 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
20611 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
20612 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
20613 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
20614 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
20615 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
20616 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
20617 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
20618 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
20619 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
20620 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
20621 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
20622 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
20623 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
20624 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
20625 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
20626 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
20627 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
20628 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
20629 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
20630 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
20631 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
20632 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
20633 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
20634 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
20635 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
20636 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
20637 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
20638 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
20639 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
20640 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
20641 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
20642 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
20643 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
20644 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
20645 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
20646 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
20647 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
20648 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
20649 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
d55e5bfc RD |
20650 | |
20651 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
20652 | ||
c32bde28 RD |
20653 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); |
20654 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
20655 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
20656 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
20657 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
20658 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
20659 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
20660 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
20661 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
20662 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
20663 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
20664 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
20665 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
20666 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
20667 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
20668 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
20669 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
20670 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
20671 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
20672 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
20673 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
20674 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
20675 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
20676 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
20677 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
20678 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
20679 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
20680 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
20681 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
20682 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
20683 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
20684 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
20685 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
20686 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
20687 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
20688 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
20689 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
20690 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
20691 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
20692 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
20693 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
20694 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
20695 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
20696 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
20697 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20698 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20699 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20700 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
20701 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20702 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20703 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
20704 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
20705 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
20706 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
20707 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
20708 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20709 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
20710 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
20711 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
20712 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20713 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20714 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20715 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20716 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20717 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20718 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20719 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20720 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20721 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20722 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20723 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20724 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20725 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
20726 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
20727 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
20728 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
20729 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
20730 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
20731 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
20732 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20733 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20734 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20735 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
20736 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
20737 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
20738 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
20739 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
20740 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
20741 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20742 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20743 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20744 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20745 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
20746 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
20747 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
20748 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
20749 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
20750 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
20751 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
20752 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
20753 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
20754 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
20755 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
20756 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
20757 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
20758 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
20759 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
20760 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
20761 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
20762 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20763 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
20764 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
20765 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
20766 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
20767 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20768 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
20769 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
20770 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
20771 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
20772 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
20773 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
20774 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
20775 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
20776 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
20777 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
20778 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
20779 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
20780 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
20781 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
20782 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
20783 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
20784 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
20785 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20786 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20787 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
20788 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
20789 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
20790 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
20791 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
20792 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
20793 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
20794 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
20795 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
20796 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20797 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20798 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
20799 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
20800 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
20801 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
20802 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
20803 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
20804 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20805 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
20806 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
20807 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20808 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
20809 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
20810 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20811 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
20812 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
20813 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
20814 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20815 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
20816 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20817 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20818 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20819 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
20820 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
20821 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
20822 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
20823 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
20824 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
20825 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
20826 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
20827 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
20828 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
20829 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20830 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20831 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
20832 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20833 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20834 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20835 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20836 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20837 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20838 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20839 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20840 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
20841 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20842 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20843 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20844 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
20845 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20846 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20847 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
20848 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20849 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
20850 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
20851 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
20852 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20853 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
20854 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
20855 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
20856 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
20857 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
20858 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
20859 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
20860 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
20861 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
20862 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
20863 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
20864 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
20865 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
20866 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
20867 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
20868 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
20869 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
20870 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20871 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
20872 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20873 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
20874 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
20875 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
20876 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
20877 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
20878 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
20879 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
20880 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
20881 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
20882 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
20883 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
20884 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
20885 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
20886 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
20887 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
20888 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
20889 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
20890 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
20891 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
20892 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
20893 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
20894 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
20895 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
20896 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
20897 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
20898 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
20899 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
20900 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20901 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
20902 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20903 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
20904 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
20905 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
d55e5bfc RD |
20906 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
20907 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20908 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20909 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20910 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20911 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20912 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20913 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20914 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20915 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20916 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20917 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20918 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20919 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20920 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20921 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20922 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20923 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20924 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20925 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20926 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20927 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20928 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20929 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20930 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20931 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20932 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20933 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20934 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20935 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20936 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20937 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20938 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20939 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20940 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20941 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20942 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20943 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20944 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20945 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20946 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20947 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20948 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20949 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20950 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20951 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20952 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20953 | ||
20954 | // Work around a chicken/egg problem in drawlist.cpp | |
20955 | wxPyDrawList_SetAPIPtr(); | |
20956 | ||
20957 | } | |
20958 |