]>
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 | } | |
d55e5bfc 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; } | |
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 | } | |
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; } | |
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__ | |
802 | wxCHECK_MSG(False, NULL, | |
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; } | |
828 | ||
829 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
830 | { wxPyRaiseNotImplemented(); return False; } | |
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 | } | |
849 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } | |
850 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
851 | ||
852 | class wxPyFontEnumerator : public wxFontEnumerator { | |
853 | public: | |
854 | wxPyFontEnumerator() {} | |
855 | ~wxPyFontEnumerator() {} | |
856 | ||
857 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
858 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
859 | ||
860 | PYPRIVATE; | |
861 | }; | |
862 | ||
863 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
864 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
865 | ||
866 | ||
867 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
868 | wxArrayString* arr = self->GetEncodings(); | |
b0f7404b RD |
869 | if (arr) |
870 | return wxArrayString2PyList_helper(*arr); | |
871 | else | |
872 | return PyList_New(0); | |
d55e5bfc RD |
873 | } |
874 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
875 | wxArrayString* arr = self->GetFacenames(); | |
b0f7404b RD |
876 | if (arr) |
877 | return wxArrayString2PyList_helper(*arr); | |
878 | else | |
879 | return PyList_New(0); | |
d55e5bfc RD |
880 | } |
881 | ||
882 | ||
79fccf9d RD |
883 | wxLocale *new_wxLocale(int language,int flags){ |
884 | if (language == -1) | |
885 | return new wxLocale(); | |
886 | else | |
887 | return new wxLocale(language, flags); | |
888 | } | |
d55e5bfc RD |
889 | |
890 | #include "wx/wxPython/pydrawxxx.h" | |
891 | ||
c24da6d6 | 892 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
893 | wxColour col; |
894 | self->GetPixel(x, y, &col); | |
895 | return col; | |
896 | } | |
c24da6d6 | 897 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
898 | wxColour col; |
899 | self->GetPixel(pt, &col); | |
900 | return col; | |
901 | } | |
902 | ||
c32bde28 RD |
903 | // See my_fragments.i |
904 | SWIGSTATICINLINE(int) | |
905 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 906 | { |
c32bde28 RD |
907 | if (PyNumber_Check(obj)) { |
908 | if (val) *val = PyFloat_AsDouble(obj); | |
909 | return 1; | |
910 | } | |
d55e5bfc RD |
911 | else { |
912 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
913 | obj->ob_type->tp_name); | |
914 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
915 | Py_DECREF(errmsg); | |
d55e5bfc | 916 | } |
c32bde28 | 917 | return 0; |
d55e5bfc RD |
918 | } |
919 | ||
920 | ||
c32bde28 RD |
921 | SWIGSTATICINLINE(double) |
922 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 923 | { |
c32bde28 RD |
924 | double v; |
925 | if (!SWIG_AsVal_double(obj, &v)) { | |
926 | /* | |
927 | this is needed to make valgrind/purify happier. the other | |
928 | solution is throw an exception, but since this code should work | |
929 | with plain C .... | |
930 | */ | |
931 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 932 | } |
c32bde28 RD |
933 | return v; |
934 | } | |
935 | ||
936 | ||
937 | SWIGSTATICINLINE(int) | |
938 | SWIG_Check_double(PyObject* obj) | |
939 | { | |
940 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
941 | } |
942 | ||
943 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
944 | wxRect rv; | |
945 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
946 | return rv; | |
947 | } | |
c32bde28 | 948 | |
d55e5bfc RD |
949 | wxRect wxDC_GetClippingRect(wxDC *self){ |
950 | wxRect rect; | |
951 | self->GetClippingBox(rect); | |
952 | return rect; | |
953 | } | |
954 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
955 | wxArrayInt widths; | |
956 | self->GetPartialTextExtents(text, widths); | |
957 | return widths; | |
958 | } | |
c32bde28 | 959 | |
c24da6d6 RD |
960 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
961 | self->SetLogicalOrigin(point.x, point.y); | |
962 | } | |
963 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
964 | self->SetDeviceOrigin(point.x, point.y); | |
965 | } | |
966 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
967 | self->CalcBoundingBox(point.x, point.y); | |
968 | } | |
d55e5bfc RD |
969 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
970 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
971 | } | |
972 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
973 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
974 | } | |
975 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
976 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
977 | } | |
978 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
979 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
980 | } | |
981 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
982 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
983 | } | |
984 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
985 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
986 | } | |
987 | ||
988 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
989 | *x1 = dc->MinX(); | |
990 | *y1 = dc->MinY(); | |
991 | *x2 = dc->MaxX(); | |
992 | *y2 = dc->MaxY(); | |
993 | } | |
994 | ||
995 | ||
996 | #include <wx/dcbuffer.h> | |
997 | ||
998 | ||
999 | #include <wx/dcps.h> | |
1000 | ||
1001 | ||
1002 | #include <wx/metafile.h> | |
1003 | ||
1004 | ||
1005 | ||
1006 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1007 | self->AddColour(name, wxColour(red, green, blue)); | |
1008 | } | |
1009 | ||
1010 | #include <wx/effects.h> | |
1011 | ||
1012 | #ifdef __cplusplus | |
1013 | extern "C" { | |
1014 | #endif | |
c32bde28 | 1015 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1016 | PyObject *resultobj; |
1017 | wxGDIObject *result; | |
1018 | char *kwnames[] = { | |
1019 | NULL | |
1020 | }; | |
1021 | ||
1022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1023 | { | |
0439c23b | 1024 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1026 | result = (wxGDIObject *)new wxGDIObject(); | |
1027 | ||
1028 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1029 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1030 | } |
1031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
1032 | return resultobj; | |
1033 | fail: | |
1034 | return NULL; | |
1035 | } | |
1036 | ||
1037 | ||
c32bde28 | 1038 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1039 | PyObject *resultobj; |
1040 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1041 | PyObject * obj0 = 0 ; | |
1042 | char *kwnames[] = { | |
1043 | (char *) "self", NULL | |
1044 | }; | |
1045 | ||
1046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
1047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1049 | { | |
1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1051 | delete arg1; | |
1052 | ||
1053 | wxPyEndAllowThreads(__tstate); | |
1054 | if (PyErr_Occurred()) SWIG_fail; | |
1055 | } | |
1056 | Py_INCREF(Py_None); resultobj = Py_None; | |
1057 | return resultobj; | |
1058 | fail: | |
1059 | return NULL; | |
1060 | } | |
1061 | ||
1062 | ||
c32bde28 | 1063 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1064 | PyObject *resultobj; |
1065 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1066 | bool result; | |
1067 | PyObject * obj0 = 0 ; | |
1068 | char *kwnames[] = { | |
1069 | (char *) "self", NULL | |
1070 | }; | |
1071 | ||
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
1073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1075 | { | |
1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1077 | result = (bool)(arg1)->GetVisible(); | |
1078 | ||
1079 | wxPyEndAllowThreads(__tstate); | |
1080 | if (PyErr_Occurred()) SWIG_fail; | |
1081 | } | |
1082 | { | |
1083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1084 | } | |
1085 | return resultobj; | |
1086 | fail: | |
1087 | return NULL; | |
1088 | } | |
1089 | ||
1090 | ||
c32bde28 | 1091 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1092 | PyObject *resultobj; |
1093 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1094 | bool arg2 ; | |
1095 | PyObject * obj0 = 0 ; | |
1096 | PyObject * obj1 = 0 ; | |
1097 | char *kwnames[] = { | |
1098 | (char *) "self",(char *) "visible", NULL | |
1099 | }; | |
1100 | ||
1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
1102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1104 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
1105 | if (PyErr_Occurred()) SWIG_fail; |
1106 | { | |
1107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1108 | (arg1)->SetVisible(arg2); | |
1109 | ||
1110 | wxPyEndAllowThreads(__tstate); | |
1111 | if (PyErr_Occurred()) SWIG_fail; | |
1112 | } | |
1113 | Py_INCREF(Py_None); resultobj = Py_None; | |
1114 | return resultobj; | |
1115 | fail: | |
1116 | return NULL; | |
1117 | } | |
1118 | ||
1119 | ||
c32bde28 | 1120 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1121 | PyObject *resultobj; |
1122 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1123 | bool result; | |
1124 | PyObject * obj0 = 0 ; | |
1125 | char *kwnames[] = { | |
1126 | (char *) "self", NULL | |
1127 | }; | |
1128 | ||
1129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
1130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1132 | { | |
1133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1134 | result = (bool)(arg1)->IsNull(); | |
1135 | ||
1136 | wxPyEndAllowThreads(__tstate); | |
1137 | if (PyErr_Occurred()) SWIG_fail; | |
1138 | } | |
1139 | { | |
1140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1141 | } | |
1142 | return resultobj; | |
1143 | fail: | |
1144 | return NULL; | |
1145 | } | |
1146 | ||
1147 | ||
c32bde28 | 1148 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1149 | PyObject *obj; |
1150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1151 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1152 | Py_INCREF(obj); | |
1153 | return Py_BuildValue((char *)""); | |
1154 | } | |
c32bde28 | 1155 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 1156 | PyObject *resultobj; |
79fccf9d RD |
1157 | byte arg1 = (byte) 0 ; |
1158 | byte arg2 = (byte) 0 ; | |
1159 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1160 | wxColour *result; |
1161 | PyObject * obj0 = 0 ; | |
1162 | PyObject * obj1 = 0 ; | |
1163 | PyObject * obj2 = 0 ; | |
1164 | char *kwnames[] = { | |
1165 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1166 | }; | |
1167 | ||
1168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1169 | if (obj0) { | |
c32bde28 | 1170 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc RD |
1171 | if (PyErr_Occurred()) SWIG_fail; |
1172 | } | |
1173 | if (obj1) { | |
c32bde28 | 1174 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
1175 | if (PyErr_Occurred()) SWIG_fail; |
1176 | } | |
1177 | if (obj2) { | |
c32bde28 | 1178 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
1179 | if (PyErr_Occurred()) SWIG_fail; |
1180 | } | |
1181 | { | |
1182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1183 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1184 | ||
1185 | wxPyEndAllowThreads(__tstate); | |
1186 | if (PyErr_Occurred()) SWIG_fail; | |
1187 | } | |
1188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1189 | return resultobj; | |
1190 | fail: | |
1191 | return NULL; | |
1192 | } | |
1193 | ||
1194 | ||
c32bde28 | 1195 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1196 | PyObject *resultobj; |
1197 | wxString *arg1 = 0 ; | |
1198 | wxColour *result; | |
1199 | bool temp1 = False ; | |
1200 | PyObject * obj0 = 0 ; | |
1201 | char *kwnames[] = { | |
1202 | (char *) "colorName", NULL | |
1203 | }; | |
1204 | ||
1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1206 | { | |
1207 | arg1 = wxString_in_helper(obj0); | |
1208 | if (arg1 == NULL) SWIG_fail; | |
1209 | temp1 = True; | |
1210 | } | |
1211 | { | |
bf26d883 | 1212 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1214 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1215 | ||
1216 | wxPyEndAllowThreads(__tstate); | |
1217 | if (PyErr_Occurred()) SWIG_fail; | |
1218 | } | |
1219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1220 | { | |
1221 | if (temp1) | |
1222 | delete arg1; | |
1223 | } | |
1224 | return resultobj; | |
1225 | fail: | |
1226 | { | |
1227 | if (temp1) | |
1228 | delete arg1; | |
1229 | } | |
1230 | return NULL; | |
1231 | } | |
1232 | ||
1233 | ||
c32bde28 | 1234 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1235 | PyObject *resultobj; |
1236 | unsigned long arg1 ; | |
1237 | wxColour *result; | |
1238 | PyObject * obj0 = 0 ; | |
1239 | char *kwnames[] = { | |
1240 | (char *) "colRGB", NULL | |
1241 | }; | |
1242 | ||
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
c32bde28 | 1244 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
1245 | if (PyErr_Occurred()) SWIG_fail; |
1246 | { | |
1247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1248 | result = (wxColour *)new wxColour(arg1); | |
1249 | ||
1250 | wxPyEndAllowThreads(__tstate); | |
1251 | if (PyErr_Occurred()) SWIG_fail; | |
1252 | } | |
1253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1254 | return resultobj; | |
1255 | fail: | |
1256 | return NULL; | |
1257 | } | |
1258 | ||
1259 | ||
c32bde28 | 1260 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1261 | PyObject *resultobj; |
1262 | wxColour *arg1 = (wxColour *) 0 ; | |
1263 | PyObject * obj0 = 0 ; | |
1264 | char *kwnames[] = { | |
1265 | (char *) "self", NULL | |
1266 | }; | |
1267 | ||
1268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1271 | { | |
1272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1273 | delete arg1; | |
1274 | ||
1275 | wxPyEndAllowThreads(__tstate); | |
1276 | if (PyErr_Occurred()) SWIG_fail; | |
1277 | } | |
1278 | Py_INCREF(Py_None); resultobj = Py_None; | |
1279 | return resultobj; | |
1280 | fail: | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
c32bde28 | 1285 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1286 | PyObject *resultobj; |
1287 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1288 | byte result; |
d55e5bfc RD |
1289 | PyObject * obj0 = 0 ; |
1290 | char *kwnames[] = { | |
1291 | (char *) "self", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1297 | { | |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1299 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1300 | |
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
c32bde28 | 1304 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1305 | return resultobj; |
1306 | fail: | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
c32bde28 | 1311 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1312 | PyObject *resultobj; |
1313 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1314 | byte result; |
d55e5bfc RD |
1315 | PyObject * obj0 = 0 ; |
1316 | char *kwnames[] = { | |
1317 | (char *) "self", NULL | |
1318 | }; | |
1319 | ||
1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1325 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1326 | |
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
c32bde28 | 1330 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1331 | return resultobj; |
1332 | fail: | |
1333 | return NULL; | |
1334 | } | |
1335 | ||
1336 | ||
c32bde28 | 1337 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1338 | PyObject *resultobj; |
1339 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1340 | byte result; |
d55e5bfc RD |
1341 | PyObject * obj0 = 0 ; |
1342 | char *kwnames[] = { | |
1343 | (char *) "self", NULL | |
1344 | }; | |
1345 | ||
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1349 | { | |
1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1351 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1352 | |
1353 | wxPyEndAllowThreads(__tstate); | |
1354 | if (PyErr_Occurred()) SWIG_fail; | |
1355 | } | |
c32bde28 | 1356 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1357 | return resultobj; |
1358 | fail: | |
1359 | return NULL; | |
1360 | } | |
1361 | ||
1362 | ||
c32bde28 | 1363 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1364 | PyObject *resultobj; |
1365 | wxColour *arg1 = (wxColour *) 0 ; | |
1366 | bool result; | |
1367 | PyObject * obj0 = 0 ; | |
1368 | char *kwnames[] = { | |
1369 | (char *) "self", NULL | |
1370 | }; | |
1371 | ||
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1375 | { | |
1376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1377 | result = (bool)(arg1)->Ok(); | |
1378 | ||
1379 | wxPyEndAllowThreads(__tstate); | |
1380 | if (PyErr_Occurred()) SWIG_fail; | |
1381 | } | |
1382 | { | |
1383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1384 | } | |
1385 | return resultobj; | |
1386 | fail: | |
1387 | return NULL; | |
1388 | } | |
1389 | ||
1390 | ||
c32bde28 | 1391 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1392 | PyObject *resultobj; |
1393 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d RD |
1394 | byte arg2 ; |
1395 | byte arg3 ; | |
1396 | byte arg4 ; | |
d55e5bfc RD |
1397 | PyObject * obj0 = 0 ; |
1398 | PyObject * obj1 = 0 ; | |
1399 | PyObject * obj2 = 0 ; | |
1400 | PyObject * obj3 = 0 ; | |
1401 | char *kwnames[] = { | |
1402 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1403 | }; | |
1404 | ||
1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1408 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1409 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1410 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1411 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1412 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1413 | if (PyErr_Occurred()) SWIG_fail; |
1414 | { | |
1415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1416 | (arg1)->Set(arg2,arg3,arg4); | |
1417 | ||
1418 | wxPyEndAllowThreads(__tstate); | |
1419 | if (PyErr_Occurred()) SWIG_fail; | |
1420 | } | |
1421 | Py_INCREF(Py_None); resultobj = Py_None; | |
1422 | return resultobj; | |
1423 | fail: | |
1424 | return NULL; | |
1425 | } | |
1426 | ||
1427 | ||
c32bde28 | 1428 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1429 | PyObject *resultobj; |
1430 | wxColour *arg1 = (wxColour *) 0 ; | |
1431 | unsigned long arg2 ; | |
1432 | PyObject * obj0 = 0 ; | |
1433 | PyObject * obj1 = 0 ; | |
1434 | char *kwnames[] = { | |
1435 | (char *) "self",(char *) "colRGB", NULL | |
1436 | }; | |
1437 | ||
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1441 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
1442 | if (PyErr_Occurred()) SWIG_fail; |
1443 | { | |
1444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1445 | (arg1)->Set(arg2); | |
1446 | ||
1447 | wxPyEndAllowThreads(__tstate); | |
1448 | if (PyErr_Occurred()) SWIG_fail; | |
1449 | } | |
1450 | Py_INCREF(Py_None); resultobj = Py_None; | |
1451 | return resultobj; | |
1452 | fail: | |
1453 | return NULL; | |
1454 | } | |
1455 | ||
1456 | ||
c32bde28 | 1457 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1458 | PyObject *resultobj; |
1459 | wxColour *arg1 = (wxColour *) 0 ; | |
1460 | wxString *arg2 = 0 ; | |
1461 | bool temp2 = False ; | |
1462 | PyObject * obj0 = 0 ; | |
1463 | PyObject * obj1 = 0 ; | |
1464 | char *kwnames[] = { | |
1465 | (char *) "self",(char *) "colourName", NULL | |
1466 | }; | |
1467 | ||
1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1471 | { | |
1472 | arg2 = wxString_in_helper(obj1); | |
1473 | if (arg2 == NULL) SWIG_fail; | |
1474 | temp2 = True; | |
1475 | } | |
1476 | { | |
1477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1478 | (arg1)->InitFromName((wxString const &)*arg2); | |
1479 | ||
1480 | wxPyEndAllowThreads(__tstate); | |
1481 | if (PyErr_Occurred()) SWIG_fail; | |
1482 | } | |
1483 | Py_INCREF(Py_None); resultobj = Py_None; | |
1484 | { | |
1485 | if (temp2) | |
1486 | delete arg2; | |
1487 | } | |
1488 | return resultobj; | |
1489 | fail: | |
1490 | { | |
1491 | if (temp2) | |
1492 | delete arg2; | |
1493 | } | |
1494 | return NULL; | |
1495 | } | |
1496 | ||
1497 | ||
c32bde28 | 1498 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1499 | PyObject *resultobj; |
1500 | wxColour *arg1 = (wxColour *) 0 ; | |
1501 | long result; | |
1502 | PyObject * obj0 = 0 ; | |
1503 | char *kwnames[] = { | |
1504 | (char *) "self", NULL | |
1505 | }; | |
1506 | ||
1507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1510 | { | |
1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1512 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1513 | ||
1514 | wxPyEndAllowThreads(__tstate); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
c32bde28 | 1517 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
1518 | return resultobj; |
1519 | fail: | |
1520 | return NULL; | |
1521 | } | |
1522 | ||
1523 | ||
c32bde28 | 1524 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1525 | PyObject *resultobj; |
1526 | wxColour *arg1 = (wxColour *) 0 ; | |
1527 | wxColour *arg2 = 0 ; | |
1528 | bool result; | |
1529 | wxColour temp2 ; | |
1530 | PyObject * obj0 = 0 ; | |
1531 | PyObject * obj1 = 0 ; | |
1532 | char *kwnames[] = { | |
1533 | (char *) "self",(char *) "colour", NULL | |
1534 | }; | |
1535 | ||
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1539 | { | |
1540 | arg2 = &temp2; | |
1541 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1542 | } | |
1543 | { | |
1544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1545 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1546 | ||
1547 | wxPyEndAllowThreads(__tstate); | |
1548 | if (PyErr_Occurred()) SWIG_fail; | |
1549 | } | |
1550 | { | |
1551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1552 | } | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
c32bde28 | 1559 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1560 | PyObject *resultobj; |
1561 | wxColour *arg1 = (wxColour *) 0 ; | |
1562 | wxColour *arg2 = 0 ; | |
1563 | bool result; | |
1564 | wxColour temp2 ; | |
1565 | PyObject * obj0 = 0 ; | |
1566 | PyObject * obj1 = 0 ; | |
1567 | char *kwnames[] = { | |
1568 | (char *) "self",(char *) "colour", NULL | |
1569 | }; | |
1570 | ||
1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1574 | { | |
1575 | arg2 = &temp2; | |
1576 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1577 | } | |
1578 | { | |
1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1580 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1581 | ||
1582 | wxPyEndAllowThreads(__tstate); | |
1583 | if (PyErr_Occurred()) SWIG_fail; | |
1584 | } | |
1585 | { | |
1586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1587 | } | |
1588 | return resultobj; | |
1589 | fail: | |
1590 | return NULL; | |
1591 | } | |
1592 | ||
1593 | ||
c32bde28 | 1594 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1595 | PyObject *resultobj; |
1596 | wxColour *arg1 = (wxColour *) 0 ; | |
1597 | PyObject *result; | |
1598 | PyObject * obj0 = 0 ; | |
1599 | char *kwnames[] = { | |
1600 | (char *) "self", NULL | |
1601 | }; | |
1602 | ||
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1606 | { | |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1608 | result = (PyObject *)wxColour_Get(arg1); | |
1609 | ||
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) SWIG_fail; | |
1612 | } | |
1613 | resultobj = result; | |
1614 | return resultobj; | |
1615 | fail: | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
c32bde28 | 1620 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1621 | PyObject *resultobj; |
1622 | wxColour *arg1 = (wxColour *) 0 ; | |
1623 | unsigned long result; | |
1624 | PyObject * obj0 = 0 ; | |
1625 | char *kwnames[] = { | |
1626 | (char *) "self", NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1632 | { | |
1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1634 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1635 | ||
1636 | wxPyEndAllowThreads(__tstate); | |
1637 | if (PyErr_Occurred()) SWIG_fail; | |
1638 | } | |
c32bde28 | 1639 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
1640 | return resultobj; |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
c32bde28 | 1646 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1647 | PyObject *obj; |
1648 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1649 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1650 | Py_INCREF(obj); | |
1651 | return Py_BuildValue((char *)""); | |
1652 | } | |
c32bde28 | 1653 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1654 | PyObject *resultobj; |
1655 | int arg1 ; | |
1656 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1657 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1658 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1659 | wxPalette *result; | |
1660 | PyObject * obj0 = 0 ; | |
1661 | PyObject * obj1 = 0 ; | |
1662 | PyObject * obj2 = 0 ; | |
1663 | PyObject * obj3 = 0 ; | |
1664 | char *kwnames[] = { | |
1665 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 1669 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1670 | if (PyErr_Occurred()) SWIG_fail; |
1671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1673 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1675 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1677 | { | |
0439c23b | 1678 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1680 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1681 | ||
1682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1683 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1684 | } |
1685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1686 | return resultobj; | |
1687 | fail: | |
1688 | return NULL; | |
1689 | } | |
1690 | ||
1691 | ||
c32bde28 | 1692 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1693 | PyObject *resultobj; |
1694 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1695 | PyObject * obj0 = 0 ; | |
1696 | char *kwnames[] = { | |
1697 | (char *) "self", NULL | |
1698 | }; | |
1699 | ||
1700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1703 | { | |
1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1705 | delete arg1; | |
1706 | ||
1707 | wxPyEndAllowThreads(__tstate); | |
1708 | if (PyErr_Occurred()) SWIG_fail; | |
1709 | } | |
1710 | Py_INCREF(Py_None); resultobj = Py_None; | |
1711 | return resultobj; | |
1712 | fail: | |
1713 | return NULL; | |
1714 | } | |
1715 | ||
1716 | ||
c32bde28 | 1717 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1718 | PyObject *resultobj; |
1719 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1720 | byte arg2 ; | |
1721 | byte arg3 ; | |
1722 | byte arg4 ; | |
1723 | int result; | |
1724 | PyObject * obj0 = 0 ; | |
1725 | PyObject * obj1 = 0 ; | |
1726 | PyObject * obj2 = 0 ; | |
1727 | PyObject * obj3 = 0 ; | |
1728 | char *kwnames[] = { | |
1729 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1730 | }; | |
1731 | ||
1732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1735 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1736 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1737 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1738 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 1739 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1740 | if (PyErr_Occurred()) SWIG_fail; |
1741 | { | |
1742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1743 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1744 | ||
1745 | wxPyEndAllowThreads(__tstate); | |
1746 | if (PyErr_Occurred()) SWIG_fail; | |
1747 | } | |
c32bde28 | 1748 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1749 | return resultobj; |
1750 | fail: | |
1751 | return NULL; | |
1752 | } | |
1753 | ||
1754 | ||
c32bde28 | 1755 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1756 | PyObject *resultobj; |
1757 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1758 | int arg2 ; | |
1759 | byte *arg3 = (byte *) 0 ; | |
1760 | byte *arg4 = (byte *) 0 ; | |
1761 | byte *arg5 = (byte *) 0 ; | |
1762 | bool result; | |
1763 | byte temp3 ; | |
c32bde28 | 1764 | int res3 = 0 ; |
d55e5bfc | 1765 | byte temp4 ; |
c32bde28 | 1766 | int res4 = 0 ; |
d55e5bfc | 1767 | byte temp5 ; |
c32bde28 | 1768 | int res5 = 0 ; |
d55e5bfc RD |
1769 | PyObject * obj0 = 0 ; |
1770 | PyObject * obj1 = 0 ; | |
1771 | char *kwnames[] = { | |
1772 | (char *) "self",(char *) "pixel", NULL | |
1773 | }; | |
1774 | ||
c32bde28 RD |
1775 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
1776 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1777 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
1779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 1781 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1782 | if (PyErr_Occurred()) SWIG_fail; |
1783 | { | |
1784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1785 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1786 | ||
1787 | wxPyEndAllowThreads(__tstate); | |
1788 | if (PyErr_Occurred()) SWIG_fail; | |
1789 | } | |
1790 | { | |
1791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1792 | } | |
c32bde28 RD |
1793 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
1794 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1795 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1796 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1797 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1798 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
1799 | return resultobj; |
1800 | fail: | |
1801 | return NULL; | |
1802 | } | |
1803 | ||
1804 | ||
c32bde28 | 1805 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1806 | PyObject *resultobj; |
1807 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1808 | bool result; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "self", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1817 | { | |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | result = (bool)(arg1)->Ok(); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | { | |
1825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1826 | } | |
1827 | return resultobj; | |
1828 | fail: | |
1829 | return NULL; | |
1830 | } | |
1831 | ||
1832 | ||
c32bde28 | 1833 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1834 | PyObject *obj; |
1835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1836 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1837 | Py_INCREF(obj); | |
1838 | return Py_BuildValue((char *)""); | |
1839 | } | |
c32bde28 | 1840 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1841 | PyObject *resultobj; |
1842 | wxColour *arg1 = 0 ; | |
1843 | int arg2 = (int) 1 ; | |
1844 | int arg3 = (int) wxSOLID ; | |
1845 | wxPen *result; | |
1846 | wxColour temp1 ; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | PyObject * obj1 = 0 ; | |
1849 | PyObject * obj2 = 0 ; | |
1850 | char *kwnames[] = { | |
1851 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1852 | }; | |
1853 | ||
1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1855 | { | |
1856 | arg1 = &temp1; | |
1857 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1858 | } | |
1859 | if (obj1) { | |
c32bde28 | 1860 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1861 | if (PyErr_Occurred()) SWIG_fail; |
1862 | } | |
1863 | if (obj2) { | |
c32bde28 | 1864 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
1865 | if (PyErr_Occurred()) SWIG_fail; |
1866 | } | |
1867 | { | |
0439c23b | 1868 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1870 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1871 | ||
1872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1873 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1874 | } |
1875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1876 | return resultobj; | |
1877 | fail: | |
1878 | return NULL; | |
1879 | } | |
1880 | ||
1881 | ||
c32bde28 | 1882 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1883 | PyObject *resultobj; |
1884 | wxPen *arg1 = (wxPen *) 0 ; | |
1885 | PyObject * obj0 = 0 ; | |
1886 | char *kwnames[] = { | |
1887 | (char *) "self", NULL | |
1888 | }; | |
1889 | ||
1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1893 | { | |
1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1895 | delete arg1; | |
1896 | ||
1897 | wxPyEndAllowThreads(__tstate); | |
1898 | if (PyErr_Occurred()) SWIG_fail; | |
1899 | } | |
1900 | Py_INCREF(Py_None); resultobj = Py_None; | |
1901 | return resultobj; | |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
c32bde28 | 1907 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1908 | PyObject *resultobj; |
1909 | wxPen *arg1 = (wxPen *) 0 ; | |
1910 | int result; | |
1911 | PyObject * obj0 = 0 ; | |
1912 | char *kwnames[] = { | |
1913 | (char *) "self", NULL | |
1914 | }; | |
1915 | ||
1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1919 | { | |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | result = (int)(arg1)->GetCap(); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
1925 | } | |
c32bde28 | 1926 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1927 | return resultobj; |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
c32bde28 | 1933 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1934 | PyObject *resultobj; |
1935 | wxPen *arg1 = (wxPen *) 0 ; | |
1936 | wxColour result; | |
1937 | PyObject * obj0 = 0 ; | |
1938 | char *kwnames[] = { | |
1939 | (char *) "self", NULL | |
1940 | }; | |
1941 | ||
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1945 | { | |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1947 | result = (arg1)->GetColour(); | |
1948 | ||
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
1952 | { | |
1953 | wxColour * resultptr; | |
1954 | resultptr = new wxColour((wxColour &) result); | |
1955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1956 | } | |
1957 | return resultobj; | |
1958 | fail: | |
1959 | return NULL; | |
1960 | } | |
1961 | ||
1962 | ||
c32bde28 | 1963 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1964 | PyObject *resultobj; |
1965 | wxPen *arg1 = (wxPen *) 0 ; | |
1966 | int result; | |
1967 | PyObject * obj0 = 0 ; | |
1968 | char *kwnames[] = { | |
1969 | (char *) "self", NULL | |
1970 | }; | |
1971 | ||
1972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1975 | { | |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1977 | result = (int)(arg1)->GetJoin(); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
c32bde28 | 1982 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1983 | return resultobj; |
1984 | fail: | |
1985 | return NULL; | |
1986 | } | |
1987 | ||
1988 | ||
c32bde28 | 1989 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1990 | PyObject *resultobj; |
1991 | wxPen *arg1 = (wxPen *) 0 ; | |
1992 | int result; | |
1993 | PyObject * obj0 = 0 ; | |
1994 | char *kwnames[] = { | |
1995 | (char *) "self", NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | result = (int)(arg1)->GetStyle(); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
c32bde28 | 2008 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2009 | return resultobj; |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
c32bde28 | 2015 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2016 | PyObject *resultobj; |
2017 | wxPen *arg1 = (wxPen *) 0 ; | |
2018 | int result; | |
2019 | PyObject * obj0 = 0 ; | |
2020 | char *kwnames[] = { | |
2021 | (char *) "self", NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2027 | { | |
2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2029 | result = (int)(arg1)->GetWidth(); | |
2030 | ||
2031 | wxPyEndAllowThreads(__tstate); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
c32bde28 | 2034 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2035 | return resultobj; |
2036 | fail: | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
c32bde28 | 2041 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2042 | PyObject *resultobj; |
2043 | wxPen *arg1 = (wxPen *) 0 ; | |
2044 | bool result; | |
2045 | PyObject * obj0 = 0 ; | |
2046 | char *kwnames[] = { | |
2047 | (char *) "self", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2053 | { | |
2054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2055 | result = (bool)(arg1)->Ok(); | |
2056 | ||
2057 | wxPyEndAllowThreads(__tstate); | |
2058 | if (PyErr_Occurred()) SWIG_fail; | |
2059 | } | |
2060 | { | |
2061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2062 | } | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
c32bde28 | 2069 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2070 | PyObject *resultobj; |
2071 | wxPen *arg1 = (wxPen *) 0 ; | |
2072 | int arg2 ; | |
2073 | PyObject * obj0 = 0 ; | |
2074 | PyObject * obj1 = 0 ; | |
2075 | char *kwnames[] = { | |
2076 | (char *) "self",(char *) "cap_style", NULL | |
2077 | }; | |
2078 | ||
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
2080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2082 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2083 | if (PyErr_Occurred()) SWIG_fail; |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | (arg1)->SetCap(arg2); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | Py_INCREF(Py_None); resultobj = Py_None; | |
2092 | return resultobj; | |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
c32bde28 | 2098 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2099 | PyObject *resultobj; |
2100 | wxPen *arg1 = (wxPen *) 0 ; | |
2101 | wxColour *arg2 = 0 ; | |
2102 | wxColour temp2 ; | |
2103 | PyObject * obj0 = 0 ; | |
2104 | PyObject * obj1 = 0 ; | |
2105 | char *kwnames[] = { | |
2106 | (char *) "self",(char *) "colour", NULL | |
2107 | }; | |
2108 | ||
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2112 | { | |
2113 | arg2 = &temp2; | |
2114 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2115 | } | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | (arg1)->SetColour(*arg2); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | Py_INCREF(Py_None); resultobj = Py_None; | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
c32bde28 | 2130 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2131 | PyObject *resultobj; |
2132 | wxPen *arg1 = (wxPen *) 0 ; | |
2133 | int arg2 ; | |
2134 | PyObject * obj0 = 0 ; | |
2135 | PyObject * obj1 = 0 ; | |
2136 | char *kwnames[] = { | |
2137 | (char *) "self",(char *) "join_style", NULL | |
2138 | }; | |
2139 | ||
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2143 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2144 | if (PyErr_Occurred()) SWIG_fail; |
2145 | { | |
2146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2147 | (arg1)->SetJoin(arg2); | |
2148 | ||
2149 | wxPyEndAllowThreads(__tstate); | |
2150 | if (PyErr_Occurred()) SWIG_fail; | |
2151 | } | |
2152 | Py_INCREF(Py_None); resultobj = Py_None; | |
2153 | return resultobj; | |
2154 | fail: | |
2155 | return NULL; | |
2156 | } | |
2157 | ||
2158 | ||
c32bde28 | 2159 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2160 | PyObject *resultobj; |
2161 | wxPen *arg1 = (wxPen *) 0 ; | |
2162 | int arg2 ; | |
2163 | PyObject * obj0 = 0 ; | |
2164 | PyObject * obj1 = 0 ; | |
2165 | char *kwnames[] = { | |
2166 | (char *) "self",(char *) "style", NULL | |
2167 | }; | |
2168 | ||
2169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2172 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2173 | if (PyErr_Occurred()) SWIG_fail; |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | (arg1)->SetStyle(arg2); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | Py_INCREF(Py_None); resultobj = Py_None; | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
c32bde28 | 2188 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2189 | PyObject *resultobj; |
2190 | wxPen *arg1 = (wxPen *) 0 ; | |
2191 | int arg2 ; | |
2192 | PyObject * obj0 = 0 ; | |
2193 | PyObject * obj1 = 0 ; | |
2194 | char *kwnames[] = { | |
2195 | (char *) "self",(char *) "width", NULL | |
2196 | }; | |
2197 | ||
2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2201 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2202 | if (PyErr_Occurred()) SWIG_fail; |
2203 | { | |
2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2205 | (arg1)->SetWidth(arg2); | |
2206 | ||
2207 | wxPyEndAllowThreads(__tstate); | |
2208 | if (PyErr_Occurred()) SWIG_fail; | |
2209 | } | |
2210 | Py_INCREF(Py_None); resultobj = Py_None; | |
2211 | return resultobj; | |
2212 | fail: | |
2213 | return NULL; | |
2214 | } | |
2215 | ||
2216 | ||
c32bde28 | 2217 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2218 | PyObject *resultobj; |
2219 | wxPen *arg1 = (wxPen *) 0 ; | |
2220 | int arg2 ; | |
2221 | wxDash *arg3 = (wxDash *) 0 ; | |
2222 | PyObject * obj0 = 0 ; | |
2223 | PyObject * obj1 = 0 ; | |
2224 | char *kwnames[] = { | |
2225 | (char *) "self",(char *) "dashes", NULL | |
2226 | }; | |
2227 | ||
2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2231 | { | |
2232 | arg2 = PyList_Size(obj1); | |
2233 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2234 | if (arg3 == NULL) SWIG_fail; | |
2235 | } | |
2236 | { | |
2237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2238 | (arg1)->SetDashes(arg2,arg3); | |
2239 | ||
2240 | wxPyEndAllowThreads(__tstate); | |
2241 | if (PyErr_Occurred()) SWIG_fail; | |
2242 | } | |
2243 | Py_INCREF(Py_None); resultobj = Py_None; | |
2244 | { | |
2245 | if (arg3) delete [] arg3; | |
2246 | } | |
2247 | return resultobj; | |
2248 | fail: | |
2249 | { | |
2250 | if (arg3) delete [] arg3; | |
2251 | } | |
2252 | return NULL; | |
2253 | } | |
2254 | ||
2255 | ||
c32bde28 | 2256 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2257 | PyObject *resultobj; |
2258 | wxPen *arg1 = (wxPen *) 0 ; | |
2259 | PyObject *result; | |
2260 | PyObject * obj0 = 0 ; | |
2261 | char *kwnames[] = { | |
2262 | (char *) "self", NULL | |
2263 | }; | |
2264 | ||
2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2268 | { | |
2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2270 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2271 | ||
2272 | wxPyEndAllowThreads(__tstate); | |
2273 | if (PyErr_Occurred()) SWIG_fail; | |
2274 | } | |
2275 | resultobj = result; | |
2276 | return resultobj; | |
2277 | fail: | |
2278 | return NULL; | |
2279 | } | |
2280 | ||
2281 | ||
c32bde28 | 2282 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2283 | PyObject *resultobj; |
2284 | wxPen *arg1 = (wxPen *) 0 ; | |
c24da6d6 RD |
2285 | PyObject *arg2 = (PyObject *) 0 ; |
2286 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2287 | PyObject * obj0 = 0 ; |
2288 | PyObject * obj1 = 0 ; | |
c24da6d6 | 2289 | PyObject * obj2 = 0 ; |
d55e5bfc | 2290 | char *kwnames[] = { |
c24da6d6 | 2291 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2292 | }; |
2293 | ||
c24da6d6 | 2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c24da6d6 RD |
2297 | arg2 = obj1; |
2298 | arg3 = obj2; | |
d55e5bfc RD |
2299 | { |
2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2301 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2302 | |
2303 | wxPyEndAllowThreads(__tstate); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | } | |
c24da6d6 | 2306 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2307 | return resultobj; |
2308 | fail: | |
2309 | return NULL; | |
2310 | } | |
2311 | ||
2312 | ||
c32bde28 | 2313 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2314 | PyObject *resultobj; |
2315 | wxPen *arg1 = (wxPen *) 0 ; | |
2316 | int result; | |
2317 | PyObject * obj0 = 0 ; | |
2318 | char *kwnames[] = { | |
2319 | (char *) "self", NULL | |
2320 | }; | |
2321 | ||
2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2325 | { | |
2326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2327 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2328 | ||
2329 | wxPyEndAllowThreads(__tstate); | |
2330 | if (PyErr_Occurred()) SWIG_fail; | |
2331 | } | |
c32bde28 | 2332 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2333 | return resultobj; |
2334 | fail: | |
2335 | return NULL; | |
2336 | } | |
2337 | ||
2338 | ||
c32bde28 | 2339 | static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2340 | PyObject *resultobj; |
2341 | wxPen *arg1 = (wxPen *) 0 ; | |
2342 | wxBitmap *result; | |
2343 | PyObject * obj0 = 0 ; | |
2344 | char *kwnames[] = { | |
2345 | (char *) "self", NULL | |
2346 | }; | |
2347 | ||
2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2351 | { | |
2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2353 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2354 | ||
2355 | wxPyEndAllowThreads(__tstate); | |
2356 | if (PyErr_Occurred()) SWIG_fail; | |
2357 | } | |
2358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2359 | return resultobj; | |
2360 | fail: | |
2361 | return NULL; | |
2362 | } | |
2363 | ||
2364 | ||
c32bde28 | 2365 | static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2366 | PyObject *resultobj; |
2367 | wxPen *arg1 = (wxPen *) 0 ; | |
2368 | wxBitmap *arg2 = 0 ; | |
2369 | PyObject * obj0 = 0 ; | |
2370 | PyObject * obj1 = 0 ; | |
2371 | char *kwnames[] = { | |
2372 | (char *) "self",(char *) "stipple", NULL | |
2373 | }; | |
2374 | ||
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2379 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2380 | SWIG_fail; | |
2381 | if (arg2 == NULL) { | |
2382 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2383 | SWIG_fail; | |
2384 | } | |
2385 | { | |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2387 | (arg1)->SetStipple(*arg2); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
2390 | if (PyErr_Occurred()) SWIG_fail; | |
2391 | } | |
2392 | Py_INCREF(Py_None); resultobj = Py_None; | |
2393 | return resultobj; | |
2394 | fail: | |
2395 | return NULL; | |
2396 | } | |
2397 | ||
2398 | ||
c32bde28 | 2399 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2400 | PyObject *resultobj; |
c24da6d6 RD |
2401 | wxPen *arg1 = (wxPen *) 0 ; |
2402 | wxPen *arg2 = (wxPen *) 0 ; | |
2403 | bool result; | |
d55e5bfc RD |
2404 | PyObject * obj0 = 0 ; |
2405 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2406 | char *kwnames[] = { |
c24da6d6 | 2407 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2408 | }; |
2409 | ||
c24da6d6 RD |
2410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
2415 | { |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2417 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2418 | |
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
d55e5bfc | 2422 | { |
c24da6d6 | 2423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc | 2424 | } |
d55e5bfc RD |
2425 | return resultobj; |
2426 | fail: | |
2427 | return NULL; | |
2428 | } | |
2429 | ||
2430 | ||
c32bde28 | 2431 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2432 | PyObject *resultobj; |
c24da6d6 RD |
2433 | wxPen *arg1 = (wxPen *) 0 ; |
2434 | wxPen *arg2 = (wxPen *) 0 ; | |
2435 | bool result; | |
d55e5bfc RD |
2436 | PyObject * obj0 = 0 ; |
2437 | PyObject * obj1 = 0 ; | |
2438 | char *kwnames[] = { | |
c24da6d6 | 2439 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2440 | }; |
2441 | ||
c24da6d6 RD |
2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2447 | { |
2448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2449 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2450 | |
2451 | wxPyEndAllowThreads(__tstate); | |
2452 | if (PyErr_Occurred()) SWIG_fail; | |
2453 | } | |
d55e5bfc | 2454 | { |
c24da6d6 | 2455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2456 | } |
2457 | return resultobj; | |
2458 | fail: | |
d55e5bfc RD |
2459 | return NULL; |
2460 | } | |
2461 | ||
2462 | ||
c32bde28 | 2463 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2464 | PyObject *obj; |
2465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
c24da6d6 | 2466 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2467 | Py_INCREF(obj); |
2468 | return Py_BuildValue((char *)""); | |
2469 | } | |
c32bde28 | 2470 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2471 | PyObject *resultobj; |
2472 | wxColour *arg1 = 0 ; | |
2473 | int arg2 = (int) wxSOLID ; | |
2474 | wxBrush *result; | |
2475 | wxColour temp1 ; | |
2476 | PyObject * obj0 = 0 ; | |
2477 | PyObject * obj1 = 0 ; | |
2478 | char *kwnames[] = { | |
2479 | (char *) "colour",(char *) "style", NULL | |
2480 | }; | |
2481 | ||
2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2483 | { | |
2484 | arg1 = &temp1; | |
2485 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2486 | } | |
2487 | if (obj1) { | |
c32bde28 | 2488 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2489 | if (PyErr_Occurred()) SWIG_fail; |
2490 | } | |
2491 | { | |
0439c23b | 2492 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2494 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2495 | ||
2496 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2497 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2498 | } |
2499 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
c32bde28 | 2506 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2507 | PyObject *resultobj; |
2508 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2509 | PyObject * obj0 = 0 ; | |
2510 | char *kwnames[] = { | |
2511 | (char *) "self", NULL | |
2512 | }; | |
2513 | ||
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2517 | { | |
2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2519 | delete arg1; | |
2520 | ||
2521 | wxPyEndAllowThreads(__tstate); | |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
2523 | } | |
2524 | Py_INCREF(Py_None); resultobj = Py_None; | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | return NULL; | |
2528 | } | |
2529 | ||
2530 | ||
c32bde28 | 2531 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2532 | PyObject *resultobj; |
2533 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2534 | wxColour *arg2 = 0 ; | |
2535 | wxColour temp2 ; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | PyObject * obj1 = 0 ; | |
2538 | char *kwnames[] = { | |
2539 | (char *) "self",(char *) "col", NULL | |
2540 | }; | |
2541 | ||
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2545 | { | |
2546 | arg2 = &temp2; | |
2547 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2548 | } | |
2549 | { | |
2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2551 | (arg1)->SetColour((wxColour const &)*arg2); | |
2552 | ||
2553 | wxPyEndAllowThreads(__tstate); | |
2554 | if (PyErr_Occurred()) SWIG_fail; | |
2555 | } | |
2556 | Py_INCREF(Py_None); resultobj = Py_None; | |
2557 | return resultobj; | |
2558 | fail: | |
2559 | return NULL; | |
2560 | } | |
2561 | ||
2562 | ||
c32bde28 | 2563 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2564 | PyObject *resultobj; |
2565 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2566 | int arg2 ; | |
2567 | PyObject * obj0 = 0 ; | |
2568 | PyObject * obj1 = 0 ; | |
2569 | char *kwnames[] = { | |
2570 | (char *) "self",(char *) "style", NULL | |
2571 | }; | |
2572 | ||
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2576 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2577 | if (PyErr_Occurred()) SWIG_fail; |
2578 | { | |
2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2580 | (arg1)->SetStyle(arg2); | |
2581 | ||
2582 | wxPyEndAllowThreads(__tstate); | |
2583 | if (PyErr_Occurred()) SWIG_fail; | |
2584 | } | |
2585 | Py_INCREF(Py_None); resultobj = Py_None; | |
2586 | return resultobj; | |
2587 | fail: | |
2588 | return NULL; | |
2589 | } | |
2590 | ||
2591 | ||
c32bde28 | 2592 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2593 | PyObject *resultobj; |
2594 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2595 | wxBitmap *arg2 = 0 ; | |
2596 | PyObject * obj0 = 0 ; | |
2597 | PyObject * obj1 = 0 ; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "self",(char *) "stipple", NULL | |
2600 | }; | |
2601 | ||
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2607 | SWIG_fail; | |
2608 | if (arg2 == NULL) { | |
2609 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2610 | SWIG_fail; | |
2611 | } | |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2614 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2615 | ||
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) SWIG_fail; | |
2618 | } | |
2619 | Py_INCREF(Py_None); resultobj = Py_None; | |
2620 | return resultobj; | |
2621 | fail: | |
2622 | return NULL; | |
2623 | } | |
2624 | ||
2625 | ||
c32bde28 | 2626 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2627 | PyObject *resultobj; |
2628 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2629 | wxColour result; | |
2630 | PyObject * obj0 = 0 ; | |
2631 | char *kwnames[] = { | |
2632 | (char *) "self", NULL | |
2633 | }; | |
2634 | ||
2635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2638 | { | |
2639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2640 | result = ((wxBrush const *)arg1)->GetColour(); | |
2641 | ||
2642 | wxPyEndAllowThreads(__tstate); | |
2643 | if (PyErr_Occurred()) SWIG_fail; | |
2644 | } | |
2645 | { | |
2646 | wxColour * resultptr; | |
2647 | resultptr = new wxColour((wxColour &) result); | |
2648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2649 | } | |
2650 | return resultobj; | |
2651 | fail: | |
2652 | return NULL; | |
2653 | } | |
2654 | ||
2655 | ||
c32bde28 | 2656 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2657 | PyObject *resultobj; |
2658 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2659 | int result; | |
2660 | PyObject * obj0 = 0 ; | |
2661 | char *kwnames[] = { | |
2662 | (char *) "self", NULL | |
2663 | }; | |
2664 | ||
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
c32bde28 | 2675 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2676 | return resultobj; |
2677 | fail: | |
2678 | return NULL; | |
2679 | } | |
2680 | ||
2681 | ||
c32bde28 | 2682 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2683 | PyObject *resultobj; |
2684 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2685 | wxBitmap *result; | |
2686 | PyObject * obj0 = 0 ; | |
2687 | char *kwnames[] = { | |
2688 | (char *) "self", NULL | |
2689 | }; | |
2690 | ||
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2694 | { | |
2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2696 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2697 | ||
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
2701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2702 | return resultobj; | |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
c32bde28 | 2708 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2709 | PyObject *resultobj; |
2710 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2711 | bool result; | |
2712 | PyObject * obj0 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (bool)(arg1)->Ok(); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2729 | } | |
2730 | return resultobj; | |
2731 | fail: | |
2732 | return NULL; | |
2733 | } | |
2734 | ||
2735 | ||
c32bde28 | 2736 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2737 | PyObject *obj; |
2738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2739 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2740 | Py_INCREF(obj); | |
2741 | return Py_BuildValue((char *)""); | |
2742 | } | |
c32bde28 | 2743 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2744 | PyObject *resultobj; |
2745 | wxString *arg1 = 0 ; | |
2746 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2747 | wxBitmap *result; | |
2748 | bool temp1 = False ; | |
2749 | PyObject * obj0 = 0 ; | |
2750 | PyObject * obj1 = 0 ; | |
2751 | char *kwnames[] = { | |
2752 | (char *) "name",(char *) "type", NULL | |
2753 | }; | |
2754 | ||
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2756 | { | |
2757 | arg1 = wxString_in_helper(obj0); | |
2758 | if (arg1 == NULL) SWIG_fail; | |
2759 | temp1 = True; | |
2760 | } | |
2761 | if (obj1) { | |
c32bde28 | 2762 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2763 | if (PyErr_Occurred()) SWIG_fail; |
2764 | } | |
2765 | { | |
0439c23b | 2766 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2768 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2769 | ||
2770 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2771 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2772 | } |
2773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2774 | { | |
2775 | if (temp1) | |
2776 | delete arg1; | |
2777 | } | |
2778 | return resultobj; | |
2779 | fail: | |
2780 | { | |
2781 | if (temp1) | |
2782 | delete arg1; | |
2783 | } | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
c32bde28 | 2788 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2789 | PyObject *resultobj; |
2790 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2791 | PyObject * obj0 = 0 ; | |
2792 | char *kwnames[] = { | |
2793 | (char *) "self", NULL | |
2794 | }; | |
2795 | ||
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | delete arg1; | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
c32bde28 | 2813 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
2814 | PyObject *resultobj; |
2815 | int arg1 ; | |
2816 | int arg2 ; | |
2817 | int arg3 = (int) -1 ; | |
2818 | wxBitmap *result; | |
2819 | PyObject * obj0 = 0 ; | |
2820 | PyObject * obj1 = 0 ; | |
2821 | PyObject * obj2 = 0 ; | |
2822 | char *kwnames[] = { | |
2823 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2824 | }; | |
2825 | ||
2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 2827 | arg1 = (int)SWIG_As_int(obj0); |
c24da6d6 | 2828 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2829 | arg2 = (int)SWIG_As_int(obj1); |
c24da6d6 RD |
2830 | if (PyErr_Occurred()) SWIG_fail; |
2831 | if (obj2) { | |
c32bde28 | 2832 | arg3 = (int)SWIG_As_int(obj2); |
c24da6d6 RD |
2833 | if (PyErr_Occurred()) SWIG_fail; |
2834 | } | |
2835 | { | |
0439c23b | 2836 | if (!wxPyCheckForApp()) SWIG_fail; |
c24da6d6 RD |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2838 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2841 | if (PyErr_Occurred()) SWIG_fail; |
c24da6d6 RD |
2842 | } |
2843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2844 | return resultobj; | |
2845 | fail: | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
c32bde28 | 2850 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2851 | PyObject *resultobj; |
2852 | wxIcon *arg1 = 0 ; | |
2853 | wxBitmap *result; | |
2854 | PyObject * obj0 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "icon", NULL | |
2857 | }; | |
2858 | ||
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2861 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2862 | SWIG_fail; | |
2863 | if (arg1 == NULL) { | |
2864 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2865 | SWIG_fail; | |
2866 | } | |
2867 | { | |
0439c23b | 2868 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2870 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2871 | ||
2872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2873 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2874 | } |
2875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2876 | return resultobj; | |
2877 | fail: | |
2878 | return NULL; | |
2879 | } | |
2880 | ||
2881 | ||
c32bde28 | 2882 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2883 | PyObject *resultobj; |
2884 | wxImage *arg1 = 0 ; | |
2885 | int arg2 = (int) -1 ; | |
2886 | wxBitmap *result; | |
2887 | PyObject * obj0 = 0 ; | |
2888 | PyObject * obj1 = 0 ; | |
2889 | char *kwnames[] = { | |
2890 | (char *) "image",(char *) "depth", NULL | |
2891 | }; | |
2892 | ||
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2896 | SWIG_fail; | |
2897 | if (arg1 == NULL) { | |
2898 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2899 | SWIG_fail; | |
2900 | } | |
2901 | if (obj1) { | |
c32bde28 | 2902 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2903 | if (PyErr_Occurred()) SWIG_fail; |
2904 | } | |
2905 | { | |
0439c23b | 2906 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2908 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2909 | ||
2910 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2911 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2912 | } |
2913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2914 | return resultobj; | |
2915 | fail: | |
2916 | return NULL; | |
2917 | } | |
2918 | ||
2919 | ||
c32bde28 | 2920 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2921 | PyObject *resultobj; |
2922 | PyObject *arg1 = (PyObject *) 0 ; | |
2923 | wxBitmap *result; | |
2924 | PyObject * obj0 = 0 ; | |
2925 | char *kwnames[] = { | |
2926 | (char *) "listOfStrings", NULL | |
2927 | }; | |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2930 | arg1 = obj0; | |
2931 | { | |
0439c23b | 2932 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2934 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2935 | ||
2936 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2937 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2938 | } |
2939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2940 | return resultobj; | |
2941 | fail: | |
2942 | return NULL; | |
2943 | } | |
2944 | ||
2945 | ||
c32bde28 | 2946 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2947 | PyObject *resultobj; |
2948 | PyObject *arg1 = (PyObject *) 0 ; | |
2949 | int arg2 ; | |
2950 | int arg3 ; | |
2951 | int arg4 = (int) 1 ; | |
2952 | wxBitmap *result; | |
2953 | PyObject * obj0 = 0 ; | |
2954 | PyObject * obj1 = 0 ; | |
2955 | PyObject * obj2 = 0 ; | |
2956 | PyObject * obj3 = 0 ; | |
2957 | char *kwnames[] = { | |
2958 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2962 | arg1 = obj0; | |
c32bde28 | 2963 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2964 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2965 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2966 | if (PyErr_Occurred()) SWIG_fail; |
2967 | if (obj3) { | |
c32bde28 | 2968 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
2969 | if (PyErr_Occurred()) SWIG_fail; |
2970 | } | |
2971 | { | |
0439c23b | 2972 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2974 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2975 | ||
2976 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2977 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2978 | } |
2979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2980 | return resultobj; | |
2981 | fail: | |
2982 | return NULL; | |
2983 | } | |
2984 | ||
2985 | ||
c32bde28 | 2986 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2987 | PyObject *resultobj; |
c24da6d6 RD |
2988 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
2989 | wxPalette *arg2 = 0 ; | |
d55e5bfc RD |
2990 | PyObject * obj0 = 0 ; |
2991 | PyObject * obj1 = 0 ; | |
c24da6d6 RD |
2992 | char *kwnames[] = { |
2993 | (char *) "self",(char *) "palette", NULL | |
2994 | }; | |
d55e5bfc | 2995 | |
c24da6d6 RD |
2996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
2997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
3000 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3001 | SWIG_fail; | |
3002 | if (arg2 == NULL) { | |
3003 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3004 | SWIG_fail; | |
d55e5bfc RD |
3005 | } |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 3008 | (arg1)->SetPalette(*arg2); |
d55e5bfc RD |
3009 | |
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
c24da6d6 | 3013 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3014 | return resultobj; |
3015 | fail: | |
3016 | return NULL; | |
3017 | } | |
3018 | ||
3019 | ||
c32bde28 | 3020 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 3021 | PyObject *resultobj; |
c24da6d6 RD |
3022 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
3023 | long result; | |
d55e5bfc | 3024 | PyObject * obj0 = 0 ; |
c24da6d6 RD |
3025 | char *kwnames[] = { |
3026 | (char *) "self", NULL | |
3027 | }; | |
d55e5bfc | 3028 | |
c24da6d6 RD |
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; |
3030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc | 3032 | { |
c24da6d6 RD |
3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3034 | result = (long)(arg1)->GetHandle(); | |
3035 | ||
3036 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
3037 | if (PyErr_Occurred()) SWIG_fail; |
3038 | } | |
c32bde28 | 3039 | resultobj = SWIG_From_long((long)result); |
c24da6d6 RD |
3040 | return resultobj; |
3041 | fail: | |
3042 | return NULL; | |
3043 | } | |
3044 | ||
3045 | ||
c32bde28 | 3046 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
3047 | PyObject *resultobj; |
3048 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3049 | long arg2 ; | |
3050 | PyObject * obj0 = 0 ; | |
3051 | PyObject * obj1 = 0 ; | |
3052 | char *kwnames[] = { | |
3053 | (char *) "self",(char *) "handle", NULL | |
3054 | }; | |
3055 | ||
3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
3057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3059 | arg2 = (long)SWIG_As_long(obj1); |
c24da6d6 | 3060 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3061 | { |
3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 3063 | wxBitmap_SetHandle(arg1,arg2); |
d55e5bfc RD |
3064 | |
3065 | wxPyEndAllowThreads(__tstate); | |
3066 | if (PyErr_Occurred()) SWIG_fail; | |
3067 | } | |
c24da6d6 | 3068 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3069 | return resultobj; |
3070 | fail: | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
c32bde28 | 3075 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3076 | PyObject *resultobj; |
3077 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3078 | bool result; | |
3079 | PyObject * obj0 = 0 ; | |
3080 | char *kwnames[] = { | |
3081 | (char *) "self", NULL | |
3082 | }; | |
3083 | ||
3084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
3085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3087 | { | |
3088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3089 | result = (bool)(arg1)->Ok(); | |
3090 | ||
3091 | wxPyEndAllowThreads(__tstate); | |
3092 | if (PyErr_Occurred()) SWIG_fail; | |
3093 | } | |
3094 | { | |
3095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3096 | } | |
3097 | return resultobj; | |
3098 | fail: | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | ||
c32bde28 | 3103 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3104 | PyObject *resultobj; |
3105 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3106 | int result; | |
3107 | PyObject * obj0 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "self", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
3113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3115 | { | |
3116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3117 | result = (int)(arg1)->GetWidth(); | |
3118 | ||
3119 | wxPyEndAllowThreads(__tstate); | |
3120 | if (PyErr_Occurred()) SWIG_fail; | |
3121 | } | |
c32bde28 | 3122 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3123 | return resultobj; |
3124 | fail: | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
c32bde28 | 3129 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3130 | PyObject *resultobj; |
3131 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3132 | int result; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | char *kwnames[] = { | |
3135 | (char *) "self", NULL | |
3136 | }; | |
3137 | ||
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3141 | { | |
3142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3143 | result = (int)(arg1)->GetHeight(); | |
3144 | ||
3145 | wxPyEndAllowThreads(__tstate); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
c32bde28 | 3148 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3149 | return resultobj; |
3150 | fail: | |
3151 | return NULL; | |
3152 | } | |
3153 | ||
3154 | ||
c32bde28 | 3155 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3156 | PyObject *resultobj; |
3157 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3158 | int result; | |
3159 | PyObject * obj0 = 0 ; | |
3160 | char *kwnames[] = { | |
3161 | (char *) "self", NULL | |
3162 | }; | |
3163 | ||
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | result = (int)(arg1)->GetDepth(); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
c32bde28 | 3174 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3175 | return resultobj; |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
c32bde28 | 3181 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3182 | PyObject *resultobj; |
3183 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3184 | wxSize result; | |
3185 | PyObject * obj0 = 0 ; | |
3186 | char *kwnames[] = { | |
3187 | (char *) "self", NULL | |
3188 | }; | |
3189 | ||
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3193 | { | |
3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3195 | result = wxBitmap_GetSize(arg1); | |
3196 | ||
3197 | wxPyEndAllowThreads(__tstate); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | { | |
3201 | wxSize * resultptr; | |
3202 | resultptr = new wxSize((wxSize &) result); | |
3203 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3204 | } | |
3205 | return resultobj; | |
3206 | fail: | |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
c32bde28 | 3211 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3212 | PyObject *resultobj; |
3213 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3214 | SwigValueWrapper< wxImage > result; | |
3215 | PyObject * obj0 = 0 ; | |
3216 | char *kwnames[] = { | |
3217 | (char *) "self", NULL | |
3218 | }; | |
3219 | ||
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3223 | { | |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3225 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
3230 | { | |
3231 | wxImage * resultptr; | |
3232 | resultptr = new wxImage((wxImage &) result); | |
3233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3234 | } | |
3235 | return resultobj; | |
3236 | fail: | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
c32bde28 | 3241 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3242 | PyObject *resultobj; |
3243 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3244 | wxMask *result; | |
3245 | PyObject * obj0 = 0 ; | |
3246 | char *kwnames[] = { | |
3247 | (char *) "self", NULL | |
3248 | }; | |
3249 | ||
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3253 | { | |
3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3255 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3256 | ||
3257 | wxPyEndAllowThreads(__tstate); | |
3258 | if (PyErr_Occurred()) SWIG_fail; | |
3259 | } | |
3260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3261 | return resultobj; | |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
c32bde28 | 3267 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3268 | PyObject *resultobj; |
3269 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3270 | wxMask *arg2 = (wxMask *) 0 ; | |
3271 | PyObject * obj0 = 0 ; | |
3272 | PyObject * obj1 = 0 ; | |
3273 | char *kwnames[] = { | |
3274 | (char *) "self",(char *) "mask", NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | (arg1)->SetMask(arg2); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | Py_INCREF(Py_None); resultobj = Py_None; | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
c32bde28 | 3296 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3297 | PyObject *resultobj; |
3298 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3299 | wxColour *arg2 = 0 ; | |
3300 | wxColour temp2 ; | |
3301 | PyObject * obj0 = 0 ; | |
3302 | PyObject * obj1 = 0 ; | |
3303 | char *kwnames[] = { | |
3304 | (char *) "self",(char *) "colour", NULL | |
3305 | }; | |
3306 | ||
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3310 | { | |
3311 | arg2 = &temp2; | |
3312 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3313 | } | |
3314 | { | |
3315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3316 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3317 | ||
3318 | wxPyEndAllowThreads(__tstate); | |
3319 | if (PyErr_Occurred()) SWIG_fail; | |
3320 | } | |
3321 | Py_INCREF(Py_None); resultobj = Py_None; | |
3322 | return resultobj; | |
3323 | fail: | |
3324 | return NULL; | |
3325 | } | |
3326 | ||
3327 | ||
c32bde28 | 3328 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3329 | PyObject *resultobj; |
3330 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3331 | wxRect *arg2 = 0 ; | |
3332 | SwigValueWrapper< wxBitmap > result; | |
3333 | wxRect temp2 ; | |
3334 | PyObject * obj0 = 0 ; | |
3335 | PyObject * obj1 = 0 ; | |
3336 | char *kwnames[] = { | |
3337 | (char *) "self",(char *) "rect", NULL | |
3338 | }; | |
3339 | ||
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3343 | { | |
3344 | arg2 = &temp2; | |
3345 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3346 | } | |
3347 | { | |
3348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3349 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3350 | ||
3351 | wxPyEndAllowThreads(__tstate); | |
3352 | if (PyErr_Occurred()) SWIG_fail; | |
3353 | } | |
3354 | { | |
3355 | wxBitmap * resultptr; | |
3356 | resultptr = new wxBitmap((wxBitmap &) result); | |
3357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3358 | } | |
3359 | return resultobj; | |
3360 | fail: | |
3361 | return NULL; | |
3362 | } | |
3363 | ||
3364 | ||
c32bde28 | 3365 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3366 | PyObject *resultobj; |
3367 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3368 | wxString *arg2 = 0 ; | |
3369 | int arg3 ; | |
c24da6d6 | 3370 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc RD |
3371 | bool result; |
3372 | bool temp2 = False ; | |
3373 | PyObject * obj0 = 0 ; | |
3374 | PyObject * obj1 = 0 ; | |
3375 | PyObject * obj2 = 0 ; | |
3376 | PyObject * obj3 = 0 ; | |
3377 | char *kwnames[] = { | |
3378 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3379 | }; | |
3380 | ||
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3384 | { | |
3385 | arg2 = wxString_in_helper(obj1); | |
3386 | if (arg2 == NULL) SWIG_fail; | |
3387 | temp2 = True; | |
3388 | } | |
c32bde28 | 3389 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3390 | if (PyErr_Occurred()) SWIG_fail; |
3391 | if (obj3) { | |
3392 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3394 | } | |
3395 | { | |
3396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3397 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3398 | ||
3399 | wxPyEndAllowThreads(__tstate); | |
3400 | if (PyErr_Occurred()) SWIG_fail; | |
3401 | } | |
3402 | { | |
3403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3404 | } | |
3405 | { | |
3406 | if (temp2) | |
3407 | delete arg2; | |
3408 | } | |
3409 | return resultobj; | |
3410 | fail: | |
3411 | { | |
3412 | if (temp2) | |
3413 | delete arg2; | |
3414 | } | |
3415 | return NULL; | |
3416 | } | |
3417 | ||
3418 | ||
c32bde28 | 3419 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3420 | PyObject *resultobj; |
3421 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3422 | wxString *arg2 = 0 ; | |
3423 | int arg3 ; | |
3424 | bool result; | |
3425 | bool temp2 = False ; | |
3426 | PyObject * obj0 = 0 ; | |
3427 | PyObject * obj1 = 0 ; | |
3428 | PyObject * obj2 = 0 ; | |
3429 | char *kwnames[] = { | |
3430 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3431 | }; | |
3432 | ||
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3436 | { | |
3437 | arg2 = wxString_in_helper(obj1); | |
3438 | if (arg2 == NULL) SWIG_fail; | |
3439 | temp2 = True; | |
3440 | } | |
c32bde28 | 3441 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3442 | if (PyErr_Occurred()) SWIG_fail; |
3443 | { | |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3445 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3446 | ||
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
3450 | { | |
3451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3452 | } | |
3453 | { | |
3454 | if (temp2) | |
3455 | delete arg2; | |
3456 | } | |
3457 | return resultobj; | |
3458 | fail: | |
3459 | { | |
3460 | if (temp2) | |
3461 | delete arg2; | |
3462 | } | |
3463 | return NULL; | |
3464 | } | |
3465 | ||
3466 | ||
c32bde28 | 3467 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3468 | PyObject *resultobj; |
3469 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3470 | wxIcon *arg2 = 0 ; | |
3471 | bool result; | |
3472 | PyObject * obj0 = 0 ; | |
3473 | PyObject * obj1 = 0 ; | |
3474 | char *kwnames[] = { | |
3475 | (char *) "self",(char *) "icon", NULL | |
3476 | }; | |
3477 | ||
3478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3483 | SWIG_fail; | |
3484 | if (arg2 == NULL) { | |
3485 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3486 | SWIG_fail; | |
3487 | } | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | { | |
3496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3497 | } | |
3498 | return resultobj; | |
3499 | fail: | |
3500 | return NULL; | |
3501 | } | |
3502 | ||
3503 | ||
c32bde28 | 3504 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3505 | PyObject *resultobj; |
3506 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3507 | int arg2 ; | |
3508 | PyObject * obj0 = 0 ; | |
3509 | PyObject * obj1 = 0 ; | |
3510 | char *kwnames[] = { | |
3511 | (char *) "self",(char *) "height", NULL | |
3512 | }; | |
3513 | ||
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3517 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3518 | if (PyErr_Occurred()) SWIG_fail; |
3519 | { | |
3520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3521 | (arg1)->SetHeight(arg2); | |
3522 | ||
3523 | wxPyEndAllowThreads(__tstate); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
3526 | Py_INCREF(Py_None); resultobj = Py_None; | |
3527 | return resultobj; | |
3528 | fail: | |
3529 | return NULL; | |
3530 | } | |
3531 | ||
3532 | ||
c32bde28 | 3533 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3534 | PyObject *resultobj; |
3535 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3536 | int arg2 ; | |
3537 | PyObject * obj0 = 0 ; | |
3538 | PyObject * obj1 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "self",(char *) "width", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3546 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3547 | if (PyErr_Occurred()) SWIG_fail; |
3548 | { | |
3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3550 | (arg1)->SetWidth(arg2); | |
3551 | ||
3552 | wxPyEndAllowThreads(__tstate); | |
3553 | if (PyErr_Occurred()) SWIG_fail; | |
3554 | } | |
3555 | Py_INCREF(Py_None); resultobj = Py_None; | |
3556 | return resultobj; | |
3557 | fail: | |
3558 | return NULL; | |
3559 | } | |
3560 | ||
3561 | ||
c32bde28 | 3562 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3563 | PyObject *resultobj; |
3564 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3565 | int arg2 ; | |
3566 | PyObject * obj0 = 0 ; | |
3567 | PyObject * obj1 = 0 ; | |
3568 | char *kwnames[] = { | |
3569 | (char *) "self",(char *) "depth", NULL | |
3570 | }; | |
3571 | ||
3572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3575 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3576 | if (PyErr_Occurred()) SWIG_fail; |
3577 | { | |
3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3579 | (arg1)->SetDepth(arg2); | |
3580 | ||
3581 | wxPyEndAllowThreads(__tstate); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
3583 | } | |
3584 | Py_INCREF(Py_None); resultobj = Py_None; | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
c32bde28 | 3591 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3592 | PyObject *resultobj; |
3593 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3594 | wxSize *arg2 = 0 ; | |
3595 | wxSize temp2 ; | |
3596 | PyObject * obj0 = 0 ; | |
3597 | PyObject * obj1 = 0 ; | |
3598 | char *kwnames[] = { | |
3599 | (char *) "self",(char *) "size", NULL | |
3600 | }; | |
3601 | ||
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3605 | { | |
3606 | arg2 = &temp2; | |
3607 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3608 | } | |
3609 | { | |
3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3611 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3612 | ||
3613 | wxPyEndAllowThreads(__tstate); | |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
3615 | } | |
3616 | Py_INCREF(Py_None); resultobj = Py_None; | |
3617 | return resultobj; | |
3618 | fail: | |
3619 | return NULL; | |
3620 | } | |
3621 | ||
3622 | ||
c32bde28 | 3623 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3624 | PyObject *resultobj; |
3625 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3626 | wxCursor *arg2 = 0 ; | |
3627 | bool result; | |
3628 | PyObject * obj0 = 0 ; | |
3629 | PyObject * obj1 = 0 ; | |
3630 | char *kwnames[] = { | |
3631 | (char *) "self",(char *) "cursor", NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
3638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3639 | SWIG_fail; | |
3640 | if (arg2 == NULL) { | |
3641 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3642 | SWIG_fail; | |
3643 | } | |
3644 | { | |
3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3646 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3647 | ||
3648 | wxPyEndAllowThreads(__tstate); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3653 | } | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
c32bde28 | 3660 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3661 | PyObject *resultobj; |
3662 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3663 | int result; | |
3664 | PyObject * obj0 = 0 ; | |
3665 | char *kwnames[] = { | |
3666 | (char *) "self", NULL | |
3667 | }; | |
3668 | ||
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3672 | { | |
3673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3674 | result = (int)(arg1)->GetQuality(); | |
3675 | ||
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
c32bde28 | 3679 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3680 | return resultobj; |
3681 | fail: | |
3682 | return NULL; | |
3683 | } | |
3684 | ||
3685 | ||
c32bde28 | 3686 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3687 | PyObject *resultobj; |
3688 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3689 | int arg2 ; | |
3690 | PyObject * obj0 = 0 ; | |
3691 | PyObject * obj1 = 0 ; | |
3692 | char *kwnames[] = { | |
3693 | (char *) "self",(char *) "q", NULL | |
3694 | }; | |
3695 | ||
3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
3697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3700 | if (PyErr_Occurred()) SWIG_fail; |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | (arg1)->SetQuality(arg2); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | Py_INCREF(Py_None); resultobj = Py_None; | |
3709 | return resultobj; | |
3710 | fail: | |
3711 | return NULL; | |
3712 | } | |
3713 | ||
3714 | ||
c32bde28 | 3715 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3716 | PyObject *resultobj; |
3717 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3718 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3719 | bool result; | |
3720 | PyObject * obj0 = 0 ; | |
3721 | PyObject * obj1 = 0 ; | |
3722 | char *kwnames[] = { | |
3723 | (char *) "self",(char *) "other", NULL | |
3724 | }; | |
3725 | ||
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3731 | { | |
3732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3733 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3734 | ||
3735 | wxPyEndAllowThreads(__tstate); | |
3736 | if (PyErr_Occurred()) SWIG_fail; | |
3737 | } | |
3738 | { | |
3739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3740 | } | |
3741 | return resultobj; | |
3742 | fail: | |
3743 | return NULL; | |
3744 | } | |
3745 | ||
3746 | ||
c32bde28 | 3747 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3748 | PyObject *resultobj; |
3749 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3750 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3751 | bool result; | |
3752 | PyObject * obj0 = 0 ; | |
3753 | PyObject * obj1 = 0 ; | |
3754 | char *kwnames[] = { | |
3755 | (char *) "self",(char *) "other", NULL | |
3756 | }; | |
3757 | ||
3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3763 | { | |
3764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3765 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3766 | ||
3767 | wxPyEndAllowThreads(__tstate); | |
3768 | if (PyErr_Occurred()) SWIG_fail; | |
3769 | } | |
3770 | { | |
3771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3772 | } | |
3773 | return resultobj; | |
3774 | fail: | |
3775 | return NULL; | |
3776 | } | |
3777 | ||
3778 | ||
c32bde28 | 3779 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3780 | PyObject *obj; |
3781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3782 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3783 | Py_INCREF(obj); | |
3784 | return Py_BuildValue((char *)""); | |
3785 | } | |
c32bde28 | 3786 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3787 | PyObject *resultobj; |
3788 | wxBitmap *arg1 = 0 ; | |
3789 | wxColour const &arg2_defvalue = wxNullColour ; | |
3790 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3791 | wxMask *result; | |
3792 | wxColour temp2 ; | |
3793 | PyObject * obj0 = 0 ; | |
3794 | PyObject * obj1 = 0 ; | |
3795 | char *kwnames[] = { | |
3796 | (char *) "bitmap",(char *) "colour", NULL | |
3797 | }; | |
3798 | ||
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3801 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3802 | SWIG_fail; | |
3803 | if (arg1 == NULL) { | |
3804 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3805 | SWIG_fail; | |
3806 | } | |
3807 | if (obj1) { | |
3808 | { | |
3809 | arg2 = &temp2; | |
3810 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3811 | } | |
3812 | } | |
3813 | { | |
0439c23b | 3814 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3816 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3819 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3820 | } |
3821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3822 | return resultobj; | |
3823 | fail: | |
3824 | return NULL; | |
3825 | } | |
3826 | ||
3827 | ||
c32bde28 | 3828 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3829 | PyObject *obj; |
3830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3831 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3832 | Py_INCREF(obj); | |
3833 | return Py_BuildValue((char *)""); | |
3834 | } | |
c32bde28 | 3835 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3836 | PyObject *resultobj; |
3837 | wxString *arg1 = 0 ; | |
3838 | int arg2 ; | |
3839 | int arg3 = (int) -1 ; | |
3840 | int arg4 = (int) -1 ; | |
3841 | wxIcon *result; | |
3842 | bool temp1 = False ; | |
3843 | PyObject * obj0 = 0 ; | |
3844 | PyObject * obj1 = 0 ; | |
3845 | PyObject * obj2 = 0 ; | |
3846 | PyObject * obj3 = 0 ; | |
3847 | char *kwnames[] = { | |
3848 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3849 | }; | |
3850 | ||
3851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3852 | { | |
3853 | arg1 = wxString_in_helper(obj0); | |
3854 | if (arg1 == NULL) SWIG_fail; | |
3855 | temp1 = True; | |
3856 | } | |
c32bde28 | 3857 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3858 | if (PyErr_Occurred()) SWIG_fail; |
3859 | if (obj2) { | |
c32bde28 | 3860 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3861 | if (PyErr_Occurred()) SWIG_fail; |
3862 | } | |
3863 | if (obj3) { | |
c32bde28 | 3864 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3865 | if (PyErr_Occurred()) SWIG_fail; |
3866 | } | |
3867 | { | |
0439c23b | 3868 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3870 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3871 | ||
3872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3873 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3874 | } |
3875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3876 | { | |
3877 | if (temp1) | |
3878 | delete arg1; | |
3879 | } | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | { | |
3883 | if (temp1) | |
3884 | delete arg1; | |
3885 | } | |
3886 | return NULL; | |
3887 | } | |
3888 | ||
3889 | ||
c32bde28 | 3890 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3891 | PyObject *resultobj; |
3892 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3893 | PyObject * obj0 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "self", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3901 | { | |
3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3903 | delete arg1; | |
3904 | ||
3905 | wxPyEndAllowThreads(__tstate); | |
3906 | if (PyErr_Occurred()) SWIG_fail; | |
3907 | } | |
3908 | Py_INCREF(Py_None); resultobj = Py_None; | |
3909 | return resultobj; | |
3910 | fail: | |
3911 | return NULL; | |
3912 | } | |
3913 | ||
3914 | ||
c32bde28 | 3915 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3916 | PyObject *resultobj; |
3917 | wxIcon *result; | |
3918 | char *kwnames[] = { | |
3919 | NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3923 | { | |
0439c23b | 3924 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3926 | result = (wxIcon *)new wxIcon(); | |
3927 | ||
3928 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3929 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3930 | } |
3931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3932 | return resultobj; | |
3933 | fail: | |
3934 | return NULL; | |
3935 | } | |
3936 | ||
3937 | ||
c32bde28 | 3938 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3939 | PyObject *resultobj; |
3940 | wxIconLocation *arg1 = 0 ; | |
3941 | wxIcon *result; | |
3942 | PyObject * obj0 = 0 ; | |
3943 | char *kwnames[] = { | |
3944 | (char *) "loc", NULL | |
3945 | }; | |
3946 | ||
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3950 | SWIG_fail; | |
3951 | if (arg1 == NULL) { | |
3952 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3953 | SWIG_fail; | |
3954 | } | |
3955 | { | |
0439c23b | 3956 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3958 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3961 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3962 | } |
3963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
c32bde28 | 3970 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3971 | PyObject *resultobj; |
3972 | wxBitmap *arg1 = 0 ; | |
3973 | wxIcon *result; | |
3974 | PyObject * obj0 = 0 ; | |
3975 | char *kwnames[] = { | |
3976 | (char *) "bmp", NULL | |
3977 | }; | |
3978 | ||
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3982 | SWIG_fail; | |
3983 | if (arg1 == NULL) { | |
3984 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3985 | SWIG_fail; | |
3986 | } | |
3987 | { | |
0439c23b | 3988 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3990 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3991 | ||
3992 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3993 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3994 | } |
3995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
c32bde28 | 4002 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4003 | PyObject *resultobj; |
4004 | PyObject *arg1 = (PyObject *) 0 ; | |
4005 | wxIcon *result; | |
4006 | PyObject * obj0 = 0 ; | |
4007 | char *kwnames[] = { | |
4008 | (char *) "listOfStrings", NULL | |
4009 | }; | |
4010 | ||
4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
4012 | arg1 = obj0; | |
4013 | { | |
0439c23b | 4014 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4016 | result = (wxIcon *)new_wxIcon(arg1); | |
4017 | ||
4018 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4019 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4020 | } |
4021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
4022 | return resultobj; | |
4023 | fail: | |
4024 | return NULL; | |
4025 | } | |
4026 | ||
4027 | ||
c32bde28 | 4028 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4029 | PyObject *resultobj; |
4030 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4031 | wxString *arg2 = 0 ; | |
4032 | int arg3 ; | |
4033 | bool result; | |
4034 | bool temp2 = False ; | |
4035 | PyObject * obj0 = 0 ; | |
4036 | PyObject * obj1 = 0 ; | |
4037 | PyObject * obj2 = 0 ; | |
4038 | char *kwnames[] = { | |
4039 | (char *) "self",(char *) "name",(char *) "type", NULL | |
4040 | }; | |
4041 | ||
4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4045 | { | |
4046 | arg2 = wxString_in_helper(obj1); | |
4047 | if (arg2 == NULL) SWIG_fail; | |
4048 | temp2 = True; | |
4049 | } | |
c32bde28 | 4050 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4051 | if (PyErr_Occurred()) SWIG_fail; |
4052 | { | |
4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4054 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | { | |
4060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4061 | } | |
4062 | { | |
4063 | if (temp2) | |
4064 | delete arg2; | |
4065 | } | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | { | |
4069 | if (temp2) | |
4070 | delete arg2; | |
4071 | } | |
4072 | return NULL; | |
4073 | } | |
4074 | ||
4075 | ||
c32bde28 | 4076 | static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4077 | PyObject *resultobj; |
4078 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4079 | long result; | |
4080 | PyObject * obj0 = 0 ; | |
4081 | char *kwnames[] = { | |
4082 | (char *) "self", NULL | |
4083 | }; | |
4084 | ||
4085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
4086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | result = (long)(arg1)->GetHandle(); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
c32bde28 | 4095 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4096 | return resultobj; |
4097 | fail: | |
4098 | return NULL; | |
4099 | } | |
4100 | ||
4101 | ||
c32bde28 | 4102 | static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4103 | PyObject *resultobj; |
4104 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4105 | long arg2 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | PyObject * obj1 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "self",(char *) "handle", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
4113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4115 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4116 | if (PyErr_Occurred()) SWIG_fail; |
4117 | { | |
4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4119 | wxIcon_SetHandle(arg1,arg2); | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | } | |
4124 | Py_INCREF(Py_None); resultobj = Py_None; | |
4125 | return resultobj; | |
4126 | fail: | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
c32bde28 | 4131 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4132 | PyObject *resultobj; |
4133 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4134 | bool result; | |
4135 | PyObject * obj0 = 0 ; | |
4136 | char *kwnames[] = { | |
4137 | (char *) "self", NULL | |
4138 | }; | |
4139 | ||
4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
4141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4143 | { | |
4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4145 | result = (bool)(arg1)->Ok(); | |
4146 | ||
4147 | wxPyEndAllowThreads(__tstate); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
4149 | } | |
4150 | { | |
4151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4152 | } | |
4153 | return resultobj; | |
4154 | fail: | |
4155 | return NULL; | |
4156 | } | |
4157 | ||
4158 | ||
c32bde28 | 4159 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4160 | PyObject *resultobj; |
4161 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4162 | int result; | |
4163 | PyObject * obj0 = 0 ; | |
4164 | char *kwnames[] = { | |
4165 | (char *) "self", NULL | |
4166 | }; | |
4167 | ||
4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4171 | { | |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | result = (int)(arg1)->GetWidth(); | |
4174 | ||
4175 | wxPyEndAllowThreads(__tstate); | |
4176 | if (PyErr_Occurred()) SWIG_fail; | |
4177 | } | |
c32bde28 | 4178 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4179 | return resultobj; |
4180 | fail: | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
c32bde28 | 4185 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4186 | PyObject *resultobj; |
4187 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4188 | int result; | |
4189 | PyObject * obj0 = 0 ; | |
4190 | char *kwnames[] = { | |
4191 | (char *) "self", NULL | |
4192 | }; | |
4193 | ||
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4197 | { | |
4198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4199 | result = (int)(arg1)->GetHeight(); | |
4200 | ||
4201 | wxPyEndAllowThreads(__tstate); | |
4202 | if (PyErr_Occurred()) SWIG_fail; | |
4203 | } | |
c32bde28 | 4204 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4205 | return resultobj; |
4206 | fail: | |
4207 | return NULL; | |
4208 | } | |
4209 | ||
4210 | ||
c32bde28 | 4211 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4212 | PyObject *resultobj; |
4213 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4214 | int result; | |
4215 | PyObject * obj0 = 0 ; | |
4216 | char *kwnames[] = { | |
4217 | (char *) "self", NULL | |
4218 | }; | |
4219 | ||
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | result = (int)(arg1)->GetDepth(); | |
4226 | ||
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
c32bde28 | 4230 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4231 | return resultobj; |
4232 | fail: | |
4233 | return NULL; | |
4234 | } | |
4235 | ||
4236 | ||
c32bde28 | 4237 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4238 | PyObject *resultobj; |
4239 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4240 | int arg2 ; | |
4241 | PyObject * obj0 = 0 ; | |
4242 | PyObject * obj1 = 0 ; | |
4243 | char *kwnames[] = { | |
4244 | (char *) "self",(char *) "w", NULL | |
4245 | }; | |
4246 | ||
4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4250 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4251 | if (PyErr_Occurred()) SWIG_fail; |
4252 | { | |
4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4254 | (arg1)->SetWidth(arg2); | |
4255 | ||
4256 | wxPyEndAllowThreads(__tstate); | |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
4258 | } | |
4259 | Py_INCREF(Py_None); resultobj = Py_None; | |
4260 | return resultobj; | |
4261 | fail: | |
4262 | return NULL; | |
4263 | } | |
4264 | ||
4265 | ||
c32bde28 | 4266 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4267 | PyObject *resultobj; |
4268 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4269 | int arg2 ; | |
4270 | PyObject * obj0 = 0 ; | |
4271 | PyObject * obj1 = 0 ; | |
4272 | char *kwnames[] = { | |
4273 | (char *) "self",(char *) "h", NULL | |
4274 | }; | |
4275 | ||
4276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4279 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4280 | if (PyErr_Occurred()) SWIG_fail; |
4281 | { | |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | (arg1)->SetHeight(arg2); | |
4284 | ||
4285 | wxPyEndAllowThreads(__tstate); | |
4286 | if (PyErr_Occurred()) SWIG_fail; | |
4287 | } | |
4288 | Py_INCREF(Py_None); resultobj = Py_None; | |
4289 | return resultobj; | |
4290 | fail: | |
4291 | return NULL; | |
4292 | } | |
4293 | ||
4294 | ||
c32bde28 | 4295 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4296 | PyObject *resultobj; |
4297 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4298 | int arg2 ; | |
4299 | PyObject * obj0 = 0 ; | |
4300 | PyObject * obj1 = 0 ; | |
4301 | char *kwnames[] = { | |
4302 | (char *) "self",(char *) "d", NULL | |
4303 | }; | |
4304 | ||
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4308 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4309 | if (PyErr_Occurred()) SWIG_fail; |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | (arg1)->SetDepth(arg2); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | Py_INCREF(Py_None); resultobj = Py_None; | |
4318 | return resultobj; | |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
c32bde28 | 4324 | static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4325 | PyObject *resultobj; |
4326 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4327 | wxSize *arg2 = 0 ; | |
4328 | wxSize temp2 ; | |
4329 | PyObject * obj0 = 0 ; | |
4330 | PyObject * obj1 = 0 ; | |
4331 | char *kwnames[] = { | |
4332 | (char *) "self",(char *) "size", NULL | |
4333 | }; | |
4334 | ||
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4338 | { | |
4339 | arg2 = &temp2; | |
4340 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4341 | } | |
4342 | { | |
4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4344 | (arg1)->SetSize((wxSize const &)*arg2); | |
4345 | ||
4346 | wxPyEndAllowThreads(__tstate); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | Py_INCREF(Py_None); resultobj = Py_None; | |
4350 | return resultobj; | |
4351 | fail: | |
4352 | return NULL; | |
4353 | } | |
4354 | ||
4355 | ||
c32bde28 | 4356 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4357 | PyObject *resultobj; |
4358 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4359 | wxBitmap *arg2 = 0 ; | |
4360 | PyObject * obj0 = 0 ; | |
4361 | PyObject * obj1 = 0 ; | |
4362 | char *kwnames[] = { | |
4363 | (char *) "self",(char *) "bmp", NULL | |
4364 | }; | |
4365 | ||
4366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4370 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4371 | SWIG_fail; | |
4372 | if (arg2 == NULL) { | |
4373 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4374 | SWIG_fail; | |
4375 | } | |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
4383 | Py_INCREF(Py_None); resultobj = Py_None; | |
4384 | return resultobj; | |
4385 | fail: | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
c32bde28 | 4390 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4391 | PyObject *obj; |
4392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4393 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4394 | Py_INCREF(obj); | |
4395 | return Py_BuildValue((char *)""); | |
4396 | } | |
c32bde28 | 4397 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4398 | PyObject *resultobj; |
4399 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4400 | int arg2 = (int) 0 ; | |
4401 | wxIconLocation *result; | |
4402 | bool temp1 = False ; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | PyObject * obj1 = 0 ; | |
4405 | char *kwnames[] = { | |
4406 | (char *) "filename",(char *) "num", NULL | |
4407 | }; | |
4408 | ||
4409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4410 | if (obj0) { | |
4411 | { | |
4412 | arg1 = wxString_in_helper(obj0); | |
4413 | if (arg1 == NULL) SWIG_fail; | |
4414 | temp1 = True; | |
4415 | } | |
4416 | } | |
4417 | if (obj1) { | |
c32bde28 | 4418 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4419 | if (PyErr_Occurred()) SWIG_fail; |
4420 | } | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4424 | ||
4425 | wxPyEndAllowThreads(__tstate); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | } | |
4428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4429 | { | |
4430 | if (temp1) | |
4431 | delete arg1; | |
4432 | } | |
4433 | return resultobj; | |
4434 | fail: | |
4435 | { | |
4436 | if (temp1) | |
4437 | delete arg1; | |
4438 | } | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
c32bde28 | 4443 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4444 | PyObject *resultobj; |
4445 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4446 | PyObject * obj0 = 0 ; | |
4447 | char *kwnames[] = { | |
4448 | (char *) "self", NULL | |
4449 | }; | |
4450 | ||
4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | delete arg1; | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | Py_INCREF(Py_None); resultobj = Py_None; | |
4462 | return resultobj; | |
4463 | fail: | |
4464 | return NULL; | |
4465 | } | |
4466 | ||
4467 | ||
c32bde28 | 4468 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4469 | PyObject *resultobj; |
4470 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4471 | bool result; | |
4472 | PyObject * obj0 = 0 ; | |
4473 | char *kwnames[] = { | |
4474 | (char *) "self", NULL | |
4475 | }; | |
4476 | ||
4477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4480 | { | |
4481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4482 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4483 | ||
4484 | wxPyEndAllowThreads(__tstate); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | } | |
4487 | { | |
4488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4489 | } | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | return NULL; | |
4493 | } | |
4494 | ||
4495 | ||
c32bde28 | 4496 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4497 | PyObject *resultobj; |
4498 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4499 | wxString *arg2 = 0 ; | |
4500 | bool temp2 = False ; | |
4501 | PyObject * obj0 = 0 ; | |
4502 | PyObject * obj1 = 0 ; | |
4503 | char *kwnames[] = { | |
4504 | (char *) "self",(char *) "filename", NULL | |
4505 | }; | |
4506 | ||
4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4510 | { | |
4511 | arg2 = wxString_in_helper(obj1); | |
4512 | if (arg2 == NULL) SWIG_fail; | |
4513 | temp2 = True; | |
4514 | } | |
4515 | { | |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | (arg1)->SetFileName((wxString const &)*arg2); | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | Py_INCREF(Py_None); resultobj = Py_None; | |
4523 | { | |
4524 | if (temp2) | |
4525 | delete arg2; | |
4526 | } | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | { | |
4530 | if (temp2) | |
4531 | delete arg2; | |
4532 | } | |
4533 | return NULL; | |
4534 | } | |
4535 | ||
4536 | ||
c32bde28 | 4537 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4538 | PyObject *resultobj; |
4539 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4540 | wxString *result; | |
4541 | PyObject * obj0 = 0 ; | |
4542 | char *kwnames[] = { | |
4543 | (char *) "self", NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4549 | { | |
4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4551 | { | |
4552 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4553 | result = (wxString *) &_result_ref; | |
4554 | } | |
4555 | ||
4556 | wxPyEndAllowThreads(__tstate); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | { | |
4560 | #if wxUSE_UNICODE | |
4561 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4562 | #else | |
4563 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4564 | #endif | |
4565 | } | |
4566 | return resultobj; | |
4567 | fail: | |
4568 | return NULL; | |
4569 | } | |
4570 | ||
4571 | ||
c32bde28 | 4572 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4573 | PyObject *resultobj; |
4574 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4575 | int arg2 ; | |
4576 | PyObject * obj0 = 0 ; | |
4577 | PyObject * obj1 = 0 ; | |
4578 | char *kwnames[] = { | |
4579 | (char *) "self",(char *) "num", NULL | |
4580 | }; | |
4581 | ||
4582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4585 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4586 | if (PyErr_Occurred()) SWIG_fail; |
4587 | { | |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | wxIconLocation_SetIndex(arg1,arg2); | |
4590 | ||
4591 | wxPyEndAllowThreads(__tstate); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | Py_INCREF(Py_None); resultobj = Py_None; | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
c32bde28 | 4601 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4602 | PyObject *resultobj; |
4603 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4604 | int result; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | char *kwnames[] = { | |
4607 | (char *) "self", NULL | |
4608 | }; | |
4609 | ||
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4613 | { | |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4615 | result = (int)wxIconLocation_GetIndex(arg1); | |
4616 | ||
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
c32bde28 | 4620 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4621 | return resultobj; |
4622 | fail: | |
4623 | return NULL; | |
4624 | } | |
4625 | ||
4626 | ||
c32bde28 | 4627 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4628 | PyObject *obj; |
4629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4630 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4631 | Py_INCREF(obj); | |
4632 | return Py_BuildValue((char *)""); | |
4633 | } | |
c32bde28 | 4634 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4635 | PyObject *resultobj; |
4636 | wxIconBundle *result; | |
4637 | char *kwnames[] = { | |
4638 | NULL | |
4639 | }; | |
4640 | ||
4641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4642 | { | |
4643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4644 | result = (wxIconBundle *)new wxIconBundle(); | |
4645 | ||
4646 | wxPyEndAllowThreads(__tstate); | |
4647 | if (PyErr_Occurred()) SWIG_fail; | |
4648 | } | |
4649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4650 | return resultobj; | |
4651 | fail: | |
4652 | return NULL; | |
4653 | } | |
4654 | ||
4655 | ||
c32bde28 | 4656 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4657 | PyObject *resultobj; |
4658 | wxString *arg1 = 0 ; | |
4659 | long arg2 ; | |
4660 | wxIconBundle *result; | |
4661 | bool temp1 = False ; | |
4662 | PyObject * obj0 = 0 ; | |
4663 | PyObject * obj1 = 0 ; | |
4664 | char *kwnames[] = { | |
4665 | (char *) "file",(char *) "type", NULL | |
4666 | }; | |
4667 | ||
4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4669 | { | |
4670 | arg1 = wxString_in_helper(obj0); | |
4671 | if (arg1 == NULL) SWIG_fail; | |
4672 | temp1 = True; | |
4673 | } | |
c32bde28 | 4674 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4675 | if (PyErr_Occurred()) SWIG_fail; |
4676 | { | |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4679 | ||
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4684 | { | |
4685 | if (temp1) | |
4686 | delete arg1; | |
4687 | } | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | { | |
4691 | if (temp1) | |
4692 | delete arg1; | |
4693 | } | |
4694 | return NULL; | |
4695 | } | |
4696 | ||
4697 | ||
c32bde28 | 4698 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4699 | PyObject *resultobj; |
4700 | wxIcon *arg1 = 0 ; | |
4701 | wxIconBundle *result; | |
4702 | PyObject * obj0 = 0 ; | |
4703 | char *kwnames[] = { | |
4704 | (char *) "icon", NULL | |
4705 | }; | |
4706 | ||
4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4710 | SWIG_fail; | |
4711 | if (arg1 == NULL) { | |
4712 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4713 | SWIG_fail; | |
4714 | } | |
4715 | { | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4717 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4723 | return resultobj; | |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
c32bde28 | 4729 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4730 | PyObject *resultobj; |
4731 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4732 | PyObject * obj0 = 0 ; | |
4733 | char *kwnames[] = { | |
4734 | (char *) "self", NULL | |
4735 | }; | |
4736 | ||
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4740 | { | |
4741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4742 | delete arg1; | |
4743 | ||
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) SWIG_fail; | |
4746 | } | |
4747 | Py_INCREF(Py_None); resultobj = Py_None; | |
4748 | return resultobj; | |
4749 | fail: | |
4750 | return NULL; | |
4751 | } | |
4752 | ||
4753 | ||
c32bde28 | 4754 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4755 | PyObject *resultobj; |
4756 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4757 | wxIcon *arg2 = 0 ; | |
4758 | PyObject * obj0 = 0 ; | |
4759 | PyObject * obj1 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "self",(char *) "icon", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4768 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4769 | SWIG_fail; | |
4770 | if (arg2 == NULL) { | |
4771 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4772 | SWIG_fail; | |
4773 | } | |
4774 | { | |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | } | |
4781 | Py_INCREF(Py_None); resultobj = Py_None; | |
4782 | return resultobj; | |
4783 | fail: | |
4784 | return NULL; | |
4785 | } | |
4786 | ||
4787 | ||
c32bde28 | 4788 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4789 | PyObject *resultobj; |
4790 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4791 | wxString *arg2 = 0 ; | |
4792 | long arg3 ; | |
4793 | bool temp2 = False ; | |
4794 | PyObject * obj0 = 0 ; | |
4795 | PyObject * obj1 = 0 ; | |
4796 | PyObject * obj2 = 0 ; | |
4797 | char *kwnames[] = { | |
4798 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4799 | }; | |
4800 | ||
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4804 | { | |
4805 | arg2 = wxString_in_helper(obj1); | |
4806 | if (arg2 == NULL) SWIG_fail; | |
4807 | temp2 = True; | |
4808 | } | |
c32bde28 | 4809 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
4810 | if (PyErr_Occurred()) SWIG_fail; |
4811 | { | |
4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4813 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4814 | ||
4815 | wxPyEndAllowThreads(__tstate); | |
4816 | if (PyErr_Occurred()) SWIG_fail; | |
4817 | } | |
4818 | Py_INCREF(Py_None); resultobj = Py_None; | |
4819 | { | |
4820 | if (temp2) | |
4821 | delete arg2; | |
4822 | } | |
4823 | return resultobj; | |
4824 | fail: | |
4825 | { | |
4826 | if (temp2) | |
4827 | delete arg2; | |
4828 | } | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
c32bde28 | 4833 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4834 | PyObject *resultobj; |
4835 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4836 | wxSize *arg2 = 0 ; | |
4837 | wxIcon *result; | |
4838 | wxSize temp2 ; | |
4839 | PyObject * obj0 = 0 ; | |
4840 | PyObject * obj1 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self",(char *) "size", NULL | |
4843 | }; | |
4844 | ||
4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4848 | { | |
4849 | arg2 = &temp2; | |
4850 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4851 | } | |
4852 | { | |
4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4854 | { | |
4855 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4856 | result = (wxIcon *) &_result_ref; | |
4857 | } | |
4858 | ||
4859 | wxPyEndAllowThreads(__tstate); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | } | |
4862 | { | |
4863 | wxIcon* resultptr = new wxIcon(*result); | |
4864 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4865 | } | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
c32bde28 | 4872 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4873 | PyObject *obj; |
4874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4875 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4876 | Py_INCREF(obj); | |
4877 | return Py_BuildValue((char *)""); | |
4878 | } | |
c32bde28 | 4879 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4880 | PyObject *resultobj; |
4881 | wxString *arg1 = (wxString *) 0 ; | |
4882 | long arg2 ; | |
4883 | int arg3 = (int) 0 ; | |
4884 | int arg4 = (int) 0 ; | |
4885 | wxCursor *result; | |
4886 | bool temp1 = False ; | |
4887 | PyObject * obj0 = 0 ; | |
4888 | PyObject * obj1 = 0 ; | |
4889 | PyObject * obj2 = 0 ; | |
4890 | PyObject * obj3 = 0 ; | |
4891 | char *kwnames[] = { | |
4892 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4893 | }; | |
4894 | ||
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4896 | { | |
4897 | arg1 = wxString_in_helper(obj0); | |
4898 | if (arg1 == NULL) SWIG_fail; | |
4899 | temp1 = True; | |
4900 | } | |
c32bde28 | 4901 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4902 | if (PyErr_Occurred()) SWIG_fail; |
4903 | if (obj2) { | |
c32bde28 | 4904 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4905 | if (PyErr_Occurred()) SWIG_fail; |
4906 | } | |
4907 | if (obj3) { | |
c32bde28 | 4908 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
4909 | if (PyErr_Occurred()) SWIG_fail; |
4910 | } | |
4911 | { | |
0439c23b | 4912 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4914 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4917 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4918 | } |
4919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4920 | { | |
4921 | if (temp1) | |
4922 | delete arg1; | |
4923 | } | |
4924 | return resultobj; | |
4925 | fail: | |
4926 | { | |
4927 | if (temp1) | |
4928 | delete arg1; | |
4929 | } | |
4930 | return NULL; | |
4931 | } | |
4932 | ||
4933 | ||
c32bde28 | 4934 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4935 | PyObject *resultobj; |
4936 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4937 | PyObject * obj0 = 0 ; | |
4938 | char *kwnames[] = { | |
4939 | (char *) "self", NULL | |
4940 | }; | |
4941 | ||
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4945 | { | |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | delete arg1; | |
4948 | ||
4949 | wxPyEndAllowThreads(__tstate); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
4952 | Py_INCREF(Py_None); resultobj = Py_None; | |
4953 | return resultobj; | |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
c32bde28 | 4959 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4960 | PyObject *resultobj; |
4961 | int arg1 ; | |
4962 | wxCursor *result; | |
4963 | PyObject * obj0 = 0 ; | |
4964 | char *kwnames[] = { | |
4965 | (char *) "id", NULL | |
4966 | }; | |
4967 | ||
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
c32bde28 | 4969 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4970 | if (PyErr_Occurred()) SWIG_fail; |
4971 | { | |
0439c23b | 4972 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4974 | result = (wxCursor *)new wxCursor(arg1); | |
4975 | ||
4976 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4977 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4978 | } |
4979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4980 | return resultobj; | |
4981 | fail: | |
4982 | return NULL; | |
4983 | } | |
4984 | ||
4985 | ||
c32bde28 | 4986 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4987 | PyObject *resultobj; |
4988 | wxImage *arg1 = 0 ; | |
4989 | wxCursor *result; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "image", NULL | |
4993 | }; | |
4994 | ||
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4998 | SWIG_fail; | |
4999 | if (arg1 == NULL) { | |
5000 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5001 | SWIG_fail; | |
5002 | } | |
5003 | { | |
0439c23b | 5004 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5006 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
5007 | ||
5008 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5009 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5010 | } |
5011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
5012 | return resultobj; | |
5013 | fail: | |
5014 | return NULL; | |
5015 | } | |
5016 | ||
5017 | ||
c32bde28 | 5018 | static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5019 | PyObject *resultobj; |
5020 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5021 | long result; | |
5022 | PyObject * obj0 = 0 ; | |
5023 | char *kwnames[] = { | |
5024 | (char *) "self", NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
5028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5030 | { | |
5031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5032 | result = (long)(arg1)->GetHandle(); | |
5033 | ||
5034 | wxPyEndAllowThreads(__tstate); | |
5035 | if (PyErr_Occurred()) SWIG_fail; | |
5036 | } | |
c32bde28 | 5037 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5038 | return resultobj; |
5039 | fail: | |
5040 | return NULL; | |
5041 | } | |
5042 | ||
5043 | ||
c32bde28 | 5044 | static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5045 | PyObject *resultobj; |
5046 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5047 | long arg2 ; | |
5048 | PyObject * obj0 = 0 ; | |
5049 | PyObject * obj1 = 0 ; | |
5050 | char *kwnames[] = { | |
5051 | (char *) "self",(char *) "handle", NULL | |
5052 | }; | |
5053 | ||
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
5055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5057 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5058 | if (PyErr_Occurred()) SWIG_fail; |
5059 | { | |
5060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5061 | wxCursor_SetHandle(arg1,arg2); | |
5062 | ||
5063 | wxPyEndAllowThreads(__tstate); | |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
5065 | } | |
5066 | Py_INCREF(Py_None); resultobj = Py_None; | |
5067 | return resultobj; | |
5068 | fail: | |
5069 | return NULL; | |
5070 | } | |
5071 | ||
5072 | ||
c32bde28 | 5073 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5074 | PyObject *resultobj; |
5075 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5076 | bool result; | |
5077 | PyObject * obj0 = 0 ; | |
5078 | char *kwnames[] = { | |
5079 | (char *) "self", NULL | |
5080 | }; | |
5081 | ||
5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
5083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5085 | { | |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | result = (bool)(arg1)->Ok(); | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | { | |
5093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5094 | } | |
5095 | return resultobj; | |
5096 | fail: | |
5097 | return NULL; | |
5098 | } | |
5099 | ||
5100 | ||
c32bde28 | 5101 | static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5102 | PyObject *resultobj; |
5103 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5104 | int result; | |
5105 | PyObject * obj0 = 0 ; | |
5106 | char *kwnames[] = { | |
5107 | (char *) "self", NULL | |
5108 | }; | |
5109 | ||
5110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
5111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5115 | result = (int)(arg1)->GetWidth(); | |
5116 | ||
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
c32bde28 | 5120 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5121 | return resultobj; |
5122 | fail: | |
5123 | return NULL; | |
5124 | } | |
5125 | ||
5126 | ||
c32bde28 | 5127 | static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5128 | PyObject *resultobj; |
5129 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5130 | int result; | |
5131 | PyObject * obj0 = 0 ; | |
5132 | char *kwnames[] = { | |
5133 | (char *) "self", NULL | |
5134 | }; | |
5135 | ||
5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
5137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5139 | { | |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | result = (int)(arg1)->GetHeight(); | |
5142 | ||
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
c32bde28 | 5146 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5147 | return resultobj; |
5148 | fail: | |
5149 | return NULL; | |
5150 | } | |
5151 | ||
5152 | ||
c32bde28 | 5153 | static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5154 | PyObject *resultobj; |
5155 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5156 | int result; | |
5157 | PyObject * obj0 = 0 ; | |
5158 | char *kwnames[] = { | |
5159 | (char *) "self", NULL | |
5160 | }; | |
5161 | ||
5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
5163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5165 | { | |
5166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5167 | result = (int)(arg1)->GetDepth(); | |
5168 | ||
5169 | wxPyEndAllowThreads(__tstate); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
c32bde28 | 5172 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5173 | return resultobj; |
5174 | fail: | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
c32bde28 | 5179 | static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5180 | PyObject *resultobj; |
5181 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5182 | int arg2 ; | |
5183 | PyObject * obj0 = 0 ; | |
5184 | PyObject * obj1 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self",(char *) "w", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
5190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5192 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5193 | if (PyErr_Occurred()) SWIG_fail; |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | (arg1)->SetWidth(arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | Py_INCREF(Py_None); resultobj = Py_None; | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
c32bde28 | 5208 | static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5209 | PyObject *resultobj; |
5210 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5211 | int arg2 ; | |
5212 | PyObject * obj0 = 0 ; | |
5213 | PyObject * obj1 = 0 ; | |
5214 | char *kwnames[] = { | |
5215 | (char *) "self",(char *) "h", NULL | |
5216 | }; | |
5217 | ||
5218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5221 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5222 | if (PyErr_Occurred()) SWIG_fail; |
5223 | { | |
5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5225 | (arg1)->SetHeight(arg2); | |
5226 | ||
5227 | wxPyEndAllowThreads(__tstate); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
5230 | Py_INCREF(Py_None); resultobj = Py_None; | |
5231 | return resultobj; | |
5232 | fail: | |
5233 | return NULL; | |
5234 | } | |
5235 | ||
5236 | ||
c32bde28 | 5237 | static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5238 | PyObject *resultobj; |
5239 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5240 | int arg2 ; | |
5241 | PyObject * obj0 = 0 ; | |
5242 | PyObject * obj1 = 0 ; | |
5243 | char *kwnames[] = { | |
5244 | (char *) "self",(char *) "d", NULL | |
5245 | }; | |
5246 | ||
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5250 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5251 | if (PyErr_Occurred()) SWIG_fail; |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | (arg1)->SetDepth(arg2); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
c32bde28 | 5266 | static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5267 | PyObject *resultobj; |
5268 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5269 | wxSize *arg2 = 0 ; | |
5270 | wxSize temp2 ; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | PyObject * obj1 = 0 ; | |
5273 | char *kwnames[] = { | |
5274 | (char *) "self",(char *) "size", NULL | |
5275 | }; | |
5276 | ||
5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5280 | { | |
5281 | arg2 = &temp2; | |
5282 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->SetSize((wxSize const &)*arg2); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
c32bde28 | 5298 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5299 | PyObject *obj; |
5300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5301 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5302 | Py_INCREF(obj); | |
5303 | return Py_BuildValue((char *)""); | |
5304 | } | |
c32bde28 | 5305 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5306 | PyObject *resultobj; |
5307 | int arg1 = (int) 0 ; | |
5308 | int arg2 = (int) 0 ; | |
5309 | int arg3 = (int) 0 ; | |
5310 | int arg4 = (int) 0 ; | |
5311 | wxRegion *result; | |
5312 | PyObject * obj0 = 0 ; | |
5313 | PyObject * obj1 = 0 ; | |
5314 | PyObject * obj2 = 0 ; | |
5315 | PyObject * obj3 = 0 ; | |
5316 | char *kwnames[] = { | |
5317 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5321 | if (obj0) { | |
c32bde28 | 5322 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5323 | if (PyErr_Occurred()) SWIG_fail; |
5324 | } | |
5325 | if (obj1) { | |
c32bde28 | 5326 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5327 | if (PyErr_Occurred()) SWIG_fail; |
5328 | } | |
5329 | if (obj2) { | |
c32bde28 | 5330 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5331 | if (PyErr_Occurred()) SWIG_fail; |
5332 | } | |
5333 | if (obj3) { | |
c32bde28 | 5334 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5335 | if (PyErr_Occurred()) SWIG_fail; |
5336 | } | |
5337 | { | |
0439c23b | 5338 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5340 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5341 | ||
5342 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5343 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5344 | } |
5345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5346 | return resultobj; | |
5347 | fail: | |
5348 | return NULL; | |
5349 | } | |
5350 | ||
5351 | ||
c32bde28 | 5352 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5353 | PyObject *resultobj; |
5354 | wxBitmap *arg1 = 0 ; | |
a2569024 RD |
5355 | wxRegion *result; |
5356 | PyObject * obj0 = 0 ; | |
5357 | char *kwnames[] = { | |
5358 | (char *) "bmp", NULL | |
5359 | }; | |
5360 | ||
5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
5362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
5363 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5364 | SWIG_fail; | |
5365 | if (arg1 == NULL) { | |
5366 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5367 | SWIG_fail; | |
5368 | } | |
5369 | { | |
5370 | if (!wxPyCheckForApp()) SWIG_fail; | |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5375 | if (PyErr_Occurred()) SWIG_fail; |
a2569024 RD |
5376 | } |
5377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
c32bde28 | 5384 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
a2569024 RD |
5385 | PyObject *resultobj; |
5386 | wxBitmap *arg1 = 0 ; | |
5387 | wxColour *arg2 = 0 ; | |
d55e5bfc RD |
5388 | int arg3 = (int) 0 ; |
5389 | wxRegion *result; | |
5390 | wxColour temp2 ; | |
5391 | PyObject * obj0 = 0 ; | |
5392 | PyObject * obj1 = 0 ; | |
5393 | PyObject * obj2 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5396 | }; | |
5397 | ||
a2569024 | 5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
5399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
5400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5401 | SWIG_fail; | |
5402 | if (arg1 == NULL) { | |
5403 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5404 | SWIG_fail; | |
5405 | } | |
a2569024 RD |
5406 | { |
5407 | arg2 = &temp2; | |
5408 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
5409 | } |
5410 | if (obj2) { | |
c32bde28 | 5411 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5412 | if (PyErr_Occurred()) SWIG_fail; |
5413 | } | |
5414 | { | |
0439c23b | 5415 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5417 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5418 | ||
5419 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5420 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5421 | } |
5422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5423 | return resultobj; | |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
c32bde28 | 5429 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5430 | PyObject *resultobj; |
5431 | int arg1 ; | |
5432 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5433 | int arg3 = (int) wxWINDING_RULE ; | |
5434 | wxRegion *result; | |
5435 | PyObject * obj0 = 0 ; | |
5436 | PyObject * obj1 = 0 ; | |
5437 | char *kwnames[] = { | |
5438 | (char *) "points",(char *) "fillStyle", NULL | |
5439 | }; | |
5440 | ||
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
5442 | { | |
5443 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5444 | if (arg2 == NULL) SWIG_fail; | |
5445 | } | |
5446 | if (obj1) { | |
c32bde28 | 5447 | arg3 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5448 | if (PyErr_Occurred()) SWIG_fail; |
5449 | } | |
5450 | { | |
0439c23b | 5451 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5453 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5454 | ||
5455 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5456 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5457 | } |
5458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5459 | { | |
5460 | if (arg2) delete [] arg2; | |
5461 | } | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | { | |
5465 | if (arg2) delete [] arg2; | |
5466 | } | |
5467 | return NULL; | |
5468 | } | |
5469 | ||
5470 | ||
c32bde28 | 5471 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5472 | PyObject *resultobj; |
5473 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5474 | PyObject * obj0 = 0 ; | |
5475 | char *kwnames[] = { | |
5476 | (char *) "self", NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5482 | { | |
5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5484 | delete arg1; | |
5485 | ||
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | Py_INCREF(Py_None); resultobj = Py_None; | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | return NULL; | |
5493 | } | |
5494 | ||
5495 | ||
c32bde28 | 5496 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5497 | PyObject *resultobj; |
5498 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5499 | PyObject * obj0 = 0 ; | |
5500 | char *kwnames[] = { | |
5501 | (char *) "self", NULL | |
5502 | }; | |
5503 | ||
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | (arg1)->Clear(); | |
5510 | ||
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
5514 | Py_INCREF(Py_None); resultobj = Py_None; | |
5515 | return resultobj; | |
5516 | fail: | |
5517 | return NULL; | |
5518 | } | |
5519 | ||
5520 | ||
c32bde28 | 5521 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5522 | PyObject *resultobj; |
5523 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5524 | int arg2 ; | |
5525 | int arg3 ; | |
5526 | bool result; | |
5527 | PyObject * obj0 = 0 ; | |
5528 | PyObject * obj1 = 0 ; | |
5529 | PyObject * obj2 = 0 ; | |
5530 | char *kwnames[] = { | |
5531 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5532 | }; | |
5533 | ||
5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5537 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5538 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5539 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5540 | if (PyErr_Occurred()) SWIG_fail; |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | { | |
5549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5550 | } | |
5551 | return resultobj; | |
5552 | fail: | |
5553 | return NULL; | |
5554 | } | |
5555 | ||
5556 | ||
c32bde28 | 5557 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5558 | PyObject *resultobj; |
5559 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5560 | int arg2 ; | |
5561 | int arg3 ; | |
5562 | int result; | |
5563 | PyObject * obj0 = 0 ; | |
5564 | PyObject * obj1 = 0 ; | |
5565 | PyObject * obj2 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5573 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5574 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5575 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5576 | if (PyErr_Occurred()) SWIG_fail; |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | result = (int)(arg1)->Contains(arg2,arg3); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
c32bde28 | 5584 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5585 | return resultobj; |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
c32bde28 | 5591 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5592 | PyObject *resultobj; |
5593 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5594 | wxPoint *arg2 = 0 ; | |
5595 | int result; | |
5596 | wxPoint temp2 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | PyObject * obj1 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self",(char *) "pt", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5606 | { | |
5607 | arg2 = &temp2; | |
5608 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5609 | } | |
5610 | { | |
5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5612 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5613 | ||
5614 | wxPyEndAllowThreads(__tstate); | |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
5616 | } | |
c32bde28 | 5617 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5618 | return resultobj; |
5619 | fail: | |
5620 | return NULL; | |
5621 | } | |
5622 | ||
5623 | ||
c32bde28 | 5624 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5625 | PyObject *resultobj; |
5626 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5627 | wxRect *arg2 = 0 ; | |
5628 | int result; | |
5629 | wxRect temp2 ; | |
5630 | PyObject * obj0 = 0 ; | |
5631 | PyObject * obj1 = 0 ; | |
5632 | char *kwnames[] = { | |
5633 | (char *) "self",(char *) "rect", NULL | |
5634 | }; | |
5635 | ||
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5639 | { | |
5640 | arg2 = &temp2; | |
5641 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5642 | } | |
5643 | { | |
5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5645 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5646 | ||
5647 | wxPyEndAllowThreads(__tstate); | |
5648 | if (PyErr_Occurred()) SWIG_fail; | |
5649 | } | |
c32bde28 | 5650 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5651 | return resultobj; |
5652 | fail: | |
5653 | return NULL; | |
5654 | } | |
5655 | ||
5656 | ||
c32bde28 | 5657 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5658 | PyObject *resultobj; |
5659 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5660 | int arg2 ; | |
5661 | int arg3 ; | |
5662 | int arg4 ; | |
5663 | int arg5 ; | |
5664 | int result; | |
5665 | PyObject * obj0 = 0 ; | |
5666 | PyObject * obj1 = 0 ; | |
5667 | PyObject * obj2 = 0 ; | |
5668 | PyObject * obj3 = 0 ; | |
5669 | PyObject * obj4 = 0 ; | |
5670 | char *kwnames[] = { | |
5671 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5672 | }; | |
5673 | ||
5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5677 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5678 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5679 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5680 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5681 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5682 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5683 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5684 | if (PyErr_Occurred()) SWIG_fail; |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
c32bde28 | 5692 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5693 | return resultobj; |
5694 | fail: | |
5695 | return NULL; | |
5696 | } | |
5697 | ||
5698 | ||
c32bde28 | 5699 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5700 | PyObject *resultobj; |
5701 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5702 | wxRect result; | |
5703 | PyObject * obj0 = 0 ; | |
5704 | char *kwnames[] = { | |
5705 | (char *) "self", NULL | |
5706 | }; | |
5707 | ||
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | result = (arg1)->GetBox(); | |
5714 | ||
5715 | wxPyEndAllowThreads(__tstate); | |
5716 | if (PyErr_Occurred()) SWIG_fail; | |
5717 | } | |
5718 | { | |
5719 | wxRect * resultptr; | |
5720 | resultptr = new wxRect((wxRect &) result); | |
5721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5722 | } | |
5723 | return resultobj; | |
5724 | fail: | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
c32bde28 | 5729 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5730 | PyObject *resultobj; |
5731 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5732 | int arg2 ; | |
5733 | int arg3 ; | |
5734 | int arg4 ; | |
5735 | int arg5 ; | |
5736 | bool result; | |
5737 | PyObject * obj0 = 0 ; | |
5738 | PyObject * obj1 = 0 ; | |
5739 | PyObject * obj2 = 0 ; | |
5740 | PyObject * obj3 = 0 ; | |
5741 | PyObject * obj4 = 0 ; | |
5742 | char *kwnames[] = { | |
5743 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5744 | }; | |
5745 | ||
5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5749 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5750 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5751 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5752 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5753 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5754 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5755 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5756 | if (PyErr_Occurred()) SWIG_fail; |
5757 | { | |
5758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5759 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5760 | ||
5761 | wxPyEndAllowThreads(__tstate); | |
5762 | if (PyErr_Occurred()) SWIG_fail; | |
5763 | } | |
5764 | { | |
5765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5766 | } | |
5767 | return resultobj; | |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
c32bde28 | 5773 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5774 | PyObject *resultobj; |
5775 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5776 | wxRect *arg2 = 0 ; | |
5777 | bool result; | |
5778 | wxRect temp2 ; | |
5779 | PyObject * obj0 = 0 ; | |
5780 | PyObject * obj1 = 0 ; | |
5781 | char *kwnames[] = { | |
5782 | (char *) "self",(char *) "rect", NULL | |
5783 | }; | |
5784 | ||
5785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5788 | { | |
5789 | arg2 = &temp2; | |
5790 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5791 | } | |
5792 | { | |
5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5794 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5795 | ||
5796 | wxPyEndAllowThreads(__tstate); | |
5797 | if (PyErr_Occurred()) SWIG_fail; | |
5798 | } | |
5799 | { | |
5800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5801 | } | |
5802 | return resultobj; | |
5803 | fail: | |
5804 | return NULL; | |
5805 | } | |
5806 | ||
5807 | ||
c32bde28 | 5808 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5809 | PyObject *resultobj; |
5810 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5811 | wxRegion *arg2 = 0 ; | |
5812 | bool result; | |
5813 | PyObject * obj0 = 0 ; | |
5814 | PyObject * obj1 = 0 ; | |
5815 | char *kwnames[] = { | |
5816 | (char *) "self",(char *) "region", NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5823 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5824 | SWIG_fail; | |
5825 | if (arg2 == NULL) { | |
5826 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5827 | SWIG_fail; | |
5828 | } | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5832 | ||
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | { | |
5837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5838 | } | |
5839 | return resultobj; | |
5840 | fail: | |
5841 | return NULL; | |
5842 | } | |
5843 | ||
5844 | ||
c32bde28 | 5845 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5846 | PyObject *resultobj; |
5847 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5848 | bool result; | |
5849 | PyObject * obj0 = 0 ; | |
5850 | char *kwnames[] = { | |
5851 | (char *) "self", NULL | |
5852 | }; | |
5853 | ||
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = (bool)(arg1)->IsEmpty(); | |
5860 | ||
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | { | |
5865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5866 | } | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
c32bde28 | 5873 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5874 | PyObject *resultobj; |
5875 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5876 | int arg2 ; | |
5877 | int arg3 ; | |
5878 | int arg4 ; | |
5879 | int arg5 ; | |
5880 | bool result; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | PyObject * obj1 = 0 ; | |
5883 | PyObject * obj2 = 0 ; | |
5884 | PyObject * obj3 = 0 ; | |
5885 | PyObject * obj4 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5893 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5894 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5895 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5896 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5897 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5898 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5899 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5900 | if (PyErr_Occurred()) SWIG_fail; |
5901 | { | |
5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5903 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5904 | ||
5905 | wxPyEndAllowThreads(__tstate); | |
5906 | if (PyErr_Occurred()) SWIG_fail; | |
5907 | } | |
5908 | { | |
5909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5910 | } | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
c32bde28 | 5917 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5918 | PyObject *resultobj; |
5919 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5920 | wxRect *arg2 = 0 ; | |
5921 | bool result; | |
5922 | wxRect temp2 ; | |
5923 | PyObject * obj0 = 0 ; | |
5924 | PyObject * obj1 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self",(char *) "rect", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5932 | { | |
5933 | arg2 = &temp2; | |
5934 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5938 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5939 | ||
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | { | |
5944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5945 | } | |
5946 | return resultobj; | |
5947 | fail: | |
5948 | return NULL; | |
5949 | } | |
5950 | ||
5951 | ||
c32bde28 | 5952 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5953 | PyObject *resultobj; |
5954 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5955 | wxRegion *arg2 = 0 ; | |
5956 | bool result; | |
5957 | PyObject * obj0 = 0 ; | |
5958 | PyObject * obj1 = 0 ; | |
5959 | char *kwnames[] = { | |
5960 | (char *) "self",(char *) "region", NULL | |
5961 | }; | |
5962 | ||
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5967 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5968 | SWIG_fail; | |
5969 | if (arg2 == NULL) { | |
5970 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5971 | SWIG_fail; | |
5972 | } | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | { | |
5981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5982 | } | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
c32bde28 | 5989 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5990 | PyObject *resultobj; |
5991 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5992 | int arg2 ; | |
5993 | int arg3 ; | |
5994 | int arg4 ; | |
5995 | int arg5 ; | |
5996 | bool result; | |
5997 | PyObject * obj0 = 0 ; | |
5998 | PyObject * obj1 = 0 ; | |
5999 | PyObject * obj2 = 0 ; | |
6000 | PyObject * obj3 = 0 ; | |
6001 | PyObject * obj4 = 0 ; | |
6002 | char *kwnames[] = { | |
6003 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6004 | }; | |
6005 | ||
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6009 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 6010 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6011 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 6012 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6013 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 6014 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6015 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
6016 | if (PyErr_Occurred()) SWIG_fail; |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | { | |
6025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6026 | } | |
6027 | return resultobj; | |
6028 | fail: | |
6029 | return NULL; | |
6030 | } | |
6031 | ||
6032 | ||
c32bde28 | 6033 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6034 | PyObject *resultobj; |
6035 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6036 | wxRect *arg2 = 0 ; | |
6037 | bool result; | |
6038 | wxRect temp2 ; | |
6039 | PyObject * obj0 = 0 ; | |
6040 | PyObject * obj1 = 0 ; | |
6041 | char *kwnames[] = { | |
6042 | (char *) "self",(char *) "rect", NULL | |
6043 | }; | |
6044 | ||
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
6046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6048 | { | |
6049 | arg2 = &temp2; | |
6050 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6051 | } | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | { | |
6060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6061 | } | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
c32bde28 | 6068 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6069 | PyObject *resultobj; |
6070 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6071 | wxRegion *arg2 = 0 ; | |
6072 | bool result; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | PyObject * obj1 = 0 ; | |
6075 | char *kwnames[] = { | |
6076 | (char *) "self",(char *) "region", NULL | |
6077 | }; | |
6078 | ||
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
6080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6084 | SWIG_fail; | |
6085 | if (arg2 == NULL) { | |
6086 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6087 | SWIG_fail; | |
6088 | } | |
6089 | { | |
6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6091 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
6092 | ||
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
6096 | { | |
6097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6098 | } | |
6099 | return resultobj; | |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
c32bde28 | 6105 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6106 | PyObject *resultobj; |
6107 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6108 | int arg2 ; | |
6109 | int arg3 ; | |
6110 | int arg4 ; | |
6111 | int arg5 ; | |
6112 | bool result; | |
6113 | PyObject * obj0 = 0 ; | |
6114 | PyObject * obj1 = 0 ; | |
6115 | PyObject * obj2 = 0 ; | |
6116 | PyObject * obj3 = 0 ; | |
6117 | PyObject * obj4 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6125 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 6126 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6127 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 6128 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6129 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 6130 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 6131 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
6132 | if (PyErr_Occurred()) SWIG_fail; |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | { | |
6141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6142 | } | |
6143 | return resultobj; | |
6144 | fail: | |
6145 | return NULL; | |
6146 | } | |
6147 | ||
6148 | ||
c32bde28 | 6149 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6150 | PyObject *resultobj; |
6151 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6152 | wxRect *arg2 = 0 ; | |
6153 | bool result; | |
6154 | wxRect temp2 ; | |
6155 | PyObject * obj0 = 0 ; | |
6156 | PyObject * obj1 = 0 ; | |
6157 | char *kwnames[] = { | |
6158 | (char *) "self",(char *) "rect", NULL | |
6159 | }; | |
6160 | ||
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
6162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6164 | { | |
6165 | arg2 = &temp2; | |
6166 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6167 | } | |
6168 | { | |
6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6170 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
6171 | ||
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
6175 | { | |
6176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6177 | } | |
6178 | return resultobj; | |
6179 | fail: | |
6180 | return NULL; | |
6181 | } | |
6182 | ||
6183 | ||
c32bde28 | 6184 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6185 | PyObject *resultobj; |
6186 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6187 | wxRegion *arg2 = 0 ; | |
6188 | bool result; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | PyObject * obj1 = 0 ; | |
6191 | char *kwnames[] = { | |
6192 | (char *) "self",(char *) "region", NULL | |
6193 | }; | |
6194 | ||
6195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
6196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6200 | SWIG_fail; | |
6201 | if (arg2 == NULL) { | |
6202 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6203 | SWIG_fail; | |
6204 | } | |
6205 | { | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
6212 | { | |
6213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6214 | } | |
6215 | return resultobj; | |
6216 | fail: | |
6217 | return NULL; | |
6218 | } | |
6219 | ||
6220 | ||
c32bde28 | 6221 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6222 | PyObject *resultobj; |
6223 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6224 | SwigValueWrapper< wxBitmap > result; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | char *kwnames[] = { | |
6227 | (char *) "self", NULL | |
6228 | }; | |
6229 | ||
6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
6231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | result = (arg1)->ConvertToBitmap(); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
6240 | { | |
6241 | wxBitmap * resultptr; | |
6242 | resultptr = new wxBitmap((wxBitmap &) result); | |
6243 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
6244 | } | |
6245 | return resultobj; | |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
c32bde28 | 6251 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6252 | PyObject *resultobj; |
6253 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6254 | wxBitmap *arg2 = 0 ; | |
a2569024 RD |
6255 | bool result; |
6256 | PyObject * obj0 = 0 ; | |
6257 | PyObject * obj1 = 0 ; | |
6258 | char *kwnames[] = { | |
6259 | (char *) "self",(char *) "bmp", NULL | |
6260 | }; | |
6261 | ||
6262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
6263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6266 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6267 | SWIG_fail; | |
6268 | if (arg2 == NULL) { | |
6269 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6270 | SWIG_fail; | |
6271 | } | |
6272 | { | |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | { | |
6280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6281 | } | |
6282 | return resultobj; | |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
c32bde28 | 6288 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
a2569024 RD |
6289 | PyObject *resultobj; |
6290 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6291 | wxBitmap *arg2 = 0 ; | |
6292 | wxColour *arg3 = 0 ; | |
d55e5bfc RD |
6293 | int arg4 = (int) 0 ; |
6294 | bool result; | |
6295 | wxColour temp3 ; | |
6296 | PyObject * obj0 = 0 ; | |
6297 | PyObject * obj1 = 0 ; | |
6298 | PyObject * obj2 = 0 ; | |
6299 | PyObject * obj3 = 0 ; | |
6300 | char *kwnames[] = { | |
6301 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
6302 | }; | |
6303 | ||
a2569024 | 6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
6305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6308 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6309 | SWIG_fail; | |
6310 | if (arg2 == NULL) { | |
6311 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6312 | SWIG_fail; | |
6313 | } | |
a2569024 RD |
6314 | { |
6315 | arg3 = &temp3; | |
6316 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
6317 | } |
6318 | if (obj3) { | |
c32bde28 | 6319 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6320 | if (PyErr_Occurred()) SWIG_fail; |
6321 | } | |
6322 | { | |
6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6324 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
6325 | ||
6326 | wxPyEndAllowThreads(__tstate); | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | } | |
6329 | { | |
6330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6331 | } | |
6332 | return resultobj; | |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
c32bde28 | 6338 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6339 | PyObject *obj; |
6340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6341 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
6342 | Py_INCREF(obj); | |
6343 | return Py_BuildValue((char *)""); | |
6344 | } | |
c32bde28 | 6345 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6346 | PyObject *resultobj; |
6347 | wxRegion *arg1 = 0 ; | |
6348 | wxRegionIterator *result; | |
6349 | PyObject * obj0 = 0 ; | |
6350 | char *kwnames[] = { | |
6351 | (char *) "region", NULL | |
6352 | }; | |
6353 | ||
6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
6355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6356 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6357 | SWIG_fail; | |
6358 | if (arg1 == NULL) { | |
6359 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6360 | SWIG_fail; | |
6361 | } | |
6362 | { | |
0439c23b | 6363 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6365 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
6366 | ||
6367 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6368 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6369 | } |
6370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
6371 | return resultobj; | |
6372 | fail: | |
6373 | return NULL; | |
6374 | } | |
6375 | ||
6376 | ||
c32bde28 | 6377 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6378 | PyObject *resultobj; |
6379 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6380 | PyObject * obj0 = 0 ; | |
6381 | char *kwnames[] = { | |
6382 | (char *) "self", NULL | |
6383 | }; | |
6384 | ||
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
6386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6388 | { | |
6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6390 | delete arg1; | |
6391 | ||
6392 | wxPyEndAllowThreads(__tstate); | |
6393 | if (PyErr_Occurred()) SWIG_fail; | |
6394 | } | |
6395 | Py_INCREF(Py_None); resultobj = Py_None; | |
6396 | return resultobj; | |
6397 | fail: | |
6398 | return NULL; | |
6399 | } | |
6400 | ||
6401 | ||
c32bde28 | 6402 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6403 | PyObject *resultobj; |
6404 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6405 | int result; | |
6406 | PyObject * obj0 = 0 ; | |
6407 | char *kwnames[] = { | |
6408 | (char *) "self", NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
6412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | result = (int)(arg1)->GetX(); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
c32bde28 | 6421 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6422 | return resultobj; |
6423 | fail: | |
6424 | return NULL; | |
6425 | } | |
6426 | ||
6427 | ||
c32bde28 | 6428 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6429 | PyObject *resultobj; |
6430 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6431 | int result; | |
6432 | PyObject * obj0 = 0 ; | |
6433 | char *kwnames[] = { | |
6434 | (char *) "self", NULL | |
6435 | }; | |
6436 | ||
6437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
6438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6440 | { | |
6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6442 | result = (int)(arg1)->GetY(); | |
6443 | ||
6444 | wxPyEndAllowThreads(__tstate); | |
6445 | if (PyErr_Occurred()) SWIG_fail; | |
6446 | } | |
c32bde28 | 6447 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6448 | return resultobj; |
6449 | fail: | |
6450 | return NULL; | |
6451 | } | |
6452 | ||
6453 | ||
c32bde28 | 6454 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6455 | PyObject *resultobj; |
6456 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6457 | int result; | |
6458 | PyObject * obj0 = 0 ; | |
6459 | char *kwnames[] = { | |
6460 | (char *) "self", NULL | |
6461 | }; | |
6462 | ||
6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6466 | { | |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (int)(arg1)->GetW(); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
c32bde28 | 6473 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6474 | return resultobj; |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
c32bde28 | 6480 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6481 | PyObject *resultobj; |
6482 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6483 | int result; | |
6484 | PyObject * obj0 = 0 ; | |
6485 | char *kwnames[] = { | |
6486 | (char *) "self", NULL | |
6487 | }; | |
6488 | ||
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6492 | { | |
6493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6494 | result = (int)(arg1)->GetWidth(); | |
6495 | ||
6496 | wxPyEndAllowThreads(__tstate); | |
6497 | if (PyErr_Occurred()) SWIG_fail; | |
6498 | } | |
c32bde28 | 6499 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6500 | return resultobj; |
6501 | fail: | |
6502 | return NULL; | |
6503 | } | |
6504 | ||
6505 | ||
c32bde28 | 6506 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6507 | PyObject *resultobj; |
6508 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6509 | int result; | |
6510 | PyObject * obj0 = 0 ; | |
6511 | char *kwnames[] = { | |
6512 | (char *) "self", NULL | |
6513 | }; | |
6514 | ||
6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6518 | { | |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | result = (int)(arg1)->GetH(); | |
6521 | ||
6522 | wxPyEndAllowThreads(__tstate); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
c32bde28 | 6525 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6526 | return resultobj; |
6527 | fail: | |
6528 | return NULL; | |
6529 | } | |
6530 | ||
6531 | ||
c32bde28 | 6532 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6533 | PyObject *resultobj; |
6534 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6535 | int result; | |
6536 | PyObject * obj0 = 0 ; | |
6537 | char *kwnames[] = { | |
6538 | (char *) "self", NULL | |
6539 | }; | |
6540 | ||
6541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | result = (int)(arg1)->GetHeight(); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
c32bde28 | 6551 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6552 | return resultobj; |
6553 | fail: | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
c32bde28 | 6558 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6559 | PyObject *resultobj; |
6560 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6561 | wxRect result; | |
6562 | PyObject * obj0 = 0 ; | |
6563 | char *kwnames[] = { | |
6564 | (char *) "self", NULL | |
6565 | }; | |
6566 | ||
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6570 | { | |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | result = (arg1)->GetRect(); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
6577 | { | |
6578 | wxRect * resultptr; | |
6579 | resultptr = new wxRect((wxRect &) result); | |
6580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6581 | } | |
6582 | return resultobj; | |
6583 | fail: | |
6584 | return NULL; | |
6585 | } | |
6586 | ||
6587 | ||
c32bde28 | 6588 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6589 | PyObject *resultobj; |
6590 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6591 | bool result; | |
6592 | PyObject * obj0 = 0 ; | |
6593 | char *kwnames[] = { | |
6594 | (char *) "self", NULL | |
6595 | }; | |
6596 | ||
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6600 | { | |
6601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6602 | result = (bool)(arg1)->HaveRects(); | |
6603 | ||
6604 | wxPyEndAllowThreads(__tstate); | |
6605 | if (PyErr_Occurred()) SWIG_fail; | |
6606 | } | |
6607 | { | |
6608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6609 | } | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
c32bde28 | 6616 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6617 | PyObject *resultobj; |
6618 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6619 | PyObject * obj0 = 0 ; | |
6620 | char *kwnames[] = { | |
6621 | (char *) "self", NULL | |
6622 | }; | |
6623 | ||
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",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 | (arg1)->Reset(); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | Py_INCREF(Py_None); resultobj = Py_None; | |
6635 | return resultobj; | |
6636 | fail: | |
6637 | return NULL; | |
6638 | } | |
6639 | ||
6640 | ||
c32bde28 | 6641 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6642 | PyObject *resultobj; |
6643 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "self", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6652 | { | |
6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6654 | wxRegionIterator_Next(arg1); | |
6655 | ||
6656 | wxPyEndAllowThreads(__tstate); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | } | |
6659 | Py_INCREF(Py_None); resultobj = Py_None; | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | return NULL; | |
6663 | } | |
6664 | ||
6665 | ||
c32bde28 | 6666 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6667 | PyObject *resultobj; |
6668 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6669 | bool result; | |
6670 | PyObject * obj0 = 0 ; | |
6671 | char *kwnames[] = { | |
6672 | (char *) "self", NULL | |
6673 | }; | |
6674 | ||
6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6678 | { | |
6679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6680 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6681 | ||
6682 | wxPyEndAllowThreads(__tstate); | |
6683 | if (PyErr_Occurred()) SWIG_fail; | |
6684 | } | |
6685 | { | |
6686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6687 | } | |
6688 | return resultobj; | |
6689 | fail: | |
6690 | return NULL; | |
6691 | } | |
6692 | ||
6693 | ||
c32bde28 | 6694 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6695 | PyObject *obj; |
6696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6697 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6698 | Py_INCREF(obj); | |
6699 | return Py_BuildValue((char *)""); | |
6700 | } | |
c32bde28 | 6701 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6702 | PyObject *resultobj; |
6703 | wxNativeFontInfo *result; | |
6704 | char *kwnames[] = { | |
6705 | NULL | |
6706 | }; | |
6707 | ||
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6717 | return resultobj; | |
6718 | fail: | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
c32bde28 | 6723 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6724 | PyObject *resultobj; |
6725 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6726 | PyObject * obj0 = 0 ; | |
6727 | char *kwnames[] = { | |
6728 | (char *) "self", NULL | |
6729 | }; | |
6730 | ||
6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6734 | { | |
6735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6736 | delete arg1; | |
6737 | ||
6738 | wxPyEndAllowThreads(__tstate); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
6740 | } | |
6741 | Py_INCREF(Py_None); resultobj = Py_None; | |
6742 | return resultobj; | |
6743 | fail: | |
6744 | return NULL; | |
6745 | } | |
6746 | ||
6747 | ||
c32bde28 | 6748 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6749 | PyObject *resultobj; |
6750 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6751 | PyObject * obj0 = 0 ; | |
6752 | char *kwnames[] = { | |
6753 | (char *) "self", NULL | |
6754 | }; | |
6755 | ||
6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6759 | { | |
6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6761 | (arg1)->Init(); | |
6762 | ||
6763 | wxPyEndAllowThreads(__tstate); | |
6764 | if (PyErr_Occurred()) SWIG_fail; | |
6765 | } | |
6766 | Py_INCREF(Py_None); resultobj = Py_None; | |
6767 | return resultobj; | |
6768 | fail: | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
c32bde28 | 6773 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6774 | PyObject *resultobj; |
6775 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6776 | wxFont *arg2 = 0 ; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | PyObject * obj1 = 0 ; | |
6779 | char *kwnames[] = { | |
6780 | (char *) "self",(char *) "font", NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6788 | SWIG_fail; | |
6789 | if (arg2 == NULL) { | |
6790 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6791 | SWIG_fail; | |
6792 | } | |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
6800 | Py_INCREF(Py_None); resultobj = Py_None; | |
6801 | return resultobj; | |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
c32bde28 | 6807 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6808 | PyObject *resultobj; |
6809 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6810 | int result; | |
6811 | PyObject * obj0 = 0 ; | |
6812 | char *kwnames[] = { | |
6813 | (char *) "self", NULL | |
6814 | }; | |
6815 | ||
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6819 | { | |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
c32bde28 | 6826 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6827 | return resultobj; |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
c32bde28 | 6833 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6834 | PyObject *resultobj; |
6835 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6836 | int result; | |
6837 | PyObject * obj0 = 0 ; | |
6838 | char *kwnames[] = { | |
6839 | (char *) "self", NULL | |
6840 | }; | |
6841 | ||
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6848 | ||
6849 | wxPyEndAllowThreads(__tstate); | |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
6851 | } | |
c32bde28 | 6852 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6853 | return resultobj; |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
c32bde28 | 6859 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6860 | PyObject *resultobj; |
6861 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6862 | int result; | |
6863 | PyObject * obj0 = 0 ; | |
6864 | char *kwnames[] = { | |
6865 | (char *) "self", NULL | |
6866 | }; | |
6867 | ||
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
6877 | } | |
c32bde28 | 6878 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6879 | return resultobj; |
6880 | fail: | |
6881 | return NULL; | |
6882 | } | |
6883 | ||
6884 | ||
c32bde28 | 6885 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6886 | PyObject *resultobj; |
6887 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6888 | bool result; | |
6889 | PyObject * obj0 = 0 ; | |
6890 | char *kwnames[] = { | |
6891 | (char *) "self", NULL | |
6892 | }; | |
6893 | ||
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6897 | { | |
6898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6899 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6900 | ||
6901 | wxPyEndAllowThreads(__tstate); | |
6902 | if (PyErr_Occurred()) SWIG_fail; | |
6903 | } | |
6904 | { | |
6905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6906 | } | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
c32bde28 | 6913 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6914 | PyObject *resultobj; |
6915 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6916 | wxString result; | |
6917 | PyObject * obj0 = 0 ; | |
6918 | char *kwnames[] = { | |
6919 | (char *) "self", NULL | |
6920 | }; | |
6921 | ||
6922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6925 | { | |
6926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6927 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6928 | ||
6929 | wxPyEndAllowThreads(__tstate); | |
6930 | if (PyErr_Occurred()) SWIG_fail; | |
6931 | } | |
6932 | { | |
6933 | #if wxUSE_UNICODE | |
6934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6935 | #else | |
6936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6937 | #endif | |
6938 | } | |
6939 | return resultobj; | |
6940 | fail: | |
6941 | return NULL; | |
6942 | } | |
6943 | ||
6944 | ||
c32bde28 | 6945 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6946 | PyObject *resultobj; |
6947 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6948 | int result; | |
6949 | PyObject * obj0 = 0 ; | |
6950 | char *kwnames[] = { | |
6951 | (char *) "self", NULL | |
6952 | }; | |
6953 | ||
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6957 | { | |
6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6959 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6960 | ||
6961 | wxPyEndAllowThreads(__tstate); | |
6962 | if (PyErr_Occurred()) SWIG_fail; | |
6963 | } | |
c32bde28 | 6964 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6965 | return resultobj; |
6966 | fail: | |
6967 | return NULL; | |
6968 | } | |
6969 | ||
6970 | ||
c32bde28 | 6971 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6972 | PyObject *resultobj; |
6973 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6974 | int result; | |
6975 | PyObject * obj0 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6983 | { | |
6984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6985 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6986 | ||
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
c32bde28 | 6990 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6991 | return resultobj; |
6992 | fail: | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
c32bde28 | 6997 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6998 | PyObject *resultobj; |
6999 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7000 | int arg2 ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | char *kwnames[] = { | |
7004 | (char *) "self",(char *) "pointsize", NULL | |
7005 | }; | |
7006 | ||
7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
7008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7011 | if (PyErr_Occurred()) SWIG_fail; |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | (arg1)->SetPointSize(arg2); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | Py_INCREF(Py_None); resultobj = Py_None; | |
7020 | return resultobj; | |
7021 | fail: | |
7022 | return NULL; | |
7023 | } | |
7024 | ||
7025 | ||
c32bde28 | 7026 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7027 | PyObject *resultobj; |
7028 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7029 | int arg2 ; | |
7030 | PyObject * obj0 = 0 ; | |
7031 | PyObject * obj1 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self",(char *) "style", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
7037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7039 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7040 | if (PyErr_Occurred()) SWIG_fail; |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | (arg1)->SetStyle((wxFontStyle )arg2); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | Py_INCREF(Py_None); resultobj = Py_None; | |
7049 | return resultobj; | |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
c32bde28 | 7055 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7056 | PyObject *resultobj; |
7057 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7058 | int arg2 ; | |
7059 | PyObject * obj0 = 0 ; | |
7060 | PyObject * obj1 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "self",(char *) "weight", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
7066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7068 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7069 | if (PyErr_Occurred()) SWIG_fail; |
7070 | { | |
7071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7072 | (arg1)->SetWeight((wxFontWeight )arg2); | |
7073 | ||
7074 | wxPyEndAllowThreads(__tstate); | |
7075 | if (PyErr_Occurred()) SWIG_fail; | |
7076 | } | |
7077 | Py_INCREF(Py_None); resultobj = Py_None; | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
c32bde28 | 7084 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7085 | PyObject *resultobj; |
7086 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7087 | bool arg2 ; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | PyObject * obj1 = 0 ; | |
7090 | char *kwnames[] = { | |
7091 | (char *) "self",(char *) "underlined", NULL | |
7092 | }; | |
7093 | ||
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",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 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
7098 | if (PyErr_Occurred()) SWIG_fail; |
7099 | { | |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7101 | (arg1)->SetUnderlined(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 | ||
c32bde28 | 7113 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7114 | PyObject *resultobj; |
7115 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7116 | wxString arg2 ; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self",(char *) "facename", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7126 | { | |
7127 | wxString* sptr = wxString_in_helper(obj1); | |
7128 | if (sptr == NULL) SWIG_fail; | |
7129 | arg2 = *sptr; | |
7130 | delete sptr; | |
7131 | } | |
7132 | { | |
7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7134 | (arg1)->SetFaceName(arg2); | |
7135 | ||
7136 | wxPyEndAllowThreads(__tstate); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | } | |
7139 | Py_INCREF(Py_None); resultobj = Py_None; | |
7140 | return resultobj; | |
7141 | fail: | |
7142 | return NULL; | |
7143 | } | |
7144 | ||
7145 | ||
c32bde28 | 7146 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7147 | PyObject *resultobj; |
7148 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7149 | int arg2 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | char *kwnames[] = { | |
7153 | (char *) "self",(char *) "family", NULL | |
7154 | }; | |
7155 | ||
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
7157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7159 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7160 | if (PyErr_Occurred()) SWIG_fail; |
7161 | { | |
7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7163 | (arg1)->SetFamily((wxFontFamily )arg2); | |
7164 | ||
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | } | |
7168 | Py_INCREF(Py_None); resultobj = Py_None; | |
7169 | return resultobj; | |
7170 | fail: | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
c32bde28 | 7175 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7176 | PyObject *resultobj; |
7177 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7178 | int arg2 ; | |
7179 | PyObject * obj0 = 0 ; | |
7180 | PyObject * obj1 = 0 ; | |
7181 | char *kwnames[] = { | |
7182 | (char *) "self",(char *) "encoding", NULL | |
7183 | }; | |
7184 | ||
7185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
7186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7188 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7189 | if (PyErr_Occurred()) SWIG_fail; |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | Py_INCREF(Py_None); resultobj = Py_None; | |
7198 | return resultobj; | |
7199 | fail: | |
7200 | return NULL; | |
7201 | } | |
7202 | ||
7203 | ||
c32bde28 | 7204 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7205 | PyObject *resultobj; |
7206 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7207 | wxString *arg2 = 0 ; | |
7208 | bool result; | |
7209 | bool temp2 = False ; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | PyObject * obj1 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "self",(char *) "s", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7219 | { | |
7220 | arg2 = wxString_in_helper(obj1); | |
7221 | if (arg2 == NULL) SWIG_fail; | |
7222 | temp2 = True; | |
7223 | } | |
7224 | { | |
7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7226 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7227 | ||
7228 | wxPyEndAllowThreads(__tstate); | |
7229 | if (PyErr_Occurred()) SWIG_fail; | |
7230 | } | |
7231 | { | |
7232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7233 | } | |
7234 | { | |
7235 | if (temp2) | |
7236 | delete arg2; | |
7237 | } | |
7238 | return resultobj; | |
7239 | fail: | |
7240 | { | |
7241 | if (temp2) | |
7242 | delete arg2; | |
7243 | } | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
c32bde28 | 7248 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7249 | PyObject *resultobj; |
7250 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7251 | wxString result; | |
7252 | PyObject * obj0 = 0 ; | |
7253 | char *kwnames[] = { | |
7254 | (char *) "self", NULL | |
7255 | }; | |
7256 | ||
7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
7258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7260 | { | |
7261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7262 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
7263 | ||
7264 | wxPyEndAllowThreads(__tstate); | |
7265 | if (PyErr_Occurred()) SWIG_fail; | |
7266 | } | |
7267 | { | |
7268 | #if wxUSE_UNICODE | |
7269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7270 | #else | |
7271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7272 | #endif | |
7273 | } | |
7274 | return resultobj; | |
7275 | fail: | |
7276 | return NULL; | |
7277 | } | |
7278 | ||
7279 | ||
c32bde28 | 7280 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7281 | PyObject *resultobj; |
7282 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7283 | wxString result; | |
7284 | PyObject * obj0 = 0 ; | |
7285 | char *kwnames[] = { | |
7286 | (char *) "self", NULL | |
7287 | }; | |
7288 | ||
7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
7290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | result = wxNativeFontInfo___str__(arg1); | |
7295 | ||
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | { | |
7300 | #if wxUSE_UNICODE | |
7301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7302 | #else | |
7303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7304 | #endif | |
7305 | } | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
c32bde28 | 7312 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7313 | PyObject *resultobj; |
7314 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7315 | wxString *arg2 = 0 ; | |
7316 | bool result; | |
7317 | bool temp2 = False ; | |
7318 | PyObject * obj0 = 0 ; | |
7319 | PyObject * obj1 = 0 ; | |
7320 | char *kwnames[] = { | |
7321 | (char *) "self",(char *) "s", NULL | |
7322 | }; | |
7323 | ||
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
7325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7327 | { | |
7328 | arg2 = wxString_in_helper(obj1); | |
7329 | if (arg2 == NULL) SWIG_fail; | |
7330 | temp2 = True; | |
7331 | } | |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | { | |
7340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7341 | } | |
7342 | { | |
7343 | if (temp2) | |
7344 | delete arg2; | |
7345 | } | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | { | |
7349 | if (temp2) | |
7350 | delete arg2; | |
7351 | } | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
c32bde28 | 7356 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7357 | PyObject *resultobj; |
7358 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7359 | wxString result; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | char *kwnames[] = { | |
7362 | (char *) "self", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
7366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7368 | { | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | { | |
7376 | #if wxUSE_UNICODE | |
7377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7378 | #else | |
7379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7380 | #endif | |
7381 | } | |
7382 | return resultobj; | |
7383 | fail: | |
7384 | return NULL; | |
7385 | } | |
7386 | ||
7387 | ||
c32bde28 | 7388 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7389 | PyObject *obj; |
7390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7391 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
7392 | Py_INCREF(obj); | |
7393 | return Py_BuildValue((char *)""); | |
7394 | } | |
c32bde28 | 7395 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7396 | PyObject *resultobj; |
7397 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7398 | wxString *arg2 = (wxString *) 0 ; | |
7399 | bool temp2 = False ; | |
7400 | PyObject * obj0 = 0 ; | |
7401 | PyObject * obj1 = 0 ; | |
7402 | char *kwnames[] = { | |
7403 | (char *) "self",(char *) "facename", NULL | |
7404 | }; | |
7405 | ||
7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
7407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7409 | { | |
7410 | arg2 = wxString_in_helper(obj1); | |
7411 | if (arg2 == NULL) SWIG_fail; | |
7412 | temp2 = True; | |
7413 | } | |
7414 | if (arg1) (arg1)->facename = *arg2; | |
7415 | ||
7416 | Py_INCREF(Py_None); resultobj = Py_None; | |
7417 | { | |
7418 | if (temp2) | |
7419 | delete arg2; | |
7420 | } | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | { | |
7424 | if (temp2) | |
7425 | delete arg2; | |
7426 | } | |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
c32bde28 | 7431 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7432 | PyObject *resultobj; |
7433 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7434 | wxString *result; | |
7435 | PyObject * obj0 = 0 ; | |
7436 | char *kwnames[] = { | |
7437 | (char *) "self", NULL | |
7438 | }; | |
7439 | ||
7440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
7441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7443 | result = (wxString *)& ((arg1)->facename); | |
7444 | ||
7445 | { | |
7446 | #if wxUSE_UNICODE | |
7447 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7448 | #else | |
7449 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7450 | #endif | |
7451 | } | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | return NULL; | |
7455 | } | |
7456 | ||
7457 | ||
c32bde28 | 7458 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7459 | PyObject *resultobj; |
7460 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7461 | int arg2 ; | |
7462 | PyObject * obj0 = 0 ; | |
7463 | PyObject * obj1 = 0 ; | |
7464 | char *kwnames[] = { | |
7465 | (char *) "self",(char *) "encoding", NULL | |
7466 | }; | |
7467 | ||
7468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7471 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7472 | if (PyErr_Occurred()) SWIG_fail; |
7473 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7474 | ||
7475 | Py_INCREF(Py_None); resultobj = Py_None; | |
7476 | return resultobj; | |
7477 | fail: | |
7478 | return NULL; | |
7479 | } | |
7480 | ||
7481 | ||
c32bde28 | 7482 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7483 | PyObject *resultobj; |
7484 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7485 | int result; | |
7486 | PyObject * obj0 = 0 ; | |
7487 | char *kwnames[] = { | |
7488 | (char *) "self", NULL | |
7489 | }; | |
7490 | ||
7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7494 | result = (int) ((arg1)->encoding); | |
7495 | ||
c32bde28 | 7496 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7497 | return resultobj; |
7498 | fail: | |
7499 | return NULL; | |
7500 | } | |
7501 | ||
7502 | ||
c32bde28 | 7503 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7504 | PyObject *resultobj; |
7505 | wxNativeEncodingInfo *result; | |
7506 | char *kwnames[] = { | |
7507 | NULL | |
7508 | }; | |
7509 | ||
7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7511 | { | |
7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7513 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7514 | ||
7515 | wxPyEndAllowThreads(__tstate); | |
7516 | if (PyErr_Occurred()) SWIG_fail; | |
7517 | } | |
7518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7519 | return resultobj; | |
7520 | fail: | |
7521 | return NULL; | |
7522 | } | |
7523 | ||
7524 | ||
c32bde28 | 7525 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7526 | PyObject *resultobj; |
7527 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | delete arg1; | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | Py_INCREF(Py_None); resultobj = Py_None; | |
7544 | return resultobj; | |
7545 | fail: | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
c32bde28 | 7550 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7551 | PyObject *resultobj; |
7552 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7553 | wxString *arg2 = 0 ; | |
7554 | bool result; | |
7555 | bool temp2 = False ; | |
7556 | PyObject * obj0 = 0 ; | |
7557 | PyObject * obj1 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "self",(char *) "s", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7565 | { | |
7566 | arg2 = wxString_in_helper(obj1); | |
7567 | if (arg2 == NULL) SWIG_fail; | |
7568 | temp2 = True; | |
7569 | } | |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | { | |
7578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7579 | } | |
7580 | { | |
7581 | if (temp2) | |
7582 | delete arg2; | |
7583 | } | |
7584 | return resultobj; | |
7585 | fail: | |
7586 | { | |
7587 | if (temp2) | |
7588 | delete arg2; | |
7589 | } | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
c32bde28 | 7594 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7595 | PyObject *resultobj; |
7596 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7597 | wxString result; | |
7598 | PyObject * obj0 = 0 ; | |
7599 | char *kwnames[] = { | |
7600 | (char *) "self", NULL | |
7601 | }; | |
7602 | ||
7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | { | |
7614 | #if wxUSE_UNICODE | |
7615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7616 | #else | |
7617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7618 | #endif | |
7619 | } | |
7620 | return resultobj; | |
7621 | fail: | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
c32bde28 | 7626 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7627 | PyObject *obj; |
7628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7629 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7630 | Py_INCREF(obj); | |
7631 | return Py_BuildValue((char *)""); | |
7632 | } | |
c32bde28 | 7633 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7634 | PyObject *resultobj; |
7635 | int arg1 ; | |
7636 | wxNativeEncodingInfo *result; | |
7637 | PyObject * obj0 = 0 ; | |
7638 | char *kwnames[] = { | |
7639 | (char *) "encoding", NULL | |
7640 | }; | |
7641 | ||
7642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7643 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7644 | if (PyErr_Occurred()) SWIG_fail; |
7645 | { | |
7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7647 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7648 | ||
7649 | wxPyEndAllowThreads(__tstate); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
c32bde28 | 7659 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7660 | PyObject *resultobj; |
7661 | wxNativeEncodingInfo *arg1 = 0 ; | |
7662 | bool result; | |
7663 | PyObject * obj0 = 0 ; | |
7664 | char *kwnames[] = { | |
7665 | (char *) "info", NULL | |
7666 | }; | |
7667 | ||
7668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7671 | SWIG_fail; | |
7672 | if (arg1 == NULL) { | |
7673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7674 | SWIG_fail; | |
7675 | } | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | { | |
7684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7685 | } | |
7686 | return resultobj; | |
7687 | fail: | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
c32bde28 | 7692 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7693 | PyObject *resultobj; |
7694 | wxFontMapper *result; | |
7695 | char *kwnames[] = { | |
7696 | NULL | |
7697 | }; | |
7698 | ||
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = (wxFontMapper *)new wxFontMapper(); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
c32bde28 | 7714 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7715 | PyObject *resultobj; |
7716 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | char *kwnames[] = { | |
7719 | (char *) "self", NULL | |
7720 | }; | |
7721 | ||
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | delete arg1; | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | Py_INCREF(Py_None); resultobj = Py_None; | |
7733 | return resultobj; | |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
c32bde28 | 7739 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7740 | PyObject *resultobj; |
7741 | wxFontMapper *result; | |
7742 | char *kwnames[] = { | |
7743 | NULL | |
7744 | }; | |
7745 | ||
7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7747 | { | |
7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7749 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) SWIG_fail; | |
7753 | } | |
7754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7755 | return resultobj; | |
7756 | fail: | |
7757 | return NULL; | |
7758 | } | |
7759 | ||
7760 | ||
c32bde28 | 7761 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7762 | PyObject *resultobj; |
7763 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7764 | wxFontMapper *result; | |
7765 | PyObject * obj0 = 0 ; | |
7766 | char *kwnames[] = { | |
7767 | (char *) "mapper", NULL | |
7768 | }; | |
7769 | ||
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7773 | { | |
7774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7775 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7776 | ||
7777 | wxPyEndAllowThreads(__tstate); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
7779 | } | |
7780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7781 | return resultobj; | |
7782 | fail: | |
7783 | return NULL; | |
7784 | } | |
7785 | ||
7786 | ||
c32bde28 | 7787 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7788 | PyObject *resultobj; |
7789 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7790 | wxString *arg2 = 0 ; | |
7791 | bool arg3 = (bool) True ; | |
7792 | int result; | |
7793 | bool temp2 = False ; | |
7794 | PyObject * obj0 = 0 ; | |
7795 | PyObject * obj1 = 0 ; | |
7796 | PyObject * obj2 = 0 ; | |
7797 | char *kwnames[] = { | |
7798 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7799 | }; | |
7800 | ||
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7804 | { | |
7805 | arg2 = wxString_in_helper(obj1); | |
7806 | if (arg2 == NULL) SWIG_fail; | |
7807 | temp2 = True; | |
7808 | } | |
7809 | if (obj2) { | |
c32bde28 | 7810 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7811 | if (PyErr_Occurred()) SWIG_fail; |
7812 | } | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
c32bde28 | 7820 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7821 | { |
7822 | if (temp2) | |
7823 | delete arg2; | |
7824 | } | |
7825 | return resultobj; | |
7826 | fail: | |
7827 | { | |
7828 | if (temp2) | |
7829 | delete arg2; | |
7830 | } | |
7831 | return NULL; | |
7832 | } | |
7833 | ||
7834 | ||
c32bde28 | 7835 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7836 | PyObject *resultobj; |
7837 | size_t result; | |
7838 | char *kwnames[] = { | |
7839 | NULL | |
7840 | }; | |
7841 | ||
7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7843 | { | |
7844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7845 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7846 | ||
7847 | wxPyEndAllowThreads(__tstate); | |
7848 | if (PyErr_Occurred()) SWIG_fail; | |
7849 | } | |
c32bde28 | 7850 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7851 | return resultobj; |
7852 | fail: | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
c32bde28 | 7857 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7858 | PyObject *resultobj; |
7859 | size_t arg1 ; | |
7860 | int result; | |
7861 | PyObject * obj0 = 0 ; | |
7862 | char *kwnames[] = { | |
7863 | (char *) "n", NULL | |
7864 | }; | |
7865 | ||
7866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 7867 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7868 | if (PyErr_Occurred()) SWIG_fail; |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
c32bde28 | 7876 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7877 | return resultobj; |
7878 | fail: | |
7879 | return NULL; | |
7880 | } | |
7881 | ||
7882 | ||
c32bde28 | 7883 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7884 | PyObject *resultobj; |
7885 | int arg1 ; | |
7886 | wxString result; | |
7887 | PyObject * obj0 = 0 ; | |
7888 | char *kwnames[] = { | |
7889 | (char *) "encoding", NULL | |
7890 | }; | |
7891 | ||
7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
c32bde28 | 7893 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7894 | if (PyErr_Occurred()) SWIG_fail; |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
7902 | { | |
7903 | #if wxUSE_UNICODE | |
7904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7905 | #else | |
7906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7907 | #endif | |
7908 | } | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
c32bde28 | 7915 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7916 | PyObject *resultobj; |
7917 | int arg1 ; | |
7918 | wxString result; | |
7919 | PyObject * obj0 = 0 ; | |
7920 | char *kwnames[] = { | |
7921 | (char *) "encoding", NULL | |
7922 | }; | |
7923 | ||
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
c32bde28 | 7925 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7926 | if (PyErr_Occurred()) SWIG_fail; |
7927 | { | |
7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7929 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7930 | ||
7931 | wxPyEndAllowThreads(__tstate); | |
7932 | if (PyErr_Occurred()) SWIG_fail; | |
7933 | } | |
7934 | { | |
7935 | #if wxUSE_UNICODE | |
7936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7937 | #else | |
7938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7939 | #endif | |
7940 | } | |
7941 | return resultobj; | |
7942 | fail: | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
c32bde28 | 7947 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7948 | PyObject *resultobj; |
7949 | wxString *arg1 = 0 ; | |
7950 | int result; | |
7951 | bool temp1 = False ; | |
7952 | PyObject * obj0 = 0 ; | |
7953 | char *kwnames[] = { | |
7954 | (char *) "name", NULL | |
7955 | }; | |
7956 | ||
7957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7958 | { | |
7959 | arg1 = wxString_in_helper(obj0); | |
7960 | if (arg1 == NULL) SWIG_fail; | |
7961 | temp1 = True; | |
7962 | } | |
7963 | { | |
7964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7965 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7966 | ||
7967 | wxPyEndAllowThreads(__tstate); | |
7968 | if (PyErr_Occurred()) SWIG_fail; | |
7969 | } | |
c32bde28 | 7970 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7971 | { |
7972 | if (temp1) | |
7973 | delete arg1; | |
7974 | } | |
7975 | return resultobj; | |
7976 | fail: | |
7977 | { | |
7978 | if (temp1) | |
7979 | delete arg1; | |
7980 | } | |
7981 | return NULL; | |
7982 | } | |
7983 | ||
7984 | ||
c32bde28 | 7985 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7986 | PyObject *resultobj; |
7987 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7988 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7989 | PyObject * obj0 = 0 ; | |
7990 | PyObject * obj1 = 0 ; | |
7991 | char *kwnames[] = { | |
7992 | (char *) "self",(char *) "config", NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | (arg1)->SetConfig(arg2); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | Py_INCREF(Py_None); resultobj = Py_None; | |
8008 | return resultobj; | |
8009 | fail: | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
c32bde28 | 8014 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8015 | PyObject *resultobj; |
8016 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8017 | wxString *arg2 = 0 ; | |
8018 | bool temp2 = False ; | |
8019 | PyObject * obj0 = 0 ; | |
8020 | PyObject * obj1 = 0 ; | |
8021 | char *kwnames[] = { | |
8022 | (char *) "self",(char *) "prefix", NULL | |
8023 | }; | |
8024 | ||
8025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
8026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8028 | { | |
8029 | arg2 = wxString_in_helper(obj1); | |
8030 | if (arg2 == NULL) SWIG_fail; | |
8031 | temp2 = True; | |
8032 | } | |
8033 | { | |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8035 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
8036 | ||
8037 | wxPyEndAllowThreads(__tstate); | |
8038 | if (PyErr_Occurred()) SWIG_fail; | |
8039 | } | |
8040 | Py_INCREF(Py_None); resultobj = Py_None; | |
8041 | { | |
8042 | if (temp2) | |
8043 | delete arg2; | |
8044 | } | |
8045 | return resultobj; | |
8046 | fail: | |
8047 | { | |
8048 | if (temp2) | |
8049 | delete arg2; | |
8050 | } | |
8051 | return NULL; | |
8052 | } | |
8053 | ||
8054 | ||
c32bde28 | 8055 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8056 | PyObject *resultobj; |
8057 | wxString result; | |
8058 | char *kwnames[] = { | |
8059 | NULL | |
8060 | }; | |
8061 | ||
8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
8063 | { | |
8064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8065 | result = wxFontMapper::GetDefaultConfigPath(); | |
8066 | ||
8067 | wxPyEndAllowThreads(__tstate); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
8070 | { | |
8071 | #if wxUSE_UNICODE | |
8072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8073 | #else | |
8074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8075 | #endif | |
8076 | } | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
c32bde28 | 8083 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8084 | PyObject *resultobj; |
8085 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8086 | int arg2 ; | |
8087 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8088 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8089 | bool arg4 = (bool) True ; | |
8090 | PyObject *result; | |
8091 | bool temp3 = False ; | |
8092 | PyObject * obj0 = 0 ; | |
8093 | PyObject * obj1 = 0 ; | |
8094 | PyObject * obj2 = 0 ; | |
8095 | PyObject * obj3 = 0 ; | |
8096 | char *kwnames[] = { | |
8097 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
8098 | }; | |
8099 | ||
8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8103 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8104 | if (PyErr_Occurred()) SWIG_fail; |
8105 | if (obj2) { | |
8106 | { | |
8107 | arg3 = wxString_in_helper(obj2); | |
8108 | if (arg3 == NULL) SWIG_fail; | |
8109 | temp3 = True; | |
8110 | } | |
8111 | } | |
8112 | if (obj3) { | |
c32bde28 | 8113 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8114 | if (PyErr_Occurred()) SWIG_fail; |
8115 | } | |
8116 | { | |
8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8118 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
8119 | ||
8120 | wxPyEndAllowThreads(__tstate); | |
8121 | if (PyErr_Occurred()) SWIG_fail; | |
8122 | } | |
8123 | resultobj = result; | |
8124 | { | |
8125 | if (temp3) | |
8126 | delete arg3; | |
8127 | } | |
8128 | return resultobj; | |
8129 | fail: | |
8130 | { | |
8131 | if (temp3) | |
8132 | delete arg3; | |
8133 | } | |
8134 | return NULL; | |
8135 | } | |
8136 | ||
8137 | ||
c32bde28 | 8138 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8139 | PyObject *resultobj; |
8140 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8141 | int arg2 ; | |
8142 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8143 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8144 | bool result; | |
8145 | bool temp3 = False ; | |
8146 | PyObject * obj0 = 0 ; | |
8147 | PyObject * obj1 = 0 ; | |
8148 | PyObject * obj2 = 0 ; | |
8149 | char *kwnames[] = { | |
8150 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
8151 | }; | |
8152 | ||
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8156 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8157 | if (PyErr_Occurred()) SWIG_fail; |
8158 | if (obj2) { | |
8159 | { | |
8160 | arg3 = wxString_in_helper(obj2); | |
8161 | if (arg3 == NULL) SWIG_fail; | |
8162 | temp3 = True; | |
8163 | } | |
8164 | } | |
8165 | { | |
8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8167 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
8168 | ||
8169 | wxPyEndAllowThreads(__tstate); | |
8170 | if (PyErr_Occurred()) SWIG_fail; | |
8171 | } | |
8172 | { | |
8173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8174 | } | |
8175 | { | |
8176 | if (temp3) | |
8177 | delete arg3; | |
8178 | } | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | { | |
8182 | if (temp3) | |
8183 | delete arg3; | |
8184 | } | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
c32bde28 | 8189 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8190 | PyObject *resultobj; |
8191 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8192 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8193 | PyObject * obj0 = 0 ; | |
8194 | PyObject * obj1 = 0 ; | |
8195 | char *kwnames[] = { | |
8196 | (char *) "self",(char *) "parent", NULL | |
8197 | }; | |
8198 | ||
8199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
8200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | (arg1)->SetDialogParent(arg2); | |
8207 | ||
8208 | wxPyEndAllowThreads(__tstate); | |
8209 | if (PyErr_Occurred()) SWIG_fail; | |
8210 | } | |
8211 | Py_INCREF(Py_None); resultobj = Py_None; | |
8212 | return resultobj; | |
8213 | fail: | |
8214 | return NULL; | |
8215 | } | |
8216 | ||
8217 | ||
c32bde28 | 8218 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8219 | PyObject *resultobj; |
8220 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8221 | wxString *arg2 = 0 ; | |
8222 | bool temp2 = False ; | |
8223 | PyObject * obj0 = 0 ; | |
8224 | PyObject * obj1 = 0 ; | |
8225 | char *kwnames[] = { | |
8226 | (char *) "self",(char *) "title", NULL | |
8227 | }; | |
8228 | ||
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
8230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8232 | { | |
8233 | arg2 = wxString_in_helper(obj1); | |
8234 | if (arg2 == NULL) SWIG_fail; | |
8235 | temp2 = True; | |
8236 | } | |
8237 | { | |
8238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8239 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
8240 | ||
8241 | wxPyEndAllowThreads(__tstate); | |
8242 | if (PyErr_Occurred()) SWIG_fail; | |
8243 | } | |
8244 | Py_INCREF(Py_None); resultobj = Py_None; | |
8245 | { | |
8246 | if (temp2) | |
8247 | delete arg2; | |
8248 | } | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | { | |
8252 | if (temp2) | |
8253 | delete arg2; | |
8254 | } | |
8255 | return NULL; | |
8256 | } | |
8257 | ||
8258 | ||
c32bde28 | 8259 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8260 | PyObject *obj; |
8261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8262 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
8263 | Py_INCREF(obj); | |
8264 | return Py_BuildValue((char *)""); | |
8265 | } | |
c32bde28 | 8266 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8267 | PyObject *resultobj; |
8268 | int arg1 ; | |
8269 | int arg2 ; | |
8270 | int arg3 ; | |
8271 | int arg4 ; | |
8272 | bool arg5 = (bool) False ; | |
8273 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
8274 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8275 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8276 | wxFont *result; | |
8277 | bool temp6 = False ; | |
8278 | PyObject * obj0 = 0 ; | |
8279 | PyObject * obj1 = 0 ; | |
8280 | PyObject * obj2 = 0 ; | |
8281 | PyObject * obj3 = 0 ; | |
8282 | PyObject * obj4 = 0 ; | |
8283 | PyObject * obj5 = 0 ; | |
8284 | PyObject * obj6 = 0 ; | |
8285 | char *kwnames[] = { | |
8286 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
8287 | }; | |
8288 | ||
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c32bde28 | 8290 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 8291 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8292 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 8293 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8294 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 8295 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8296 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
8297 | if (PyErr_Occurred()) SWIG_fail; |
8298 | if (obj4) { | |
c32bde28 | 8299 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
8300 | if (PyErr_Occurred()) SWIG_fail; |
8301 | } | |
8302 | if (obj5) { | |
8303 | { | |
8304 | arg6 = wxString_in_helper(obj5); | |
8305 | if (arg6 == NULL) SWIG_fail; | |
8306 | temp6 = True; | |
8307 | } | |
8308 | } | |
8309 | if (obj6) { | |
c32bde28 | 8310 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
8311 | if (PyErr_Occurred()) SWIG_fail; |
8312 | } | |
8313 | { | |
0439c23b | 8314 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8316 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8319 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8320 | } |
8321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8322 | { | |
8323 | if (temp6) | |
8324 | delete arg6; | |
8325 | } | |
8326 | return resultobj; | |
8327 | fail: | |
8328 | { | |
8329 | if (temp6) | |
8330 | delete arg6; | |
8331 | } | |
8332 | return NULL; | |
8333 | } | |
8334 | ||
8335 | ||
c32bde28 | 8336 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8337 | PyObject *resultobj; |
8338 | wxFont *arg1 = (wxFont *) 0 ; | |
8339 | PyObject * obj0 = 0 ; | |
8340 | char *kwnames[] = { | |
8341 | (char *) "self", NULL | |
8342 | }; | |
8343 | ||
8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
8345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8347 | { | |
8348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8349 | delete arg1; | |
8350 | ||
8351 | wxPyEndAllowThreads(__tstate); | |
8352 | if (PyErr_Occurred()) SWIG_fail; | |
8353 | } | |
8354 | Py_INCREF(Py_None); resultobj = Py_None; | |
8355 | return resultobj; | |
8356 | fail: | |
8357 | return NULL; | |
8358 | } | |
8359 | ||
8360 | ||
c32bde28 | 8361 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8362 | PyObject *resultobj; |
8363 | wxNativeFontInfo *arg1 = 0 ; | |
8364 | wxFont *result; | |
8365 | PyObject * obj0 = 0 ; | |
8366 | char *kwnames[] = { | |
8367 | (char *) "info", NULL | |
8368 | }; | |
8369 | ||
8370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
8371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
8372 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8373 | SWIG_fail; | |
8374 | if (arg1 == NULL) { | |
8375 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8376 | SWIG_fail; | |
8377 | } | |
8378 | { | |
0439c23b | 8379 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8381 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
8382 | ||
8383 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8384 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8385 | } |
8386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8387 | return resultobj; | |
8388 | fail: | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
c32bde28 | 8393 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8394 | PyObject *resultobj; |
8395 | wxString *arg1 = 0 ; | |
8396 | wxFont *result; | |
8397 | bool temp1 = False ; | |
8398 | PyObject * obj0 = 0 ; | |
8399 | char *kwnames[] = { | |
8400 | (char *) "info", NULL | |
8401 | }; | |
8402 | ||
8403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
8404 | { | |
8405 | arg1 = wxString_in_helper(obj0); | |
8406 | if (arg1 == NULL) SWIG_fail; | |
8407 | temp1 = True; | |
8408 | } | |
8409 | { | |
0439c23b | 8410 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8412 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8415 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8416 | } |
8417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8418 | { | |
8419 | if (temp1) | |
8420 | delete arg1; | |
8421 | } | |
8422 | return resultobj; | |
8423 | fail: | |
8424 | { | |
8425 | if (temp1) | |
8426 | delete arg1; | |
8427 | } | |
8428 | return NULL; | |
8429 | } | |
8430 | ||
8431 | ||
c32bde28 | 8432 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8433 | PyObject *resultobj; |
8434 | int arg1 ; | |
8435 | int arg2 ; | |
8436 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
8437 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8438 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8439 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
8440 | wxFont *result; | |
8441 | bool temp4 = False ; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | PyObject * obj1 = 0 ; | |
8444 | PyObject * obj2 = 0 ; | |
8445 | PyObject * obj3 = 0 ; | |
8446 | PyObject * obj4 = 0 ; | |
8447 | char *kwnames[] = { | |
8448 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8449 | }; | |
8450 | ||
8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
c32bde28 | 8452 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 8453 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8454 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8455 | if (PyErr_Occurred()) SWIG_fail; |
8456 | if (obj2) { | |
c32bde28 | 8457 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8458 | if (PyErr_Occurred()) SWIG_fail; |
8459 | } | |
8460 | if (obj3) { | |
8461 | { | |
8462 | arg4 = wxString_in_helper(obj3); | |
8463 | if (arg4 == NULL) SWIG_fail; | |
8464 | temp4 = True; | |
8465 | } | |
8466 | } | |
8467 | if (obj4) { | |
c32bde28 | 8468 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
8469 | if (PyErr_Occurred()) SWIG_fail; |
8470 | } | |
8471 | { | |
0439c23b | 8472 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8474 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8475 | ||
8476 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8477 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8478 | } |
8479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8480 | { | |
8481 | if (temp4) | |
8482 | delete arg4; | |
8483 | } | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | { | |
8487 | if (temp4) | |
8488 | delete arg4; | |
8489 | } | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
c32bde28 | 8494 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8495 | PyObject *resultobj; |
8496 | wxFont *arg1 = (wxFont *) 0 ; | |
8497 | bool result; | |
8498 | PyObject * obj0 = 0 ; | |
8499 | char *kwnames[] = { | |
8500 | (char *) "self", NULL | |
8501 | }; | |
8502 | ||
8503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8506 | { | |
8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8508 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8509 | ||
8510 | wxPyEndAllowThreads(__tstate); | |
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | } | |
8513 | { | |
8514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8515 | } | |
8516 | return resultobj; | |
8517 | fail: | |
8518 | return NULL; | |
8519 | } | |
8520 | ||
8521 | ||
c32bde28 | 8522 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8523 | PyObject *resultobj; |
8524 | wxFont *arg1 = (wxFont *) 0 ; | |
8525 | wxFont *arg2 = (wxFont *) 0 ; | |
8526 | bool result; | |
8527 | PyObject * obj0 = 0 ; | |
8528 | PyObject * obj1 = 0 ; | |
8529 | char *kwnames[] = { | |
8530 | (char *) "self",(char *) "other", NULL | |
8531 | }; | |
8532 | ||
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8538 | { | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8540 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8541 | ||
8542 | wxPyEndAllowThreads(__tstate); | |
8543 | if (PyErr_Occurred()) SWIG_fail; | |
8544 | } | |
8545 | { | |
8546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8547 | } | |
8548 | return resultobj; | |
8549 | fail: | |
8550 | return NULL; | |
8551 | } | |
8552 | ||
8553 | ||
c32bde28 | 8554 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8555 | PyObject *resultobj; |
8556 | wxFont *arg1 = (wxFont *) 0 ; | |
8557 | wxFont *arg2 = (wxFont *) 0 ; | |
8558 | bool result; | |
8559 | PyObject * obj0 = 0 ; | |
8560 | PyObject * obj1 = 0 ; | |
8561 | char *kwnames[] = { | |
8562 | (char *) "self",(char *) "other", NULL | |
8563 | }; | |
8564 | ||
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8570 | { | |
8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8572 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8573 | ||
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | { | |
8578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8579 | } | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
c32bde28 | 8586 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8587 | PyObject *resultobj; |
8588 | wxFont *arg1 = (wxFont *) 0 ; | |
8589 | int result; | |
8590 | PyObject * obj0 = 0 ; | |
8591 | char *kwnames[] = { | |
8592 | (char *) "self", NULL | |
8593 | }; | |
8594 | ||
8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8598 | { | |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8601 | ||
8602 | wxPyEndAllowThreads(__tstate); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
c32bde28 | 8605 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8606 | return resultobj; |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
c32bde28 | 8612 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8613 | PyObject *resultobj; |
8614 | wxFont *arg1 = (wxFont *) 0 ; | |
8615 | int result; | |
8616 | PyObject * obj0 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "self", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
c32bde28 | 8631 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8632 | return resultobj; |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
c32bde28 | 8638 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8639 | PyObject *resultobj; |
8640 | wxFont *arg1 = (wxFont *) 0 ; | |
8641 | int result; | |
8642 | PyObject * obj0 = 0 ; | |
8643 | char *kwnames[] = { | |
8644 | (char *) "self", NULL | |
8645 | }; | |
8646 | ||
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
c32bde28 | 8657 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8658 | return resultobj; |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
c32bde28 | 8664 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8665 | PyObject *resultobj; |
8666 | wxFont *arg1 = (wxFont *) 0 ; | |
8667 | int result; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | char *kwnames[] = { | |
8670 | (char *) "self", NULL | |
8671 | }; | |
8672 | ||
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8676 | { | |
8677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8678 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8679 | ||
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
c32bde28 | 8683 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8684 | return resultobj; |
8685 | fail: | |
8686 | return NULL; | |
8687 | } | |
8688 | ||
8689 | ||
c32bde28 | 8690 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8691 | PyObject *resultobj; |
8692 | wxFont *arg1 = (wxFont *) 0 ; | |
8693 | bool result; | |
8694 | PyObject * obj0 = 0 ; | |
8695 | char *kwnames[] = { | |
8696 | (char *) "self", NULL | |
8697 | }; | |
8698 | ||
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8702 | { | |
8703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8704 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8705 | ||
8706 | wxPyEndAllowThreads(__tstate); | |
8707 | if (PyErr_Occurred()) SWIG_fail; | |
8708 | } | |
8709 | { | |
8710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8711 | } | |
8712 | return resultobj; | |
8713 | fail: | |
8714 | return NULL; | |
8715 | } | |
8716 | ||
8717 | ||
c32bde28 | 8718 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8719 | PyObject *resultobj; |
8720 | wxFont *arg1 = (wxFont *) 0 ; | |
8721 | wxString result; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | char *kwnames[] = { | |
8724 | (char *) "self", NULL | |
8725 | }; | |
8726 | ||
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
8737 | { | |
8738 | #if wxUSE_UNICODE | |
8739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8740 | #else | |
8741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8742 | #endif | |
8743 | } | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
c32bde28 | 8750 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8751 | PyObject *resultobj; |
8752 | wxFont *arg1 = (wxFont *) 0 ; | |
8753 | int result; | |
8754 | PyObject * obj0 = 0 ; | |
8755 | char *kwnames[] = { | |
8756 | (char *) "self", NULL | |
8757 | }; | |
8758 | ||
8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
8760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
c32bde28 | 8769 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8770 | return resultobj; |
8771 | fail: | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
c32bde28 | 8776 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8777 | PyObject *resultobj; |
8778 | wxFont *arg1 = (wxFont *) 0 ; | |
8779 | wxNativeFontInfo *result; | |
8780 | PyObject * obj0 = 0 ; | |
8781 | char *kwnames[] = { | |
8782 | (char *) "self", NULL | |
8783 | }; | |
8784 | ||
8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8788 | { | |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8790 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8791 | ||
8792 | wxPyEndAllowThreads(__tstate); | |
8793 | if (PyErr_Occurred()) SWIG_fail; | |
8794 | } | |
8795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
c32bde28 | 8802 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8803 | PyObject *resultobj; |
8804 | wxFont *arg1 = (wxFont *) 0 ; | |
8805 | bool result; | |
8806 | PyObject * obj0 = 0 ; | |
8807 | char *kwnames[] = { | |
8808 | (char *) "self", NULL | |
8809 | }; | |
8810 | ||
8811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8814 | { | |
8815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8816 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8817 | ||
8818 | wxPyEndAllowThreads(__tstate); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | { | |
8822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8823 | } | |
8824 | return resultobj; | |
8825 | fail: | |
8826 | return NULL; | |
8827 | } | |
8828 | ||
8829 | ||
c32bde28 | 8830 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8831 | PyObject *resultobj; |
8832 | wxFont *arg1 = (wxFont *) 0 ; | |
8833 | wxString result; | |
8834 | PyObject * obj0 = 0 ; | |
8835 | char *kwnames[] = { | |
8836 | (char *) "self", NULL | |
8837 | }; | |
8838 | ||
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8842 | { | |
8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8844 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8845 | ||
8846 | wxPyEndAllowThreads(__tstate); | |
8847 | if (PyErr_Occurred()) SWIG_fail; | |
8848 | } | |
8849 | { | |
8850 | #if wxUSE_UNICODE | |
8851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8852 | #else | |
8853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8854 | #endif | |
8855 | } | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
c32bde28 | 8862 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8863 | PyObject *resultobj; |
8864 | wxFont *arg1 = (wxFont *) 0 ; | |
8865 | wxString result; | |
8866 | PyObject * obj0 = 0 ; | |
8867 | char *kwnames[] = { | |
8868 | (char *) "self", NULL | |
8869 | }; | |
8870 | ||
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",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 = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | { | |
8882 | #if wxUSE_UNICODE | |
8883 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8884 | #else | |
8885 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8886 | #endif | |
8887 | } | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
c32bde28 | 8894 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8895 | PyObject *resultobj; |
8896 | wxFont *arg1 = (wxFont *) 0 ; | |
8897 | int arg2 ; | |
8898 | PyObject * obj0 = 0 ; | |
8899 | PyObject * obj1 = 0 ; | |
8900 | char *kwnames[] = { | |
8901 | (char *) "self",(char *) "pointSize", NULL | |
8902 | }; | |
8903 | ||
8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8907 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8908 | if (PyErr_Occurred()) SWIG_fail; |
8909 | { | |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8911 | (arg1)->SetPointSize(arg2); | |
8912 | ||
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | Py_INCREF(Py_None); resultobj = Py_None; | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
c32bde28 | 8923 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8924 | PyObject *resultobj; |
8925 | wxFont *arg1 = (wxFont *) 0 ; | |
8926 | int arg2 ; | |
8927 | PyObject * obj0 = 0 ; | |
8928 | PyObject * obj1 = 0 ; | |
8929 | char *kwnames[] = { | |
8930 | (char *) "self",(char *) "family", NULL | |
8931 | }; | |
8932 | ||
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8936 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8937 | if (PyErr_Occurred()) SWIG_fail; |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | (arg1)->SetFamily(arg2); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | Py_INCREF(Py_None); resultobj = Py_None; | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
c32bde28 | 8952 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8953 | PyObject *resultobj; |
8954 | wxFont *arg1 = (wxFont *) 0 ; | |
8955 | int arg2 ; | |
8956 | PyObject * obj0 = 0 ; | |
8957 | PyObject * obj1 = 0 ; | |
8958 | char *kwnames[] = { | |
8959 | (char *) "self",(char *) "style", NULL | |
8960 | }; | |
8961 | ||
8962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8965 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8966 | if (PyErr_Occurred()) SWIG_fail; |
8967 | { | |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8969 | (arg1)->SetStyle(arg2); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | Py_INCREF(Py_None); resultobj = Py_None; | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
c32bde28 | 8981 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8982 | PyObject *resultobj; |
8983 | wxFont *arg1 = (wxFont *) 0 ; | |
8984 | int arg2 ; | |
8985 | PyObject * obj0 = 0 ; | |
8986 | PyObject * obj1 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self",(char *) "weight", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8994 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8995 | if (PyErr_Occurred()) SWIG_fail; |
8996 | { | |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | (arg1)->SetWeight(arg2); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | Py_INCREF(Py_None); resultobj = Py_None; | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | return NULL; | |
9007 | } | |
9008 | ||
9009 | ||
c32bde28 | 9010 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9011 | PyObject *resultobj; |
9012 | wxFont *arg1 = (wxFont *) 0 ; | |
9013 | wxString *arg2 = 0 ; | |
9014 | bool temp2 = False ; | |
9015 | PyObject * obj0 = 0 ; | |
9016 | PyObject * obj1 = 0 ; | |
9017 | char *kwnames[] = { | |
9018 | (char *) "self",(char *) "faceName", NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
9022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9024 | { | |
9025 | arg2 = wxString_in_helper(obj1); | |
9026 | if (arg2 == NULL) SWIG_fail; | |
9027 | temp2 = True; | |
9028 | } | |
9029 | { | |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | (arg1)->SetFaceName((wxString const &)*arg2); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | Py_INCREF(Py_None); resultobj = Py_None; | |
9037 | { | |
9038 | if (temp2) | |
9039 | delete arg2; | |
9040 | } | |
9041 | return resultobj; | |
9042 | fail: | |
9043 | { | |
9044 | if (temp2) | |
9045 | delete arg2; | |
9046 | } | |
9047 | return NULL; | |
9048 | } | |
9049 | ||
9050 | ||
c32bde28 | 9051 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9052 | PyObject *resultobj; |
9053 | wxFont *arg1 = (wxFont *) 0 ; | |
9054 | bool arg2 ; | |
9055 | PyObject * obj0 = 0 ; | |
9056 | PyObject * obj1 = 0 ; | |
9057 | char *kwnames[] = { | |
9058 | (char *) "self",(char *) "underlined", NULL | |
9059 | }; | |
9060 | ||
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
9062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9064 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9065 | if (PyErr_Occurred()) SWIG_fail; |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | (arg1)->SetUnderlined(arg2); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9081 | PyObject *resultobj; |
9082 | wxFont *arg1 = (wxFont *) 0 ; | |
9083 | int arg2 ; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | PyObject * obj1 = 0 ; | |
9086 | char *kwnames[] = { | |
9087 | (char *) "self",(char *) "encoding", NULL | |
9088 | }; | |
9089 | ||
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
9091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9093 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9094 | if (PyErr_Occurred()) SWIG_fail; |
9095 | { | |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
9098 | ||
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | Py_INCREF(Py_None); resultobj = Py_None; | |
9103 | return resultobj; | |
9104 | fail: | |
9105 | return NULL; | |
9106 | } | |
9107 | ||
9108 | ||
c32bde28 | 9109 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9110 | PyObject *resultobj; |
9111 | wxFont *arg1 = (wxFont *) 0 ; | |
9112 | wxNativeFontInfo *arg2 = 0 ; | |
9113 | PyObject * obj0 = 0 ; | |
9114 | PyObject * obj1 = 0 ; | |
9115 | char *kwnames[] = { | |
9116 | (char *) "self",(char *) "info", NULL | |
9117 | }; | |
9118 | ||
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
9120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
9123 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9124 | SWIG_fail; | |
9125 | if (arg2 == NULL) { | |
9126 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9127 | SWIG_fail; | |
9128 | } | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | Py_INCREF(Py_None); resultobj = Py_None; | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
c32bde28 | 9143 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9144 | PyObject *resultobj; |
9145 | wxFont *arg1 = (wxFont *) 0 ; | |
9146 | wxString *arg2 = 0 ; | |
9147 | bool temp2 = False ; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self",(char *) "info", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | { | |
9158 | arg2 = wxString_in_helper(obj1); | |
9159 | if (arg2 == NULL) SWIG_fail; | |
9160 | temp2 = True; | |
9161 | } | |
9162 | { | |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | Py_INCREF(Py_None); resultobj = Py_None; | |
9170 | { | |
9171 | if (temp2) | |
9172 | delete arg2; | |
9173 | } | |
9174 | return resultobj; | |
9175 | fail: | |
9176 | { | |
9177 | if (temp2) | |
9178 | delete arg2; | |
9179 | } | |
9180 | return NULL; | |
9181 | } | |
9182 | ||
9183 | ||
c32bde28 | 9184 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9185 | PyObject *resultobj; |
9186 | wxFont *arg1 = (wxFont *) 0 ; | |
9187 | wxString *arg2 = 0 ; | |
9188 | bool temp2 = False ; | |
9189 | PyObject * obj0 = 0 ; | |
9190 | PyObject * obj1 = 0 ; | |
9191 | char *kwnames[] = { | |
9192 | (char *) "self",(char *) "info", NULL | |
9193 | }; | |
9194 | ||
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
9196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9198 | { | |
9199 | arg2 = wxString_in_helper(obj1); | |
9200 | if (arg2 == NULL) SWIG_fail; | |
9201 | temp2 = True; | |
9202 | } | |
9203 | { | |
9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9205 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
9206 | ||
9207 | wxPyEndAllowThreads(__tstate); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
9210 | Py_INCREF(Py_None); resultobj = Py_None; | |
9211 | { | |
9212 | if (temp2) | |
9213 | delete arg2; | |
9214 | } | |
9215 | return resultobj; | |
9216 | fail: | |
9217 | { | |
9218 | if (temp2) | |
9219 | delete arg2; | |
9220 | } | |
9221 | return NULL; | |
9222 | } | |
9223 | ||
9224 | ||
c32bde28 | 9225 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9226 | PyObject *resultobj; |
9227 | wxFont *arg1 = (wxFont *) 0 ; | |
9228 | wxString result; | |
9229 | PyObject * obj0 = 0 ; | |
9230 | char *kwnames[] = { | |
9231 | (char *) "self", NULL | |
9232 | }; | |
9233 | ||
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
9235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9237 | { | |
9238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9239 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
9240 | ||
9241 | wxPyEndAllowThreads(__tstate); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
9243 | } | |
9244 | { | |
9245 | #if wxUSE_UNICODE | |
9246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9247 | #else | |
9248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9249 | #endif | |
9250 | } | |
9251 | return resultobj; | |
9252 | fail: | |
9253 | return NULL; | |
9254 | } | |
9255 | ||
9256 | ||
c32bde28 | 9257 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9258 | PyObject *resultobj; |
9259 | wxFont *arg1 = (wxFont *) 0 ; | |
9260 | wxString result; | |
9261 | PyObject * obj0 = 0 ; | |
9262 | char *kwnames[] = { | |
9263 | (char *) "self", NULL | |
9264 | }; | |
9265 | ||
9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
9267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9269 | { | |
9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9271 | result = ((wxFont const *)arg1)->GetStyleString(); | |
9272 | ||
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | { | |
9277 | #if wxUSE_UNICODE | |
9278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9279 | #else | |
9280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9281 | #endif | |
9282 | } | |
9283 | return resultobj; | |
9284 | fail: | |
9285 | return NULL; | |
9286 | } | |
9287 | ||
9288 | ||
c32bde28 | 9289 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9290 | PyObject *resultobj; |
9291 | wxFont *arg1 = (wxFont *) 0 ; | |
9292 | wxString result; | |
9293 | PyObject * obj0 = 0 ; | |
9294 | char *kwnames[] = { | |
9295 | (char *) "self", NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9301 | { | |
9302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9303 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9304 | ||
9305 | wxPyEndAllowThreads(__tstate); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | } | |
9308 | { | |
9309 | #if wxUSE_UNICODE | |
9310 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9311 | #else | |
9312 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9313 | #endif | |
9314 | } | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | return NULL; | |
9318 | } | |
9319 | ||
9320 | ||
c32bde28 | 9321 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9322 | PyObject *resultobj; |
9323 | wxFont *arg1 = (wxFont *) 0 ; | |
9324 | bool arg2 = (bool) True ; | |
9325 | PyObject * obj0 = 0 ; | |
9326 | PyObject * obj1 = 0 ; | |
9327 | char *kwnames[] = { | |
9328 | (char *) "self",(char *) "no", NULL | |
9329 | }; | |
9330 | ||
9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9334 | if (obj1) { | |
c32bde28 | 9335 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9336 | if (PyErr_Occurred()) SWIG_fail; |
9337 | } | |
9338 | { | |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | (arg1)->SetNoAntiAliasing(arg2); | |
9341 | ||
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
9345 | Py_INCREF(Py_None); resultobj = Py_None; | |
9346 | return resultobj; | |
9347 | fail: | |
9348 | return NULL; | |
9349 | } | |
9350 | ||
9351 | ||
c32bde28 | 9352 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9353 | PyObject *resultobj; |
9354 | wxFont *arg1 = (wxFont *) 0 ; | |
9355 | bool result; | |
9356 | PyObject * obj0 = 0 ; | |
9357 | char *kwnames[] = { | |
9358 | (char *) "self", NULL | |
9359 | }; | |
9360 | ||
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9364 | { | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b0f7404b | 9366 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d55e5bfc RD |
9367 | |
9368 | wxPyEndAllowThreads(__tstate); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | } | |
9371 | { | |
9372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9373 | } | |
9374 | return resultobj; | |
9375 | fail: | |
9376 | return NULL; | |
9377 | } | |
9378 | ||
9379 | ||
c32bde28 | 9380 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9381 | PyObject *resultobj; |
9382 | int result; | |
9383 | char *kwnames[] = { | |
9384 | NULL | |
9385 | }; | |
9386 | ||
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9388 | { | |
0439c23b | 9389 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9391 | result = (int)wxFont::GetDefaultEncoding(); | |
9392 | ||
9393 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9394 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9395 | } |
c32bde28 | 9396 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9397 | return resultobj; |
9398 | fail: | |
9399 | return NULL; | |
9400 | } | |
9401 | ||
9402 | ||
c32bde28 | 9403 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9404 | PyObject *resultobj; |
9405 | int arg1 ; | |
9406 | PyObject * obj0 = 0 ; | |
9407 | char *kwnames[] = { | |
9408 | (char *) "encoding", NULL | |
9409 | }; | |
9410 | ||
9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
c32bde28 | 9412 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9413 | if (PyErr_Occurred()) SWIG_fail; |
9414 | { | |
0439c23b | 9415 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9417 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9418 | ||
9419 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9420 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9421 | } |
9422 | Py_INCREF(Py_None); resultobj = Py_None; | |
9423 | return resultobj; | |
9424 | fail: | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
c32bde28 | 9429 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9430 | PyObject *obj; |
9431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9432 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9433 | Py_INCREF(obj); | |
9434 | return Py_BuildValue((char *)""); | |
9435 | } | |
c32bde28 | 9436 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9437 | PyObject *resultobj; |
9438 | wxPyFontEnumerator *result; | |
9439 | char *kwnames[] = { | |
9440 | NULL | |
9441 | }; | |
9442 | ||
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9444 | { | |
0439c23b | 9445 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9447 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9448 | ||
9449 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9450 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9451 | } |
9452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9453 | return resultobj; | |
9454 | fail: | |
9455 | return NULL; | |
9456 | } | |
9457 | ||
9458 | ||
c32bde28 | 9459 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9460 | PyObject *resultobj; |
9461 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9462 | PyObject * obj0 = 0 ; | |
9463 | char *kwnames[] = { | |
9464 | (char *) "self", NULL | |
9465 | }; | |
9466 | ||
9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9470 | { | |
9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9472 | delete arg1; | |
9473 | ||
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) SWIG_fail; | |
9476 | } | |
9477 | Py_INCREF(Py_None); resultobj = Py_None; | |
9478 | return resultobj; | |
9479 | fail: | |
9480 | return NULL; | |
9481 | } | |
9482 | ||
9483 | ||
c32bde28 | 9484 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9485 | PyObject *resultobj; |
9486 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9487 | PyObject *arg2 = (PyObject *) 0 ; | |
9488 | PyObject *arg3 = (PyObject *) 0 ; | |
9489 | bool arg4 ; | |
9490 | PyObject * obj0 = 0 ; | |
9491 | PyObject * obj1 = 0 ; | |
9492 | PyObject * obj2 = 0 ; | |
9493 | PyObject * obj3 = 0 ; | |
9494 | char *kwnames[] = { | |
9495 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9496 | }; | |
9497 | ||
9498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9501 | arg2 = obj1; | |
9502 | arg3 = obj2; | |
c32bde28 | 9503 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
9504 | if (PyErr_Occurred()) SWIG_fail; |
9505 | { | |
9506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9507 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9508 | ||
9509 | wxPyEndAllowThreads(__tstate); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
9511 | } | |
9512 | Py_INCREF(Py_None); resultobj = Py_None; | |
9513 | return resultobj; | |
9514 | fail: | |
9515 | return NULL; | |
9516 | } | |
9517 | ||
9518 | ||
c32bde28 | 9519 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9520 | PyObject *resultobj; |
9521 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9522 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
9523 | bool arg3 = (bool) False ; | |
9524 | bool result; | |
9525 | PyObject * obj0 = 0 ; | |
9526 | PyObject * obj1 = 0 ; | |
9527 | PyObject * obj2 = 0 ; | |
9528 | char *kwnames[] = { | |
9529 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9530 | }; | |
9531 | ||
9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9535 | if (obj1) { | |
c32bde28 | 9536 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9537 | if (PyErr_Occurred()) SWIG_fail; |
9538 | } | |
9539 | if (obj2) { | |
c32bde28 | 9540 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9541 | if (PyErr_Occurred()) SWIG_fail; |
9542 | } | |
9543 | { | |
9544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9545 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9546 | ||
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
9550 | { | |
9551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9552 | } | |
9553 | return resultobj; | |
9554 | fail: | |
9555 | return NULL; | |
9556 | } | |
9557 | ||
9558 | ||
c32bde28 | 9559 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9560 | PyObject *resultobj; |
9561 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9562 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9563 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9564 | bool result; | |
9565 | bool temp2 = False ; | |
9566 | PyObject * obj0 = 0 ; | |
9567 | PyObject * obj1 = 0 ; | |
9568 | char *kwnames[] = { | |
9569 | (char *) "self",(char *) "facename", NULL | |
9570 | }; | |
9571 | ||
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9575 | if (obj1) { | |
9576 | { | |
9577 | arg2 = wxString_in_helper(obj1); | |
9578 | if (arg2 == NULL) SWIG_fail; | |
9579 | temp2 = True; | |
9580 | } | |
9581 | } | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9585 | ||
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | { | |
9590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9591 | } | |
9592 | { | |
9593 | if (temp2) | |
9594 | delete arg2; | |
9595 | } | |
9596 | return resultobj; | |
9597 | fail: | |
9598 | { | |
9599 | if (temp2) | |
9600 | delete arg2; | |
9601 | } | |
9602 | return NULL; | |
9603 | } | |
9604 | ||
9605 | ||
c32bde28 | 9606 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9607 | PyObject *resultobj; |
9608 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9609 | PyObject *result; | |
9610 | PyObject * obj0 = 0 ; | |
9611 | char *kwnames[] = { | |
9612 | (char *) "self", NULL | |
9613 | }; | |
9614 | ||
9615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | resultobj = result; | |
9626 | return resultobj; | |
9627 | fail: | |
9628 | return NULL; | |
9629 | } | |
9630 | ||
9631 | ||
c32bde28 | 9632 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9633 | PyObject *resultobj; |
9634 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9635 | PyObject *result; | |
9636 | PyObject * obj0 = 0 ; | |
9637 | char *kwnames[] = { | |
9638 | (char *) "self", NULL | |
9639 | }; | |
9640 | ||
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9647 | ||
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
9651 | resultobj = result; | |
9652 | return resultobj; | |
9653 | fail: | |
9654 | return NULL; | |
9655 | } | |
9656 | ||
9657 | ||
c32bde28 | 9658 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9659 | PyObject *obj; |
9660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9661 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9662 | Py_INCREF(obj); | |
9663 | return Py_BuildValue((char *)""); | |
9664 | } | |
c32bde28 | 9665 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9666 | PyObject *resultobj; |
9667 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9668 | int arg2 ; | |
9669 | PyObject * obj0 = 0 ; | |
9670 | PyObject * obj1 = 0 ; | |
9671 | char *kwnames[] = { | |
9672 | (char *) "self",(char *) "Language", NULL | |
9673 | }; | |
9674 | ||
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9678 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9679 | if (PyErr_Occurred()) SWIG_fail; |
9680 | if (arg1) (arg1)->Language = arg2; | |
9681 | ||
9682 | Py_INCREF(Py_None); resultobj = Py_None; | |
9683 | return resultobj; | |
9684 | fail: | |
9685 | return NULL; | |
9686 | } | |
9687 | ||
9688 | ||
c32bde28 | 9689 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9690 | PyObject *resultobj; |
9691 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9692 | int result; | |
9693 | PyObject * obj0 = 0 ; | |
9694 | char *kwnames[] = { | |
9695 | (char *) "self", NULL | |
9696 | }; | |
9697 | ||
9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9701 | result = (int) ((arg1)->Language); | |
9702 | ||
c32bde28 | 9703 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9704 | return resultobj; |
9705 | fail: | |
9706 | return NULL; | |
9707 | } | |
9708 | ||
9709 | ||
c32bde28 | 9710 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9711 | PyObject *resultobj; |
9712 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9713 | wxString *arg2 = (wxString *) 0 ; | |
9714 | bool temp2 = False ; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | PyObject * obj1 = 0 ; | |
9717 | char *kwnames[] = { | |
9718 | (char *) "self",(char *) "CanonicalName", NULL | |
9719 | }; | |
9720 | ||
9721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9724 | { | |
9725 | arg2 = wxString_in_helper(obj1); | |
9726 | if (arg2 == NULL) SWIG_fail; | |
9727 | temp2 = True; | |
9728 | } | |
9729 | if (arg1) (arg1)->CanonicalName = *arg2; | |
9730 | ||
9731 | Py_INCREF(Py_None); resultobj = Py_None; | |
9732 | { | |
9733 | if (temp2) | |
9734 | delete arg2; | |
9735 | } | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | { | |
9739 | if (temp2) | |
9740 | delete arg2; | |
9741 | } | |
9742 | return NULL; | |
9743 | } | |
9744 | ||
9745 | ||
c32bde28 | 9746 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9747 | PyObject *resultobj; |
9748 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9749 | wxString *result; | |
9750 | PyObject * obj0 = 0 ; | |
9751 | char *kwnames[] = { | |
9752 | (char *) "self", NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9758 | result = (wxString *)& ((arg1)->CanonicalName); | |
9759 | ||
9760 | { | |
9761 | #if wxUSE_UNICODE | |
9762 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9763 | #else | |
9764 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9765 | #endif | |
9766 | } | |
9767 | return resultobj; | |
9768 | fail: | |
9769 | return NULL; | |
9770 | } | |
9771 | ||
9772 | ||
c32bde28 | 9773 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9774 | PyObject *resultobj; |
9775 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9776 | wxString *arg2 = (wxString *) 0 ; | |
9777 | bool temp2 = False ; | |
9778 | PyObject * obj0 = 0 ; | |
9779 | PyObject * obj1 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "self",(char *) "Description", NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9787 | { | |
9788 | arg2 = wxString_in_helper(obj1); | |
9789 | if (arg2 == NULL) SWIG_fail; | |
9790 | temp2 = True; | |
9791 | } | |
9792 | if (arg1) (arg1)->Description = *arg2; | |
9793 | ||
9794 | Py_INCREF(Py_None); resultobj = Py_None; | |
9795 | { | |
9796 | if (temp2) | |
9797 | delete arg2; | |
9798 | } | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | { | |
9802 | if (temp2) | |
9803 | delete arg2; | |
9804 | } | |
9805 | return NULL; | |
9806 | } | |
9807 | ||
9808 | ||
c32bde28 | 9809 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9810 | PyObject *resultobj; |
9811 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9812 | wxString *result; | |
9813 | PyObject * obj0 = 0 ; | |
9814 | char *kwnames[] = { | |
9815 | (char *) "self", NULL | |
9816 | }; | |
9817 | ||
9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9821 | result = (wxString *)& ((arg1)->Description); | |
9822 | ||
9823 | { | |
9824 | #if wxUSE_UNICODE | |
9825 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9826 | #else | |
9827 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9828 | #endif | |
9829 | } | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
c32bde28 | 9836 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9837 | PyObject *obj; |
9838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9839 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9840 | Py_INCREF(obj); | |
9841 | return Py_BuildValue((char *)""); | |
9842 | } | |
c32bde28 | 9843 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 9844 | PyObject *resultobj; |
79fccf9d | 9845 | int arg1 = (int) -1 ; |
d55e5bfc RD |
9846 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9847 | wxLocale *result; | |
9848 | PyObject * obj0 = 0 ; | |
9849 | PyObject * obj1 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "language",(char *) "flags", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9855 | if (obj0) { | |
c32bde28 | 9856 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9857 | if (PyErr_Occurred()) SWIG_fail; |
9858 | } | |
9859 | if (obj1) { | |
c32bde28 | 9860 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9861 | if (PyErr_Occurred()) SWIG_fail; |
9862 | } | |
9863 | { | |
9864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 9865 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
9866 | |
9867 | wxPyEndAllowThreads(__tstate); | |
9868 | if (PyErr_Occurred()) SWIG_fail; | |
9869 | } | |
9870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9871 | return resultobj; | |
9872 | fail: | |
9873 | return NULL; | |
9874 | } | |
9875 | ||
9876 | ||
c32bde28 | 9877 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9878 | PyObject *resultobj; |
9879 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9880 | PyObject * obj0 = 0 ; | |
9881 | char *kwnames[] = { | |
9882 | (char *) "self", NULL | |
9883 | }; | |
9884 | ||
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9888 | { | |
9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9890 | delete arg1; | |
9891 | ||
9892 | wxPyEndAllowThreads(__tstate); | |
9893 | if (PyErr_Occurred()) SWIG_fail; | |
9894 | } | |
9895 | Py_INCREF(Py_None); resultobj = Py_None; | |
9896 | return resultobj; | |
9897 | fail: | |
9898 | return NULL; | |
9899 | } | |
9900 | ||
9901 | ||
c32bde28 | 9902 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9903 | PyObject *resultobj; |
9904 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9905 | wxString *arg2 = 0 ; | |
9906 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9907 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9908 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9909 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9910 | bool arg5 = (bool) True ; | |
9911 | bool arg6 = (bool) False ; | |
9912 | bool result; | |
9913 | bool temp2 = False ; | |
9914 | bool temp3 = False ; | |
9915 | bool temp4 = False ; | |
9916 | PyObject * obj0 = 0 ; | |
9917 | PyObject * obj1 = 0 ; | |
9918 | PyObject * obj2 = 0 ; | |
9919 | PyObject * obj3 = 0 ; | |
9920 | PyObject * obj4 = 0 ; | |
9921 | PyObject * obj5 = 0 ; | |
9922 | char *kwnames[] = { | |
9923 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9924 | }; | |
9925 | ||
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9929 | { | |
9930 | arg2 = wxString_in_helper(obj1); | |
9931 | if (arg2 == NULL) SWIG_fail; | |
9932 | temp2 = True; | |
9933 | } | |
9934 | if (obj2) { | |
9935 | { | |
9936 | arg3 = wxString_in_helper(obj2); | |
9937 | if (arg3 == NULL) SWIG_fail; | |
9938 | temp3 = True; | |
9939 | } | |
9940 | } | |
9941 | if (obj3) { | |
9942 | { | |
9943 | arg4 = wxString_in_helper(obj3); | |
9944 | if (arg4 == NULL) SWIG_fail; | |
9945 | temp4 = True; | |
9946 | } | |
9947 | } | |
9948 | if (obj4) { | |
c32bde28 | 9949 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
9950 | if (PyErr_Occurred()) SWIG_fail; |
9951 | } | |
9952 | if (obj5) { | |
c32bde28 | 9953 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
9954 | if (PyErr_Occurred()) SWIG_fail; |
9955 | } | |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9959 | ||
9960 | wxPyEndAllowThreads(__tstate); | |
9961 | if (PyErr_Occurred()) SWIG_fail; | |
9962 | } | |
9963 | { | |
9964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9965 | } | |
9966 | { | |
9967 | if (temp2) | |
9968 | delete arg2; | |
9969 | } | |
9970 | { | |
9971 | if (temp3) | |
9972 | delete arg3; | |
9973 | } | |
9974 | { | |
9975 | if (temp4) | |
9976 | delete arg4; | |
9977 | } | |
9978 | return resultobj; | |
9979 | fail: | |
9980 | { | |
9981 | if (temp2) | |
9982 | delete arg2; | |
9983 | } | |
9984 | { | |
9985 | if (temp3) | |
9986 | delete arg3; | |
9987 | } | |
9988 | { | |
9989 | if (temp4) | |
9990 | delete arg4; | |
9991 | } | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
c32bde28 | 9996 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9997 | PyObject *resultobj; |
9998 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9999 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
10000 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
10001 | bool result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | PyObject * obj1 = 0 ; | |
10004 | PyObject * obj2 = 0 ; | |
10005 | char *kwnames[] = { | |
10006 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
10007 | }; | |
10008 | ||
10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10012 | if (obj1) { | |
c32bde28 | 10013 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10014 | if (PyErr_Occurred()) SWIG_fail; |
10015 | } | |
10016 | if (obj2) { | |
c32bde28 | 10017 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10018 | if (PyErr_Occurred()) SWIG_fail; |
10019 | } | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | result = (bool)(arg1)->Init(arg2,arg3); | |
10023 | ||
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
10027 | { | |
10028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10029 | } | |
10030 | return resultobj; | |
10031 | fail: | |
10032 | return NULL; | |
10033 | } | |
10034 | ||
10035 | ||
c32bde28 | 10036 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10037 | PyObject *resultobj; |
10038 | int result; | |
10039 | char *kwnames[] = { | |
10040 | NULL | |
10041 | }; | |
10042 | ||
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
10044 | { | |
10045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10046 | result = (int)wxLocale::GetSystemLanguage(); | |
10047 | ||
10048 | wxPyEndAllowThreads(__tstate); | |
10049 | if (PyErr_Occurred()) SWIG_fail; | |
10050 | } | |
c32bde28 | 10051 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10052 | return resultobj; |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
c32bde28 | 10058 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10059 | PyObject *resultobj; |
10060 | int result; | |
10061 | char *kwnames[] = { | |
10062 | NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
10066 | { | |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (int)wxLocale::GetSystemEncoding(); | |
10069 | ||
10070 | wxPyEndAllowThreads(__tstate); | |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
10072 | } | |
c32bde28 | 10073 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10074 | return resultobj; |
10075 | fail: | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
c32bde28 | 10080 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10081 | PyObject *resultobj; |
10082 | wxString result; | |
10083 | char *kwnames[] = { | |
10084 | NULL | |
10085 | }; | |
10086 | ||
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
10088 | { | |
10089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10090 | result = wxLocale::GetSystemEncodingName(); | |
10091 | ||
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
10095 | { | |
10096 | #if wxUSE_UNICODE | |
10097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10098 | #else | |
10099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10100 | #endif | |
10101 | } | |
10102 | return resultobj; | |
10103 | fail: | |
10104 | return NULL; | |
10105 | } | |
10106 | ||
10107 | ||
c32bde28 | 10108 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10109 | PyObject *resultobj; |
10110 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10111 | bool result; | |
10112 | PyObject * obj0 = 0 ; | |
10113 | char *kwnames[] = { | |
10114 | (char *) "self", NULL | |
10115 | }; | |
10116 | ||
10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
10118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
10127 | { | |
10128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10129 | } | |
10130 | return resultobj; | |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
c32bde28 | 10136 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10137 | PyObject *resultobj; |
10138 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10139 | wxString result; | |
10140 | PyObject * obj0 = 0 ; | |
10141 | char *kwnames[] = { | |
10142 | (char *) "self", NULL | |
10143 | }; | |
10144 | ||
10145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
10146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10148 | { | |
10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10150 | result = ((wxLocale const *)arg1)->GetLocale(); | |
10151 | ||
10152 | wxPyEndAllowThreads(__tstate); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
10155 | { | |
10156 | #if wxUSE_UNICODE | |
10157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10158 | #else | |
10159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10160 | #endif | |
10161 | } | |
10162 | return resultobj; | |
10163 | fail: | |
10164 | return NULL; | |
10165 | } | |
10166 | ||
10167 | ||
c32bde28 | 10168 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10169 | PyObject *resultobj; |
10170 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10171 | int result; | |
10172 | PyObject * obj0 = 0 ; | |
10173 | char *kwnames[] = { | |
10174 | (char *) "self", NULL | |
10175 | }; | |
10176 | ||
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
10178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10180 | { | |
10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10182 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
10183 | ||
10184 | wxPyEndAllowThreads(__tstate); | |
10185 | if (PyErr_Occurred()) SWIG_fail; | |
10186 | } | |
c32bde28 | 10187 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10188 | return resultobj; |
10189 | fail: | |
10190 | return NULL; | |
10191 | } | |
10192 | ||
10193 | ||
c32bde28 | 10194 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10195 | PyObject *resultobj; |
10196 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10197 | wxString result; | |
10198 | PyObject * obj0 = 0 ; | |
10199 | char *kwnames[] = { | |
10200 | (char *) "self", NULL | |
10201 | }; | |
10202 | ||
10203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
10204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | result = ((wxLocale const *)arg1)->GetSysName(); | |
10209 | ||
10210 | wxPyEndAllowThreads(__tstate); | |
10211 | if (PyErr_Occurred()) SWIG_fail; | |
10212 | } | |
10213 | { | |
10214 | #if wxUSE_UNICODE | |
10215 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10216 | #else | |
10217 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10218 | #endif | |
10219 | } | |
10220 | return resultobj; | |
10221 | fail: | |
10222 | return NULL; | |
10223 | } | |
10224 | ||
10225 | ||
c32bde28 | 10226 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10227 | PyObject *resultobj; |
10228 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10229 | wxString result; | |
10230 | PyObject * obj0 = 0 ; | |
10231 | char *kwnames[] = { | |
10232 | (char *) "self", NULL | |
10233 | }; | |
10234 | ||
10235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
10236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10238 | { | |
10239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10240 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
10241 | ||
10242 | wxPyEndAllowThreads(__tstate); | |
10243 | if (PyErr_Occurred()) SWIG_fail; | |
10244 | } | |
10245 | { | |
10246 | #if wxUSE_UNICODE | |
10247 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10248 | #else | |
10249 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10250 | #endif | |
10251 | } | |
10252 | return resultobj; | |
10253 | fail: | |
10254 | return NULL; | |
10255 | } | |
10256 | ||
10257 | ||
c32bde28 | 10258 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10259 | PyObject *resultobj; |
10260 | wxString *arg1 = 0 ; | |
10261 | bool temp1 = False ; | |
10262 | PyObject * obj0 = 0 ; | |
10263 | char *kwnames[] = { | |
10264 | (char *) "prefix", NULL | |
10265 | }; | |
10266 | ||
10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
10268 | { | |
10269 | arg1 = wxString_in_helper(obj0); | |
10270 | if (arg1 == NULL) SWIG_fail; | |
10271 | temp1 = True; | |
10272 | } | |
10273 | { | |
10274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10275 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
10276 | ||
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) SWIG_fail; | |
10279 | } | |
10280 | Py_INCREF(Py_None); resultobj = Py_None; | |
10281 | { | |
10282 | if (temp1) | |
10283 | delete arg1; | |
10284 | } | |
10285 | return resultobj; | |
10286 | fail: | |
10287 | { | |
10288 | if (temp1) | |
10289 | delete arg1; | |
10290 | } | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
c32bde28 | 10295 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10296 | PyObject *resultobj; |
10297 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10298 | wxString *arg2 = 0 ; | |
10299 | bool result; | |
10300 | bool temp2 = False ; | |
10301 | PyObject * obj0 = 0 ; | |
10302 | PyObject * obj1 = 0 ; | |
10303 | char *kwnames[] = { | |
10304 | (char *) "self",(char *) "szDomain", NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10310 | { | |
10311 | arg2 = wxString_in_helper(obj1); | |
10312 | if (arg2 == NULL) SWIG_fail; | |
10313 | temp2 = True; | |
10314 | } | |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | { | |
10323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10324 | } | |
10325 | { | |
10326 | if (temp2) | |
10327 | delete arg2; | |
10328 | } | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | { | |
10332 | if (temp2) | |
10333 | delete arg2; | |
10334 | } | |
10335 | return NULL; | |
10336 | } | |
10337 | ||
10338 | ||
c32bde28 | 10339 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10340 | PyObject *resultobj; |
10341 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10342 | wxString *arg2 = 0 ; | |
10343 | bool result; | |
10344 | bool temp2 = False ; | |
10345 | PyObject * obj0 = 0 ; | |
10346 | PyObject * obj1 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self",(char *) "szDomain", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10354 | { | |
10355 | arg2 = wxString_in_helper(obj1); | |
10356 | if (arg2 == NULL) SWIG_fail; | |
10357 | temp2 = True; | |
10358 | } | |
10359 | { | |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) SWIG_fail; | |
10365 | } | |
10366 | { | |
10367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10368 | } | |
10369 | { | |
10370 | if (temp2) | |
10371 | delete arg2; | |
10372 | } | |
10373 | return resultobj; | |
10374 | fail: | |
10375 | { | |
10376 | if (temp2) | |
10377 | delete arg2; | |
10378 | } | |
10379 | return NULL; | |
10380 | } | |
10381 | ||
10382 | ||
c32bde28 | 10383 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10384 | PyObject *resultobj; |
10385 | int arg1 ; | |
10386 | wxLanguageInfo *result; | |
10387 | PyObject * obj0 = 0 ; | |
10388 | char *kwnames[] = { | |
10389 | (char *) "lang", NULL | |
10390 | }; | |
10391 | ||
10392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
c32bde28 | 10393 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10394 | if (PyErr_Occurred()) SWIG_fail; |
10395 | { | |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10398 | ||
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
10402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10403 | return resultobj; | |
10404 | fail: | |
10405 | return NULL; | |
10406 | } | |
10407 | ||
10408 | ||
c32bde28 | 10409 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10410 | PyObject *resultobj; |
10411 | int arg1 ; | |
10412 | wxString result; | |
10413 | PyObject * obj0 = 0 ; | |
10414 | char *kwnames[] = { | |
10415 | (char *) "lang", NULL | |
10416 | }; | |
10417 | ||
10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
c32bde28 | 10419 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10420 | if (PyErr_Occurred()) SWIG_fail; |
10421 | { | |
10422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10423 | result = wxLocale::GetLanguageName(arg1); | |
10424 | ||
10425 | wxPyEndAllowThreads(__tstate); | |
10426 | if (PyErr_Occurred()) SWIG_fail; | |
10427 | } | |
10428 | { | |
10429 | #if wxUSE_UNICODE | |
10430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10431 | #else | |
10432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10433 | #endif | |
10434 | } | |
10435 | return resultobj; | |
10436 | fail: | |
10437 | return NULL; | |
10438 | } | |
10439 | ||
10440 | ||
c32bde28 | 10441 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10442 | PyObject *resultobj; |
10443 | wxString *arg1 = 0 ; | |
10444 | wxLanguageInfo *result; | |
10445 | bool temp1 = False ; | |
10446 | PyObject * obj0 = 0 ; | |
10447 | char *kwnames[] = { | |
10448 | (char *) "locale", NULL | |
10449 | }; | |
10450 | ||
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10452 | { | |
10453 | arg1 = wxString_in_helper(obj0); | |
10454 | if (arg1 == NULL) SWIG_fail; | |
10455 | temp1 = True; | |
10456 | } | |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10460 | ||
10461 | wxPyEndAllowThreads(__tstate); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10465 | { | |
10466 | if (temp1) | |
10467 | delete arg1; | |
10468 | } | |
10469 | return resultobj; | |
10470 | fail: | |
10471 | { | |
10472 | if (temp1) | |
10473 | delete arg1; | |
10474 | } | |
10475 | return NULL; | |
10476 | } | |
10477 | ||
10478 | ||
c32bde28 | 10479 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10480 | PyObject *resultobj; |
10481 | wxLanguageInfo *arg1 = 0 ; | |
10482 | PyObject * obj0 = 0 ; | |
10483 | char *kwnames[] = { | |
10484 | (char *) "info", NULL | |
10485 | }; | |
10486 | ||
10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10490 | SWIG_fail; | |
10491 | if (arg1 == NULL) { | |
10492 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10493 | SWIG_fail; | |
10494 | } | |
10495 | { | |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | } | |
10502 | Py_INCREF(Py_None); resultobj = Py_None; | |
10503 | return resultobj; | |
10504 | fail: | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
c32bde28 | 10509 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10510 | PyObject *resultobj; |
10511 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10512 | wxString *arg2 = 0 ; | |
10513 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10514 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10515 | wxString result; | |
10516 | bool temp2 = False ; | |
10517 | bool temp3 = False ; | |
10518 | PyObject * obj0 = 0 ; | |
10519 | PyObject * obj1 = 0 ; | |
10520 | PyObject * obj2 = 0 ; | |
10521 | char *kwnames[] = { | |
10522 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10523 | }; | |
10524 | ||
10525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10528 | { | |
10529 | arg2 = wxString_in_helper(obj1); | |
10530 | if (arg2 == NULL) SWIG_fail; | |
10531 | temp2 = True; | |
10532 | } | |
10533 | if (obj2) { | |
10534 | { | |
10535 | arg3 = wxString_in_helper(obj2); | |
10536 | if (arg3 == NULL) SWIG_fail; | |
10537 | temp3 = True; | |
10538 | } | |
10539 | } | |
10540 | { | |
10541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10542 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10543 | ||
10544 | wxPyEndAllowThreads(__tstate); | |
10545 | if (PyErr_Occurred()) SWIG_fail; | |
10546 | } | |
10547 | { | |
10548 | #if wxUSE_UNICODE | |
10549 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10550 | #else | |
10551 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10552 | #endif | |
10553 | } | |
10554 | { | |
10555 | if (temp2) | |
10556 | delete arg2; | |
10557 | } | |
10558 | { | |
10559 | if (temp3) | |
10560 | delete arg3; | |
10561 | } | |
10562 | return resultobj; | |
10563 | fail: | |
10564 | { | |
10565 | if (temp2) | |
10566 | delete arg2; | |
10567 | } | |
10568 | { | |
10569 | if (temp3) | |
10570 | delete arg3; | |
10571 | } | |
10572 | return NULL; | |
10573 | } | |
10574 | ||
10575 | ||
c32bde28 | 10576 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10577 | PyObject *resultobj; |
10578 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10579 | wxString *result; | |
10580 | PyObject * obj0 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | { | |
10591 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10592 | result = (wxString *) &_result_ref; | |
10593 | } | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | { | |
10599 | #if wxUSE_UNICODE | |
10600 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10601 | #else | |
10602 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10603 | #endif | |
10604 | } | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | return NULL; | |
10608 | } | |
10609 | ||
10610 | ||
c32bde28 | 10611 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10612 | PyObject *obj; |
10613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10614 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10615 | Py_INCREF(obj); | |
10616 | return Py_BuildValue((char *)""); | |
10617 | } | |
c32bde28 | 10618 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10619 | PyObject *resultobj; |
10620 | wxLocale *result; | |
10621 | char *kwnames[] = { | |
10622 | NULL | |
10623 | }; | |
10624 | ||
10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10626 | { | |
10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10628 | result = (wxLocale *)wxGetLocale(); | |
10629 | ||
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
10633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
c32bde28 | 10640 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
10641 | PyObject *resultobj; |
10642 | wxString *arg1 = 0 ; | |
10643 | wxString result; | |
10644 | bool temp1 = False ; | |
10645 | PyObject * obj0 = 0 ; | |
10646 | ||
10647 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10648 | { | |
10649 | arg1 = wxString_in_helper(obj0); | |
10650 | if (arg1 == NULL) SWIG_fail; | |
10651 | temp1 = True; | |
10652 | } | |
10653 | { | |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10655 | result = wxGetTranslation((wxString const &)*arg1); | |
10656 | ||
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
10660 | { | |
10661 | #if wxUSE_UNICODE | |
10662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10663 | #else | |
10664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10665 | #endif | |
10666 | } | |
10667 | { | |
10668 | if (temp1) | |
10669 | delete arg1; | |
10670 | } | |
10671 | return resultobj; | |
10672 | fail: | |
10673 | { | |
10674 | if (temp1) | |
10675 | delete arg1; | |
10676 | } | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
c32bde28 | 10681 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
10682 | PyObject *resultobj; |
10683 | wxString *arg1 = 0 ; | |
10684 | wxString *arg2 = 0 ; | |
10685 | size_t arg3 ; | |
10686 | wxString result; | |
10687 | bool temp1 = False ; | |
10688 | bool temp2 = False ; | |
10689 | PyObject * obj0 = 0 ; | |
10690 | PyObject * obj1 = 0 ; | |
10691 | PyObject * obj2 = 0 ; | |
10692 | ||
10693 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10694 | { | |
10695 | arg1 = wxString_in_helper(obj0); | |
10696 | if (arg1 == NULL) SWIG_fail; | |
10697 | temp1 = True; | |
10698 | } | |
10699 | { | |
10700 | arg2 = wxString_in_helper(obj1); | |
10701 | if (arg2 == NULL) SWIG_fail; | |
10702 | temp2 = True; | |
10703 | } | |
c32bde28 | 10704 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
d55e5bfc RD |
10705 | if (PyErr_Occurred()) SWIG_fail; |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | { | |
10714 | #if wxUSE_UNICODE | |
10715 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10716 | #else | |
10717 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10718 | #endif | |
10719 | } | |
10720 | { | |
10721 | if (temp1) | |
10722 | delete arg1; | |
10723 | } | |
10724 | { | |
10725 | if (temp2) | |
10726 | delete arg2; | |
10727 | } | |
10728 | return resultobj; | |
10729 | fail: | |
10730 | { | |
10731 | if (temp1) | |
10732 | delete arg1; | |
10733 | } | |
10734 | { | |
10735 | if (temp2) | |
10736 | delete arg2; | |
10737 | } | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
10742 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10743 | int argc; | |
10744 | PyObject *argv[4]; | |
10745 | int ii; | |
10746 | ||
10747 | argc = PyObject_Length(args); | |
10748 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10749 | argv[ii] = PyTuple_GetItem(args,ii); | |
10750 | } | |
10751 | if (argc == 1) { | |
10752 | int _v; | |
10753 | { | |
10754 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10755 | } | |
10756 | if (_v) { | |
10757 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10758 | } | |
10759 | } | |
10760 | if (argc == 3) { | |
10761 | int _v; | |
10762 | { | |
10763 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10764 | } | |
10765 | if (_v) { | |
10766 | { | |
10767 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10768 | } | |
10769 | if (_v) { | |
c32bde28 | 10770 | _v = SWIG_Check_unsigned_SS_long(argv[2]); |
d55e5bfc RD |
10771 | if (_v) { |
10772 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10773 | } | |
10774 | } | |
10775 | } | |
10776 | } | |
10777 | ||
10778 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10779 | return NULL; | |
10780 | } | |
10781 | ||
10782 | ||
c32bde28 | 10783 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10784 | PyObject *resultobj; |
10785 | wxEncodingConverter *result; | |
10786 | char *kwnames[] = { | |
10787 | NULL | |
10788 | }; | |
10789 | ||
10790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10791 | { | |
10792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10793 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10794 | ||
10795 | wxPyEndAllowThreads(__tstate); | |
10796 | if (PyErr_Occurred()) SWIG_fail; | |
10797 | } | |
10798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
10799 | return resultobj; | |
10800 | fail: | |
10801 | return NULL; | |
10802 | } | |
10803 | ||
10804 | ||
c32bde28 | 10805 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10806 | PyObject *resultobj; |
10807 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10808 | PyObject * obj0 = 0 ; | |
10809 | char *kwnames[] = { | |
10810 | (char *) "self", NULL | |
10811 | }; | |
10812 | ||
10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10816 | { | |
10817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10818 | delete arg1; | |
10819 | ||
10820 | wxPyEndAllowThreads(__tstate); | |
10821 | if (PyErr_Occurred()) SWIG_fail; | |
10822 | } | |
10823 | Py_INCREF(Py_None); resultobj = Py_None; | |
10824 | return resultobj; | |
10825 | fail: | |
10826 | return NULL; | |
10827 | } | |
10828 | ||
10829 | ||
c32bde28 | 10830 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10831 | PyObject *resultobj; |
10832 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10833 | int arg2 ; | |
10834 | int arg3 ; | |
10835 | int arg4 = (int) wxCONVERT_STRICT ; | |
10836 | bool result; | |
10837 | PyObject * obj0 = 0 ; | |
10838 | PyObject * obj1 = 0 ; | |
10839 | PyObject * obj2 = 0 ; | |
10840 | PyObject * obj3 = 0 ; | |
10841 | char *kwnames[] = { | |
10842 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10843 | }; | |
10844 | ||
10845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10848 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10849 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10850 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10851 | if (PyErr_Occurred()) SWIG_fail; |
10852 | if (obj3) { | |
c32bde28 | 10853 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10854 | if (PyErr_Occurred()) SWIG_fail; |
10855 | } | |
10856 | { | |
10857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10858 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10859 | ||
10860 | wxPyEndAllowThreads(__tstate); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | } | |
10863 | { | |
10864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10865 | } | |
10866 | return resultobj; | |
10867 | fail: | |
10868 | return NULL; | |
10869 | } | |
10870 | ||
10871 | ||
c32bde28 | 10872 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10873 | PyObject *resultobj; |
10874 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10875 | wxString *arg2 = 0 ; | |
10876 | wxString result; | |
10877 | bool temp2 = False ; | |
10878 | PyObject * obj0 = 0 ; | |
10879 | PyObject * obj1 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self",(char *) "input", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10887 | { | |
10888 | arg2 = wxString_in_helper(obj1); | |
10889 | if (arg2 == NULL) SWIG_fail; | |
10890 | temp2 = True; | |
10891 | } | |
10892 | { | |
10893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10894 | result = (arg1)->Convert((wxString const &)*arg2); | |
10895 | ||
10896 | wxPyEndAllowThreads(__tstate); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
10898 | } | |
10899 | { | |
10900 | #if wxUSE_UNICODE | |
10901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10902 | #else | |
10903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10904 | #endif | |
10905 | } | |
10906 | { | |
10907 | if (temp2) | |
10908 | delete arg2; | |
10909 | } | |
10910 | return resultobj; | |
10911 | fail: | |
10912 | { | |
10913 | if (temp2) | |
10914 | delete arg2; | |
10915 | } | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
c32bde28 | 10920 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10921 | PyObject *resultobj; |
10922 | int arg1 ; | |
10923 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10924 | wxFontEncodingArray result; | |
10925 | PyObject * obj0 = 0 ; | |
10926 | PyObject * obj1 = 0 ; | |
10927 | char *kwnames[] = { | |
10928 | (char *) "enc",(char *) "platform", NULL | |
10929 | }; | |
10930 | ||
10931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 10932 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10933 | if (PyErr_Occurred()) SWIG_fail; |
10934 | if (obj1) { | |
c32bde28 | 10935 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10936 | if (PyErr_Occurred()) SWIG_fail; |
10937 | } | |
10938 | { | |
10939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10940 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10941 | ||
10942 | wxPyEndAllowThreads(__tstate); | |
10943 | if (PyErr_Occurred()) SWIG_fail; | |
10944 | } | |
10945 | { | |
10946 | resultobj = PyList_New(0); | |
10947 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10948 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10949 | PyList_Append(resultobj, number); | |
10950 | Py_DECREF(number); | |
10951 | } | |
10952 | } | |
10953 | return resultobj; | |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
c32bde28 | 10959 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10960 | PyObject *resultobj; |
10961 | int arg1 ; | |
10962 | wxFontEncodingArray result; | |
10963 | PyObject * obj0 = 0 ; | |
10964 | char *kwnames[] = { | |
10965 | (char *) "enc", NULL | |
10966 | }; | |
10967 | ||
10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
c32bde28 | 10969 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10970 | if (PyErr_Occurred()) SWIG_fail; |
10971 | { | |
10972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10973 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10974 | ||
10975 | wxPyEndAllowThreads(__tstate); | |
10976 | if (PyErr_Occurred()) SWIG_fail; | |
10977 | } | |
10978 | { | |
10979 | resultobj = PyList_New(0); | |
10980 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10981 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10982 | PyList_Append(resultobj, number); | |
10983 | Py_DECREF(number); | |
10984 | } | |
10985 | } | |
10986 | return resultobj; | |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
c32bde28 | 10992 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10993 | PyObject *resultobj; |
10994 | int arg1 ; | |
10995 | int arg2 ; | |
10996 | bool result; | |
10997 | PyObject * obj0 = 0 ; | |
10998 | PyObject * obj1 = 0 ; | |
10999 | char *kwnames[] = { | |
11000 | (char *) "encIn",(char *) "encOut", NULL | |
11001 | }; | |
11002 | ||
11003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 11004 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 11005 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11006 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11007 | if (PyErr_Occurred()) SWIG_fail; |
11008 | { | |
11009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11010 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
11011 | ||
11012 | wxPyEndAllowThreads(__tstate); | |
11013 | if (PyErr_Occurred()) SWIG_fail; | |
11014 | } | |
11015 | { | |
11016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11017 | } | |
11018 | return resultobj; | |
11019 | fail: | |
11020 | return NULL; | |
11021 | } | |
11022 | ||
11023 | ||
c32bde28 | 11024 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11025 | PyObject *obj; |
11026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11027 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
11028 | Py_INCREF(obj); | |
11029 | return Py_BuildValue((char *)""); | |
11030 | } | |
c32bde28 | 11031 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11032 | PyObject *resultobj; |
11033 | wxDC *arg1 = (wxDC *) 0 ; | |
11034 | PyObject * obj0 = 0 ; | |
11035 | char *kwnames[] = { | |
11036 | (char *) "self", NULL | |
11037 | }; | |
11038 | ||
11039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
11040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11042 | { | |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | delete arg1; | |
11045 | ||
11046 | wxPyEndAllowThreads(__tstate); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | } | |
11049 | Py_INCREF(Py_None); resultobj = Py_None; | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
c32bde28 | 11056 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11057 | PyObject *resultobj; |
11058 | wxDC *arg1 = (wxDC *) 0 ; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | char *kwnames[] = { | |
11061 | (char *) "self", NULL | |
11062 | }; | |
11063 | ||
11064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
11065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11067 | { | |
11068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11069 | (arg1)->BeginDrawing(); | |
11070 | ||
11071 | wxPyEndAllowThreads(__tstate); | |
11072 | if (PyErr_Occurred()) SWIG_fail; | |
11073 | } | |
11074 | Py_INCREF(Py_None); resultobj = Py_None; | |
11075 | return resultobj; | |
11076 | fail: | |
11077 | return NULL; | |
11078 | } | |
11079 | ||
11080 | ||
c32bde28 | 11081 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11082 | PyObject *resultobj; |
11083 | wxDC *arg1 = (wxDC *) 0 ; | |
11084 | PyObject * obj0 = 0 ; | |
11085 | char *kwnames[] = { | |
11086 | (char *) "self", NULL | |
11087 | }; | |
11088 | ||
11089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
11090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11092 | { | |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11094 | (arg1)->EndDrawing(); | |
11095 | ||
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | Py_INCREF(Py_None); resultobj = Py_None; | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
c32bde28 | 11106 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11107 | PyObject *resultobj; |
11108 | wxDC *arg1 = (wxDC *) 0 ; | |
11109 | int arg2 ; | |
11110 | int arg3 ; | |
11111 | wxColour *arg4 = 0 ; | |
11112 | int arg5 = (int) wxFLOOD_SURFACE ; | |
11113 | bool result; | |
11114 | wxColour temp4 ; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | PyObject * obj1 = 0 ; | |
11117 | PyObject * obj2 = 0 ; | |
11118 | PyObject * obj3 = 0 ; | |
11119 | PyObject * obj4 = 0 ; | |
11120 | char *kwnames[] = { | |
11121 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
11122 | }; | |
11123 | ||
c24da6d6 | 11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11127 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11128 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11129 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11130 | if (PyErr_Occurred()) SWIG_fail; |
11131 | { | |
11132 | arg4 = &temp4; | |
11133 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
11134 | } | |
11135 | if (obj4) { | |
c32bde28 | 11136 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11137 | if (PyErr_Occurred()) SWIG_fail; |
11138 | } | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
11142 | ||
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | { | |
11147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11148 | } | |
11149 | return resultobj; | |
11150 | fail: | |
11151 | return NULL; | |
11152 | } | |
11153 | ||
11154 | ||
c32bde28 | 11155 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11156 | PyObject *resultobj; |
11157 | wxDC *arg1 = (wxDC *) 0 ; | |
11158 | wxPoint *arg2 = 0 ; | |
11159 | wxColour *arg3 = 0 ; | |
11160 | int arg4 = (int) wxFLOOD_SURFACE ; | |
11161 | bool result; | |
11162 | wxPoint temp2 ; | |
11163 | wxColour temp3 ; | |
11164 | PyObject * obj0 = 0 ; | |
11165 | PyObject * obj1 = 0 ; | |
11166 | PyObject * obj2 = 0 ; | |
11167 | PyObject * obj3 = 0 ; | |
11168 | char *kwnames[] = { | |
11169 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
11170 | }; | |
11171 | ||
c24da6d6 | 11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11175 | { | |
11176 | arg2 = &temp2; | |
11177 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11178 | } | |
11179 | { | |
11180 | arg3 = &temp3; | |
11181 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11182 | } | |
11183 | if (obj3) { | |
c32bde28 | 11184 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11185 | if (PyErr_Occurred()) SWIG_fail; |
11186 | } | |
11187 | { | |
11188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11189 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
11190 | ||
11191 | wxPyEndAllowThreads(__tstate); | |
11192 | if (PyErr_Occurred()) SWIG_fail; | |
11193 | } | |
11194 | { | |
11195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11196 | } | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
c32bde28 | 11203 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11204 | PyObject *resultobj; |
11205 | wxDC *arg1 = (wxDC *) 0 ; | |
11206 | int arg2 ; | |
11207 | int arg3 ; | |
11208 | wxColour result; | |
11209 | PyObject * obj0 = 0 ; | |
11210 | PyObject * obj1 = 0 ; | |
11211 | PyObject * obj2 = 0 ; | |
11212 | char *kwnames[] = { | |
11213 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11214 | }; | |
11215 | ||
c24da6d6 | 11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11219 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11220 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11221 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11222 | if (PyErr_Occurred()) SWIG_fail; |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11225 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
11226 | |
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | { | |
11231 | wxColour * resultptr; | |
11232 | resultptr = new wxColour((wxColour &) result); | |
11233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11234 | } | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
c32bde28 | 11241 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11242 | PyObject *resultobj; |
11243 | wxDC *arg1 = (wxDC *) 0 ; | |
11244 | wxPoint *arg2 = 0 ; | |
11245 | wxColour result; | |
11246 | wxPoint temp2 ; | |
11247 | PyObject * obj0 = 0 ; | |
11248 | PyObject * obj1 = 0 ; | |
11249 | char *kwnames[] = { | |
11250 | (char *) "self",(char *) "pt", NULL | |
11251 | }; | |
11252 | ||
c24da6d6 | 11253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11256 | { | |
11257 | arg2 = &temp2; | |
11258 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11259 | } | |
11260 | { | |
11261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11262 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
11263 | |
11264 | wxPyEndAllowThreads(__tstate); | |
11265 | if (PyErr_Occurred()) SWIG_fail; | |
11266 | } | |
11267 | { | |
11268 | wxColour * resultptr; | |
11269 | resultptr = new wxColour((wxColour &) result); | |
11270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11271 | } | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
c32bde28 | 11278 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11279 | PyObject *resultobj; |
11280 | wxDC *arg1 = (wxDC *) 0 ; | |
11281 | int arg2 ; | |
11282 | int arg3 ; | |
11283 | int arg4 ; | |
11284 | int arg5 ; | |
11285 | PyObject * obj0 = 0 ; | |
11286 | PyObject * obj1 = 0 ; | |
11287 | PyObject * obj2 = 0 ; | |
11288 | PyObject * obj3 = 0 ; | |
11289 | PyObject * obj4 = 0 ; | |
11290 | char *kwnames[] = { | |
11291 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11292 | }; | |
11293 | ||
c24da6d6 | 11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11297 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11298 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11299 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11300 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11301 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11302 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11303 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11304 | if (PyErr_Occurred()) SWIG_fail; |
11305 | { | |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11308 | ||
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
11312 | Py_INCREF(Py_None); resultobj = Py_None; | |
11313 | return resultobj; | |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
c32bde28 | 11319 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11320 | PyObject *resultobj; |
11321 | wxDC *arg1 = (wxDC *) 0 ; | |
11322 | wxPoint *arg2 = 0 ; | |
11323 | wxPoint *arg3 = 0 ; | |
11324 | wxPoint temp2 ; | |
11325 | wxPoint temp3 ; | |
11326 | PyObject * obj0 = 0 ; | |
11327 | PyObject * obj1 = 0 ; | |
11328 | PyObject * obj2 = 0 ; | |
11329 | char *kwnames[] = { | |
11330 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11331 | }; | |
11332 | ||
c24da6d6 | 11333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11336 | { | |
11337 | arg2 = &temp2; | |
11338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11339 | } | |
11340 | { | |
11341 | arg3 = &temp3; | |
11342 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11343 | } | |
11344 | { | |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11346 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11347 | ||
11348 | wxPyEndAllowThreads(__tstate); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
11350 | } | |
11351 | Py_INCREF(Py_None); resultobj = Py_None; | |
11352 | return resultobj; | |
11353 | fail: | |
11354 | return NULL; | |
11355 | } | |
11356 | ||
11357 | ||
c32bde28 | 11358 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11359 | PyObject *resultobj; |
11360 | wxDC *arg1 = (wxDC *) 0 ; | |
11361 | int arg2 ; | |
11362 | int arg3 ; | |
11363 | PyObject * obj0 = 0 ; | |
11364 | PyObject * obj1 = 0 ; | |
11365 | PyObject * obj2 = 0 ; | |
11366 | char *kwnames[] = { | |
11367 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11368 | }; | |
11369 | ||
c24da6d6 | 11370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11373 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11374 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11375 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11376 | if (PyErr_Occurred()) SWIG_fail; |
11377 | { | |
11378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11379 | (arg1)->CrossHair(arg2,arg3); | |
11380 | ||
11381 | wxPyEndAllowThreads(__tstate); | |
11382 | if (PyErr_Occurred()) SWIG_fail; | |
11383 | } | |
11384 | Py_INCREF(Py_None); resultobj = Py_None; | |
11385 | return resultobj; | |
11386 | fail: | |
11387 | return NULL; | |
11388 | } | |
11389 | ||
11390 | ||
c32bde28 | 11391 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11392 | PyObject *resultobj; |
11393 | wxDC *arg1 = (wxDC *) 0 ; | |
11394 | wxPoint *arg2 = 0 ; | |
11395 | wxPoint temp2 ; | |
11396 | PyObject * obj0 = 0 ; | |
11397 | PyObject * obj1 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "self",(char *) "pt", NULL | |
11400 | }; | |
11401 | ||
c24da6d6 | 11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11405 | { | |
11406 | arg2 = &temp2; | |
11407 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11408 | } | |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
11416 | Py_INCREF(Py_None); resultobj = Py_None; | |
11417 | return resultobj; | |
11418 | fail: | |
11419 | return NULL; | |
11420 | } | |
11421 | ||
11422 | ||
c32bde28 | 11423 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11424 | PyObject *resultobj; |
11425 | wxDC *arg1 = (wxDC *) 0 ; | |
11426 | int arg2 ; | |
11427 | int arg3 ; | |
11428 | int arg4 ; | |
11429 | int arg5 ; | |
11430 | int arg6 ; | |
11431 | int arg7 ; | |
11432 | PyObject * obj0 = 0 ; | |
11433 | PyObject * obj1 = 0 ; | |
11434 | PyObject * obj2 = 0 ; | |
11435 | PyObject * obj3 = 0 ; | |
11436 | PyObject * obj4 = 0 ; | |
11437 | PyObject * obj5 = 0 ; | |
11438 | PyObject * obj6 = 0 ; | |
11439 | char *kwnames[] = { | |
11440 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11441 | }; | |
11442 | ||
c24da6d6 | 11443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11446 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11447 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11448 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11449 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11450 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11451 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11452 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11453 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11454 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 11455 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11456 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11457 | if (PyErr_Occurred()) SWIG_fail; |
11458 | { | |
11459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11460 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11461 | ||
11462 | wxPyEndAllowThreads(__tstate); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | } | |
11465 | Py_INCREF(Py_None); resultobj = Py_None; | |
11466 | return resultobj; | |
11467 | fail: | |
11468 | return NULL; | |
11469 | } | |
11470 | ||
11471 | ||
c32bde28 | 11472 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11473 | PyObject *resultobj; |
11474 | wxDC *arg1 = (wxDC *) 0 ; | |
11475 | wxPoint *arg2 = 0 ; | |
11476 | wxPoint *arg3 = 0 ; | |
11477 | wxPoint *arg4 = 0 ; | |
11478 | wxPoint temp2 ; | |
11479 | wxPoint temp3 ; | |
11480 | wxPoint temp4 ; | |
11481 | PyObject * obj0 = 0 ; | |
11482 | PyObject * obj1 = 0 ; | |
11483 | PyObject * obj2 = 0 ; | |
11484 | PyObject * obj3 = 0 ; | |
11485 | char *kwnames[] = { | |
f5b96ee1 | 11486 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d55e5bfc RD |
11487 | }; |
11488 | ||
c24da6d6 | 11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11492 | { | |
11493 | arg2 = &temp2; | |
11494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11495 | } | |
11496 | { | |
11497 | arg3 = &temp3; | |
11498 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11499 | } | |
11500 | { | |
11501 | arg4 = &temp4; | |
11502 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11503 | } | |
11504 | { | |
11505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11506 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11507 | ||
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
11511 | Py_INCREF(Py_None); resultobj = Py_None; | |
11512 | return resultobj; | |
11513 | fail: | |
11514 | return NULL; | |
11515 | } | |
11516 | ||
11517 | ||
c32bde28 | 11518 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11519 | PyObject *resultobj; |
11520 | wxDC *arg1 = (wxDC *) 0 ; | |
11521 | int arg2 ; | |
11522 | int arg3 ; | |
11523 | int arg4 ; | |
11524 | int arg5 ; | |
11525 | PyObject * obj0 = 0 ; | |
11526 | PyObject * obj1 = 0 ; | |
11527 | PyObject * obj2 = 0 ; | |
11528 | PyObject * obj3 = 0 ; | |
11529 | PyObject * obj4 = 0 ; | |
11530 | char *kwnames[] = { | |
11531 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11532 | }; | |
11533 | ||
c24da6d6 | 11534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11537 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11538 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11539 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11540 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11541 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11542 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11543 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11544 | if (PyErr_Occurred()) SWIG_fail; |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11548 | ||
11549 | wxPyEndAllowThreads(__tstate); | |
11550 | if (PyErr_Occurred()) SWIG_fail; | |
11551 | } | |
11552 | Py_INCREF(Py_None); resultobj = Py_None; | |
11553 | return resultobj; | |
11554 | fail: | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
c32bde28 | 11559 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11560 | PyObject *resultobj; |
11561 | wxDC *arg1 = (wxDC *) 0 ; | |
11562 | wxRect *arg2 = 0 ; | |
11563 | wxRect temp2 ; | |
11564 | PyObject * obj0 = 0 ; | |
11565 | PyObject * obj1 = 0 ; | |
11566 | char *kwnames[] = { | |
11567 | (char *) "self",(char *) "rect", NULL | |
11568 | }; | |
11569 | ||
c24da6d6 | 11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11573 | { | |
11574 | arg2 = &temp2; | |
11575 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11576 | } | |
11577 | { | |
11578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11579 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11580 | ||
11581 | wxPyEndAllowThreads(__tstate); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | } | |
11584 | Py_INCREF(Py_None); resultobj = Py_None; | |
11585 | return resultobj; | |
11586 | fail: | |
11587 | return NULL; | |
11588 | } | |
11589 | ||
11590 | ||
c32bde28 | 11591 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11592 | PyObject *resultobj; |
11593 | wxDC *arg1 = (wxDC *) 0 ; | |
11594 | int arg2 ; | |
11595 | int arg3 ; | |
11596 | int arg4 ; | |
11597 | int arg5 ; | |
11598 | double arg6 ; | |
11599 | double arg7 ; | |
11600 | PyObject * obj0 = 0 ; | |
11601 | PyObject * obj1 = 0 ; | |
11602 | PyObject * obj2 = 0 ; | |
11603 | PyObject * obj3 = 0 ; | |
11604 | PyObject * obj4 = 0 ; | |
11605 | PyObject * obj5 = 0 ; | |
11606 | PyObject * obj6 = 0 ; | |
11607 | char *kwnames[] = { | |
f5b96ee1 | 11608 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11609 | }; |
11610 | ||
c24da6d6 | 11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11614 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11615 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11616 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11617 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11618 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11619 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11620 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11621 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11622 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc | 11623 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11624 | arg7 = (double)SWIG_As_double(obj6); |
d55e5bfc RD |
11625 | if (PyErr_Occurred()) SWIG_fail; |
11626 | { | |
11627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11628 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
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_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11641 | PyObject *resultobj; |
11642 | wxDC *arg1 = (wxDC *) 0 ; | |
11643 | wxPoint *arg2 = 0 ; | |
11644 | wxSize *arg3 = 0 ; | |
11645 | double arg4 ; | |
11646 | double arg5 ; | |
11647 | wxPoint temp2 ; | |
11648 | wxSize temp3 ; | |
11649 | PyObject * obj0 = 0 ; | |
11650 | PyObject * obj1 = 0 ; | |
11651 | PyObject * obj2 = 0 ; | |
11652 | PyObject * obj3 = 0 ; | |
11653 | PyObject * obj4 = 0 ; | |
11654 | char *kwnames[] = { | |
f5b96ee1 | 11655 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11656 | }; |
11657 | ||
c24da6d6 | 11658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11661 | { | |
11662 | arg2 = &temp2; | |
11663 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11664 | } | |
11665 | { | |
11666 | arg3 = &temp3; | |
11667 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11668 | } | |
c32bde28 | 11669 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc | 11670 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11671 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
11672 | if (PyErr_Occurred()) SWIG_fail; |
11673 | { | |
11674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11675 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11676 | ||
11677 | wxPyEndAllowThreads(__tstate); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | Py_INCREF(Py_None); resultobj = Py_None; | |
11681 | return resultobj; | |
11682 | fail: | |
11683 | return NULL; | |
11684 | } | |
11685 | ||
11686 | ||
c32bde28 | 11687 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11688 | PyObject *resultobj; |
11689 | wxDC *arg1 = (wxDC *) 0 ; | |
11690 | int arg2 ; | |
11691 | int arg3 ; | |
11692 | PyObject * obj0 = 0 ; | |
11693 | PyObject * obj1 = 0 ; | |
11694 | PyObject * obj2 = 0 ; | |
11695 | char *kwnames[] = { | |
11696 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11697 | }; | |
11698 | ||
c24da6d6 | 11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11702 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11703 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11704 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11705 | if (PyErr_Occurred()) SWIG_fail; |
11706 | { | |
11707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11708 | (arg1)->DrawPoint(arg2,arg3); | |
11709 | ||
11710 | wxPyEndAllowThreads(__tstate); | |
11711 | if (PyErr_Occurred()) SWIG_fail; | |
11712 | } | |
11713 | Py_INCREF(Py_None); resultobj = Py_None; | |
11714 | return resultobj; | |
11715 | fail: | |
11716 | return NULL; | |
11717 | } | |
11718 | ||
11719 | ||
c32bde28 | 11720 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11721 | PyObject *resultobj; |
11722 | wxDC *arg1 = (wxDC *) 0 ; | |
11723 | wxPoint *arg2 = 0 ; | |
11724 | wxPoint temp2 ; | |
11725 | PyObject * obj0 = 0 ; | |
11726 | PyObject * obj1 = 0 ; | |
11727 | char *kwnames[] = { | |
11728 | (char *) "self",(char *) "pt", NULL | |
11729 | }; | |
11730 | ||
c24da6d6 | 11731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11734 | { | |
11735 | arg2 = &temp2; | |
11736 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11737 | } | |
11738 | { | |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11741 | ||
11742 | wxPyEndAllowThreads(__tstate); | |
11743 | if (PyErr_Occurred()) SWIG_fail; | |
11744 | } | |
11745 | Py_INCREF(Py_None); resultobj = Py_None; | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | return NULL; | |
11749 | } | |
11750 | ||
11751 | ||
c32bde28 | 11752 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11753 | PyObject *resultobj; |
11754 | wxDC *arg1 = (wxDC *) 0 ; | |
11755 | int arg2 ; | |
11756 | int arg3 ; | |
11757 | int arg4 ; | |
11758 | int arg5 ; | |
11759 | PyObject * obj0 = 0 ; | |
11760 | PyObject * obj1 = 0 ; | |
11761 | PyObject * obj2 = 0 ; | |
11762 | PyObject * obj3 = 0 ; | |
11763 | PyObject * obj4 = 0 ; | |
11764 | char *kwnames[] = { | |
11765 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11766 | }; | |
11767 | ||
c24da6d6 | 11768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11771 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11772 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11773 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11774 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11775 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11776 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11777 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11778 | if (PyErr_Occurred()) SWIG_fail; |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11782 | ||
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | Py_INCREF(Py_None); resultobj = Py_None; | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
c32bde28 | 11793 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11794 | PyObject *resultobj; |
11795 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11796 | wxRect *arg2 = 0 ; |
11797 | wxRect temp2 ; | |
d55e5bfc RD |
11798 | PyObject * obj0 = 0 ; |
11799 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11800 | char *kwnames[] = { |
c24da6d6 | 11801 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11802 | }; |
11803 | ||
c24da6d6 | 11804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11807 | { | |
11808 | arg2 = &temp2; | |
c24da6d6 | 11809 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11810 | } |
11811 | { | |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11813 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
11814 | |
11815 | wxPyEndAllowThreads(__tstate); | |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
11817 | } | |
11818 | Py_INCREF(Py_None); resultobj = Py_None; | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
c32bde28 | 11825 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11826 | PyObject *resultobj; |
11827 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11828 | wxPoint *arg2 = 0 ; |
11829 | wxSize *arg3 = 0 ; | |
11830 | wxPoint temp2 ; | |
11831 | wxSize temp3 ; | |
d55e5bfc RD |
11832 | PyObject * obj0 = 0 ; |
11833 | PyObject * obj1 = 0 ; | |
c24da6d6 | 11834 | PyObject * obj2 = 0 ; |
d55e5bfc | 11835 | char *kwnames[] = { |
c24da6d6 | 11836 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11837 | }; |
11838 | ||
c24da6d6 | 11839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11842 | { | |
11843 | arg2 = &temp2; | |
c24da6d6 RD |
11844 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11845 | } | |
11846 | { | |
11847 | arg3 = &temp3; | |
11848 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11849 | } |
11850 | { | |
11851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11852 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11853 | |
11854 | wxPyEndAllowThreads(__tstate); | |
11855 | if (PyErr_Occurred()) SWIG_fail; | |
11856 | } | |
11857 | Py_INCREF(Py_None); resultobj = Py_None; | |
11858 | return resultobj; | |
11859 | fail: | |
11860 | return NULL; | |
11861 | } | |
11862 | ||
11863 | ||
c32bde28 | 11864 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11865 | PyObject *resultobj; |
11866 | wxDC *arg1 = (wxDC *) 0 ; | |
11867 | int arg2 ; | |
11868 | int arg3 ; | |
11869 | int arg4 ; | |
11870 | int arg5 ; | |
11871 | double arg6 ; | |
11872 | PyObject * obj0 = 0 ; | |
11873 | PyObject * obj1 = 0 ; | |
11874 | PyObject * obj2 = 0 ; | |
11875 | PyObject * obj3 = 0 ; | |
11876 | PyObject * obj4 = 0 ; | |
11877 | PyObject * obj5 = 0 ; | |
11878 | char *kwnames[] = { | |
11879 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11880 | }; | |
11881 | ||
c24da6d6 | 11882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
11883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11886 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11887 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11888 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11889 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11890 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11891 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11892 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11893 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc RD |
11894 | if (PyErr_Occurred()) SWIG_fail; |
11895 | { | |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | Py_INCREF(Py_None); resultobj = Py_None; | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
c32bde28 | 11909 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11910 | PyObject *resultobj; |
11911 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11912 | wxRect *arg2 = 0 ; |
11913 | double arg3 ; | |
11914 | wxRect temp2 ; | |
d55e5bfc RD |
11915 | PyObject * obj0 = 0 ; |
11916 | PyObject * obj1 = 0 ; | |
11917 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11918 | char *kwnames[] = { |
c24da6d6 | 11919 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
11920 | }; |
11921 | ||
c24da6d6 | 11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11925 | { | |
11926 | arg2 = &temp2; | |
c24da6d6 | 11927 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11928 | } |
c32bde28 | 11929 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
11930 | if (PyErr_Occurred()) SWIG_fail; |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11933 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
11934 | |
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | Py_INCREF(Py_None); resultobj = Py_None; | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
c32bde28 | 11945 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11946 | PyObject *resultobj; |
11947 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11948 | wxPoint *arg2 = 0 ; |
11949 | wxSize *arg3 = 0 ; | |
11950 | double arg4 ; | |
11951 | wxPoint temp2 ; | |
11952 | wxSize temp3 ; | |
d55e5bfc RD |
11953 | PyObject * obj0 = 0 ; |
11954 | PyObject * obj1 = 0 ; | |
11955 | PyObject * obj2 = 0 ; | |
c24da6d6 | 11956 | PyObject * obj3 = 0 ; |
d55e5bfc | 11957 | char *kwnames[] = { |
c24da6d6 | 11958 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
11959 | }; |
11960 | ||
c24da6d6 | 11961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11964 | { | |
11965 | arg2 = &temp2; | |
c24da6d6 | 11966 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11967 | } |
c24da6d6 RD |
11968 | { |
11969 | arg3 = &temp3; | |
11970 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11971 | } | |
c32bde28 | 11972 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
11973 | if (PyErr_Occurred()) SWIG_fail; |
11974 | { | |
11975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11976 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
11977 | |
11978 | wxPyEndAllowThreads(__tstate); | |
11979 | if (PyErr_Occurred()) SWIG_fail; | |
11980 | } | |
11981 | Py_INCREF(Py_None); resultobj = Py_None; | |
11982 | return resultobj; | |
11983 | fail: | |
11984 | return NULL; | |
11985 | } | |
11986 | ||
11987 | ||
c32bde28 | 11988 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11989 | PyObject *resultobj; |
11990 | wxDC *arg1 = (wxDC *) 0 ; | |
11991 | int arg2 ; | |
11992 | int arg3 ; | |
11993 | int arg4 ; | |
11994 | PyObject * obj0 = 0 ; | |
11995 | PyObject * obj1 = 0 ; | |
11996 | PyObject * obj2 = 0 ; | |
11997 | PyObject * obj3 = 0 ; | |
11998 | char *kwnames[] = { | |
11999 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
12000 | }; | |
12001 | ||
c24da6d6 | 12002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12005 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12006 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12007 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12008 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12009 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12010 | if (PyErr_Occurred()) SWIG_fail; |
12011 | { | |
12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12013 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
12014 | ||
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
12018 | Py_INCREF(Py_None); resultobj = Py_None; | |
12019 | return resultobj; | |
12020 | fail: | |
12021 | return NULL; | |
12022 | } | |
12023 | ||
12024 | ||
c32bde28 | 12025 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12026 | PyObject *resultobj; |
12027 | wxDC *arg1 = (wxDC *) 0 ; | |
12028 | wxPoint *arg2 = 0 ; | |
12029 | int arg3 ; | |
12030 | wxPoint temp2 ; | |
12031 | PyObject * obj0 = 0 ; | |
12032 | PyObject * obj1 = 0 ; | |
12033 | PyObject * obj2 = 0 ; | |
12034 | char *kwnames[] = { | |
12035 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
12036 | }; | |
12037 | ||
c24da6d6 | 12038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12041 | { | |
12042 | arg2 = &temp2; | |
12043 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12044 | } | |
c32bde28 | 12045 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12046 | if (PyErr_Occurred()) SWIG_fail; |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | Py_INCREF(Py_None); resultobj = Py_None; | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
c32bde28 | 12061 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12062 | PyObject *resultobj; |
12063 | wxDC *arg1 = (wxDC *) 0 ; | |
12064 | int arg2 ; | |
12065 | int arg3 ; | |
12066 | int arg4 ; | |
12067 | int arg5 ; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | PyObject * obj2 = 0 ; | |
12071 | PyObject * obj3 = 0 ; | |
12072 | PyObject * obj4 = 0 ; | |
12073 | char *kwnames[] = { | |
12074 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12075 | }; | |
12076 | ||
c24da6d6 | 12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12080 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12081 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12082 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12083 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12084 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12085 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12086 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12087 | if (PyErr_Occurred()) SWIG_fail; |
12088 | { | |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | Py_INCREF(Py_None); resultobj = Py_None; | |
12096 | return resultobj; | |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
c32bde28 | 12102 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12103 | PyObject *resultobj; |
12104 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12105 | wxRect *arg2 = 0 ; |
12106 | wxRect temp2 ; | |
d55e5bfc RD |
12107 | PyObject * obj0 = 0 ; |
12108 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12109 | char *kwnames[] = { |
c24da6d6 | 12110 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
12111 | }; |
12112 | ||
c24da6d6 | 12113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12116 | { | |
12117 | arg2 = &temp2; | |
c24da6d6 | 12118 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
12119 | } |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12122 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
12123 | |
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | Py_INCREF(Py_None); resultobj = Py_None; | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
c32bde28 | 12134 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12135 | PyObject *resultobj; |
12136 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12137 | wxPoint *arg2 = 0 ; |
12138 | wxSize *arg3 = 0 ; | |
12139 | wxPoint temp2 ; | |
12140 | wxSize temp3 ; | |
d55e5bfc RD |
12141 | PyObject * obj0 = 0 ; |
12142 | PyObject * obj1 = 0 ; | |
c24da6d6 | 12143 | PyObject * obj2 = 0 ; |
d55e5bfc | 12144 | char *kwnames[] = { |
c24da6d6 | 12145 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
12146 | }; |
12147 | ||
c24da6d6 | 12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | arg2 = &temp2; | |
c24da6d6 RD |
12153 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12154 | } | |
12155 | { | |
12156 | arg3 = &temp3; | |
12157 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12158 | } |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12161 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
12162 | |
12163 | wxPyEndAllowThreads(__tstate); | |
12164 | if (PyErr_Occurred()) SWIG_fail; | |
12165 | } | |
12166 | Py_INCREF(Py_None); resultobj = Py_None; | |
12167 | return resultobj; | |
12168 | fail: | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
c32bde28 | 12173 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12174 | PyObject *resultobj; |
12175 | wxDC *arg1 = (wxDC *) 0 ; | |
12176 | wxIcon *arg2 = 0 ; | |
12177 | int arg3 ; | |
12178 | int arg4 ; | |
12179 | PyObject * obj0 = 0 ; | |
12180 | PyObject * obj1 = 0 ; | |
12181 | PyObject * obj2 = 0 ; | |
12182 | PyObject * obj3 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
12185 | }; | |
12186 | ||
c24da6d6 | 12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12192 | SWIG_fail; | |
12193 | if (arg2 == NULL) { | |
12194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12195 | SWIG_fail; | |
12196 | } | |
c32bde28 | 12197 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12198 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12199 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12200 | if (PyErr_Occurred()) SWIG_fail; |
12201 | { | |
12202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12203 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
12204 | ||
12205 | wxPyEndAllowThreads(__tstate); | |
12206 | if (PyErr_Occurred()) SWIG_fail; | |
12207 | } | |
12208 | Py_INCREF(Py_None); resultobj = Py_None; | |
12209 | return resultobj; | |
12210 | fail: | |
12211 | return NULL; | |
12212 | } | |
12213 | ||
12214 | ||
c32bde28 | 12215 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12216 | PyObject *resultobj; |
12217 | wxDC *arg1 = (wxDC *) 0 ; | |
12218 | wxIcon *arg2 = 0 ; | |
12219 | wxPoint *arg3 = 0 ; | |
12220 | wxPoint temp3 ; | |
12221 | PyObject * obj0 = 0 ; | |
12222 | PyObject * obj1 = 0 ; | |
12223 | PyObject * obj2 = 0 ; | |
12224 | char *kwnames[] = { | |
12225 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
12226 | }; | |
12227 | ||
c24da6d6 | 12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12233 | SWIG_fail; | |
12234 | if (arg2 == NULL) { | |
12235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12236 | SWIG_fail; | |
12237 | } | |
12238 | { | |
12239 | arg3 = &temp3; | |
12240 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12241 | } | |
12242 | { | |
12243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12244 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
12245 | ||
12246 | wxPyEndAllowThreads(__tstate); | |
12247 | if (PyErr_Occurred()) SWIG_fail; | |
12248 | } | |
12249 | Py_INCREF(Py_None); resultobj = Py_None; | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | return NULL; | |
12253 | } | |
12254 | ||
12255 | ||
c32bde28 | 12256 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12257 | PyObject *resultobj; |
12258 | wxDC *arg1 = (wxDC *) 0 ; | |
12259 | wxBitmap *arg2 = 0 ; | |
12260 | int arg3 ; | |
12261 | int arg4 ; | |
12262 | bool arg5 = (bool) False ; | |
12263 | PyObject * obj0 = 0 ; | |
12264 | PyObject * obj1 = 0 ; | |
12265 | PyObject * obj2 = 0 ; | |
12266 | PyObject * obj3 = 0 ; | |
12267 | PyObject * obj4 = 0 ; | |
12268 | char *kwnames[] = { | |
12269 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
12270 | }; | |
12271 | ||
c24da6d6 | 12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12277 | SWIG_fail; | |
12278 | if (arg2 == NULL) { | |
12279 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12280 | SWIG_fail; | |
12281 | } | |
c32bde28 | 12282 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12283 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12284 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12285 | if (PyErr_Occurred()) SWIG_fail; |
12286 | if (obj4) { | |
c32bde28 | 12287 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
12288 | if (PyErr_Occurred()) SWIG_fail; |
12289 | } | |
12290 | { | |
12291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12292 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12293 | ||
12294 | wxPyEndAllowThreads(__tstate); | |
12295 | if (PyErr_Occurred()) SWIG_fail; | |
12296 | } | |
12297 | Py_INCREF(Py_None); resultobj = Py_None; | |
12298 | return resultobj; | |
12299 | fail: | |
12300 | return NULL; | |
12301 | } | |
12302 | ||
12303 | ||
c32bde28 | 12304 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12305 | PyObject *resultobj; |
12306 | wxDC *arg1 = (wxDC *) 0 ; | |
12307 | wxBitmap *arg2 = 0 ; | |
12308 | wxPoint *arg3 = 0 ; | |
12309 | bool arg4 = (bool) False ; | |
12310 | wxPoint temp3 ; | |
12311 | PyObject * obj0 = 0 ; | |
12312 | PyObject * obj1 = 0 ; | |
12313 | PyObject * obj2 = 0 ; | |
12314 | PyObject * obj3 = 0 ; | |
12315 | char *kwnames[] = { | |
12316 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12317 | }; | |
12318 | ||
c24da6d6 | 12319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12322 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12324 | SWIG_fail; | |
12325 | if (arg2 == NULL) { | |
12326 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12327 | SWIG_fail; | |
12328 | } | |
12329 | { | |
12330 | arg3 = &temp3; | |
12331 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12332 | } | |
12333 | if (obj3) { | |
c32bde28 | 12334 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
12335 | if (PyErr_Occurred()) SWIG_fail; |
12336 | } | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | Py_INCREF(Py_None); resultobj = Py_None; | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
c32bde28 | 12351 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12352 | PyObject *resultobj; |
12353 | wxDC *arg1 = (wxDC *) 0 ; | |
12354 | wxString *arg2 = 0 ; | |
12355 | int arg3 ; | |
12356 | int arg4 ; | |
12357 | bool temp2 = False ; | |
12358 | PyObject * obj0 = 0 ; | |
12359 | PyObject * obj1 = 0 ; | |
12360 | PyObject * obj2 = 0 ; | |
12361 | PyObject * obj3 = 0 ; | |
12362 | char *kwnames[] = { | |
12363 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12364 | }; | |
12365 | ||
c24da6d6 | 12366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12369 | { | |
12370 | arg2 = wxString_in_helper(obj1); | |
12371 | if (arg2 == NULL) SWIG_fail; | |
12372 | temp2 = True; | |
12373 | } | |
c32bde28 | 12374 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12375 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12376 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12377 | if (PyErr_Occurred()) SWIG_fail; |
12378 | { | |
12379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12380 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12381 | ||
12382 | wxPyEndAllowThreads(__tstate); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | } | |
12385 | Py_INCREF(Py_None); resultobj = Py_None; | |
12386 | { | |
12387 | if (temp2) | |
12388 | delete arg2; | |
12389 | } | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | { | |
12393 | if (temp2) | |
12394 | delete arg2; | |
12395 | } | |
12396 | return NULL; | |
12397 | } | |
12398 | ||
12399 | ||
c32bde28 | 12400 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12401 | PyObject *resultobj; |
12402 | wxDC *arg1 = (wxDC *) 0 ; | |
12403 | wxString *arg2 = 0 ; | |
12404 | wxPoint *arg3 = 0 ; | |
12405 | bool temp2 = False ; | |
12406 | wxPoint temp3 ; | |
12407 | PyObject * obj0 = 0 ; | |
12408 | PyObject * obj1 = 0 ; | |
12409 | PyObject * obj2 = 0 ; | |
12410 | char *kwnames[] = { | |
12411 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12412 | }; | |
12413 | ||
c24da6d6 | 12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12417 | { | |
12418 | arg2 = wxString_in_helper(obj1); | |
12419 | if (arg2 == NULL) SWIG_fail; | |
12420 | temp2 = True; | |
12421 | } | |
12422 | { | |
12423 | arg3 = &temp3; | |
12424 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12425 | } | |
12426 | { | |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12429 | ||
12430 | wxPyEndAllowThreads(__tstate); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
12433 | Py_INCREF(Py_None); resultobj = Py_None; | |
12434 | { | |
12435 | if (temp2) | |
12436 | delete arg2; | |
12437 | } | |
12438 | return resultobj; | |
12439 | fail: | |
12440 | { | |
12441 | if (temp2) | |
12442 | delete arg2; | |
12443 | } | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
c32bde28 | 12448 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12449 | PyObject *resultobj; |
12450 | wxDC *arg1 = (wxDC *) 0 ; | |
12451 | wxString *arg2 = 0 ; | |
12452 | int arg3 ; | |
12453 | int arg4 ; | |
12454 | double arg5 ; | |
12455 | bool temp2 = False ; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | PyObject * obj1 = 0 ; | |
12458 | PyObject * obj2 = 0 ; | |
12459 | PyObject * obj3 = 0 ; | |
12460 | PyObject * obj4 = 0 ; | |
12461 | char *kwnames[] = { | |
12462 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12463 | }; | |
12464 | ||
c24da6d6 | 12465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12468 | { | |
12469 | arg2 = wxString_in_helper(obj1); | |
12470 | if (arg2 == NULL) SWIG_fail; | |
12471 | temp2 = True; | |
12472 | } | |
c32bde28 | 12473 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12474 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12475 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12476 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12477 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
12478 | if (PyErr_Occurred()) SWIG_fail; |
12479 | { | |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12481 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12482 | ||
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | Py_INCREF(Py_None); resultobj = Py_None; | |
12487 | { | |
12488 | if (temp2) | |
12489 | delete arg2; | |
12490 | } | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | { | |
12494 | if (temp2) | |
12495 | delete arg2; | |
12496 | } | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
c32bde28 | 12501 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12502 | PyObject *resultobj; |
12503 | wxDC *arg1 = (wxDC *) 0 ; | |
12504 | wxString *arg2 = 0 ; | |
12505 | wxPoint *arg3 = 0 ; | |
12506 | double arg4 ; | |
12507 | bool temp2 = False ; | |
12508 | wxPoint temp3 ; | |
12509 | PyObject * obj0 = 0 ; | |
12510 | PyObject * obj1 = 0 ; | |
12511 | PyObject * obj2 = 0 ; | |
12512 | PyObject * obj3 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12515 | }; | |
12516 | ||
c24da6d6 | 12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12520 | { | |
12521 | arg2 = wxString_in_helper(obj1); | |
12522 | if (arg2 == NULL) SWIG_fail; | |
12523 | temp2 = True; | |
12524 | } | |
12525 | { | |
12526 | arg3 = &temp3; | |
12527 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12528 | } | |
c32bde28 | 12529 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
12530 | if (PyErr_Occurred()) SWIG_fail; |
12531 | { | |
12532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12533 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12534 | ||
12535 | wxPyEndAllowThreads(__tstate); | |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
12537 | } | |
12538 | Py_INCREF(Py_None); resultobj = Py_None; | |
12539 | { | |
12540 | if (temp2) | |
12541 | delete arg2; | |
12542 | } | |
12543 | return resultobj; | |
12544 | fail: | |
12545 | { | |
12546 | if (temp2) | |
12547 | delete arg2; | |
12548 | } | |
12549 | return NULL; | |
12550 | } | |
12551 | ||
12552 | ||
c32bde28 | 12553 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12554 | PyObject *resultobj; |
12555 | wxDC *arg1 = (wxDC *) 0 ; | |
12556 | int arg2 ; | |
12557 | int arg3 ; | |
12558 | int arg4 ; | |
12559 | int arg5 ; | |
12560 | wxDC *arg6 = (wxDC *) 0 ; | |
12561 | int arg7 ; | |
12562 | int arg8 ; | |
12563 | int arg9 = (int) wxCOPY ; | |
12564 | bool arg10 = (bool) False ; | |
12565 | int arg11 = (int) -1 ; | |
12566 | int arg12 = (int) -1 ; | |
12567 | bool result; | |
12568 | PyObject * obj0 = 0 ; | |
12569 | PyObject * obj1 = 0 ; | |
12570 | PyObject * obj2 = 0 ; | |
12571 | PyObject * obj3 = 0 ; | |
12572 | PyObject * obj4 = 0 ; | |
12573 | PyObject * obj5 = 0 ; | |
12574 | PyObject * obj6 = 0 ; | |
12575 | PyObject * obj7 = 0 ; | |
12576 | PyObject * obj8 = 0 ; | |
12577 | PyObject * obj9 = 0 ; | |
12578 | PyObject * obj10 = 0 ; | |
12579 | PyObject * obj11 = 0 ; | |
12580 | char *kwnames[] = { | |
12581 | (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 | |
12582 | }; | |
12583 | ||
c24da6d6 | 12584 | 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 |
12585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12587 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12588 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12589 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12590 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12591 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12592 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12593 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12594 | if (PyErr_Occurred()) SWIG_fail; |
12595 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12597 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc | 12598 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12599 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
12600 | if (PyErr_Occurred()) SWIG_fail; |
12601 | if (obj8) { | |
c32bde28 | 12602 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
12603 | if (PyErr_Occurred()) SWIG_fail; |
12604 | } | |
12605 | if (obj9) { | |
c32bde28 | 12606 | arg10 = (bool)SWIG_As_bool(obj9); |
d55e5bfc RD |
12607 | if (PyErr_Occurred()) SWIG_fail; |
12608 | } | |
12609 | if (obj10) { | |
c32bde28 | 12610 | arg11 = (int)SWIG_As_int(obj10); |
d55e5bfc RD |
12611 | if (PyErr_Occurred()) SWIG_fail; |
12612 | } | |
12613 | if (obj11) { | |
c32bde28 | 12614 | arg12 = (int)SWIG_As_int(obj11); |
d55e5bfc RD |
12615 | if (PyErr_Occurred()) SWIG_fail; |
12616 | } | |
12617 | { | |
12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12619 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12620 | ||
12621 | wxPyEndAllowThreads(__tstate); | |
12622 | if (PyErr_Occurred()) SWIG_fail; | |
12623 | } | |
12624 | { | |
12625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12626 | } | |
12627 | return resultobj; | |
12628 | fail: | |
12629 | return NULL; | |
12630 | } | |
12631 | ||
12632 | ||
c32bde28 | 12633 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12634 | PyObject *resultobj; |
12635 | wxDC *arg1 = (wxDC *) 0 ; | |
12636 | wxPoint *arg2 = 0 ; | |
12637 | wxSize *arg3 = 0 ; | |
12638 | wxDC *arg4 = (wxDC *) 0 ; | |
12639 | wxPoint *arg5 = 0 ; | |
12640 | int arg6 = (int) wxCOPY ; | |
12641 | bool arg7 = (bool) False ; | |
12642 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
12643 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12644 | bool result; | |
12645 | wxPoint temp2 ; | |
12646 | wxSize temp3 ; | |
12647 | wxPoint temp5 ; | |
12648 | wxPoint temp8 ; | |
12649 | PyObject * obj0 = 0 ; | |
12650 | PyObject * obj1 = 0 ; | |
12651 | PyObject * obj2 = 0 ; | |
12652 | PyObject * obj3 = 0 ; | |
12653 | PyObject * obj4 = 0 ; | |
12654 | PyObject * obj5 = 0 ; | |
12655 | PyObject * obj6 = 0 ; | |
12656 | PyObject * obj7 = 0 ; | |
12657 | char *kwnames[] = { | |
12658 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12659 | }; | |
12660 | ||
c24da6d6 | 12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12664 | { | |
12665 | arg2 = &temp2; | |
12666 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12667 | } | |
12668 | { | |
12669 | arg3 = &temp3; | |
12670 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12671 | } | |
12672 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12674 | { | |
12675 | arg5 = &temp5; | |
12676 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12677 | } | |
12678 | if (obj5) { | |
c32bde28 | 12679 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
12680 | if (PyErr_Occurred()) SWIG_fail; |
12681 | } | |
12682 | if (obj6) { | |
c32bde28 | 12683 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
12684 | if (PyErr_Occurred()) SWIG_fail; |
12685 | } | |
12686 | if (obj7) { | |
12687 | { | |
12688 | arg8 = &temp8; | |
12689 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12690 | } | |
12691 | } | |
12692 | { | |
12693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 RD |
12694 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
12695 | ||
12696 | wxPyEndAllowThreads(__tstate); | |
12697 | if (PyErr_Occurred()) SWIG_fail; | |
12698 | } | |
12699 | { | |
12700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12701 | } | |
12702 | return resultobj; | |
12703 | fail: | |
12704 | return NULL; | |
12705 | } | |
12706 | ||
12707 | ||
c32bde28 | 12708 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
12709 | PyObject *resultobj; |
12710 | wxDC *arg1 = (wxDC *) 0 ; | |
12711 | int arg2 ; | |
12712 | int arg3 ; | |
12713 | int arg4 ; | |
12714 | int arg5 ; | |
12715 | PyObject * obj0 = 0 ; | |
12716 | PyObject * obj1 = 0 ; | |
12717 | PyObject * obj2 = 0 ; | |
12718 | PyObject * obj3 = 0 ; | |
12719 | PyObject * obj4 = 0 ; | |
12720 | char *kwnames[] = { | |
12721 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12722 | }; | |
12723 | ||
12724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12727 | arg2 = (int)SWIG_As_int(obj1); |
c24da6d6 | 12728 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12729 | arg3 = (int)SWIG_As_int(obj2); |
c24da6d6 | 12730 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12731 | arg4 = (int)SWIG_As_int(obj3); |
c24da6d6 | 12732 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12733 | arg5 = (int)SWIG_As_int(obj4); |
c24da6d6 RD |
12734 | if (PyErr_Occurred()) SWIG_fail; |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12738 | ||
12739 | wxPyEndAllowThreads(__tstate); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
12742 | Py_INCREF(Py_None); resultobj = Py_None; | |
12743 | return resultobj; | |
12744 | fail: | |
12745 | return NULL; | |
12746 | } | |
12747 | ||
12748 | ||
c32bde28 | 12749 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
12750 | PyObject *resultobj; |
12751 | wxDC *arg1 = (wxDC *) 0 ; | |
12752 | wxPoint *arg2 = 0 ; | |
12753 | wxSize *arg3 = 0 ; | |
12754 | wxPoint temp2 ; | |
12755 | wxSize temp3 ; | |
12756 | PyObject * obj0 = 0 ; | |
12757 | PyObject * obj1 = 0 ; | |
12758 | PyObject * obj2 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12766 | { | |
12767 | arg2 = &temp2; | |
12768 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | arg3 = &temp3; | |
12772 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12773 | } | |
12774 | { | |
12775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12776 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12777 | ||
12778 | wxPyEndAllowThreads(__tstate); | |
12779 | if (PyErr_Occurred()) SWIG_fail; | |
12780 | } | |
12781 | Py_INCREF(Py_None); resultobj = Py_None; | |
12782 | return resultobj; | |
12783 | fail: | |
12784 | return NULL; | |
12785 | } | |
12786 | ||
12787 | ||
c32bde28 | 12788 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
12789 | PyObject *resultobj; |
12790 | wxDC *arg1 = (wxDC *) 0 ; | |
12791 | wxRegion *arg2 = 0 ; | |
12792 | PyObject * obj0 = 0 ; | |
12793 | PyObject * obj1 = 0 ; | |
12794 | char *kwnames[] = { | |
12795 | (char *) "self",(char *) "region", NULL | |
12796 | }; | |
12797 | ||
12798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12803 | SWIG_fail; | |
12804 | if (arg2 == NULL) { | |
12805 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12806 | SWIG_fail; | |
12807 | } | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12811 | ||
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | Py_INCREF(Py_None); resultobj = Py_None; | |
12816 | return resultobj; | |
12817 | fail: | |
12818 | return NULL; | |
12819 | } | |
12820 | ||
12821 | ||
c32bde28 | 12822 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
12823 | PyObject *resultobj; |
12824 | wxDC *arg1 = (wxDC *) 0 ; | |
12825 | wxRect *arg2 = 0 ; | |
12826 | wxRect temp2 ; | |
12827 | PyObject * obj0 = 0 ; | |
12828 | PyObject * obj1 = 0 ; | |
12829 | char *kwnames[] = { | |
12830 | (char *) "self",(char *) "rect", NULL | |
12831 | }; | |
12832 | ||
12833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12836 | { | |
12837 | arg2 = &temp2; | |
12838 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12839 | } | |
12840 | { | |
12841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12842 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
12843 | |
12844 | wxPyEndAllowThreads(__tstate); | |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
12846 | } | |
c24da6d6 | 12847 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12848 | return resultobj; |
12849 | fail: | |
12850 | return NULL; | |
12851 | } | |
12852 | ||
12853 | ||
c32bde28 | 12854 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12855 | PyObject *resultobj; |
12856 | wxDC *arg1 = (wxDC *) 0 ; | |
12857 | int arg2 ; | |
12858 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12859 | int arg4 = (int) 0 ; | |
12860 | int arg5 = (int) 0 ; | |
12861 | PyObject * obj0 = 0 ; | |
12862 | PyObject * obj1 = 0 ; | |
12863 | PyObject * obj2 = 0 ; | |
12864 | PyObject * obj3 = 0 ; | |
12865 | char *kwnames[] = { | |
12866 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12872 | { | |
12873 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12874 | if (arg3 == NULL) SWIG_fail; | |
12875 | } | |
12876 | if (obj2) { | |
c32bde28 | 12877 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12878 | if (PyErr_Occurred()) SWIG_fail; |
12879 | } | |
12880 | if (obj3) { | |
c32bde28 | 12881 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12882 | if (PyErr_Occurred()) SWIG_fail; |
12883 | } | |
12884 | { | |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12887 | ||
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | Py_INCREF(Py_None); resultobj = Py_None; | |
12892 | { | |
12893 | if (arg3) delete [] arg3; | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | { | |
12898 | if (arg3) delete [] arg3; | |
12899 | } | |
12900 | return NULL; | |
12901 | } | |
12902 | ||
12903 | ||
c32bde28 | 12904 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12905 | PyObject *resultobj; |
12906 | wxDC *arg1 = (wxDC *) 0 ; | |
12907 | int arg2 ; | |
12908 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12909 | int arg4 = (int) 0 ; | |
12910 | int arg5 = (int) 0 ; | |
12911 | int arg6 = (int) wxODDEVEN_RULE ; | |
12912 | PyObject * obj0 = 0 ; | |
12913 | PyObject * obj1 = 0 ; | |
12914 | PyObject * obj2 = 0 ; | |
12915 | PyObject * obj3 = 0 ; | |
12916 | PyObject * obj4 = 0 ; | |
12917 | char *kwnames[] = { | |
12918 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12919 | }; | |
12920 | ||
12921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12924 | { | |
12925 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12926 | if (arg3 == NULL) SWIG_fail; | |
12927 | } | |
12928 | if (obj2) { | |
c32bde28 | 12929 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12930 | if (PyErr_Occurred()) SWIG_fail; |
12931 | } | |
12932 | if (obj3) { | |
c32bde28 | 12933 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12934 | if (PyErr_Occurred()) SWIG_fail; |
12935 | } | |
12936 | if (obj4) { | |
c32bde28 | 12937 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12938 | if (PyErr_Occurred()) SWIG_fail; |
12939 | } | |
12940 | { | |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12942 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
12945 | if (PyErr_Occurred()) SWIG_fail; | |
12946 | } | |
12947 | Py_INCREF(Py_None); resultobj = Py_None; | |
12948 | { | |
12949 | if (arg3) delete [] arg3; | |
12950 | } | |
12951 | return resultobj; | |
12952 | fail: | |
12953 | { | |
12954 | if (arg3) delete [] arg3; | |
12955 | } | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
c32bde28 | 12960 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12961 | PyObject *resultobj; |
12962 | wxDC *arg1 = (wxDC *) 0 ; | |
12963 | wxString *arg2 = 0 ; | |
12964 | wxRect *arg3 = 0 ; | |
12965 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12966 | int arg5 = (int) -1 ; | |
12967 | bool temp2 = False ; | |
12968 | wxRect temp3 ; | |
12969 | PyObject * obj0 = 0 ; | |
12970 | PyObject * obj1 = 0 ; | |
12971 | PyObject * obj2 = 0 ; | |
12972 | PyObject * obj3 = 0 ; | |
12973 | PyObject * obj4 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12981 | { | |
12982 | arg2 = wxString_in_helper(obj1); | |
12983 | if (arg2 == NULL) SWIG_fail; | |
12984 | temp2 = True; | |
12985 | } | |
12986 | { | |
12987 | arg3 = &temp3; | |
12988 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12989 | } | |
12990 | if (obj3) { | |
c32bde28 | 12991 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12992 | if (PyErr_Occurred()) SWIG_fail; |
12993 | } | |
12994 | if (obj4) { | |
c32bde28 | 12995 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12996 | if (PyErr_Occurred()) SWIG_fail; |
12997 | } | |
12998 | { | |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
13001 | ||
13002 | wxPyEndAllowThreads(__tstate); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | } | |
13005 | Py_INCREF(Py_None); resultobj = Py_None; | |
13006 | { | |
13007 | if (temp2) | |
13008 | delete arg2; | |
13009 | } | |
13010 | return resultobj; | |
13011 | fail: | |
13012 | { | |
13013 | if (temp2) | |
13014 | delete arg2; | |
13015 | } | |
13016 | return NULL; | |
13017 | } | |
13018 | ||
13019 | ||
c32bde28 | 13020 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13021 | PyObject *resultobj; |
13022 | wxDC *arg1 = (wxDC *) 0 ; | |
13023 | wxString *arg2 = 0 ; | |
13024 | wxBitmap *arg3 = 0 ; | |
13025 | wxRect *arg4 = 0 ; | |
13026 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
13027 | int arg6 = (int) -1 ; | |
13028 | wxRect result; | |
13029 | bool temp2 = False ; | |
13030 | wxRect temp4 ; | |
13031 | PyObject * obj0 = 0 ; | |
13032 | PyObject * obj1 = 0 ; | |
13033 | PyObject * obj2 = 0 ; | |
13034 | PyObject * obj3 = 0 ; | |
13035 | PyObject * obj4 = 0 ; | |
13036 | PyObject * obj5 = 0 ; | |
13037 | char *kwnames[] = { | |
13038 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
13039 | }; | |
13040 | ||
13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13044 | { | |
13045 | arg2 = wxString_in_helper(obj1); | |
13046 | if (arg2 == NULL) SWIG_fail; | |
13047 | temp2 = True; | |
13048 | } | |
13049 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13051 | SWIG_fail; | |
13052 | if (arg3 == NULL) { | |
13053 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13054 | SWIG_fail; | |
13055 | } | |
13056 | { | |
13057 | arg4 = &temp4; | |
13058 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
13059 | } | |
13060 | if (obj4) { | |
c32bde28 | 13061 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
13062 | if (PyErr_Occurred()) SWIG_fail; |
13063 | } | |
13064 | if (obj5) { | |
c32bde28 | 13065 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
13066 | if (PyErr_Occurred()) SWIG_fail; |
13067 | } | |
13068 | { | |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13070 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | { | |
13076 | wxRect * resultptr; | |
13077 | resultptr = new wxRect((wxRect &) result); | |
13078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13079 | } | |
13080 | { | |
13081 | if (temp2) | |
13082 | delete arg2; | |
13083 | } | |
13084 | return resultobj; | |
13085 | fail: | |
13086 | { | |
13087 | if (temp2) | |
13088 | delete arg2; | |
13089 | } | |
13090 | return NULL; | |
13091 | } | |
13092 | ||
13093 | ||
c32bde28 | 13094 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13095 | PyObject *resultobj; |
13096 | wxDC *arg1 = (wxDC *) 0 ; | |
13097 | int arg2 ; | |
13098 | wxPoint *arg3 = (wxPoint *) 0 ; | |
13099 | PyObject * obj0 = 0 ; | |
13100 | PyObject * obj1 = 0 ; | |
13101 | char *kwnames[] = { | |
13102 | (char *) "self",(char *) "points", NULL | |
13103 | }; | |
13104 | ||
13105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
13106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13108 | { | |
13109 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
13110 | if (arg3 == NULL) SWIG_fail; | |
13111 | } | |
13112 | { | |
13113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13114 | (arg1)->DrawSpline(arg2,arg3); | |
13115 | ||
13116 | wxPyEndAllowThreads(__tstate); | |
13117 | if (PyErr_Occurred()) SWIG_fail; | |
13118 | } | |
13119 | Py_INCREF(Py_None); resultobj = Py_None; | |
13120 | { | |
13121 | if (arg3) delete [] arg3; | |
13122 | } | |
13123 | return resultobj; | |
13124 | fail: | |
13125 | { | |
13126 | if (arg3) delete [] arg3; | |
13127 | } | |
13128 | return NULL; | |
13129 | } | |
13130 | ||
13131 | ||
c32bde28 | 13132 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13133 | PyObject *resultobj; |
13134 | wxDC *arg1 = (wxDC *) 0 ; | |
13135 | PyObject * obj0 = 0 ; | |
13136 | char *kwnames[] = { | |
13137 | (char *) "self", NULL | |
13138 | }; | |
13139 | ||
13140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
13141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | (arg1)->Clear(); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
13150 | Py_INCREF(Py_None); resultobj = Py_None; | |
13151 | return resultobj; | |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
c32bde28 | 13157 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13158 | PyObject *resultobj; |
13159 | wxDC *arg1 = (wxDC *) 0 ; | |
13160 | wxString *arg2 = 0 ; | |
13161 | bool result; | |
13162 | bool temp2 = False ; | |
13163 | PyObject * obj0 = 0 ; | |
13164 | PyObject * obj1 = 0 ; | |
13165 | char *kwnames[] = { | |
13166 | (char *) "self",(char *) "message", NULL | |
13167 | }; | |
13168 | ||
13169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
13170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13172 | { | |
13173 | arg2 = wxString_in_helper(obj1); | |
13174 | if (arg2 == NULL) SWIG_fail; | |
13175 | temp2 = True; | |
13176 | } | |
13177 | { | |
13178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13179 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
13180 | ||
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
13184 | { | |
13185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13186 | } | |
13187 | { | |
13188 | if (temp2) | |
13189 | delete arg2; | |
13190 | } | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | { | |
13194 | if (temp2) | |
13195 | delete arg2; | |
13196 | } | |
13197 | return NULL; | |
13198 | } | |
13199 | ||
13200 | ||
c32bde28 | 13201 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13202 | PyObject *resultobj; |
13203 | wxDC *arg1 = (wxDC *) 0 ; | |
13204 | PyObject * obj0 = 0 ; | |
13205 | char *kwnames[] = { | |
13206 | (char *) "self", NULL | |
13207 | }; | |
13208 | ||
13209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
13210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | (arg1)->EndDoc(); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | Py_INCREF(Py_None); resultobj = Py_None; | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
c32bde28 | 13226 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13227 | PyObject *resultobj; |
13228 | wxDC *arg1 = (wxDC *) 0 ; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self", NULL | |
13232 | }; | |
13233 | ||
13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
13235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13237 | { | |
13238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13239 | (arg1)->StartPage(); | |
13240 | ||
13241 | wxPyEndAllowThreads(__tstate); | |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
13243 | } | |
13244 | Py_INCREF(Py_None); resultobj = Py_None; | |
13245 | return resultobj; | |
13246 | fail: | |
13247 | return NULL; | |
13248 | } | |
13249 | ||
13250 | ||
c32bde28 | 13251 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13252 | PyObject *resultobj; |
13253 | wxDC *arg1 = (wxDC *) 0 ; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | char *kwnames[] = { | |
13256 | (char *) "self", NULL | |
13257 | }; | |
13258 | ||
13259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
13260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13262 | { | |
13263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13264 | (arg1)->EndPage(); | |
13265 | ||
13266 | wxPyEndAllowThreads(__tstate); | |
13267 | if (PyErr_Occurred()) SWIG_fail; | |
13268 | } | |
13269 | Py_INCREF(Py_None); resultobj = Py_None; | |
13270 | return resultobj; | |
13271 | fail: | |
13272 | return NULL; | |
13273 | } | |
13274 | ||
13275 | ||
c32bde28 | 13276 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13277 | PyObject *resultobj; |
13278 | wxDC *arg1 = (wxDC *) 0 ; | |
13279 | wxFont *arg2 = 0 ; | |
13280 | PyObject * obj0 = 0 ; | |
13281 | PyObject * obj1 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self",(char *) "font", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13290 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13291 | SWIG_fail; | |
13292 | if (arg2 == NULL) { | |
13293 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13294 | SWIG_fail; | |
13295 | } | |
13296 | { | |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | (arg1)->SetFont((wxFont const &)*arg2); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | Py_INCREF(Py_None); resultobj = Py_None; | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
c32bde28 | 13310 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13311 | PyObject *resultobj; |
13312 | wxDC *arg1 = (wxDC *) 0 ; | |
13313 | wxPen *arg2 = 0 ; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | PyObject * obj1 = 0 ; | |
13316 | char *kwnames[] = { | |
13317 | (char *) "self",(char *) "pen", NULL | |
13318 | }; | |
13319 | ||
13320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13324 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13325 | SWIG_fail; | |
13326 | if (arg2 == NULL) { | |
13327 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13328 | SWIG_fail; | |
13329 | } | |
13330 | { | |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | (arg1)->SetPen((wxPen const &)*arg2); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | Py_INCREF(Py_None); resultobj = Py_None; | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
c32bde28 | 13344 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13345 | PyObject *resultobj; |
13346 | wxDC *arg1 = (wxDC *) 0 ; | |
13347 | wxBrush *arg2 = 0 ; | |
13348 | PyObject * obj0 = 0 ; | |
13349 | PyObject * obj1 = 0 ; | |
13350 | char *kwnames[] = { | |
13351 | (char *) "self",(char *) "brush", NULL | |
13352 | }; | |
13353 | ||
13354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13359 | SWIG_fail; | |
13360 | if (arg2 == NULL) { | |
13361 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13362 | SWIG_fail; | |
13363 | } | |
13364 | { | |
13365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13366 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13367 | ||
13368 | wxPyEndAllowThreads(__tstate); | |
13369 | if (PyErr_Occurred()) SWIG_fail; | |
13370 | } | |
13371 | Py_INCREF(Py_None); resultobj = Py_None; | |
13372 | return resultobj; | |
13373 | fail: | |
13374 | return NULL; | |
13375 | } | |
13376 | ||
13377 | ||
c32bde28 | 13378 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13379 | PyObject *resultobj; |
13380 | wxDC *arg1 = (wxDC *) 0 ; | |
13381 | wxBrush *arg2 = 0 ; | |
13382 | PyObject * obj0 = 0 ; | |
13383 | PyObject * obj1 = 0 ; | |
13384 | char *kwnames[] = { | |
13385 | (char *) "self",(char *) "brush", NULL | |
13386 | }; | |
13387 | ||
13388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13393 | SWIG_fail; | |
13394 | if (arg2 == NULL) { | |
13395 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13396 | SWIG_fail; | |
13397 | } | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13401 | ||
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
13405 | Py_INCREF(Py_None); resultobj = Py_None; | |
13406 | return resultobj; | |
13407 | fail: | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
c32bde28 | 13412 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13413 | PyObject *resultobj; |
13414 | wxDC *arg1 = (wxDC *) 0 ; | |
13415 | int arg2 ; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | PyObject * obj1 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self",(char *) "mode", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13425 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13426 | if (PyErr_Occurred()) SWIG_fail; |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | (arg1)->SetBackgroundMode(arg2); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | Py_INCREF(Py_None); resultobj = Py_None; | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
c32bde28 | 13441 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13442 | PyObject *resultobj; |
13443 | wxDC *arg1 = (wxDC *) 0 ; | |
13444 | wxPalette *arg2 = 0 ; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | PyObject * obj1 = 0 ; | |
13447 | char *kwnames[] = { | |
13448 | (char *) "self",(char *) "palette", NULL | |
13449 | }; | |
13450 | ||
13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13455 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13456 | SWIG_fail; | |
13457 | if (arg2 == NULL) { | |
13458 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13459 | SWIG_fail; | |
13460 | } | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | Py_INCREF(Py_None); resultobj = Py_None; | |
13469 | return resultobj; | |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
c32bde28 | 13475 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13476 | PyObject *resultobj; |
13477 | wxDC *arg1 = (wxDC *) 0 ; | |
13478 | PyObject * obj0 = 0 ; | |
13479 | char *kwnames[] = { | |
13480 | (char *) "self", NULL | |
13481 | }; | |
13482 | ||
13483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13486 | { | |
13487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13488 | (arg1)->DestroyClippingRegion(); | |
13489 | ||
13490 | wxPyEndAllowThreads(__tstate); | |
13491 | if (PyErr_Occurred()) SWIG_fail; | |
13492 | } | |
13493 | Py_INCREF(Py_None); resultobj = Py_None; | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | return NULL; | |
13497 | } | |
13498 | ||
13499 | ||
c32bde28 | 13500 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13501 | PyObject *resultobj; |
13502 | wxDC *arg1 = (wxDC *) 0 ; | |
13503 | int *arg2 = (int *) 0 ; | |
13504 | int *arg3 = (int *) 0 ; | |
13505 | int *arg4 = (int *) 0 ; | |
13506 | int *arg5 = (int *) 0 ; | |
13507 | int temp2 ; | |
c32bde28 | 13508 | int res2 = 0 ; |
d55e5bfc | 13509 | int temp3 ; |
c32bde28 | 13510 | int res3 = 0 ; |
d55e5bfc | 13511 | int temp4 ; |
c32bde28 | 13512 | int res4 = 0 ; |
d55e5bfc | 13513 | int temp5 ; |
c32bde28 | 13514 | int res5 = 0 ; |
d55e5bfc RD |
13515 | PyObject * obj0 = 0 ; |
13516 | char *kwnames[] = { | |
13517 | (char *) "self", NULL | |
13518 | }; | |
13519 | ||
c32bde28 RD |
13520 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13521 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13522 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13523 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; |
13525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13527 | { | |
13528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13529 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13530 | ||
13531 | wxPyEndAllowThreads(__tstate); | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13535 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13536 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13537 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13538 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13539 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13540 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13541 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13542 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13543 | return resultobj; |
13544 | fail: | |
13545 | return NULL; | |
13546 | } | |
13547 | ||
13548 | ||
c32bde28 | 13549 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13550 | PyObject *resultobj; |
13551 | wxDC *arg1 = (wxDC *) 0 ; | |
13552 | wxRect result; | |
13553 | PyObject * obj0 = 0 ; | |
13554 | char *kwnames[] = { | |
13555 | (char *) "self", NULL | |
13556 | }; | |
13557 | ||
13558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | result = wxDC_GetClippingRect(arg1); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | { | |
13569 | wxRect * resultptr; | |
13570 | resultptr = new wxRect((wxRect &) result); | |
13571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13572 | } | |
13573 | return resultobj; | |
13574 | fail: | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
c32bde28 | 13579 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13580 | PyObject *resultobj; |
13581 | wxDC *arg1 = (wxDC *) 0 ; | |
13582 | int result; | |
13583 | PyObject * obj0 = 0 ; | |
13584 | char *kwnames[] = { | |
13585 | (char *) "self", NULL | |
13586 | }; | |
13587 | ||
13588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13591 | { | |
13592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13593 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13594 | ||
13595 | wxPyEndAllowThreads(__tstate); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | } | |
c32bde28 | 13598 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13599 | return resultobj; |
13600 | fail: | |
13601 | return NULL; | |
13602 | } | |
13603 | ||
13604 | ||
c32bde28 | 13605 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13606 | PyObject *resultobj; |
13607 | wxDC *arg1 = (wxDC *) 0 ; | |
13608 | int result; | |
13609 | PyObject * obj0 = 0 ; | |
13610 | char *kwnames[] = { | |
13611 | (char *) "self", NULL | |
13612 | }; | |
13613 | ||
13614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13617 | { | |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13619 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13620 | ||
13621 | wxPyEndAllowThreads(__tstate); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
c32bde28 | 13624 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13625 | return resultobj; |
13626 | fail: | |
13627 | return NULL; | |
13628 | } | |
13629 | ||
13630 | ||
c32bde28 | 13631 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13632 | PyObject *resultobj; |
13633 | wxDC *arg1 = (wxDC *) 0 ; | |
13634 | wxString *arg2 = 0 ; | |
13635 | int *arg3 = (int *) 0 ; | |
13636 | int *arg4 = (int *) 0 ; | |
13637 | bool temp2 = False ; | |
13638 | int temp3 ; | |
c32bde28 | 13639 | int res3 = 0 ; |
d55e5bfc | 13640 | int temp4 ; |
c32bde28 | 13641 | int res4 = 0 ; |
d55e5bfc RD |
13642 | PyObject * obj0 = 0 ; |
13643 | PyObject * obj1 = 0 ; | |
13644 | char *kwnames[] = { | |
13645 | (char *) "self",(char *) "string", NULL | |
13646 | }; | |
13647 | ||
c32bde28 RD |
13648 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13649 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
13651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13653 | { | |
13654 | arg2 = wxString_in_helper(obj1); | |
13655 | if (arg2 == NULL) SWIG_fail; | |
13656 | temp2 = True; | |
13657 | } | |
13658 | { | |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13666 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13667 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13668 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13669 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13670 | { |
13671 | if (temp2) | |
13672 | delete arg2; | |
13673 | } | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | { | |
13677 | if (temp2) | |
13678 | delete arg2; | |
13679 | } | |
13680 | return NULL; | |
13681 | } | |
13682 | ||
13683 | ||
c32bde28 | 13684 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13685 | PyObject *resultobj; |
13686 | wxDC *arg1 = (wxDC *) 0 ; | |
13687 | wxString *arg2 = 0 ; | |
13688 | int *arg3 = (int *) 0 ; | |
13689 | int *arg4 = (int *) 0 ; | |
13690 | int *arg5 = (int *) 0 ; | |
13691 | int *arg6 = (int *) 0 ; | |
13692 | wxFont *arg7 = (wxFont *) NULL ; | |
13693 | bool temp2 = False ; | |
13694 | int temp3 ; | |
c32bde28 | 13695 | int res3 = 0 ; |
d55e5bfc | 13696 | int temp4 ; |
c32bde28 | 13697 | int res4 = 0 ; |
d55e5bfc | 13698 | int temp5 ; |
c32bde28 | 13699 | int res5 = 0 ; |
d55e5bfc | 13700 | int temp6 ; |
c32bde28 | 13701 | int res6 = 0 ; |
d55e5bfc RD |
13702 | PyObject * obj0 = 0 ; |
13703 | PyObject * obj1 = 0 ; | |
13704 | PyObject * obj2 = 0 ; | |
13705 | char *kwnames[] = { | |
13706 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13707 | }; | |
13708 | ||
c32bde28 RD |
13709 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13710 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13711 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13712 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13716 | { | |
13717 | arg2 = wxString_in_helper(obj1); | |
13718 | if (arg2 == NULL) SWIG_fail; | |
13719 | temp2 = True; | |
13720 | } | |
13721 | if (obj2) { | |
13722 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
13723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13724 | } | |
13725 | { | |
13726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13727 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13728 | ||
13729 | wxPyEndAllowThreads(__tstate); | |
13730 | if (PyErr_Occurred()) SWIG_fail; | |
13731 | } | |
13732 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13733 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13734 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13735 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13736 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13737 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13738 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13739 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
13740 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13741 | { |
13742 | if (temp2) | |
13743 | delete arg2; | |
13744 | } | |
13745 | return resultobj; | |
13746 | fail: | |
13747 | { | |
13748 | if (temp2) | |
13749 | delete arg2; | |
13750 | } | |
13751 | return NULL; | |
13752 | } | |
13753 | ||
13754 | ||
c32bde28 | 13755 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13756 | PyObject *resultobj; |
13757 | wxDC *arg1 = (wxDC *) 0 ; | |
13758 | wxString *arg2 = 0 ; | |
13759 | int *arg3 = (int *) 0 ; | |
13760 | int *arg4 = (int *) 0 ; | |
13761 | int *arg5 = (int *) 0 ; | |
13762 | wxFont *arg6 = (wxFont *) NULL ; | |
13763 | bool temp2 = False ; | |
13764 | int temp3 ; | |
c32bde28 | 13765 | int res3 = 0 ; |
d55e5bfc | 13766 | int temp4 ; |
c32bde28 | 13767 | int res4 = 0 ; |
d55e5bfc | 13768 | int temp5 ; |
c32bde28 | 13769 | int res5 = 0 ; |
d55e5bfc RD |
13770 | PyObject * obj0 = 0 ; |
13771 | PyObject * obj1 = 0 ; | |
13772 | PyObject * obj2 = 0 ; | |
13773 | char *kwnames[] = { | |
13774 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13775 | }; | |
13776 | ||
c32bde28 RD |
13777 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13778 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13779 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13783 | { | |
13784 | arg2 = wxString_in_helper(obj1); | |
13785 | if (arg2 == NULL) SWIG_fail; | |
13786 | temp2 = True; | |
13787 | } | |
13788 | if (obj2) { | |
13789 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
13790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13791 | } | |
13792 | { | |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
13799 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13800 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13801 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13802 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13803 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13804 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13805 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13806 | { |
13807 | if (temp2) | |
13808 | delete arg2; | |
13809 | } | |
13810 | return resultobj; | |
13811 | fail: | |
13812 | { | |
13813 | if (temp2) | |
13814 | delete arg2; | |
13815 | } | |
13816 | return NULL; | |
13817 | } | |
13818 | ||
13819 | ||
c32bde28 | 13820 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13821 | PyObject *resultobj; |
13822 | wxDC *arg1 = (wxDC *) 0 ; | |
13823 | wxString *arg2 = 0 ; | |
13824 | wxArrayInt result; | |
13825 | bool temp2 = False ; | |
13826 | PyObject * obj0 = 0 ; | |
13827 | PyObject * obj1 = 0 ; | |
13828 | char *kwnames[] = { | |
13829 | (char *) "self",(char *) "text", NULL | |
13830 | }; | |
13831 | ||
13832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13835 | { | |
13836 | arg2 = wxString_in_helper(obj1); | |
13837 | if (arg2 == NULL) SWIG_fail; | |
13838 | temp2 = True; | |
13839 | } | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | { | |
13848 | resultobj = PyList_New(0); | |
13849 | size_t idx; | |
13850 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13851 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13852 | PyList_Append(resultobj, val); | |
13853 | Py_DECREF(val); | |
13854 | } | |
13855 | } | |
13856 | { | |
13857 | if (temp2) | |
13858 | delete arg2; | |
13859 | } | |
13860 | return resultobj; | |
13861 | fail: | |
13862 | { | |
13863 | if (temp2) | |
13864 | delete arg2; | |
13865 | } | |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
c32bde28 | 13870 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13871 | PyObject *resultobj; |
13872 | wxDC *arg1 = (wxDC *) 0 ; | |
13873 | wxSize result; | |
13874 | PyObject * obj0 = 0 ; | |
13875 | char *kwnames[] = { | |
13876 | (char *) "self", NULL | |
13877 | }; | |
13878 | ||
13879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13882 | { | |
13883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13884 | result = (arg1)->GetSize(); | |
13885 | ||
13886 | wxPyEndAllowThreads(__tstate); | |
13887 | if (PyErr_Occurred()) SWIG_fail; | |
13888 | } | |
13889 | { | |
13890 | wxSize * resultptr; | |
13891 | resultptr = new wxSize((wxSize &) result); | |
13892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13893 | } | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
c32bde28 | 13900 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13901 | PyObject *resultobj; |
13902 | wxDC *arg1 = (wxDC *) 0 ; | |
13903 | int *arg2 = (int *) 0 ; | |
13904 | int *arg3 = (int *) 0 ; | |
13905 | int temp2 ; | |
c32bde28 | 13906 | int res2 = 0 ; |
d55e5bfc | 13907 | int temp3 ; |
c32bde28 | 13908 | int res3 = 0 ; |
d55e5bfc RD |
13909 | PyObject * obj0 = 0 ; |
13910 | char *kwnames[] = { | |
13911 | (char *) "self", NULL | |
13912 | }; | |
13913 | ||
c32bde28 RD |
13914 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13915 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; |
13917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13919 | { | |
13920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13921 | (arg1)->GetSize(arg2,arg3); | |
13922 | ||
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
13926 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13927 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13928 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13929 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13930 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13931 | return resultobj; |
13932 | fail: | |
13933 | return NULL; | |
13934 | } | |
13935 | ||
13936 | ||
c32bde28 | 13937 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13938 | PyObject *resultobj; |
13939 | wxDC *arg1 = (wxDC *) 0 ; | |
13940 | wxSize result; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | char *kwnames[] = { | |
13943 | (char *) "self", NULL | |
13944 | }; | |
13945 | ||
13946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13951 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13952 | ||
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | { | |
13957 | wxSize * resultptr; | |
13958 | resultptr = new wxSize((wxSize &) result); | |
13959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13960 | } | |
13961 | return resultobj; | |
13962 | fail: | |
13963 | return NULL; | |
13964 | } | |
13965 | ||
13966 | ||
c32bde28 | 13967 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13968 | PyObject *resultobj; |
13969 | wxDC *arg1 = (wxDC *) 0 ; | |
13970 | int *arg2 = (int *) 0 ; | |
13971 | int *arg3 = (int *) 0 ; | |
13972 | int temp2 ; | |
c32bde28 | 13973 | int res2 = 0 ; |
d55e5bfc | 13974 | int temp3 ; |
c32bde28 | 13975 | int res3 = 0 ; |
d55e5bfc RD |
13976 | PyObject * obj0 = 0 ; |
13977 | char *kwnames[] = { | |
13978 | (char *) "self", NULL | |
13979 | }; | |
13980 | ||
c32bde28 RD |
13981 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13982 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
13984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13986 | { | |
13987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13988 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13989 | ||
13990 | wxPyEndAllowThreads(__tstate); | |
13991 | if (PyErr_Occurred()) SWIG_fail; | |
13992 | } | |
13993 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
13994 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13995 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13996 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13997 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13998 | return resultobj; |
13999 | fail: | |
14000 | return NULL; | |
14001 | } | |
14002 | ||
14003 | ||
c32bde28 | 14004 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14005 | PyObject *resultobj; |
14006 | wxDC *arg1 = (wxDC *) 0 ; | |
14007 | int arg2 ; | |
14008 | int result; | |
14009 | PyObject * obj0 = 0 ; | |
14010 | PyObject * obj1 = 0 ; | |
14011 | char *kwnames[] = { | |
14012 | (char *) "self",(char *) "x", NULL | |
14013 | }; | |
14014 | ||
14015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
14016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14018 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14019 | if (PyErr_Occurred()) SWIG_fail; |
14020 | { | |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
14023 | ||
14024 | wxPyEndAllowThreads(__tstate); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | } | |
c32bde28 | 14027 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14028 | return resultobj; |
14029 | fail: | |
14030 | return NULL; | |
14031 | } | |
14032 | ||
14033 | ||
c32bde28 | 14034 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14035 | PyObject *resultobj; |
14036 | wxDC *arg1 = (wxDC *) 0 ; | |
14037 | int arg2 ; | |
14038 | int result; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | PyObject * obj1 = 0 ; | |
14041 | char *kwnames[] = { | |
14042 | (char *) "self",(char *) "y", NULL | |
14043 | }; | |
14044 | ||
14045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
14046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14048 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14049 | if (PyErr_Occurred()) SWIG_fail; |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
c32bde28 | 14057 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14058 | return resultobj; |
14059 | fail: | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
c32bde28 | 14064 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14065 | PyObject *resultobj; |
14066 | wxDC *arg1 = (wxDC *) 0 ; | |
14067 | int arg2 ; | |
14068 | int result; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | PyObject * obj1 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "self",(char *) "x", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
14076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14078 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14079 | if (PyErr_Occurred()) SWIG_fail; |
14080 | { | |
14081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14082 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
14083 | ||
14084 | wxPyEndAllowThreads(__tstate); | |
14085 | if (PyErr_Occurred()) SWIG_fail; | |
14086 | } | |
c32bde28 | 14087 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14088 | return resultobj; |
14089 | fail: | |
14090 | return NULL; | |
14091 | } | |
14092 | ||
14093 | ||
c32bde28 | 14094 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14095 | PyObject *resultobj; |
14096 | wxDC *arg1 = (wxDC *) 0 ; | |
14097 | int arg2 ; | |
14098 | int result; | |
14099 | PyObject * obj0 = 0 ; | |
14100 | PyObject * obj1 = 0 ; | |
14101 | char *kwnames[] = { | |
14102 | (char *) "self",(char *) "y", NULL | |
14103 | }; | |
14104 | ||
14105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
14106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14108 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14109 | if (PyErr_Occurred()) SWIG_fail; |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
c32bde28 | 14117 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14118 | return resultobj; |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
c32bde28 | 14124 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14125 | PyObject *resultobj; |
14126 | wxDC *arg1 = (wxDC *) 0 ; | |
14127 | int arg2 ; | |
14128 | int result; | |
14129 | PyObject * obj0 = 0 ; | |
14130 | PyObject * obj1 = 0 ; | |
14131 | char *kwnames[] = { | |
14132 | (char *) "self",(char *) "x", NULL | |
14133 | }; | |
14134 | ||
14135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
14136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14138 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14139 | if (PyErr_Occurred()) SWIG_fail; |
14140 | { | |
14141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14142 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
14143 | ||
14144 | wxPyEndAllowThreads(__tstate); | |
14145 | if (PyErr_Occurred()) SWIG_fail; | |
14146 | } | |
c32bde28 | 14147 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14148 | return resultobj; |
14149 | fail: | |
14150 | return NULL; | |
14151 | } | |
14152 | ||
14153 | ||
c32bde28 | 14154 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14155 | PyObject *resultobj; |
14156 | wxDC *arg1 = (wxDC *) 0 ; | |
14157 | int arg2 ; | |
14158 | int result; | |
14159 | PyObject * obj0 = 0 ; | |
14160 | PyObject * obj1 = 0 ; | |
14161 | char *kwnames[] = { | |
14162 | (char *) "self",(char *) "y", NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
14166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14168 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14169 | if (PyErr_Occurred()) SWIG_fail; |
14170 | { | |
14171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14172 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
14173 | ||
14174 | wxPyEndAllowThreads(__tstate); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
c32bde28 | 14177 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14178 | return resultobj; |
14179 | fail: | |
14180 | return NULL; | |
14181 | } | |
14182 | ||
14183 | ||
c32bde28 | 14184 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14185 | PyObject *resultobj; |
14186 | wxDC *arg1 = (wxDC *) 0 ; | |
14187 | int arg2 ; | |
14188 | int result; | |
14189 | PyObject * obj0 = 0 ; | |
14190 | PyObject * obj1 = 0 ; | |
14191 | char *kwnames[] = { | |
14192 | (char *) "self",(char *) "x", NULL | |
14193 | }; | |
14194 | ||
14195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
14196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14198 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14199 | if (PyErr_Occurred()) SWIG_fail; |
14200 | { | |
14201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14202 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
14203 | ||
14204 | wxPyEndAllowThreads(__tstate); | |
14205 | if (PyErr_Occurred()) SWIG_fail; | |
14206 | } | |
c32bde28 | 14207 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14208 | return resultobj; |
14209 | fail: | |
14210 | return NULL; | |
14211 | } | |
14212 | ||
14213 | ||
c32bde28 | 14214 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14215 | PyObject *resultobj; |
14216 | wxDC *arg1 = (wxDC *) 0 ; | |
14217 | int arg2 ; | |
14218 | int result; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | PyObject * obj1 = 0 ; | |
14221 | char *kwnames[] = { | |
14222 | (char *) "self",(char *) "y", NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
14226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14228 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14229 | if (PyErr_Occurred()) SWIG_fail; |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
c32bde28 | 14237 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14238 | return resultobj; |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
c32bde28 | 14244 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14245 | PyObject *resultobj; |
14246 | wxDC *arg1 = (wxDC *) 0 ; | |
14247 | bool result; | |
14248 | PyObject * obj0 = 0 ; | |
14249 | char *kwnames[] = { | |
14250 | (char *) "self", NULL | |
14251 | }; | |
14252 | ||
14253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
14254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14256 | { | |
14257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14258 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
14259 | ||
14260 | wxPyEndAllowThreads(__tstate); | |
14261 | if (PyErr_Occurred()) SWIG_fail; | |
14262 | } | |
14263 | { | |
14264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14265 | } | |
14266 | return resultobj; | |
14267 | fail: | |
14268 | return NULL; | |
14269 | } | |
14270 | ||
14271 | ||
c32bde28 | 14272 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14273 | PyObject *resultobj; |
14274 | wxDC *arg1 = (wxDC *) 0 ; | |
14275 | bool result; | |
14276 | PyObject * obj0 = 0 ; | |
14277 | char *kwnames[] = { | |
14278 | (char *) "self", NULL | |
14279 | }; | |
14280 | ||
14281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
14282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14287 | ||
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | { | |
14292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14293 | } | |
14294 | return resultobj; | |
14295 | fail: | |
14296 | return NULL; | |
14297 | } | |
14298 | ||
14299 | ||
c32bde28 | 14300 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14301 | PyObject *resultobj; |
14302 | wxDC *arg1 = (wxDC *) 0 ; | |
14303 | int result; | |
14304 | PyObject * obj0 = 0 ; | |
14305 | char *kwnames[] = { | |
14306 | (char *) "self", NULL | |
14307 | }; | |
14308 | ||
14309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14312 | { | |
14313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14314 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14315 | ||
14316 | wxPyEndAllowThreads(__tstate); | |
14317 | if (PyErr_Occurred()) SWIG_fail; | |
14318 | } | |
c32bde28 | 14319 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14320 | return resultobj; |
14321 | fail: | |
14322 | return NULL; | |
14323 | } | |
14324 | ||
14325 | ||
c32bde28 | 14326 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14327 | PyObject *resultobj; |
14328 | wxDC *arg1 = (wxDC *) 0 ; | |
14329 | wxSize result; | |
14330 | PyObject * obj0 = 0 ; | |
14331 | char *kwnames[] = { | |
14332 | (char *) "self", NULL | |
14333 | }; | |
14334 | ||
14335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14338 | { | |
14339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14340 | result = ((wxDC const *)arg1)->GetPPI(); | |
14341 | ||
14342 | wxPyEndAllowThreads(__tstate); | |
14343 | if (PyErr_Occurred()) SWIG_fail; | |
14344 | } | |
14345 | { | |
14346 | wxSize * resultptr; | |
14347 | resultptr = new wxSize((wxSize &) result); | |
14348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14349 | } | |
14350 | return resultobj; | |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
c32bde28 | 14356 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14357 | PyObject *resultobj; |
14358 | wxDC *arg1 = (wxDC *) 0 ; | |
14359 | bool result; | |
14360 | PyObject * obj0 = 0 ; | |
14361 | char *kwnames[] = { | |
14362 | (char *) "self", NULL | |
14363 | }; | |
14364 | ||
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | { | |
14376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14377 | } | |
14378 | return resultobj; | |
14379 | fail: | |
14380 | return NULL; | |
14381 | } | |
14382 | ||
14383 | ||
c32bde28 | 14384 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14385 | PyObject *resultobj; |
14386 | wxDC *arg1 = (wxDC *) 0 ; | |
14387 | int result; | |
14388 | PyObject * obj0 = 0 ; | |
14389 | char *kwnames[] = { | |
14390 | (char *) "self", NULL | |
14391 | }; | |
14392 | ||
14393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14396 | { | |
14397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14398 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14399 | ||
14400 | wxPyEndAllowThreads(__tstate); | |
14401 | if (PyErr_Occurred()) SWIG_fail; | |
14402 | } | |
c32bde28 | 14403 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14404 | return resultobj; |
14405 | fail: | |
14406 | return NULL; | |
14407 | } | |
14408 | ||
14409 | ||
c32bde28 | 14410 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14411 | PyObject *resultobj; |
14412 | wxDC *arg1 = (wxDC *) 0 ; | |
14413 | wxBrush *result; | |
14414 | PyObject * obj0 = 0 ; | |
14415 | char *kwnames[] = { | |
14416 | (char *) "self", NULL | |
14417 | }; | |
14418 | ||
14419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14422 | { | |
14423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14424 | { | |
14425 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14426 | result = (wxBrush *) &_result_ref; | |
14427 | } | |
14428 | ||
14429 | wxPyEndAllowThreads(__tstate); | |
14430 | if (PyErr_Occurred()) SWIG_fail; | |
14431 | } | |
14432 | { | |
14433 | wxBrush* resultptr = new wxBrush(*result); | |
14434 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14435 | } | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
c32bde28 | 14442 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14443 | PyObject *resultobj; |
14444 | wxDC *arg1 = (wxDC *) 0 ; | |
14445 | wxBrush *result; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14454 | { | |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | { | |
14457 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14458 | result = (wxBrush *) &_result_ref; | |
14459 | } | |
14460 | ||
14461 | wxPyEndAllowThreads(__tstate); | |
14462 | if (PyErr_Occurred()) SWIG_fail; | |
14463 | } | |
14464 | { | |
14465 | wxBrush* resultptr = new wxBrush(*result); | |
14466 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14467 | } | |
14468 | return resultobj; | |
14469 | fail: | |
14470 | return NULL; | |
14471 | } | |
14472 | ||
14473 | ||
c32bde28 | 14474 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14475 | PyObject *resultobj; |
14476 | wxDC *arg1 = (wxDC *) 0 ; | |
14477 | wxFont *result; | |
14478 | PyObject * obj0 = 0 ; | |
14479 | char *kwnames[] = { | |
14480 | (char *) "self", NULL | |
14481 | }; | |
14482 | ||
14483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14486 | { | |
14487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14488 | { | |
14489 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14490 | result = (wxFont *) &_result_ref; | |
14491 | } | |
14492 | ||
14493 | wxPyEndAllowThreads(__tstate); | |
14494 | if (PyErr_Occurred()) SWIG_fail; | |
14495 | } | |
14496 | { | |
14497 | wxFont* resultptr = new wxFont(*result); | |
14498 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14499 | } | |
14500 | return resultobj; | |
14501 | fail: | |
14502 | return NULL; | |
14503 | } | |
14504 | ||
14505 | ||
c32bde28 | 14506 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14507 | PyObject *resultobj; |
14508 | wxDC *arg1 = (wxDC *) 0 ; | |
14509 | wxPen *result; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14518 | { | |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | { | |
14521 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14522 | result = (wxPen *) &_result_ref; | |
14523 | } | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
14528 | { | |
14529 | wxPen* resultptr = new wxPen(*result); | |
14530 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14531 | } | |
14532 | return resultobj; | |
14533 | fail: | |
14534 | return NULL; | |
14535 | } | |
14536 | ||
14537 | ||
c32bde28 | 14538 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14539 | PyObject *resultobj; |
14540 | wxDC *arg1 = (wxDC *) 0 ; | |
14541 | wxColour *result; | |
14542 | PyObject * obj0 = 0 ; | |
14543 | char *kwnames[] = { | |
14544 | (char *) "self", NULL | |
14545 | }; | |
14546 | ||
14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | { | |
14553 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14554 | result = (wxColour *) &_result_ref; | |
14555 | } | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
c32bde28 | 14567 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14568 | PyObject *resultobj; |
14569 | wxDC *arg1 = (wxDC *) 0 ; | |
14570 | wxColour *result; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | char *kwnames[] = { | |
14573 | (char *) "self", NULL | |
14574 | }; | |
14575 | ||
14576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14579 | { | |
14580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14581 | { | |
14582 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14583 | result = (wxColour *) &_result_ref; | |
14584 | } | |
14585 | ||
14586 | wxPyEndAllowThreads(__tstate); | |
14587 | if (PyErr_Occurred()) SWIG_fail; | |
14588 | } | |
14589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
c32bde28 | 14596 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14597 | PyObject *resultobj; |
14598 | wxDC *arg1 = (wxDC *) 0 ; | |
14599 | wxColour *arg2 = 0 ; | |
14600 | wxColour temp2 ; | |
14601 | PyObject * obj0 = 0 ; | |
14602 | PyObject * obj1 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self",(char *) "colour", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14610 | { | |
14611 | arg2 = &temp2; | |
14612 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14613 | } | |
14614 | { | |
14615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14616 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14617 | ||
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
14621 | Py_INCREF(Py_None); resultobj = Py_None; | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
c32bde28 | 14628 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14629 | PyObject *resultobj; |
14630 | wxDC *arg1 = (wxDC *) 0 ; | |
14631 | wxColour *arg2 = 0 ; | |
14632 | wxColour temp2 ; | |
14633 | PyObject * obj0 = 0 ; | |
14634 | PyObject * obj1 = 0 ; | |
14635 | char *kwnames[] = { | |
14636 | (char *) "self",(char *) "colour", NULL | |
14637 | }; | |
14638 | ||
14639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14642 | { | |
14643 | arg2 = &temp2; | |
14644 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14645 | } | |
14646 | { | |
14647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14648 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14649 | ||
14650 | wxPyEndAllowThreads(__tstate); | |
14651 | if (PyErr_Occurred()) SWIG_fail; | |
14652 | } | |
14653 | Py_INCREF(Py_None); resultobj = Py_None; | |
14654 | return resultobj; | |
14655 | fail: | |
14656 | return NULL; | |
14657 | } | |
14658 | ||
14659 | ||
c32bde28 | 14660 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14661 | PyObject *resultobj; |
14662 | wxDC *arg1 = (wxDC *) 0 ; | |
14663 | int result; | |
14664 | PyObject * obj0 = 0 ; | |
14665 | char *kwnames[] = { | |
14666 | (char *) "self", NULL | |
14667 | }; | |
14668 | ||
14669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14672 | { | |
14673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14674 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14675 | ||
14676 | wxPyEndAllowThreads(__tstate); | |
14677 | if (PyErr_Occurred()) SWIG_fail; | |
14678 | } | |
c32bde28 | 14679 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14680 | return resultobj; |
14681 | fail: | |
14682 | return NULL; | |
14683 | } | |
14684 | ||
14685 | ||
c32bde28 | 14686 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14687 | PyObject *resultobj; |
14688 | wxDC *arg1 = (wxDC *) 0 ; | |
14689 | int arg2 ; | |
14690 | PyObject * obj0 = 0 ; | |
14691 | PyObject * obj1 = 0 ; | |
14692 | char *kwnames[] = { | |
14693 | (char *) "self",(char *) "mode", NULL | |
14694 | }; | |
14695 | ||
14696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14700 | if (PyErr_Occurred()) SWIG_fail; |
14701 | { | |
14702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14703 | (arg1)->SetMapMode(arg2); | |
14704 | ||
14705 | wxPyEndAllowThreads(__tstate); | |
14706 | if (PyErr_Occurred()) SWIG_fail; | |
14707 | } | |
14708 | Py_INCREF(Py_None); resultobj = Py_None; | |
14709 | return resultobj; | |
14710 | fail: | |
14711 | return NULL; | |
14712 | } | |
14713 | ||
14714 | ||
c32bde28 | 14715 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14716 | PyObject *resultobj; |
14717 | wxDC *arg1 = (wxDC *) 0 ; | |
14718 | double *arg2 = (double *) 0 ; | |
14719 | double *arg3 = (double *) 0 ; | |
14720 | double temp2 ; | |
c32bde28 | 14721 | int res2 = 0 ; |
d55e5bfc | 14722 | double temp3 ; |
c32bde28 | 14723 | int res3 = 0 ; |
d55e5bfc RD |
14724 | PyObject * obj0 = 0 ; |
14725 | char *kwnames[] = { | |
14726 | (char *) "self", NULL | |
14727 | }; | |
14728 | ||
c32bde28 RD |
14729 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14730 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14742 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14743 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14744 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14745 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
14746 | return resultobj; |
14747 | fail: | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
c32bde28 | 14752 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14753 | PyObject *resultobj; |
14754 | wxDC *arg1 = (wxDC *) 0 ; | |
14755 | double arg2 ; | |
14756 | double arg3 ; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | PyObject * obj1 = 0 ; | |
14759 | PyObject * obj2 = 0 ; | |
14760 | char *kwnames[] = { | |
14761 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14762 | }; | |
14763 | ||
14764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14767 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 14768 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14769 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
14770 | if (PyErr_Occurred()) SWIG_fail; |
14771 | { | |
14772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14773 | (arg1)->SetUserScale(arg2,arg3); | |
14774 | ||
14775 | wxPyEndAllowThreads(__tstate); | |
14776 | if (PyErr_Occurred()) SWIG_fail; | |
14777 | } | |
14778 | Py_INCREF(Py_None); resultobj = Py_None; | |
14779 | return resultobj; | |
14780 | fail: | |
14781 | return NULL; | |
14782 | } | |
14783 | ||
14784 | ||
c32bde28 | 14785 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14786 | PyObject *resultobj; |
14787 | wxDC *arg1 = (wxDC *) 0 ; | |
14788 | double *arg2 = (double *) 0 ; | |
14789 | double *arg3 = (double *) 0 ; | |
14790 | double temp2 ; | |
c32bde28 | 14791 | int res2 = 0 ; |
d55e5bfc | 14792 | double temp3 ; |
c32bde28 | 14793 | int res3 = 0 ; |
d55e5bfc RD |
14794 | PyObject * obj0 = 0 ; |
14795 | char *kwnames[] = { | |
14796 | (char *) "self", NULL | |
14797 | }; | |
14798 | ||
c32bde28 RD |
14799 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14800 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; |
14802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14804 | { | |
14805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14806 | (arg1)->GetLogicalScale(arg2,arg3); | |
14807 | ||
14808 | wxPyEndAllowThreads(__tstate); | |
14809 | if (PyErr_Occurred()) SWIG_fail; | |
14810 | } | |
14811 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14812 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14813 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14814 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14815 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
14816 | return resultobj; |
14817 | fail: | |
14818 | return NULL; | |
14819 | } | |
14820 | ||
14821 | ||
c32bde28 | 14822 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14823 | PyObject *resultobj; |
14824 | wxDC *arg1 = (wxDC *) 0 ; | |
14825 | double arg2 ; | |
14826 | double arg3 ; | |
14827 | PyObject * obj0 = 0 ; | |
14828 | PyObject * obj1 = 0 ; | |
14829 | PyObject * obj2 = 0 ; | |
14830 | char *kwnames[] = { | |
14831 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14832 | }; | |
14833 | ||
14834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14837 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 14838 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14839 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
14840 | if (PyErr_Occurred()) SWIG_fail; |
14841 | { | |
14842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14843 | (arg1)->SetLogicalScale(arg2,arg3); | |
14844 | ||
14845 | wxPyEndAllowThreads(__tstate); | |
14846 | if (PyErr_Occurred()) SWIG_fail; | |
14847 | } | |
14848 | Py_INCREF(Py_None); resultobj = Py_None; | |
14849 | return resultobj; | |
14850 | fail: | |
14851 | return NULL; | |
14852 | } | |
14853 | ||
14854 | ||
c32bde28 | 14855 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14856 | PyObject *resultobj; |
14857 | wxDC *arg1 = (wxDC *) 0 ; | |
14858 | wxPoint result; | |
14859 | PyObject * obj0 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14867 | { | |
14868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14869 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14870 | ||
14871 | wxPyEndAllowThreads(__tstate); | |
14872 | if (PyErr_Occurred()) SWIG_fail; | |
14873 | } | |
14874 | { | |
14875 | wxPoint * resultptr; | |
14876 | resultptr = new wxPoint((wxPoint &) result); | |
14877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14878 | } | |
14879 | return resultobj; | |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
c32bde28 | 14885 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14886 | PyObject *resultobj; |
14887 | wxDC *arg1 = (wxDC *) 0 ; | |
14888 | int *arg2 = (int *) 0 ; | |
14889 | int *arg3 = (int *) 0 ; | |
14890 | int temp2 ; | |
c32bde28 | 14891 | int res2 = 0 ; |
d55e5bfc | 14892 | int temp3 ; |
c32bde28 | 14893 | int res3 = 0 ; |
d55e5bfc RD |
14894 | PyObject * obj0 = 0 ; |
14895 | char *kwnames[] = { | |
14896 | (char *) "self", NULL | |
14897 | }; | |
14898 | ||
c32bde28 RD |
14899 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14900 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
14902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14904 | { | |
14905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14906 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14907 | ||
14908 | wxPyEndAllowThreads(__tstate); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
14911 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14912 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14913 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14914 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14915 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14916 | return resultobj; |
14917 | fail: | |
14918 | return NULL; | |
14919 | } | |
14920 | ||
14921 | ||
c32bde28 | 14922 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14923 | PyObject *resultobj; |
14924 | wxDC *arg1 = (wxDC *) 0 ; | |
14925 | int arg2 ; | |
14926 | int arg3 ; | |
14927 | PyObject * obj0 = 0 ; | |
14928 | PyObject * obj1 = 0 ; | |
14929 | PyObject * obj2 = 0 ; | |
14930 | char *kwnames[] = { | |
14931 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14932 | }; | |
14933 | ||
14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14937 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 14938 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14939 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14940 | if (PyErr_Occurred()) SWIG_fail; |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14944 | ||
14945 | wxPyEndAllowThreads(__tstate); | |
14946 | if (PyErr_Occurred()) SWIG_fail; | |
14947 | } | |
14948 | Py_INCREF(Py_None); resultobj = Py_None; | |
14949 | return resultobj; | |
14950 | fail: | |
14951 | return NULL; | |
14952 | } | |
14953 | ||
14954 | ||
c32bde28 | 14955 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
14956 | PyObject *resultobj; |
14957 | wxDC *arg1 = (wxDC *) 0 ; | |
14958 | wxPoint *arg2 = 0 ; | |
14959 | wxPoint temp2 ; | |
14960 | PyObject * obj0 = 0 ; | |
14961 | PyObject * obj1 = 0 ; | |
14962 | char *kwnames[] = { | |
14963 | (char *) "self",(char *) "point", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14969 | { | |
14970 | arg2 = &temp2; | |
14971 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14972 | } | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
14980 | Py_INCREF(Py_None); resultobj = Py_None; | |
14981 | return resultobj; | |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
c32bde28 | 14987 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14988 | PyObject *resultobj; |
14989 | wxDC *arg1 = (wxDC *) 0 ; | |
14990 | wxPoint result; | |
14991 | PyObject * obj0 = 0 ; | |
14992 | char *kwnames[] = { | |
14993 | (char *) "self", NULL | |
14994 | }; | |
14995 | ||
14996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14999 | { | |
15000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15001 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
15002 | ||
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
15006 | { | |
15007 | wxPoint * resultptr; | |
15008 | resultptr = new wxPoint((wxPoint &) result); | |
15009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15010 | } | |
15011 | return resultobj; | |
15012 | fail: | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
c32bde28 | 15017 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15018 | PyObject *resultobj; |
15019 | wxDC *arg1 = (wxDC *) 0 ; | |
15020 | int *arg2 = (int *) 0 ; | |
15021 | int *arg3 = (int *) 0 ; | |
15022 | int temp2 ; | |
c32bde28 | 15023 | int res2 = 0 ; |
d55e5bfc | 15024 | int temp3 ; |
c32bde28 | 15025 | int res3 = 0 ; |
d55e5bfc RD |
15026 | PyObject * obj0 = 0 ; |
15027 | char *kwnames[] = { | |
15028 | (char *) "self", NULL | |
15029 | }; | |
15030 | ||
c32bde28 RD |
15031 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15032 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; |
15034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15036 | { | |
15037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15038 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
15039 | ||
15040 | wxPyEndAllowThreads(__tstate); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
15043 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15044 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15045 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15046 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15047 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15048 | return resultobj; |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
c32bde28 | 15054 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15055 | PyObject *resultobj; |
15056 | wxDC *arg1 = (wxDC *) 0 ; | |
15057 | int arg2 ; | |
15058 | int arg3 ; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | PyObject * obj1 = 0 ; | |
15061 | PyObject * obj2 = 0 ; | |
15062 | char *kwnames[] = { | |
15063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15064 | }; | |
15065 | ||
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15069 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 15070 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15071 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15072 | if (PyErr_Occurred()) SWIG_fail; |
15073 | { | |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
15076 | ||
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | Py_INCREF(Py_None); resultobj = Py_None; | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
c32bde28 | 15087 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
15088 | PyObject *resultobj; |
15089 | wxDC *arg1 = (wxDC *) 0 ; | |
15090 | wxPoint *arg2 = 0 ; | |
15091 | wxPoint temp2 ; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | PyObject * obj1 = 0 ; | |
15094 | char *kwnames[] = { | |
15095 | (char *) "self",(char *) "point", NULL | |
15096 | }; | |
15097 | ||
15098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
15099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15101 | { | |
15102 | arg2 = &temp2; | |
15103 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15104 | } | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | Py_INCREF(Py_None); resultobj = Py_None; | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
c32bde28 | 15119 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15120 | PyObject *resultobj; |
15121 | wxDC *arg1 = (wxDC *) 0 ; | |
15122 | bool arg2 ; | |
15123 | bool arg3 ; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | PyObject * obj1 = 0 ; | |
15126 | PyObject * obj2 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15134 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc | 15135 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15136 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15137 | if (PyErr_Occurred()) SWIG_fail; |
15138 | { | |
15139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15140 | (arg1)->SetAxisOrientation(arg2,arg3); | |
15141 | ||
15142 | wxPyEndAllowThreads(__tstate); | |
15143 | if (PyErr_Occurred()) SWIG_fail; | |
15144 | } | |
15145 | Py_INCREF(Py_None); resultobj = Py_None; | |
15146 | return resultobj; | |
15147 | fail: | |
15148 | return NULL; | |
15149 | } | |
15150 | ||
15151 | ||
c32bde28 | 15152 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15153 | PyObject *resultobj; |
15154 | wxDC *arg1 = (wxDC *) 0 ; | |
15155 | int result; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "self", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15164 | { | |
15165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15166 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
15167 | ||
15168 | wxPyEndAllowThreads(__tstate); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
c32bde28 | 15171 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15172 | return resultobj; |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
c32bde28 | 15178 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15179 | PyObject *resultobj; |
15180 | wxDC *arg1 = (wxDC *) 0 ; | |
15181 | int arg2 ; | |
15182 | PyObject * obj0 = 0 ; | |
15183 | PyObject * obj1 = 0 ; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "self",(char *) "function", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
15189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15191 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15192 | if (PyErr_Occurred()) SWIG_fail; |
15193 | { | |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15195 | (arg1)->SetLogicalFunction(arg2); | |
15196 | ||
15197 | wxPyEndAllowThreads(__tstate); | |
15198 | if (PyErr_Occurred()) SWIG_fail; | |
15199 | } | |
15200 | Py_INCREF(Py_None); resultobj = Py_None; | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
c32bde28 | 15207 | static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15208 | PyObject *resultobj; |
15209 | wxDC *arg1 = (wxDC *) 0 ; | |
15210 | bool arg2 ; | |
15211 | PyObject * obj0 = 0 ; | |
15212 | PyObject * obj1 = 0 ; | |
15213 | char *kwnames[] = { | |
f5b96ee1 | 15214 | (char *) "self",(char *) "optimize", NULL |
d55e5bfc RD |
15215 | }; |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15220 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15221 | if (PyErr_Occurred()) SWIG_fail; |
15222 | { | |
15223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15224 | (arg1)->SetOptimization(arg2); | |
15225 | ||
15226 | wxPyEndAllowThreads(__tstate); | |
15227 | if (PyErr_Occurred()) SWIG_fail; | |
15228 | } | |
15229 | Py_INCREF(Py_None); resultobj = Py_None; | |
15230 | return resultobj; | |
15231 | fail: | |
15232 | return NULL; | |
15233 | } | |
15234 | ||
15235 | ||
c32bde28 | 15236 | static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15237 | PyObject *resultobj; |
15238 | wxDC *arg1 = (wxDC *) 0 ; | |
15239 | bool result; | |
15240 | PyObject * obj0 = 0 ; | |
15241 | char *kwnames[] = { | |
15242 | (char *) "self", NULL | |
15243 | }; | |
15244 | ||
15245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | result = (bool)(arg1)->GetOptimization(); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | { | |
15256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15257 | } | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
c32bde28 | 15264 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15265 | PyObject *resultobj; |
15266 | wxDC *arg1 = (wxDC *) 0 ; | |
15267 | int arg2 ; | |
15268 | int arg3 ; | |
15269 | PyObject * obj0 = 0 ; | |
15270 | PyObject * obj1 = 0 ; | |
15271 | PyObject * obj2 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15279 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 15280 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 15281 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15282 | if (PyErr_Occurred()) SWIG_fail; |
15283 | { | |
15284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15285 | (arg1)->CalcBoundingBox(arg2,arg3); | |
15286 | ||
15287 | wxPyEndAllowThreads(__tstate); | |
15288 | if (PyErr_Occurred()) SWIG_fail; | |
15289 | } | |
15290 | Py_INCREF(Py_None); resultobj = Py_None; | |
15291 | return resultobj; | |
15292 | fail: | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
c32bde28 | 15297 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
c24da6d6 RD |
15298 | PyObject *resultobj; |
15299 | wxDC *arg1 = (wxDC *) 0 ; | |
15300 | wxPoint *arg2 = 0 ; | |
15301 | wxPoint temp2 ; | |
15302 | PyObject * obj0 = 0 ; | |
15303 | PyObject * obj1 = 0 ; | |
15304 | char *kwnames[] = { | |
15305 | (char *) "self",(char *) "point", NULL | |
15306 | }; | |
15307 | ||
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
15309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15311 | { | |
15312 | arg2 = &temp2; | |
15313 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15314 | } | |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | Py_INCREF(Py_None); resultobj = Py_None; | |
15323 | return resultobj; | |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
c32bde28 | 15329 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15330 | PyObject *resultobj; |
15331 | wxDC *arg1 = (wxDC *) 0 ; | |
15332 | PyObject * obj0 = 0 ; | |
15333 | char *kwnames[] = { | |
15334 | (char *) "self", NULL | |
15335 | }; | |
15336 | ||
15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | (arg1)->ResetBoundingBox(); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | Py_INCREF(Py_None); resultobj = Py_None; | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
c32bde28 | 15354 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15355 | PyObject *resultobj; |
15356 | wxDC *arg1 = (wxDC *) 0 ; | |
15357 | int result; | |
15358 | PyObject * obj0 = 0 ; | |
15359 | char *kwnames[] = { | |
15360 | (char *) "self", NULL | |
15361 | }; | |
15362 | ||
15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15366 | { | |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | result = (int)((wxDC const *)arg1)->MinX(); | |
15369 | ||
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
c32bde28 | 15373 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15374 | return resultobj; |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
c32bde28 | 15380 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15381 | PyObject *resultobj; |
15382 | wxDC *arg1 = (wxDC *) 0 ; | |
15383 | int result; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
c32bde28 | 15399 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15400 | return resultobj; |
15401 | fail: | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
c32bde28 | 15406 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15407 | PyObject *resultobj; |
15408 | wxDC *arg1 = (wxDC *) 0 ; | |
15409 | int result; | |
15410 | PyObject * obj0 = 0 ; | |
15411 | char *kwnames[] = { | |
15412 | (char *) "self", NULL | |
15413 | }; | |
15414 | ||
15415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15418 | { | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (int)((wxDC const *)arg1)->MinY(); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
c32bde28 | 15425 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
c32bde28 | 15432 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15433 | PyObject *resultobj; |
15434 | wxDC *arg1 = (wxDC *) 0 ; | |
15435 | int result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15444 | { | |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15447 | ||
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
c32bde28 | 15451 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15452 | return resultobj; |
15453 | fail: | |
15454 | return NULL; | |
15455 | } | |
15456 | ||
15457 | ||
c32bde28 | 15458 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15459 | PyObject *resultobj; |
15460 | wxDC *arg1 = (wxDC *) 0 ; | |
15461 | int *arg2 = (int *) 0 ; | |
15462 | int *arg3 = (int *) 0 ; | |
15463 | int *arg4 = (int *) 0 ; | |
15464 | int *arg5 = (int *) 0 ; | |
15465 | int temp2 ; | |
c32bde28 | 15466 | int res2 = 0 ; |
d55e5bfc | 15467 | int temp3 ; |
c32bde28 | 15468 | int res3 = 0 ; |
d55e5bfc | 15469 | int temp4 ; |
c32bde28 | 15470 | int res4 = 0 ; |
d55e5bfc | 15471 | int temp5 ; |
c32bde28 | 15472 | int res5 = 0 ; |
d55e5bfc RD |
15473 | PyObject * obj0 = 0 ; |
15474 | char *kwnames[] = { | |
15475 | (char *) "self", NULL | |
15476 | }; | |
15477 | ||
c32bde28 RD |
15478 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15479 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15480 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15481 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; |
15483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15485 | { | |
15486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15487 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15488 | ||
15489 | wxPyEndAllowThreads(__tstate); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | } | |
15492 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15493 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15494 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15495 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15496 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15497 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15498 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15499 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15500 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15501 | return resultobj; |
15502 | fail: | |
15503 | return NULL; | |
15504 | } | |
15505 | ||
15506 | ||
c32bde28 | 15507 | static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) { |
0439c23b RD |
15508 | PyObject *resultobj; |
15509 | wxDC *arg1 = (wxDC *) 0 ; | |
15510 | long result; | |
15511 | PyObject * obj0 = 0 ; | |
15512 | char *kwnames[] = { | |
15513 | (char *) "self", NULL | |
15514 | }; | |
15515 | ||
15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail; | |
15517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15519 | { | |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | result = (long)(arg1)->GetHDC(); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
c32bde28 | 15526 | resultobj = SWIG_From_long((long)result); |
0439c23b RD |
15527 | return resultobj; |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
c32bde28 | 15533 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15534 | PyObject *resultobj; |
15535 | wxDC *arg1 = (wxDC *) 0 ; | |
15536 | PyObject *arg2 = (PyObject *) 0 ; | |
15537 | PyObject *arg3 = (PyObject *) 0 ; | |
15538 | PyObject *arg4 = (PyObject *) 0 ; | |
15539 | PyObject *result; | |
15540 | PyObject * obj0 = 0 ; | |
15541 | PyObject * obj1 = 0 ; | |
15542 | PyObject * obj2 = 0 ; | |
15543 | PyObject * obj3 = 0 ; | |
15544 | char *kwnames[] = { | |
15545 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15546 | }; | |
15547 | ||
15548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15551 | arg2 = obj1; | |
15552 | arg3 = obj2; | |
15553 | arg4 = obj3; | |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | resultobj = result; | |
15562 | return resultobj; | |
15563 | fail: | |
15564 | return NULL; | |
15565 | } | |
15566 | ||
15567 | ||
c32bde28 | 15568 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15569 | PyObject *resultobj; |
15570 | wxDC *arg1 = (wxDC *) 0 ; | |
15571 | PyObject *arg2 = (PyObject *) 0 ; | |
15572 | PyObject *arg3 = (PyObject *) 0 ; | |
15573 | PyObject *arg4 = (PyObject *) 0 ; | |
15574 | PyObject *result; | |
15575 | PyObject * obj0 = 0 ; | |
15576 | PyObject * obj1 = 0 ; | |
15577 | PyObject * obj2 = 0 ; | |
15578 | PyObject * obj3 = 0 ; | |
15579 | char *kwnames[] = { | |
15580 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15581 | }; | |
15582 | ||
15583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15586 | arg2 = obj1; | |
15587 | arg3 = obj2; | |
15588 | arg4 = obj3; | |
15589 | { | |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15592 | ||
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
15596 | resultobj = result; | |
15597 | return resultobj; | |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
c32bde28 | 15603 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15604 | PyObject *resultobj; |
15605 | wxDC *arg1 = (wxDC *) 0 ; | |
15606 | PyObject *arg2 = (PyObject *) 0 ; | |
15607 | PyObject *arg3 = (PyObject *) 0 ; | |
15608 | PyObject *arg4 = (PyObject *) 0 ; | |
15609 | PyObject *result; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | PyObject * obj1 = 0 ; | |
15612 | PyObject * obj2 = 0 ; | |
15613 | PyObject * obj3 = 0 ; | |
15614 | char *kwnames[] = { | |
15615 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15616 | }; | |
15617 | ||
15618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15621 | arg2 = obj1; | |
15622 | arg3 = obj2; | |
15623 | arg4 = obj3; | |
15624 | { | |
15625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15626 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15627 | ||
15628 | wxPyEndAllowThreads(__tstate); | |
15629 | if (PyErr_Occurred()) SWIG_fail; | |
15630 | } | |
15631 | resultobj = result; | |
15632 | return resultobj; | |
15633 | fail: | |
15634 | return NULL; | |
15635 | } | |
15636 | ||
15637 | ||
c32bde28 | 15638 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15639 | PyObject *resultobj; |
15640 | wxDC *arg1 = (wxDC *) 0 ; | |
15641 | PyObject *arg2 = (PyObject *) 0 ; | |
15642 | PyObject *arg3 = (PyObject *) 0 ; | |
15643 | PyObject *arg4 = (PyObject *) 0 ; | |
15644 | PyObject *result; | |
15645 | PyObject * obj0 = 0 ; | |
15646 | PyObject * obj1 = 0 ; | |
15647 | PyObject * obj2 = 0 ; | |
15648 | PyObject * obj3 = 0 ; | |
15649 | char *kwnames[] = { | |
15650 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15651 | }; | |
15652 | ||
15653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15656 | arg2 = obj1; | |
15657 | arg3 = obj2; | |
15658 | arg4 = obj3; | |
15659 | { | |
15660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15661 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15662 | ||
15663 | wxPyEndAllowThreads(__tstate); | |
15664 | if (PyErr_Occurred()) SWIG_fail; | |
15665 | } | |
15666 | resultobj = result; | |
15667 | return resultobj; | |
15668 | fail: | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15674 | PyObject *resultobj; |
15675 | wxDC *arg1 = (wxDC *) 0 ; | |
15676 | PyObject *arg2 = (PyObject *) 0 ; | |
15677 | PyObject *arg3 = (PyObject *) 0 ; | |
15678 | PyObject *arg4 = (PyObject *) 0 ; | |
15679 | PyObject *result; | |
15680 | PyObject * obj0 = 0 ; | |
15681 | PyObject * obj1 = 0 ; | |
15682 | PyObject * obj2 = 0 ; | |
15683 | PyObject * obj3 = 0 ; | |
15684 | char *kwnames[] = { | |
15685 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15686 | }; | |
15687 | ||
15688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15691 | arg2 = obj1; | |
15692 | arg3 = obj2; | |
15693 | arg4 = obj3; | |
15694 | { | |
15695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15696 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15697 | ||
15698 | wxPyEndAllowThreads(__tstate); | |
15699 | if (PyErr_Occurred()) SWIG_fail; | |
15700 | } | |
15701 | resultobj = result; | |
15702 | return resultobj; | |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
c32bde28 | 15708 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15709 | PyObject *resultobj; |
15710 | wxDC *arg1 = (wxDC *) 0 ; | |
15711 | PyObject *arg2 = (PyObject *) 0 ; | |
15712 | PyObject *arg3 = (PyObject *) 0 ; | |
15713 | PyObject *arg4 = (PyObject *) 0 ; | |
15714 | PyObject *arg5 = (PyObject *) 0 ; | |
15715 | PyObject *result; | |
15716 | PyObject * obj0 = 0 ; | |
15717 | PyObject * obj1 = 0 ; | |
15718 | PyObject * obj2 = 0 ; | |
15719 | PyObject * obj3 = 0 ; | |
15720 | PyObject * obj4 = 0 ; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15728 | arg2 = obj1; | |
15729 | arg3 = obj2; | |
15730 | arg4 = obj3; | |
15731 | arg5 = obj4; | |
15732 | { | |
15733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15734 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15735 | ||
15736 | wxPyEndAllowThreads(__tstate); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | } | |
15739 | resultobj = result; | |
15740 | return resultobj; | |
15741 | fail: | |
15742 | return NULL; | |
15743 | } | |
15744 | ||
15745 | ||
c32bde28 | 15746 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15747 | PyObject *obj; |
15748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15749 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15750 | Py_INCREF(obj); | |
15751 | return Py_BuildValue((char *)""); | |
15752 | } | |
c32bde28 | 15753 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15754 | PyObject *resultobj; |
15755 | wxMemoryDC *result; | |
15756 | char *kwnames[] = { | |
15757 | NULL | |
15758 | }; | |
15759 | ||
15760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15761 | { | |
0439c23b | 15762 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15764 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15765 | ||
15766 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15767 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15768 | } |
15769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
c32bde28 | 15776 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15777 | PyObject *resultobj; |
15778 | wxDC *arg1 = (wxDC *) 0 ; | |
15779 | wxMemoryDC *result; | |
15780 | PyObject * obj0 = 0 ; | |
15781 | char *kwnames[] = { | |
15782 | (char *) "oldDC", NULL | |
15783 | }; | |
15784 | ||
15785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15788 | { | |
0439c23b | 15789 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15791 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15792 | ||
15793 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15794 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15795 | } |
15796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15797 | return resultobj; | |
15798 | fail: | |
15799 | return NULL; | |
15800 | } | |
15801 | ||
15802 | ||
c32bde28 | 15803 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15804 | PyObject *resultobj; |
15805 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15806 | wxBitmap *arg2 = 0 ; | |
15807 | PyObject * obj0 = 0 ; | |
15808 | PyObject * obj1 = 0 ; | |
15809 | char *kwnames[] = { | |
15810 | (char *) "self",(char *) "bitmap", NULL | |
15811 | }; | |
15812 | ||
15813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
15815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15817 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15818 | SWIG_fail; | |
15819 | if (arg2 == NULL) { | |
15820 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15821 | SWIG_fail; | |
15822 | } | |
15823 | { | |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | Py_INCREF(Py_None); resultobj = Py_None; | |
15831 | return resultobj; | |
15832 | fail: | |
15833 | return NULL; | |
15834 | } | |
15835 | ||
15836 | ||
c32bde28 | 15837 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15838 | PyObject *obj; |
15839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15840 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15841 | Py_INCREF(obj); | |
15842 | return Py_BuildValue((char *)""); | |
15843 | } | |
c32bde28 | 15844 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
15845 | PyObject *resultobj; |
15846 | wxDC *arg1 = (wxDC *) 0 ; | |
15847 | wxBitmap *arg2 = 0 ; | |
15848 | wxBufferedDC *result; | |
15849 | PyObject * obj0 = 0 ; | |
15850 | PyObject * obj1 = 0 ; | |
15851 | ||
15852 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15857 | SWIG_fail; | |
15858 | if (arg2 == NULL) { | |
15859 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15860 | SWIG_fail; | |
15861 | } | |
15862 | { | |
0439c23b | 15863 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15865 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15868 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15869 | } |
15870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15871 | return resultobj; | |
15872 | fail: | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
c32bde28 | 15877 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
15878 | PyObject *resultobj; |
15879 | wxDC *arg1 = (wxDC *) 0 ; | |
15880 | wxSize *arg2 = 0 ; | |
15881 | wxBufferedDC *result; | |
15882 | wxSize temp2 ; | |
15883 | PyObject * obj0 = 0 ; | |
15884 | PyObject * obj1 = 0 ; | |
15885 | ||
15886 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15889 | { | |
15890 | arg2 = &temp2; | |
15891 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15892 | } | |
15893 | { | |
0439c23b | 15894 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15896 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15897 | ||
15898 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15899 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15900 | } |
15901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15902 | return resultobj; | |
15903 | fail: | |
15904 | return NULL; | |
15905 | } | |
15906 | ||
15907 | ||
15908 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15909 | int argc; | |
15910 | PyObject *argv[3]; | |
15911 | int ii; | |
15912 | ||
15913 | argc = PyObject_Length(args); | |
15914 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15915 | argv[ii] = PyTuple_GetItem(args,ii); | |
15916 | } | |
15917 | if (argc == 2) { | |
15918 | int _v; | |
15919 | { | |
15920 | void *ptr; | |
15921 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15922 | _v = 0; | |
15923 | PyErr_Clear(); | |
15924 | } else { | |
15925 | _v = 1; | |
15926 | } | |
15927 | } | |
15928 | if (_v) { | |
15929 | { | |
15930 | void *ptr; | |
15931 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15932 | _v = 0; | |
15933 | PyErr_Clear(); | |
15934 | } else { | |
15935 | _v = 1; | |
15936 | } | |
15937 | } | |
15938 | if (_v) { | |
15939 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15940 | } | |
15941 | } | |
15942 | } | |
15943 | if (argc == 2) { | |
15944 | int _v; | |
15945 | { | |
15946 | void *ptr; | |
15947 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15948 | _v = 0; | |
15949 | PyErr_Clear(); | |
15950 | } else { | |
15951 | _v = 1; | |
15952 | } | |
15953 | } | |
15954 | if (_v) { | |
15955 | { | |
15956 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15957 | } | |
15958 | if (_v) { | |
15959 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15960 | } | |
15961 | } | |
15962 | } | |
15963 | ||
15964 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
c32bde28 | 15969 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15970 | PyObject *resultobj; |
15971 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15972 | PyObject * obj0 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15980 | { | |
15981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15982 | delete arg1; | |
15983 | ||
15984 | wxPyEndAllowThreads(__tstate); | |
15985 | if (PyErr_Occurred()) SWIG_fail; | |
15986 | } | |
15987 | Py_INCREF(Py_None); resultobj = Py_None; | |
15988 | return resultobj; | |
15989 | fail: | |
15990 | return NULL; | |
15991 | } | |
15992 | ||
15993 | ||
c32bde28 | 15994 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15995 | PyObject *resultobj; |
15996 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15997 | PyObject * obj0 = 0 ; | |
15998 | char *kwnames[] = { | |
15999 | (char *) "self", NULL | |
16000 | }; | |
16001 | ||
16002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
16003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
16004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | (arg1)->UnMask(); | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | Py_INCREF(Py_None); resultobj = Py_None; | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | return NULL; | |
16016 | } | |
16017 | ||
16018 | ||
c32bde28 | 16019 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16020 | PyObject *obj; |
16021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16022 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
16023 | Py_INCREF(obj); | |
16024 | return Py_BuildValue((char *)""); | |
16025 | } | |
c32bde28 | 16026 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16027 | PyObject *resultobj; |
16028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16029 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
16030 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
16031 | wxBufferedPaintDC *result; | |
16032 | PyObject * obj0 = 0 ; | |
16033 | PyObject * obj1 = 0 ; | |
16034 | char *kwnames[] = { | |
16035 | (char *) "window",(char *) "buffer", NULL | |
16036 | }; | |
16037 | ||
16038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
16039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16041 | if (obj1) { | |
16042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16044 | SWIG_fail; | |
16045 | if (arg2 == NULL) { | |
16046 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16047 | SWIG_fail; | |
16048 | } | |
16049 | } | |
16050 | { | |
0439c23b | 16051 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16053 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
16054 | ||
16055 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16056 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16057 | } |
16058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
16059 | return resultobj; | |
16060 | fail: | |
16061 | return NULL; | |
16062 | } | |
16063 | ||
16064 | ||
c32bde28 | 16065 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16066 | PyObject *obj; |
16067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16068 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
16069 | Py_INCREF(obj); | |
16070 | return Py_BuildValue((char *)""); | |
16071 | } | |
c32bde28 | 16072 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16073 | PyObject *resultobj; |
16074 | wxScreenDC *result; | |
16075 | char *kwnames[] = { | |
16076 | NULL | |
16077 | }; | |
16078 | ||
16079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
16080 | { | |
0439c23b | 16081 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16083 | result = (wxScreenDC *)new wxScreenDC(); | |
16084 | ||
16085 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16086 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16087 | } |
16088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
16089 | return resultobj; | |
16090 | fail: | |
16091 | return NULL; | |
16092 | } | |
16093 | ||
16094 | ||
c32bde28 | 16095 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16096 | PyObject *resultobj; |
16097 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16098 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16099 | bool result; | |
16100 | PyObject * obj0 = 0 ; | |
16101 | PyObject * obj1 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self",(char *) "window", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16111 | { | |
16112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16113 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16114 | ||
16115 | wxPyEndAllowThreads(__tstate); | |
16116 | if (PyErr_Occurred()) SWIG_fail; | |
16117 | } | |
16118 | { | |
16119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16120 | } | |
16121 | return resultobj; | |
16122 | fail: | |
16123 | return NULL; | |
16124 | } | |
16125 | ||
16126 | ||
c32bde28 | 16127 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16128 | PyObject *resultobj; |
16129 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16130 | wxRect *arg2 = (wxRect *) NULL ; | |
16131 | bool result; | |
16132 | PyObject * obj0 = 0 ; | |
16133 | PyObject * obj1 = 0 ; | |
16134 | char *kwnames[] = { | |
16135 | (char *) "self",(char *) "rect", NULL | |
16136 | }; | |
16137 | ||
16138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
16139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16141 | if (obj1) { | |
16142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16144 | } | |
16145 | { | |
16146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16147 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16148 | ||
16149 | wxPyEndAllowThreads(__tstate); | |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
16151 | } | |
16152 | { | |
16153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16154 | } | |
16155 | return resultobj; | |
16156 | fail: | |
16157 | return NULL; | |
16158 | } | |
16159 | ||
16160 | ||
c32bde28 | 16161 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16162 | PyObject *resultobj; |
16163 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16164 | bool result; | |
16165 | PyObject * obj0 = 0 ; | |
16166 | char *kwnames[] = { | |
16167 | (char *) "self", NULL | |
16168 | }; | |
16169 | ||
16170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
16171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16173 | { | |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16175 | result = (bool)(arg1)->EndDrawingOnTop(); | |
16176 | ||
16177 | wxPyEndAllowThreads(__tstate); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | } | |
16180 | { | |
16181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16182 | } | |
16183 | return resultobj; | |
16184 | fail: | |
16185 | return NULL; | |
16186 | } | |
16187 | ||
16188 | ||
c32bde28 | 16189 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16190 | PyObject *obj; |
16191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16192 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
16193 | Py_INCREF(obj); | |
16194 | return Py_BuildValue((char *)""); | |
16195 | } | |
c32bde28 | 16196 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16197 | PyObject *resultobj; |
16198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16199 | wxClientDC *result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "win", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16208 | { | |
0439c23b | 16209 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16211 | result = (wxClientDC *)new wxClientDC(arg1); | |
16212 | ||
16213 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16214 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16215 | } |
16216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
16217 | return resultobj; | |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
c32bde28 | 16223 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16224 | PyObject *obj; |
16225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16226 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
16227 | Py_INCREF(obj); | |
16228 | return Py_BuildValue((char *)""); | |
16229 | } | |
c32bde28 | 16230 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16231 | PyObject *resultobj; |
16232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16233 | wxPaintDC *result; | |
16234 | PyObject * obj0 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "win", NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
16240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16242 | { | |
0439c23b | 16243 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16245 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16248 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16249 | } |
16250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
c32bde28 | 16257 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16258 | PyObject *obj; |
16259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16260 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
16261 | Py_INCREF(obj); | |
16262 | return Py_BuildValue((char *)""); | |
16263 | } | |
c32bde28 | 16264 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16265 | PyObject *resultobj; |
16266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16267 | wxWindowDC *result; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | char *kwnames[] = { | |
16270 | (char *) "win", NULL | |
16271 | }; | |
16272 | ||
16273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
16274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16276 | { | |
0439c23b | 16277 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16279 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
16280 | ||
16281 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16282 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16283 | } |
16284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
16285 | return resultobj; | |
16286 | fail: | |
16287 | return NULL; | |
16288 | } | |
16289 | ||
16290 | ||
c32bde28 | 16291 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16292 | PyObject *obj; |
16293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16294 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
16295 | Py_INCREF(obj); | |
16296 | return Py_BuildValue((char *)""); | |
16297 | } | |
c32bde28 | 16298 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16299 | PyObject *resultobj; |
16300 | wxDC *arg1 = 0 ; | |
16301 | bool arg2 ; | |
16302 | wxMirrorDC *result; | |
16303 | PyObject * obj0 = 0 ; | |
16304 | PyObject * obj1 = 0 ; | |
16305 | char *kwnames[] = { | |
16306 | (char *) "dc",(char *) "mirror", NULL | |
16307 | }; | |
16308 | ||
16309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
16310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16312 | SWIG_fail; | |
16313 | if (arg1 == NULL) { | |
16314 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16315 | SWIG_fail; | |
16316 | } | |
c32bde28 | 16317 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16318 | if (PyErr_Occurred()) SWIG_fail; |
16319 | { | |
0439c23b | 16320 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16322 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
16323 | ||
16324 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16325 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16326 | } |
16327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
16328 | return resultobj; | |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
c32bde28 | 16334 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16335 | PyObject *obj; |
16336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16337 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
16338 | Py_INCREF(obj); | |
16339 | return Py_BuildValue((char *)""); | |
16340 | } | |
c32bde28 | 16341 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16342 | PyObject *resultobj; |
16343 | wxPrintData *arg1 = 0 ; | |
16344 | wxPostScriptDC *result; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | char *kwnames[] = { | |
16347 | (char *) "printData", NULL | |
16348 | }; | |
16349 | ||
16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16353 | SWIG_fail; | |
16354 | if (arg1 == NULL) { | |
16355 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16356 | SWIG_fail; | |
16357 | } | |
16358 | { | |
0439c23b | 16359 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16361 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16362 | ||
16363 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16364 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16365 | } |
16366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16367 | return resultobj; | |
16368 | fail: | |
16369 | return NULL; | |
16370 | } | |
16371 | ||
16372 | ||
c32bde28 | 16373 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16374 | PyObject *resultobj; |
16375 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16376 | wxPrintData *result; | |
16377 | PyObject * obj0 = 0 ; | |
16378 | char *kwnames[] = { | |
16379 | (char *) "self", NULL | |
16380 | }; | |
16381 | ||
16382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16385 | { | |
16386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16387 | { | |
16388 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16389 | result = (wxPrintData *) &_result_ref; | |
16390 | } | |
16391 | ||
16392 | wxPyEndAllowThreads(__tstate); | |
16393 | if (PyErr_Occurred()) SWIG_fail; | |
16394 | } | |
16395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16396 | return resultobj; | |
16397 | fail: | |
16398 | return NULL; | |
16399 | } | |
16400 | ||
16401 | ||
c32bde28 | 16402 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16403 | PyObject *resultobj; |
16404 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16405 | wxPrintData *arg2 = 0 ; | |
16406 | PyObject * obj0 = 0 ; | |
16407 | PyObject * obj1 = 0 ; | |
16408 | char *kwnames[] = { | |
16409 | (char *) "self",(char *) "data", NULL | |
16410 | }; | |
16411 | ||
16412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16416 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16417 | SWIG_fail; | |
16418 | if (arg2 == NULL) { | |
16419 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16420 | SWIG_fail; | |
16421 | } | |
16422 | { | |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
16429 | Py_INCREF(Py_None); resultobj = Py_None; | |
16430 | return resultobj; | |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
c32bde28 | 16436 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16437 | PyObject *resultobj; |
16438 | int arg1 ; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | char *kwnames[] = { | |
16441 | (char *) "ppi", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
c32bde28 | 16445 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
16446 | if (PyErr_Occurred()) SWIG_fail; |
16447 | { | |
16448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16449 | wxPostScriptDC::SetResolution(arg1); | |
16450 | ||
16451 | wxPyEndAllowThreads(__tstate); | |
16452 | if (PyErr_Occurred()) SWIG_fail; | |
16453 | } | |
16454 | Py_INCREF(Py_None); resultobj = Py_None; | |
16455 | return resultobj; | |
16456 | fail: | |
16457 | return NULL; | |
16458 | } | |
16459 | ||
16460 | ||
c32bde28 | 16461 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16462 | PyObject *resultobj; |
16463 | int result; | |
16464 | char *kwnames[] = { | |
16465 | NULL | |
16466 | }; | |
16467 | ||
16468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16469 | { | |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | result = (int)wxPostScriptDC::GetResolution(); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
c32bde28 | 16476 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16477 | return resultobj; |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
c32bde28 | 16483 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16484 | PyObject *obj; |
16485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16486 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16487 | Py_INCREF(obj); | |
16488 | return Py_BuildValue((char *)""); | |
16489 | } | |
c32bde28 | 16490 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16491 | PyObject *resultobj; |
16492 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16493 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16494 | wxMetaFile *result; | |
16495 | bool temp1 = False ; | |
16496 | PyObject * obj0 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "filename", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16502 | if (obj0) { | |
16503 | { | |
16504 | arg1 = wxString_in_helper(obj0); | |
16505 | if (arg1 == NULL) SWIG_fail; | |
16506 | temp1 = True; | |
16507 | } | |
16508 | } | |
16509 | { | |
0439c23b | 16510 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16512 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16513 | ||
16514 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16515 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16516 | } |
16517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16518 | { | |
16519 | if (temp1) | |
16520 | delete arg1; | |
16521 | } | |
16522 | return resultobj; | |
16523 | fail: | |
16524 | { | |
16525 | if (temp1) | |
16526 | delete arg1; | |
16527 | } | |
16528 | return NULL; | |
16529 | } | |
16530 | ||
16531 | ||
c32bde28 | 16532 | static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16533 | PyObject *resultobj; |
16534 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16535 | PyObject * obj0 = 0 ; | |
16536 | char *kwnames[] = { | |
16537 | (char *) "self", NULL | |
16538 | }; | |
16539 | ||
16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16543 | { | |
16544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16545 | delete arg1; | |
16546 | ||
16547 | wxPyEndAllowThreads(__tstate); | |
16548 | if (PyErr_Occurred()) SWIG_fail; | |
16549 | } | |
16550 | Py_INCREF(Py_None); resultobj = Py_None; | |
16551 | return resultobj; | |
16552 | fail: | |
16553 | return NULL; | |
16554 | } | |
16555 | ||
16556 | ||
c32bde28 | 16557 | static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16558 | PyObject *resultobj; |
16559 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16560 | bool result; | |
16561 | PyObject * obj0 = 0 ; | |
16562 | char *kwnames[] = { | |
16563 | (char *) "self", NULL | |
16564 | }; | |
16565 | ||
16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16569 | { | |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16571 | result = (bool)(arg1)->Ok(); | |
16572 | ||
16573 | wxPyEndAllowThreads(__tstate); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | } | |
16576 | { | |
16577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16578 | } | |
16579 | return resultobj; | |
16580 | fail: | |
16581 | return NULL; | |
16582 | } | |
16583 | ||
16584 | ||
c32bde28 | 16585 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16586 | PyObject *resultobj; |
16587 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16588 | int arg2 = (int) 0 ; | |
16589 | int arg3 = (int) 0 ; | |
16590 | bool result; | |
16591 | PyObject * obj0 = 0 ; | |
16592 | PyObject * obj1 = 0 ; | |
16593 | PyObject * obj2 = 0 ; | |
16594 | char *kwnames[] = { | |
16595 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16596 | }; | |
16597 | ||
16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16601 | if (obj1) { | |
c32bde28 | 16602 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16603 | if (PyErr_Occurred()) SWIG_fail; |
16604 | } | |
16605 | if (obj2) { | |
c32bde28 | 16606 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16607 | if (PyErr_Occurred()) SWIG_fail; |
16608 | } | |
16609 | { | |
16610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16611 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16612 | ||
16613 | wxPyEndAllowThreads(__tstate); | |
16614 | if (PyErr_Occurred()) SWIG_fail; | |
16615 | } | |
16616 | { | |
16617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16618 | } | |
16619 | return resultobj; | |
16620 | fail: | |
16621 | return NULL; | |
16622 | } | |
16623 | ||
16624 | ||
c32bde28 | 16625 | static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16626 | PyObject *resultobj; |
16627 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16628 | wxSize result; | |
16629 | PyObject * obj0 = 0 ; | |
16630 | char *kwnames[] = { | |
16631 | (char *) "self", NULL | |
16632 | }; | |
16633 | ||
16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16637 | { | |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | result = (arg1)->GetSize(); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
16644 | { | |
16645 | wxSize * resultptr; | |
16646 | resultptr = new wxSize((wxSize &) result); | |
16647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16648 | } | |
16649 | return resultobj; | |
16650 | fail: | |
16651 | return NULL; | |
16652 | } | |
16653 | ||
16654 | ||
c32bde28 | 16655 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16656 | PyObject *resultobj; |
16657 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16658 | int result; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | char *kwnames[] = { | |
16661 | (char *) "self", NULL | |
16662 | }; | |
16663 | ||
16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16667 | { | |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | result = (int)(arg1)->GetWidth(); | |
16670 | ||
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
c32bde28 | 16674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16675 | return resultobj; |
16676 | fail: | |
16677 | return NULL; | |
16678 | } | |
16679 | ||
16680 | ||
c32bde28 | 16681 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16682 | PyObject *resultobj; |
16683 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16684 | int result; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16693 | { | |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = (int)(arg1)->GetHeight(); | |
16696 | ||
16697 | wxPyEndAllowThreads(__tstate); | |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
16699 | } | |
c32bde28 | 16700 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16701 | return resultobj; |
16702 | fail: | |
16703 | return NULL; | |
16704 | } | |
16705 | ||
16706 | ||
c32bde28 | 16707 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16708 | PyObject *resultobj; |
16709 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16710 | wxString *result; | |
16711 | PyObject * obj0 = 0 ; | |
16712 | char *kwnames[] = { | |
16713 | (char *) "self", NULL | |
16714 | }; | |
16715 | ||
16716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
16717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16719 | { | |
16720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16721 | { | |
16722 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
16723 | result = (wxString *) &_result_ref; | |
16724 | } | |
16725 | ||
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | { | |
16730 | #if wxUSE_UNICODE | |
16731 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16732 | #else | |
16733 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16734 | #endif | |
16735 | } | |
16736 | return resultobj; | |
16737 | fail: | |
16738 | return NULL; | |
16739 | } | |
16740 | ||
16741 | ||
c32bde28 | 16742 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16743 | PyObject *obj; |
16744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16745 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16746 | Py_INCREF(obj); | |
16747 | return Py_BuildValue((char *)""); | |
16748 | } | |
c32bde28 | 16749 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16750 | PyObject *resultobj; |
16751 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16752 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16753 | int arg2 = (int) 0 ; | |
16754 | int arg3 = (int) 0 ; | |
16755 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16756 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16757 | wxMetaFileDC *result; | |
16758 | bool temp1 = False ; | |
16759 | bool temp4 = False ; | |
16760 | PyObject * obj0 = 0 ; | |
16761 | PyObject * obj1 = 0 ; | |
16762 | PyObject * obj2 = 0 ; | |
16763 | PyObject * obj3 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16769 | if (obj0) { | |
16770 | { | |
16771 | arg1 = wxString_in_helper(obj0); | |
16772 | if (arg1 == NULL) SWIG_fail; | |
16773 | temp1 = True; | |
16774 | } | |
16775 | } | |
16776 | if (obj1) { | |
c32bde28 | 16777 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16778 | if (PyErr_Occurred()) SWIG_fail; |
16779 | } | |
16780 | if (obj2) { | |
c32bde28 | 16781 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16782 | if (PyErr_Occurred()) SWIG_fail; |
16783 | } | |
16784 | if (obj3) { | |
16785 | { | |
16786 | arg4 = wxString_in_helper(obj3); | |
16787 | if (arg4 == NULL) SWIG_fail; | |
16788 | temp4 = True; | |
16789 | } | |
16790 | } | |
16791 | { | |
0439c23b | 16792 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16794 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16797 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16798 | } |
16799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
16800 | { | |
16801 | if (temp1) | |
16802 | delete arg1; | |
16803 | } | |
16804 | { | |
16805 | if (temp4) | |
16806 | delete arg4; | |
16807 | } | |
16808 | return resultobj; | |
16809 | fail: | |
16810 | { | |
16811 | if (temp1) | |
16812 | delete arg1; | |
16813 | } | |
16814 | { | |
16815 | if (temp4) | |
16816 | delete arg4; | |
16817 | } | |
16818 | return NULL; | |
16819 | } | |
16820 | ||
16821 | ||
c32bde28 | 16822 | static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16823 | PyObject *resultobj; |
16824 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16825 | wxMetaFile *result; | |
16826 | PyObject * obj0 = 0 ; | |
16827 | char *kwnames[] = { | |
16828 | (char *) "self", NULL | |
16829 | }; | |
16830 | ||
16831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
16832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
16833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16834 | { | |
16835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16836 | result = (wxMetaFile *)(arg1)->Close(); | |
16837 | ||
16838 | wxPyEndAllowThreads(__tstate); | |
16839 | if (PyErr_Occurred()) SWIG_fail; | |
16840 | } | |
16841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
16842 | return resultobj; | |
16843 | fail: | |
16844 | return NULL; | |
16845 | } | |
16846 | ||
16847 | ||
c32bde28 | 16848 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16849 | PyObject *obj; |
16850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16851 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16852 | Py_INCREF(obj); | |
16853 | return Py_BuildValue((char *)""); | |
16854 | } | |
c32bde28 | 16855 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16856 | PyObject *resultobj; |
16857 | wxPrintData *arg1 = 0 ; | |
16858 | wxPrinterDC *result; | |
16859 | PyObject * obj0 = 0 ; | |
16860 | char *kwnames[] = { | |
16861 | (char *) "printData", NULL | |
16862 | }; | |
16863 | ||
16864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16867 | SWIG_fail; | |
16868 | if (arg1 == NULL) { | |
16869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16870 | SWIG_fail; | |
16871 | } | |
16872 | { | |
0439c23b | 16873 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16875 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16878 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16879 | } |
16880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
c32bde28 | 16887 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16888 | PyObject *obj; |
16889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16890 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16891 | Py_INCREF(obj); | |
16892 | return Py_BuildValue((char *)""); | |
16893 | } | |
c32bde28 | 16894 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16895 | PyObject *resultobj; |
16896 | int arg1 ; | |
16897 | int arg2 ; | |
16898 | int arg3 = (int) True ; | |
16899 | int arg4 = (int) 1 ; | |
16900 | wxImageList *result; | |
16901 | PyObject * obj0 = 0 ; | |
16902 | PyObject * obj1 = 0 ; | |
16903 | PyObject * obj2 = 0 ; | |
16904 | PyObject * obj3 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 16910 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 16911 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 16912 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16913 | if (PyErr_Occurred()) SWIG_fail; |
16914 | if (obj2) { | |
c32bde28 | 16915 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16916 | if (PyErr_Occurred()) SWIG_fail; |
16917 | } | |
16918 | if (obj3) { | |
c32bde28 | 16919 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
16920 | if (PyErr_Occurred()) SWIG_fail; |
16921 | } | |
16922 | { | |
0439c23b | 16923 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16925 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16926 | ||
16927 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16928 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16929 | } |
16930 | { | |
412d302d | 16931 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
16932 | } |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
c32bde28 | 16939 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16940 | PyObject *resultobj; |
16941 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16942 | PyObject * obj0 = 0 ; | |
16943 | char *kwnames[] = { | |
16944 | (char *) "self", NULL | |
16945 | }; | |
16946 | ||
16947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16950 | { | |
16951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16952 | delete arg1; | |
16953 | ||
16954 | wxPyEndAllowThreads(__tstate); | |
16955 | if (PyErr_Occurred()) SWIG_fail; | |
16956 | } | |
16957 | Py_INCREF(Py_None); resultobj = Py_None; | |
16958 | return resultobj; | |
16959 | fail: | |
16960 | return NULL; | |
16961 | } | |
16962 | ||
16963 | ||
c32bde28 | 16964 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16965 | PyObject *resultobj; |
16966 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16967 | wxBitmap *arg2 = 0 ; | |
16968 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16969 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16970 | int result; | |
16971 | PyObject * obj0 = 0 ; | |
16972 | PyObject * obj1 = 0 ; | |
16973 | PyObject * obj2 = 0 ; | |
16974 | char *kwnames[] = { | |
16975 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16976 | }; | |
16977 | ||
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16983 | SWIG_fail; | |
16984 | if (arg2 == NULL) { | |
16985 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16986 | SWIG_fail; | |
16987 | } | |
16988 | if (obj2) { | |
16989 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16991 | SWIG_fail; | |
16992 | if (arg3 == NULL) { | |
16993 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16994 | SWIG_fail; | |
16995 | } | |
16996 | } | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
c32bde28 | 17004 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17005 | return resultobj; |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
c32bde28 | 17011 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17012 | PyObject *resultobj; |
17013 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17014 | wxBitmap *arg2 = 0 ; | |
17015 | wxColour *arg3 = 0 ; | |
17016 | int result; | |
17017 | wxColour temp3 ; | |
17018 | PyObject * obj0 = 0 ; | |
17019 | PyObject * obj1 = 0 ; | |
17020 | PyObject * obj2 = 0 ; | |
17021 | char *kwnames[] = { | |
17022 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
17023 | }; | |
17024 | ||
17025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17029 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17030 | SWIG_fail; | |
17031 | if (arg2 == NULL) { | |
17032 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17033 | SWIG_fail; | |
17034 | } | |
17035 | { | |
17036 | arg3 = &temp3; | |
17037 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17038 | } | |
17039 | { | |
17040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17041 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
17042 | ||
17043 | wxPyEndAllowThreads(__tstate); | |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
17045 | } | |
c32bde28 | 17046 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17047 | return resultobj; |
17048 | fail: | |
17049 | return NULL; | |
17050 | } | |
17051 | ||
17052 | ||
c32bde28 | 17053 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17054 | PyObject *resultobj; |
17055 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17056 | wxIcon *arg2 = 0 ; | |
17057 | int result; | |
17058 | PyObject * obj0 = 0 ; | |
17059 | PyObject * obj1 = 0 ; | |
17060 | char *kwnames[] = { | |
17061 | (char *) "self",(char *) "icon", NULL | |
17062 | }; | |
17063 | ||
17064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
17065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
17068 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17069 | SWIG_fail; | |
17070 | if (arg2 == NULL) { | |
17071 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17072 | SWIG_fail; | |
17073 | } | |
17074 | { | |
17075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17076 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
17077 | ||
17078 | wxPyEndAllowThreads(__tstate); | |
17079 | if (PyErr_Occurred()) SWIG_fail; | |
17080 | } | |
c32bde28 | 17081 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17082 | return resultobj; |
17083 | fail: | |
17084 | return NULL; | |
17085 | } | |
17086 | ||
17087 | ||
c32bde28 | 17088 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17089 | PyObject *resultobj; |
17090 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17091 | int arg2 ; | |
17092 | wxBitmap *arg3 = 0 ; | |
17093 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
17094 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
17095 | bool result; | |
17096 | PyObject * obj0 = 0 ; | |
17097 | PyObject * obj1 = 0 ; | |
17098 | PyObject * obj2 = 0 ; | |
17099 | PyObject * obj3 = 0 ; | |
17100 | char *kwnames[] = { | |
17101 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
17102 | }; | |
17103 | ||
17104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17107 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17108 | if (PyErr_Occurred()) SWIG_fail; |
17109 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
17110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17111 | SWIG_fail; | |
17112 | if (arg3 == NULL) { | |
17113 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17114 | SWIG_fail; | |
17115 | } | |
17116 | if (obj3) { | |
17117 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
17118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17119 | SWIG_fail; | |
17120 | if (arg4 == NULL) { | |
17121 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17122 | SWIG_fail; | |
17123 | } | |
17124 | } | |
17125 | { | |
17126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17127 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
17128 | ||
17129 | wxPyEndAllowThreads(__tstate); | |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
17131 | } | |
17132 | { | |
17133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17134 | } | |
17135 | return resultobj; | |
17136 | fail: | |
17137 | return NULL; | |
17138 | } | |
17139 | ||
17140 | ||
c32bde28 | 17141 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17142 | PyObject *resultobj; |
17143 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17144 | int arg2 ; | |
17145 | wxDC *arg3 = 0 ; | |
17146 | int arg4 ; | |
17147 | int arg5 ; | |
17148 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
17149 | bool arg7 = (bool) (bool)False ; | |
17150 | bool result; | |
17151 | PyObject * obj0 = 0 ; | |
17152 | PyObject * obj1 = 0 ; | |
17153 | PyObject * obj2 = 0 ; | |
17154 | PyObject * obj3 = 0 ; | |
17155 | PyObject * obj4 = 0 ; | |
17156 | PyObject * obj5 = 0 ; | |
17157 | PyObject * obj6 = 0 ; | |
17158 | char *kwnames[] = { | |
17159 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
17160 | }; | |
17161 | ||
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17165 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17166 | if (PyErr_Occurred()) SWIG_fail; |
17167 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
17168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17169 | SWIG_fail; | |
17170 | if (arg3 == NULL) { | |
17171 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17172 | SWIG_fail; | |
17173 | } | |
c32bde28 | 17174 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 17175 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17176 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
17177 | if (PyErr_Occurred()) SWIG_fail; |
17178 | if (obj5) { | |
c32bde28 | 17179 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17180 | if (PyErr_Occurred()) SWIG_fail; |
17181 | } | |
17182 | if (obj6) { | |
c32bde28 | 17183 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
17184 | if (PyErr_Occurred()) SWIG_fail; |
17185 | } | |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
17189 | ||
17190 | wxPyEndAllowThreads(__tstate); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | } | |
17193 | { | |
17194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17195 | } | |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
17199 | } | |
17200 | ||
17201 | ||
c32bde28 | 17202 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17203 | PyObject *resultobj; |
17204 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17205 | int result; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | char *kwnames[] = { | |
17208 | (char *) "self", NULL | |
17209 | }; | |
17210 | ||
17211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
17212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17214 | { | |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | result = (int)(arg1)->GetImageCount(); | |
17217 | ||
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
c32bde28 | 17221 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17222 | return resultobj; |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
c32bde28 | 17228 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17229 | PyObject *resultobj; |
17230 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17231 | int arg2 ; | |
17232 | bool result; | |
17233 | PyObject * obj0 = 0 ; | |
17234 | PyObject * obj1 = 0 ; | |
17235 | char *kwnames[] = { | |
17236 | (char *) "self",(char *) "index", NULL | |
17237 | }; | |
17238 | ||
17239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
17240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17242 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17243 | if (PyErr_Occurred()) SWIG_fail; |
17244 | { | |
17245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17246 | result = (bool)(arg1)->Remove(arg2); | |
17247 | ||
17248 | wxPyEndAllowThreads(__tstate); | |
17249 | if (PyErr_Occurred()) SWIG_fail; | |
17250 | } | |
17251 | { | |
17252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17253 | } | |
17254 | return resultobj; | |
17255 | fail: | |
17256 | return NULL; | |
17257 | } | |
17258 | ||
17259 | ||
c32bde28 | 17260 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17261 | PyObject *resultobj; |
17262 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17263 | bool result; | |
17264 | PyObject * obj0 = 0 ; | |
17265 | char *kwnames[] = { | |
17266 | (char *) "self", NULL | |
17267 | }; | |
17268 | ||
17269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
17270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17272 | { | |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | result = (bool)(arg1)->RemoveAll(); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
17279 | { | |
17280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17281 | } | |
17282 | return resultobj; | |
17283 | fail: | |
17284 | return NULL; | |
17285 | } | |
17286 | ||
17287 | ||
c32bde28 | 17288 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17289 | PyObject *resultobj; |
17290 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17291 | int arg2 ; | |
17292 | int *arg3 = 0 ; | |
17293 | int *arg4 = 0 ; | |
17294 | int temp3 ; | |
c32bde28 | 17295 | int res3 = 0 ; |
d55e5bfc | 17296 | int temp4 ; |
c32bde28 | 17297 | int res4 = 0 ; |
d55e5bfc RD |
17298 | PyObject * obj0 = 0 ; |
17299 | PyObject * obj1 = 0 ; | |
17300 | char *kwnames[] = { | |
17301 | (char *) "self",(char *) "index", NULL | |
17302 | }; | |
17303 | ||
c32bde28 RD |
17304 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
17305 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
17306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
17307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17309 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17310 | if (PyErr_Occurred()) SWIG_fail; |
17311 | { | |
17312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17313 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
17314 | ||
17315 | wxPyEndAllowThreads(__tstate); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
17317 | } | |
17318 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
17319 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17320 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
17321 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
17322 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
17323 | return resultobj; |
17324 | fail: | |
17325 | return NULL; | |
17326 | } | |
17327 | ||
17328 | ||
c32bde28 | 17329 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17330 | PyObject *obj; |
17331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17332 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
17333 | Py_INCREF(obj); | |
17334 | return Py_BuildValue((char *)""); | |
17335 | } | |
c32bde28 | 17336 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
d55e5bfc RD |
17337 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
17338 | return 1; | |
17339 | } | |
17340 | ||
17341 | ||
17342 | static PyObject *_wrap_NORMAL_FONT_get() { | |
17343 | PyObject *pyobj; | |
17344 | ||
17345 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
17346 | return pyobj; | |
17347 | } | |
17348 | ||
17349 | ||
c32bde28 | 17350 | static int _wrap_SMALL_FONT_set(PyObject *) { |
d55e5bfc RD |
17351 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
17352 | return 1; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_SMALL_FONT_get() { | |
17357 | PyObject *pyobj; | |
17358 | ||
17359 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
17360 | return pyobj; | |
17361 | } | |
17362 | ||
17363 | ||
c32bde28 | 17364 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
d55e5bfc RD |
17365 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
17366 | return 1; | |
17367 | } | |
17368 | ||
17369 | ||
17370 | static PyObject *_wrap_ITALIC_FONT_get() { | |
17371 | PyObject *pyobj; | |
17372 | ||
17373 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
17374 | return pyobj; | |
17375 | } | |
17376 | ||
17377 | ||
c32bde28 | 17378 | static int _wrap_SWISS_FONT_set(PyObject *) { |
d55e5bfc RD |
17379 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
17380 | return 1; | |
17381 | } | |
17382 | ||
17383 | ||
17384 | static PyObject *_wrap_SWISS_FONT_get() { | |
17385 | PyObject *pyobj; | |
17386 | ||
17387 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
17388 | return pyobj; | |
17389 | } | |
17390 | ||
17391 | ||
c32bde28 | 17392 | static int _wrap_RED_PEN_set(PyObject *) { |
d55e5bfc RD |
17393 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
17394 | return 1; | |
17395 | } | |
17396 | ||
17397 | ||
17398 | static PyObject *_wrap_RED_PEN_get() { | |
17399 | PyObject *pyobj; | |
17400 | ||
17401 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
17402 | return pyobj; | |
17403 | } | |
17404 | ||
17405 | ||
c32bde28 | 17406 | static int _wrap_CYAN_PEN_set(PyObject *) { |
d55e5bfc RD |
17407 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
17408 | return 1; | |
17409 | } | |
17410 | ||
17411 | ||
17412 | static PyObject *_wrap_CYAN_PEN_get() { | |
17413 | PyObject *pyobj; | |
17414 | ||
17415 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
17416 | return pyobj; | |
17417 | } | |
17418 | ||
17419 | ||
c32bde28 | 17420 | static int _wrap_GREEN_PEN_set(PyObject *) { |
d55e5bfc RD |
17421 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
17422 | return 1; | |
17423 | } | |
17424 | ||
17425 | ||
17426 | static PyObject *_wrap_GREEN_PEN_get() { | |
17427 | PyObject *pyobj; | |
17428 | ||
17429 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
17430 | return pyobj; | |
17431 | } | |
17432 | ||
17433 | ||
c32bde28 | 17434 | static int _wrap_BLACK_PEN_set(PyObject *) { |
d55e5bfc RD |
17435 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
17436 | return 1; | |
17437 | } | |
17438 | ||
17439 | ||
17440 | static PyObject *_wrap_BLACK_PEN_get() { | |
17441 | PyObject *pyobj; | |
17442 | ||
17443 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
17444 | return pyobj; | |
17445 | } | |
17446 | ||
17447 | ||
c32bde28 | 17448 | static int _wrap_WHITE_PEN_set(PyObject *) { |
d55e5bfc RD |
17449 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
17450 | return 1; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_WHITE_PEN_get() { | |
17455 | PyObject *pyobj; | |
17456 | ||
17457 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
17458 | return pyobj; | |
17459 | } | |
17460 | ||
17461 | ||
c32bde28 | 17462 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
d55e5bfc RD |
17463 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
17464 | return 1; | |
17465 | } | |
17466 | ||
17467 | ||
17468 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17469 | PyObject *pyobj; | |
17470 | ||
17471 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
17472 | return pyobj; | |
17473 | } | |
17474 | ||
17475 | ||
c32bde28 | 17476 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
d55e5bfc RD |
17477 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
17478 | return 1; | |
17479 | } | |
17480 | ||
17481 | ||
17482 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17483 | PyObject *pyobj; | |
17484 | ||
17485 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
17486 | return pyobj; | |
17487 | } | |
17488 | ||
17489 | ||
c32bde28 | 17490 | static int _wrap_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17491 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
17492 | return 1; | |
17493 | } | |
17494 | ||
17495 | ||
17496 | static PyObject *_wrap_GREY_PEN_get() { | |
17497 | PyObject *pyobj; | |
17498 | ||
17499 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17500 | return pyobj; | |
17501 | } | |
17502 | ||
17503 | ||
c32bde28 | 17504 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17505 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
17506 | return 1; | |
17507 | } | |
17508 | ||
17509 | ||
17510 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17511 | PyObject *pyobj; | |
17512 | ||
17513 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17514 | return pyobj; | |
17515 | } | |
17516 | ||
17517 | ||
c32bde28 | 17518 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17519 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
17520 | return 1; | |
17521 | } | |
17522 | ||
17523 | ||
17524 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17525 | PyObject *pyobj; | |
17526 | ||
17527 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17528 | return pyobj; | |
17529 | } | |
17530 | ||
17531 | ||
c32bde28 | 17532 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17533 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
17534 | return 1; | |
17535 | } | |
17536 | ||
17537 | ||
17538 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
17539 | PyObject *pyobj; | |
17540 | ||
17541 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17542 | return pyobj; | |
17543 | } | |
17544 | ||
17545 | ||
c32bde28 | 17546 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17547 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
17548 | return 1; | |
17549 | } | |
17550 | ||
17551 | ||
17552 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
17553 | PyObject *pyobj; | |
17554 | ||
17555 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17556 | return pyobj; | |
17557 | } | |
17558 | ||
17559 | ||
c32bde28 | 17560 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17561 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
17562 | return 1; | |
17563 | } | |
17564 | ||
17565 | ||
17566 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
17567 | PyObject *pyobj; | |
17568 | ||
17569 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17570 | return pyobj; | |
17571 | } | |
17572 | ||
17573 | ||
c32bde28 | 17574 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17575 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
17576 | return 1; | |
17577 | } | |
17578 | ||
17579 | ||
17580 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
17581 | PyObject *pyobj; | |
17582 | ||
17583 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17584 | return pyobj; | |
17585 | } | |
17586 | ||
17587 | ||
c32bde28 | 17588 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17589 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
17590 | return 1; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17595 | PyObject *pyobj; | |
17596 | ||
17597 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17598 | return pyobj; | |
17599 | } | |
17600 | ||
17601 | ||
c32bde28 | 17602 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17603 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
17604 | return 1; | |
17605 | } | |
17606 | ||
17607 | ||
17608 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17609 | PyObject *pyobj; | |
17610 | ||
17611 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17612 | return pyobj; | |
17613 | } | |
17614 | ||
17615 | ||
c32bde28 | 17616 | static int _wrap_RED_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17617 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
17618 | return 1; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject *_wrap_RED_BRUSH_get() { | |
17623 | PyObject *pyobj; | |
17624 | ||
17625 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17626 | return pyobj; | |
17627 | } | |
17628 | ||
17629 | ||
c32bde28 | 17630 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17631 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
17632 | return 1; | |
17633 | } | |
17634 | ||
17635 | ||
17636 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17637 | PyObject *pyobj; | |
17638 | ||
17639 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17640 | return pyobj; | |
17641 | } | |
17642 | ||
17643 | ||
c32bde28 | 17644 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17645 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
17646 | return 1; | |
17647 | } | |
17648 | ||
17649 | ||
17650 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17651 | PyObject *pyobj; | |
17652 | ||
17653 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17654 | return pyobj; | |
17655 | } | |
17656 | ||
17657 | ||
c32bde28 | 17658 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17659 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
17660 | return 1; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17665 | PyObject *pyobj; | |
17666 | ||
17667 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17668 | return pyobj; | |
17669 | } | |
17670 | ||
17671 | ||
c32bde28 | 17672 | static int _wrap_BLACK_set(PyObject *) { |
d55e5bfc RD |
17673 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
17674 | return 1; | |
17675 | } | |
17676 | ||
17677 | ||
17678 | static PyObject *_wrap_BLACK_get() { | |
17679 | PyObject *pyobj; | |
17680 | ||
17681 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17682 | return pyobj; | |
17683 | } | |
17684 | ||
17685 | ||
c32bde28 | 17686 | static int _wrap_WHITE_set(PyObject *) { |
d55e5bfc RD |
17687 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
17688 | return 1; | |
17689 | } | |
17690 | ||
17691 | ||
17692 | static PyObject *_wrap_WHITE_get() { | |
17693 | PyObject *pyobj; | |
17694 | ||
17695 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17696 | return pyobj; | |
17697 | } | |
17698 | ||
17699 | ||
c32bde28 | 17700 | static int _wrap_RED_set(PyObject *) { |
d55e5bfc RD |
17701 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
17702 | return 1; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_RED_get() { | |
17707 | PyObject *pyobj; | |
17708 | ||
17709 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17710 | return pyobj; | |
17711 | } | |
17712 | ||
17713 | ||
c32bde28 | 17714 | static int _wrap_BLUE_set(PyObject *) { |
d55e5bfc RD |
17715 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
17716 | return 1; | |
17717 | } | |
17718 | ||
17719 | ||
17720 | static PyObject *_wrap_BLUE_get() { | |
17721 | PyObject *pyobj; | |
17722 | ||
17723 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
17724 | return pyobj; | |
17725 | } | |
17726 | ||
17727 | ||
c32bde28 | 17728 | static int _wrap_GREEN_set(PyObject *) { |
d55e5bfc RD |
17729 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
17730 | return 1; | |
17731 | } | |
17732 | ||
17733 | ||
17734 | static PyObject *_wrap_GREEN_get() { | |
17735 | PyObject *pyobj; | |
17736 | ||
17737 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
17738 | return pyobj; | |
17739 | } | |
17740 | ||
17741 | ||
c32bde28 | 17742 | static int _wrap_CYAN_set(PyObject *) { |
d55e5bfc RD |
17743 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
17744 | return 1; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject *_wrap_CYAN_get() { | |
17749 | PyObject *pyobj; | |
17750 | ||
17751 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
17752 | return pyobj; | |
17753 | } | |
17754 | ||
17755 | ||
c32bde28 | 17756 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
d55e5bfc RD |
17757 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
17758 | return 1; | |
17759 | } | |
17760 | ||
17761 | ||
17762 | static PyObject *_wrap_LIGHT_GREY_get() { | |
17763 | PyObject *pyobj; | |
17764 | ||
17765 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
17766 | return pyobj; | |
17767 | } | |
17768 | ||
17769 | ||
c32bde28 | 17770 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17771 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
17772 | return 1; | |
17773 | } | |
17774 | ||
17775 | ||
17776 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
17777 | PyObject *pyobj; | |
17778 | ||
17779 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17780 | return pyobj; | |
17781 | } | |
17782 | ||
17783 | ||
c32bde28 | 17784 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17785 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
17786 | return 1; | |
17787 | } | |
17788 | ||
17789 | ||
17790 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
17791 | PyObject *pyobj; | |
17792 | ||
17793 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17794 | return pyobj; | |
17795 | } | |
17796 | ||
17797 | ||
c32bde28 | 17798 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17799 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
17800 | return 1; | |
17801 | } | |
17802 | ||
17803 | ||
17804 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
17805 | PyObject *pyobj; | |
17806 | ||
17807 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17808 | return pyobj; | |
17809 | } | |
17810 | ||
17811 | ||
c32bde28 | 17812 | static int _wrap_NullBitmap_set(PyObject *) { |
d55e5bfc RD |
17813 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
17814 | return 1; | |
17815 | } | |
17816 | ||
17817 | ||
17818 | static PyObject *_wrap_NullBitmap_get() { | |
17819 | PyObject *pyobj; | |
17820 | ||
17821 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
17822 | return pyobj; | |
17823 | } | |
17824 | ||
17825 | ||
c32bde28 | 17826 | static int _wrap_NullIcon_set(PyObject *) { |
d55e5bfc RD |
17827 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
17828 | return 1; | |
17829 | } | |
17830 | ||
17831 | ||
17832 | static PyObject *_wrap_NullIcon_get() { | |
17833 | PyObject *pyobj; | |
17834 | ||
17835 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
17836 | return pyobj; | |
17837 | } | |
17838 | ||
17839 | ||
c32bde28 | 17840 | static int _wrap_NullCursor_set(PyObject *) { |
d55e5bfc RD |
17841 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
17842 | return 1; | |
17843 | } | |
17844 | ||
17845 | ||
17846 | static PyObject *_wrap_NullCursor_get() { | |
17847 | PyObject *pyobj; | |
17848 | ||
17849 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
17850 | return pyobj; | |
17851 | } | |
17852 | ||
17853 | ||
c32bde28 | 17854 | static int _wrap_NullPen_set(PyObject *) { |
d55e5bfc RD |
17855 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
17856 | return 1; | |
17857 | } | |
17858 | ||
17859 | ||
17860 | static PyObject *_wrap_NullPen_get() { | |
17861 | PyObject *pyobj; | |
17862 | ||
17863 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
17864 | return pyobj; | |
17865 | } | |
17866 | ||
17867 | ||
c32bde28 | 17868 | static int _wrap_NullBrush_set(PyObject *) { |
d55e5bfc RD |
17869 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
17870 | return 1; | |
17871 | } | |
17872 | ||
17873 | ||
17874 | static PyObject *_wrap_NullBrush_get() { | |
17875 | PyObject *pyobj; | |
17876 | ||
17877 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17878 | return pyobj; | |
17879 | } | |
17880 | ||
17881 | ||
c32bde28 | 17882 | static int _wrap_NullPalette_set(PyObject *) { |
d55e5bfc RD |
17883 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
17884 | return 1; | |
17885 | } | |
17886 | ||
17887 | ||
17888 | static PyObject *_wrap_NullPalette_get() { | |
17889 | PyObject *pyobj; | |
17890 | ||
17891 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17892 | return pyobj; | |
17893 | } | |
17894 | ||
17895 | ||
c32bde28 | 17896 | static int _wrap_NullFont_set(PyObject *) { |
d55e5bfc RD |
17897 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
17898 | return 1; | |
17899 | } | |
17900 | ||
17901 | ||
17902 | static PyObject *_wrap_NullFont_get() { | |
17903 | PyObject *pyobj; | |
17904 | ||
17905 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17906 | return pyobj; | |
17907 | } | |
17908 | ||
17909 | ||
c32bde28 | 17910 | static int _wrap_NullColour_set(PyObject *) { |
d55e5bfc RD |
17911 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
17912 | return 1; | |
17913 | } | |
17914 | ||
17915 | ||
17916 | static PyObject *_wrap_NullColour_get() { | |
17917 | PyObject *pyobj; | |
17918 | ||
17919 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17920 | return pyobj; | |
17921 | } | |
17922 | ||
17923 | ||
c32bde28 | 17924 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17925 | PyObject *resultobj; |
17926 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17927 | wxPen *arg2 = (wxPen *) 0 ; | |
17928 | PyObject * obj0 = 0 ; | |
17929 | PyObject * obj1 = 0 ; | |
17930 | char *kwnames[] = { | |
17931 | (char *) "self",(char *) "pen", NULL | |
17932 | }; | |
17933 | ||
17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17939 | { | |
17940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17941 | (arg1)->AddPen(arg2); | |
17942 | ||
17943 | wxPyEndAllowThreads(__tstate); | |
17944 | if (PyErr_Occurred()) SWIG_fail; | |
17945 | } | |
17946 | Py_INCREF(Py_None); resultobj = Py_None; | |
17947 | return resultobj; | |
17948 | fail: | |
17949 | return NULL; | |
17950 | } | |
17951 | ||
17952 | ||
c32bde28 | 17953 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17954 | PyObject *resultobj; |
17955 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17956 | wxColour *arg2 = 0 ; | |
17957 | int arg3 ; | |
17958 | int arg4 ; | |
17959 | wxPen *result; | |
17960 | wxColour temp2 ; | |
17961 | PyObject * obj0 = 0 ; | |
17962 | PyObject * obj1 = 0 ; | |
17963 | PyObject * obj2 = 0 ; | |
17964 | PyObject * obj3 = 0 ; | |
17965 | char *kwnames[] = { | |
17966 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17967 | }; | |
17968 | ||
17969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17972 | { | |
17973 | arg2 = &temp2; | |
17974 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17975 | } | |
c32bde28 | 17976 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 17977 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17978 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17979 | if (PyErr_Occurred()) SWIG_fail; |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17988 | return resultobj; | |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
c32bde28 | 17994 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17995 | PyObject *resultobj; |
17996 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17997 | wxPen *arg2 = (wxPen *) 0 ; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | PyObject * obj1 = 0 ; | |
18000 | char *kwnames[] = { | |
18001 | (char *) "self",(char *) "pen", NULL | |
18002 | }; | |
18003 | ||
18004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
18005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
18008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18009 | { | |
18010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18011 | (arg1)->RemovePen(arg2); | |
18012 | ||
18013 | wxPyEndAllowThreads(__tstate); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
18016 | Py_INCREF(Py_None); resultobj = Py_None; | |
18017 | return resultobj; | |
18018 | fail: | |
18019 | return NULL; | |
18020 | } | |
18021 | ||
18022 | ||
c32bde28 | 18023 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18024 | PyObject *resultobj; |
18025 | wxPenList *arg1 = (wxPenList *) 0 ; | |
18026 | int result; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
18033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
18034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18035 | { | |
18036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18037 | result = (int)(arg1)->GetCount(); | |
18038 | ||
18039 | wxPyEndAllowThreads(__tstate); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | } | |
c32bde28 | 18042 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18043 | return resultobj; |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
c32bde28 | 18049 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18050 | PyObject *obj; |
18051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18052 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
18053 | Py_INCREF(obj); | |
18054 | return Py_BuildValue((char *)""); | |
18055 | } | |
c32bde28 | 18056 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18057 | PyObject *resultobj; |
18058 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18059 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18060 | PyObject * obj0 = 0 ; | |
18061 | PyObject * obj1 = 0 ; | |
18062 | char *kwnames[] = { | |
18063 | (char *) "self",(char *) "brush", NULL | |
18064 | }; | |
18065 | ||
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
18067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18071 | { | |
18072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18073 | (arg1)->AddBrush(arg2); | |
18074 | ||
18075 | wxPyEndAllowThreads(__tstate); | |
18076 | if (PyErr_Occurred()) SWIG_fail; | |
18077 | } | |
18078 | Py_INCREF(Py_None); resultobj = Py_None; | |
18079 | return resultobj; | |
18080 | fail: | |
18081 | return NULL; | |
18082 | } | |
18083 | ||
18084 | ||
c32bde28 | 18085 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18086 | PyObject *resultobj; |
18087 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18088 | wxColour *arg2 = 0 ; | |
18089 | int arg3 ; | |
18090 | wxBrush *result; | |
18091 | wxColour temp2 ; | |
18092 | PyObject * obj0 = 0 ; | |
18093 | PyObject * obj1 = 0 ; | |
18094 | PyObject * obj2 = 0 ; | |
18095 | char *kwnames[] = { | |
18096 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
18097 | }; | |
18098 | ||
18099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18102 | { | |
18103 | arg2 = &temp2; | |
18104 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18105 | } | |
c32bde28 | 18106 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18107 | if (PyErr_Occurred()) SWIG_fail; |
18108 | { | |
18109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18110 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
18111 | ||
18112 | wxPyEndAllowThreads(__tstate); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
18115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
18116 | return resultobj; | |
18117 | fail: | |
18118 | return NULL; | |
18119 | } | |
18120 | ||
18121 | ||
c32bde28 | 18122 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18123 | PyObject *resultobj; |
18124 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18125 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18126 | PyObject * obj0 = 0 ; | |
18127 | PyObject * obj1 = 0 ; | |
18128 | char *kwnames[] = { | |
18129 | (char *) "self",(char *) "brush", NULL | |
18130 | }; | |
18131 | ||
18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
18133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18137 | { | |
18138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18139 | (arg1)->RemoveBrush(arg2); | |
18140 | ||
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | Py_INCREF(Py_None); resultobj = Py_None; | |
18145 | return resultobj; | |
18146 | fail: | |
18147 | return NULL; | |
18148 | } | |
18149 | ||
18150 | ||
c32bde28 | 18151 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18152 | PyObject *resultobj; |
18153 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18154 | int result; | |
18155 | PyObject * obj0 = 0 ; | |
18156 | char *kwnames[] = { | |
18157 | (char *) "self", NULL | |
18158 | }; | |
18159 | ||
18160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
18161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18163 | { | |
18164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18165 | result = (int)(arg1)->GetCount(); | |
18166 | ||
18167 | wxPyEndAllowThreads(__tstate); | |
18168 | if (PyErr_Occurred()) SWIG_fail; | |
18169 | } | |
c32bde28 | 18170 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18171 | return resultobj; |
18172 | fail: | |
18173 | return NULL; | |
18174 | } | |
18175 | ||
18176 | ||
c32bde28 | 18177 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18178 | PyObject *obj; |
18179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18180 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
18181 | Py_INCREF(obj); | |
18182 | return Py_BuildValue((char *)""); | |
18183 | } | |
c32bde28 | 18184 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18185 | PyObject *resultobj; |
18186 | wxColourDatabase *result; | |
18187 | char *kwnames[] = { | |
18188 | NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
18192 | { | |
0439c23b | 18193 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18195 | result = (wxColourDatabase *)new wxColourDatabase(); | |
18196 | ||
18197 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18198 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18199 | } |
18200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
18201 | return resultobj; | |
18202 | fail: | |
18203 | return NULL; | |
18204 | } | |
18205 | ||
18206 | ||
c32bde28 | 18207 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18208 | PyObject *resultobj; |
18209 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | delete arg1; | |
18221 | ||
18222 | wxPyEndAllowThreads(__tstate); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | } | |
18225 | Py_INCREF(Py_None); resultobj = Py_None; | |
18226 | return resultobj; | |
18227 | fail: | |
18228 | return NULL; | |
18229 | } | |
18230 | ||
18231 | ||
c32bde28 | 18232 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18233 | PyObject *resultobj; |
18234 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18235 | wxString *arg2 = 0 ; | |
18236 | wxColour result; | |
18237 | bool temp2 = False ; | |
18238 | PyObject * obj0 = 0 ; | |
18239 | PyObject * obj1 = 0 ; | |
18240 | char *kwnames[] = { | |
18241 | (char *) "self",(char *) "name", NULL | |
18242 | }; | |
18243 | ||
18244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
18245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18247 | { | |
18248 | arg2 = wxString_in_helper(obj1); | |
18249 | if (arg2 == NULL) SWIG_fail; | |
18250 | temp2 = True; | |
18251 | } | |
18252 | { | |
18253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18254 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
18255 | ||
18256 | wxPyEndAllowThreads(__tstate); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
18259 | { | |
18260 | wxColour * resultptr; | |
18261 | resultptr = new wxColour((wxColour &) result); | |
18262 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18263 | } | |
18264 | { | |
18265 | if (temp2) | |
18266 | delete arg2; | |
18267 | } | |
18268 | return resultobj; | |
18269 | fail: | |
18270 | { | |
18271 | if (temp2) | |
18272 | delete arg2; | |
18273 | } | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
c32bde28 | 18278 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18279 | PyObject *resultobj; |
18280 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18281 | wxColour *arg2 = 0 ; | |
18282 | wxString result; | |
18283 | wxColour temp2 ; | |
18284 | PyObject * obj0 = 0 ; | |
18285 | PyObject * obj1 = 0 ; | |
18286 | char *kwnames[] = { | |
18287 | (char *) "self",(char *) "colour", NULL | |
18288 | }; | |
18289 | ||
18290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
18291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18293 | { | |
18294 | arg2 = &temp2; | |
18295 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18296 | } | |
18297 | { | |
18298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18299 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
18300 | ||
18301 | wxPyEndAllowThreads(__tstate); | |
18302 | if (PyErr_Occurred()) SWIG_fail; | |
18303 | } | |
18304 | { | |
18305 | #if wxUSE_UNICODE | |
18306 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18307 | #else | |
18308 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18309 | #endif | |
18310 | } | |
18311 | return resultobj; | |
18312 | fail: | |
18313 | return NULL; | |
18314 | } | |
18315 | ||
18316 | ||
c32bde28 | 18317 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18318 | PyObject *resultobj; |
18319 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18320 | wxString *arg2 = 0 ; | |
18321 | wxColour *arg3 = 0 ; | |
18322 | bool temp2 = False ; | |
18323 | wxColour temp3 ; | |
18324 | PyObject * obj0 = 0 ; | |
18325 | PyObject * obj1 = 0 ; | |
18326 | PyObject * obj2 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18334 | { | |
18335 | arg2 = wxString_in_helper(obj1); | |
18336 | if (arg2 == NULL) SWIG_fail; | |
18337 | temp2 = True; | |
18338 | } | |
18339 | { | |
18340 | arg3 = &temp3; | |
18341 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18342 | } | |
18343 | { | |
18344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18345 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
18346 | ||
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | Py_INCREF(Py_None); resultobj = Py_None; | |
18351 | { | |
18352 | if (temp2) | |
18353 | delete arg2; | |
18354 | } | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | { | |
18358 | if (temp2) | |
18359 | delete arg2; | |
18360 | } | |
18361 | return NULL; | |
18362 | } | |
18363 | ||
18364 | ||
c32bde28 | 18365 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18366 | PyObject *resultobj; |
18367 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18368 | wxString *arg2 = 0 ; | |
18369 | int arg3 ; | |
18370 | int arg4 ; | |
18371 | int arg5 ; | |
18372 | bool temp2 = False ; | |
18373 | PyObject * obj0 = 0 ; | |
18374 | PyObject * obj1 = 0 ; | |
18375 | PyObject * obj2 = 0 ; | |
18376 | PyObject * obj3 = 0 ; | |
18377 | PyObject * obj4 = 0 ; | |
18378 | char *kwnames[] = { | |
18379 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
18380 | }; | |
18381 | ||
18382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18385 | { | |
18386 | arg2 = wxString_in_helper(obj1); | |
18387 | if (arg2 == NULL) SWIG_fail; | |
18388 | temp2 = True; | |
18389 | } | |
c32bde28 | 18390 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18391 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18392 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18393 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18394 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18395 | if (PyErr_Occurred()) SWIG_fail; |
18396 | { | |
18397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18398 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18399 | ||
18400 | wxPyEndAllowThreads(__tstate); | |
18401 | if (PyErr_Occurred()) SWIG_fail; | |
18402 | } | |
18403 | Py_INCREF(Py_None); resultobj = Py_None; | |
18404 | { | |
18405 | if (temp2) | |
18406 | delete arg2; | |
18407 | } | |
18408 | return resultobj; | |
18409 | fail: | |
18410 | { | |
18411 | if (temp2) | |
18412 | delete arg2; | |
18413 | } | |
18414 | return NULL; | |
18415 | } | |
18416 | ||
18417 | ||
c32bde28 | 18418 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18419 | PyObject *obj; |
18420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18421 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18422 | Py_INCREF(obj); | |
18423 | return Py_BuildValue((char *)""); | |
18424 | } | |
c32bde28 | 18425 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18426 | PyObject *resultobj; |
18427 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18428 | wxFont *arg2 = (wxFont *) 0 ; | |
18429 | PyObject * obj0 = 0 ; | |
18430 | PyObject * obj1 = 0 ; | |
18431 | char *kwnames[] = { | |
18432 | (char *) "self",(char *) "font", NULL | |
18433 | }; | |
18434 | ||
18435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
18436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18440 | { | |
18441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18442 | (arg1)->AddFont(arg2); | |
18443 | ||
18444 | wxPyEndAllowThreads(__tstate); | |
18445 | if (PyErr_Occurred()) SWIG_fail; | |
18446 | } | |
18447 | Py_INCREF(Py_None); resultobj = Py_None; | |
18448 | return resultobj; | |
18449 | fail: | |
18450 | return NULL; | |
18451 | } | |
18452 | ||
18453 | ||
c32bde28 | 18454 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18455 | PyObject *resultobj; |
18456 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18457 | int arg2 ; | |
18458 | int arg3 ; | |
18459 | int arg4 ; | |
18460 | int arg5 ; | |
18461 | bool arg6 = (bool) False ; | |
18462 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18463 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18464 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18465 | wxFont *result; | |
18466 | bool temp7 = False ; | |
18467 | PyObject * obj0 = 0 ; | |
18468 | PyObject * obj1 = 0 ; | |
18469 | PyObject * obj2 = 0 ; | |
18470 | PyObject * obj3 = 0 ; | |
18471 | PyObject * obj4 = 0 ; | |
18472 | PyObject * obj5 = 0 ; | |
18473 | PyObject * obj6 = 0 ; | |
18474 | PyObject * obj7 = 0 ; | |
18475 | char *kwnames[] = { | |
18476 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18477 | }; | |
18478 | ||
18479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18482 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18483 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18484 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18485 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18486 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18487 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18488 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18489 | if (PyErr_Occurred()) SWIG_fail; |
18490 | if (obj5) { | |
c32bde28 | 18491 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
18492 | if (PyErr_Occurred()) SWIG_fail; |
18493 | } | |
18494 | if (obj6) { | |
18495 | { | |
18496 | arg7 = wxString_in_helper(obj6); | |
18497 | if (arg7 == NULL) SWIG_fail; | |
18498 | temp7 = True; | |
18499 | } | |
18500 | } | |
18501 | if (obj7) { | |
c32bde28 | 18502 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18503 | if (PyErr_Occurred()) SWIG_fail; |
18504 | } | |
18505 | { | |
18506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18507 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18508 | ||
18509 | wxPyEndAllowThreads(__tstate); | |
18510 | if (PyErr_Occurred()) SWIG_fail; | |
18511 | } | |
18512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
18513 | { | |
18514 | if (temp7) | |
18515 | delete arg7; | |
18516 | } | |
18517 | return resultobj; | |
18518 | fail: | |
18519 | { | |
18520 | if (temp7) | |
18521 | delete arg7; | |
18522 | } | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
c32bde28 | 18527 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18528 | PyObject *resultobj; |
18529 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18530 | wxFont *arg2 = (wxFont *) 0 ; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | PyObject * obj1 = 0 ; | |
18533 | char *kwnames[] = { | |
18534 | (char *) "self",(char *) "font", NULL | |
18535 | }; | |
18536 | ||
18537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
18538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18540 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18542 | { | |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18544 | (arg1)->RemoveFont(arg2); | |
18545 | ||
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
18549 | Py_INCREF(Py_None); resultobj = Py_None; | |
18550 | return resultobj; | |
18551 | fail: | |
18552 | return NULL; | |
18553 | } | |
18554 | ||
18555 | ||
c32bde28 | 18556 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18557 | PyObject *resultobj; |
18558 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18559 | int result; | |
18560 | PyObject * obj0 = 0 ; | |
18561 | char *kwnames[] = { | |
18562 | (char *) "self", NULL | |
18563 | }; | |
18564 | ||
18565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
18566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18568 | { | |
18569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18570 | result = (int)(arg1)->GetCount(); | |
18571 | ||
18572 | wxPyEndAllowThreads(__tstate); | |
18573 | if (PyErr_Occurred()) SWIG_fail; | |
18574 | } | |
c32bde28 | 18575 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18576 | return resultobj; |
18577 | fail: | |
18578 | return NULL; | |
18579 | } | |
18580 | ||
18581 | ||
c32bde28 | 18582 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18583 | PyObject *obj; |
18584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18585 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18586 | Py_INCREF(obj); | |
18587 | return Py_BuildValue((char *)""); | |
18588 | } | |
c32bde28 | 18589 | static int _wrap_TheFontList_set(PyObject *) { |
d55e5bfc RD |
18590 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
18591 | return 1; | |
18592 | } | |
18593 | ||
18594 | ||
18595 | static PyObject *_wrap_TheFontList_get() { | |
18596 | PyObject *pyobj; | |
18597 | ||
18598 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18599 | return pyobj; | |
18600 | } | |
18601 | ||
18602 | ||
c32bde28 | 18603 | static int _wrap_ThePenList_set(PyObject *) { |
d55e5bfc RD |
18604 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
18605 | return 1; | |
18606 | } | |
18607 | ||
18608 | ||
18609 | static PyObject *_wrap_ThePenList_get() { | |
18610 | PyObject *pyobj; | |
18611 | ||
18612 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18613 | return pyobj; | |
18614 | } | |
18615 | ||
18616 | ||
c32bde28 | 18617 | static int _wrap_TheBrushList_set(PyObject *) { |
d55e5bfc RD |
18618 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18619 | return 1; | |
18620 | } | |
18621 | ||
18622 | ||
18623 | static PyObject *_wrap_TheBrushList_get() { | |
18624 | PyObject *pyobj; | |
18625 | ||
18626 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18627 | return pyobj; | |
18628 | } | |
18629 | ||
18630 | ||
c32bde28 | 18631 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d55e5bfc RD |
18632 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18633 | return 1; | |
18634 | } | |
18635 | ||
18636 | ||
18637 | static PyObject *_wrap_TheColourDatabase_get() { | |
18638 | PyObject *pyobj; | |
18639 | ||
18640 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18641 | return pyobj; | |
18642 | } | |
18643 | ||
18644 | ||
c32bde28 | 18645 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18646 | PyObject *resultobj; |
18647 | wxEffects *result; | |
18648 | char *kwnames[] = { | |
18649 | NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18653 | { | |
18654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18655 | result = (wxEffects *)new wxEffects(); | |
18656 | ||
18657 | wxPyEndAllowThreads(__tstate); | |
18658 | if (PyErr_Occurred()) SWIG_fail; | |
18659 | } | |
18660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18661 | return resultobj; | |
18662 | fail: | |
18663 | return NULL; | |
18664 | } | |
18665 | ||
18666 | ||
c32bde28 | 18667 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18668 | PyObject *resultobj; |
18669 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18670 | wxColour result; | |
18671 | PyObject * obj0 = 0 ; | |
18672 | char *kwnames[] = { | |
18673 | (char *) "self", NULL | |
18674 | }; | |
18675 | ||
18676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | { | |
18687 | wxColour * resultptr; | |
18688 | resultptr = new wxColour((wxColour &) result); | |
18689 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18690 | } | |
18691 | return resultobj; | |
18692 | fail: | |
18693 | return NULL; | |
18694 | } | |
18695 | ||
18696 | ||
c32bde28 | 18697 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18698 | PyObject *resultobj; |
18699 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18700 | wxColour result; | |
18701 | PyObject * obj0 = 0 ; | |
18702 | char *kwnames[] = { | |
18703 | (char *) "self", NULL | |
18704 | }; | |
18705 | ||
18706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18709 | { | |
18710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18711 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18712 | ||
18713 | wxPyEndAllowThreads(__tstate); | |
18714 | if (PyErr_Occurred()) SWIG_fail; | |
18715 | } | |
18716 | { | |
18717 | wxColour * resultptr; | |
18718 | resultptr = new wxColour((wxColour &) result); | |
18719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18720 | } | |
18721 | return resultobj; | |
18722 | fail: | |
18723 | return NULL; | |
18724 | } | |
18725 | ||
18726 | ||
c32bde28 | 18727 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18728 | PyObject *resultobj; |
18729 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18730 | wxColour result; | |
18731 | PyObject * obj0 = 0 ; | |
18732 | char *kwnames[] = { | |
18733 | (char *) "self", NULL | |
18734 | }; | |
18735 | ||
18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
18737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18739 | { | |
18740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18741 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
18742 | ||
18743 | wxPyEndAllowThreads(__tstate); | |
18744 | if (PyErr_Occurred()) SWIG_fail; | |
18745 | } | |
18746 | { | |
18747 | wxColour * resultptr; | |
18748 | resultptr = new wxColour((wxColour &) result); | |
18749 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18750 | } | |
18751 | return resultobj; | |
18752 | fail: | |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
c32bde28 | 18757 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18758 | PyObject *resultobj; |
18759 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18760 | wxColour result; | |
18761 | PyObject * obj0 = 0 ; | |
18762 | char *kwnames[] = { | |
18763 | (char *) "self", NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18769 | { | |
18770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18771 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18772 | ||
18773 | wxPyEndAllowThreads(__tstate); | |
18774 | if (PyErr_Occurred()) SWIG_fail; | |
18775 | } | |
18776 | { | |
18777 | wxColour * resultptr; | |
18778 | resultptr = new wxColour((wxColour &) result); | |
18779 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18780 | } | |
18781 | return resultobj; | |
18782 | fail: | |
18783 | return NULL; | |
18784 | } | |
18785 | ||
18786 | ||
c32bde28 | 18787 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18788 | PyObject *resultobj; |
18789 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18790 | wxColour result; | |
18791 | PyObject * obj0 = 0 ; | |
18792 | char *kwnames[] = { | |
18793 | (char *) "self", NULL | |
18794 | }; | |
18795 | ||
18796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18799 | { | |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | { | |
18807 | wxColour * resultptr; | |
18808 | resultptr = new wxColour((wxColour &) result); | |
18809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18810 | } | |
18811 | return resultobj; | |
18812 | fail: | |
18813 | return NULL; | |
18814 | } | |
18815 | ||
18816 | ||
c32bde28 | 18817 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18818 | PyObject *resultobj; |
18819 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18820 | wxColour *arg2 = 0 ; | |
18821 | wxColour temp2 ; | |
18822 | PyObject * obj0 = 0 ; | |
18823 | PyObject * obj1 = 0 ; | |
18824 | char *kwnames[] = { | |
18825 | (char *) "self",(char *) "c", NULL | |
18826 | }; | |
18827 | ||
18828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18831 | { | |
18832 | arg2 = &temp2; | |
18833 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18834 | } | |
18835 | { | |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18838 | ||
18839 | wxPyEndAllowThreads(__tstate); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | } | |
18842 | Py_INCREF(Py_None); resultobj = Py_None; | |
18843 | return resultobj; | |
18844 | fail: | |
18845 | return NULL; | |
18846 | } | |
18847 | ||
18848 | ||
c32bde28 | 18849 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18850 | PyObject *resultobj; |
18851 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18852 | wxColour *arg2 = 0 ; | |
18853 | wxColour temp2 ; | |
18854 | PyObject * obj0 = 0 ; | |
18855 | PyObject * obj1 = 0 ; | |
18856 | char *kwnames[] = { | |
18857 | (char *) "self",(char *) "c", NULL | |
18858 | }; | |
18859 | ||
18860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18863 | { | |
18864 | arg2 = &temp2; | |
18865 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18866 | } | |
18867 | { | |
18868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18869 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18870 | ||
18871 | wxPyEndAllowThreads(__tstate); | |
18872 | if (PyErr_Occurred()) SWIG_fail; | |
18873 | } | |
18874 | Py_INCREF(Py_None); resultobj = Py_None; | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
c32bde28 | 18881 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18882 | PyObject *resultobj; |
18883 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18884 | wxColour *arg2 = 0 ; | |
18885 | wxColour temp2 ; | |
18886 | PyObject * obj0 = 0 ; | |
18887 | PyObject * obj1 = 0 ; | |
18888 | char *kwnames[] = { | |
18889 | (char *) "self",(char *) "c", NULL | |
18890 | }; | |
18891 | ||
18892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18895 | { | |
18896 | arg2 = &temp2; | |
18897 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18898 | } | |
18899 | { | |
18900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18901 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18902 | ||
18903 | wxPyEndAllowThreads(__tstate); | |
18904 | if (PyErr_Occurred()) SWIG_fail; | |
18905 | } | |
18906 | Py_INCREF(Py_None); resultobj = Py_None; | |
18907 | return resultobj; | |
18908 | fail: | |
18909 | return NULL; | |
18910 | } | |
18911 | ||
18912 | ||
c32bde28 | 18913 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18914 | PyObject *resultobj; |
18915 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18916 | wxColour *arg2 = 0 ; | |
18917 | wxColour temp2 ; | |
18918 | PyObject * obj0 = 0 ; | |
18919 | PyObject * obj1 = 0 ; | |
18920 | char *kwnames[] = { | |
18921 | (char *) "self",(char *) "c", NULL | |
18922 | }; | |
18923 | ||
18924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18927 | { | |
18928 | arg2 = &temp2; | |
18929 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18930 | } | |
18931 | { | |
18932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18933 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18934 | ||
18935 | wxPyEndAllowThreads(__tstate); | |
18936 | if (PyErr_Occurred()) SWIG_fail; | |
18937 | } | |
18938 | Py_INCREF(Py_None); resultobj = Py_None; | |
18939 | return resultobj; | |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
c32bde28 | 18945 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18946 | PyObject *resultobj; |
18947 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18948 | wxColour *arg2 = 0 ; | |
18949 | wxColour temp2 ; | |
18950 | PyObject * obj0 = 0 ; | |
18951 | PyObject * obj1 = 0 ; | |
18952 | char *kwnames[] = { | |
18953 | (char *) "self",(char *) "c", NULL | |
18954 | }; | |
18955 | ||
18956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18959 | { | |
18960 | arg2 = &temp2; | |
18961 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18962 | } | |
18963 | { | |
18964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18965 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18966 | ||
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | Py_INCREF(Py_None); resultobj = Py_None; | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
c32bde28 | 18977 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18978 | PyObject *resultobj; |
18979 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18980 | wxColour *arg2 = 0 ; | |
18981 | wxColour *arg3 = 0 ; | |
18982 | wxColour *arg4 = 0 ; | |
18983 | wxColour *arg5 = 0 ; | |
18984 | wxColour *arg6 = 0 ; | |
18985 | wxColour temp2 ; | |
18986 | wxColour temp3 ; | |
18987 | wxColour temp4 ; | |
18988 | wxColour temp5 ; | |
18989 | wxColour temp6 ; | |
18990 | PyObject * obj0 = 0 ; | |
18991 | PyObject * obj1 = 0 ; | |
18992 | PyObject * obj2 = 0 ; | |
18993 | PyObject * obj3 = 0 ; | |
18994 | PyObject * obj4 = 0 ; | |
18995 | PyObject * obj5 = 0 ; | |
18996 | char *kwnames[] = { | |
18997 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18998 | }; | |
18999 | ||
19000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
19001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19003 | { | |
19004 | arg2 = &temp2; | |
19005 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19006 | } | |
19007 | { | |
19008 | arg3 = &temp3; | |
19009 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19010 | } | |
19011 | { | |
19012 | arg4 = &temp4; | |
19013 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
19014 | } | |
19015 | { | |
19016 | arg5 = &temp5; | |
19017 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
19018 | } | |
19019 | { | |
19020 | arg6 = &temp6; | |
19021 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
19022 | } | |
19023 | { | |
19024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19025 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
19026 | ||
19027 | wxPyEndAllowThreads(__tstate); | |
19028 | if (PyErr_Occurred()) SWIG_fail; | |
19029 | } | |
19030 | Py_INCREF(Py_None); resultobj = Py_None; | |
19031 | return resultobj; | |
19032 | fail: | |
19033 | return NULL; | |
19034 | } | |
19035 | ||
19036 | ||
c32bde28 | 19037 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19038 | PyObject *resultobj; |
19039 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19040 | wxDC *arg2 = 0 ; | |
19041 | wxRect *arg3 = 0 ; | |
19042 | int arg4 = (int) 1 ; | |
19043 | wxRect temp3 ; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | PyObject * obj1 = 0 ; | |
19046 | PyObject * obj2 = 0 ; | |
19047 | PyObject * obj3 = 0 ; | |
19048 | char *kwnames[] = { | |
19049 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
19050 | }; | |
19051 | ||
19052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19057 | SWIG_fail; | |
19058 | if (arg2 == NULL) { | |
19059 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19060 | SWIG_fail; | |
19061 | } | |
19062 | { | |
19063 | arg3 = &temp3; | |
19064 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
19065 | } | |
19066 | if (obj3) { | |
c32bde28 | 19067 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19068 | if (PyErr_Occurred()) SWIG_fail; |
19069 | } | |
19070 | { | |
19071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19072 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
19073 | ||
19074 | wxPyEndAllowThreads(__tstate); | |
19075 | if (PyErr_Occurred()) SWIG_fail; | |
19076 | } | |
19077 | Py_INCREF(Py_None); resultobj = Py_None; | |
19078 | return resultobj; | |
19079 | fail: | |
19080 | return NULL; | |
19081 | } | |
19082 | ||
19083 | ||
c32bde28 | 19084 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19085 | PyObject *resultobj; |
19086 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19087 | wxRect *arg2 = 0 ; | |
19088 | wxDC *arg3 = 0 ; | |
19089 | wxBitmap *arg4 = 0 ; | |
19090 | bool result; | |
19091 | wxRect temp2 ; | |
19092 | PyObject * obj0 = 0 ; | |
19093 | PyObject * obj1 = 0 ; | |
19094 | PyObject * obj2 = 0 ; | |
19095 | PyObject * obj3 = 0 ; | |
19096 | char *kwnames[] = { | |
19097 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
19098 | }; | |
19099 | ||
19100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19103 | { | |
19104 | arg2 = &temp2; | |
19105 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19106 | } | |
19107 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
19108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19109 | SWIG_fail; | |
19110 | if (arg3 == NULL) { | |
19111 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19112 | SWIG_fail; | |
19113 | } | |
19114 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
19115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19116 | SWIG_fail; | |
19117 | if (arg4 == NULL) { | |
19118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19119 | SWIG_fail; | |
19120 | } | |
19121 | { | |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
19124 | ||
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | { | |
19129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19130 | } | |
19131 | return resultobj; | |
19132 | fail: | |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
c32bde28 | 19137 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19138 | PyObject *obj; |
19139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19140 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
19141 | Py_INCREF(obj); | |
19142 | return Py_BuildValue((char *)""); | |
19143 | } | |
19144 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
19145 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
19146 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19147 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19148 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19149 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19150 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
19151 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19152 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19153 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19154 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19155 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19156 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19157 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19158 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19159 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19160 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19161 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19162 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19163 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19164 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19165 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19166 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19167 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
19168 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19169 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19170 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19171 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19172 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19173 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
19174 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19175 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19176 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19177 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19178 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19179 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19180 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19181 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19182 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19183 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19184 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19185 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19186 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19187 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19188 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19189 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19190 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19191 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19192 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19193 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19194 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19195 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
19196 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19197 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19198 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19199 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19200 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19201 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19202 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19203 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19204 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19205 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
19206 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19207 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19208 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19209 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19210 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19211 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19212 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19213 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19214 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19215 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19216 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19217 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19218 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19219 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19220 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19221 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19222 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19223 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19224 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19225 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19226 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19227 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19228 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19229 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19230 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19231 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19232 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19233 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19234 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19235 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19236 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19237 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19238 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
19239 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19240 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
19241 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19242 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19243 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19244 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19245 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19246 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19247 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19248 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19249 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19250 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19251 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19252 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19253 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19254 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19255 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19256 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19257 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19258 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19259 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
19260 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19261 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19262 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19263 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19264 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19265 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19266 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19267 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
19268 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19269 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19270 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19271 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19272 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19273 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19274 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19275 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
19276 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19277 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19278 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19279 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19280 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19281 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19282 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19283 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19284 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19285 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19286 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19287 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19288 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19289 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19290 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
19291 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19292 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19293 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19294 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19295 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19296 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19297 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19298 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19299 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19300 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19301 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19302 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19303 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19304 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19305 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19306 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19307 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19308 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19309 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19310 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19311 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19312 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19313 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19314 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19315 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19316 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19317 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19318 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19319 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
19320 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19321 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19322 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19323 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19324 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19325 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19326 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19327 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19328 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19329 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19330 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19331 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19332 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19333 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
19334 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19335 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19336 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19337 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19338 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19339 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19340 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19341 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19342 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19343 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19344 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19345 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19346 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19347 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19348 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19349 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19350 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19351 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19352 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19353 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19354 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19355 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19356 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19357 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
19358 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19359 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19360 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19361 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19362 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19363 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19364 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19365 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19366 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
19367 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19368 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19369 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19370 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19371 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19372 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19373 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19374 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19375 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19376 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19377 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19378 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19379 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19380 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19381 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19382 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19383 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19384 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19385 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19386 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
19387 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19388 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19389 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19390 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19391 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19392 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19393 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19394 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19395 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19396 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19397 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19398 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19399 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19400 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19401 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19402 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19403 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19404 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19405 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19406 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19407 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19408 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19409 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19410 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19411 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19412 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19413 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19414 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19415 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19416 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19417 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19418 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19419 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19420 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19421 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19422 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19423 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
19424 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19425 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19426 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19427 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19428 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19429 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19430 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19431 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
19432 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19433 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19434 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19435 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19436 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19437 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19438 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
19439 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19440 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19441 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19442 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19443 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19444 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19445 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19446 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19447 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19448 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19449 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19450 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19451 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19452 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19453 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19454 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19455 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19456 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19457 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19458 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19459 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19460 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
19461 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19462 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
19463 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19464 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19465 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19466 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19467 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19468 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19469 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19470 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
19471 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19472 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19473 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19474 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19475 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19476 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19477 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19478 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19479 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19480 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19481 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19482 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19483 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19484 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19485 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19486 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19487 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19488 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19489 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19490 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19491 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19492 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19493 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19494 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19495 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19496 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19497 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19498 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19499 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19500 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19501 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19502 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19503 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19504 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19505 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19506 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19507 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19508 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19509 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19510 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19511 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19512 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19513 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19514 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19515 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19516 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19517 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19518 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19519 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19520 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19521 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19522 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19523 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19524 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19525 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19526 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19527 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19528 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19529 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19530 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19531 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19532 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19533 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19534 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19535 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19536 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19537 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19538 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19539 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19540 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19541 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19542 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19543 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19544 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19545 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19546 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19547 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19548 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19549 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19550 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19551 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19552 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19553 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19554 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19555 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19556 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19557 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19558 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19559 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19560 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19561 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19562 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19563 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19564 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19565 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19566 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19567 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19568 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19569 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19570 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19571 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19572 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19573 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19574 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19575 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19576 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19577 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19578 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19579 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19580 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19581 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19582 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19583 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19584 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19585 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19586 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19587 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19588 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19589 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19590 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19591 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19592 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19593 | { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19594 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19595 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19596 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19597 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19598 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19599 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19600 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
19601 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19602 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19603 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19604 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
19605 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
19606 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19607 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19608 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
19609 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19610 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
19611 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19612 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19613 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19614 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19615 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
19616 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19617 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
19618 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19619 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
19620 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19621 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
19622 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19623 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
19624 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19625 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19626 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19627 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19628 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19629 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
19630 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19631 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19632 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19633 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19634 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19635 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19636 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19637 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19638 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
19639 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19640 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19641 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
19642 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19643 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
19644 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19645 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19646 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19647 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19648 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19649 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19650 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19651 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19652 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19653 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19654 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19655 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
19656 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19657 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19658 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19659 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19660 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
19661 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19662 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19663 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19664 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19665 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19666 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19667 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19668 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19669 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19670 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19671 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19672 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19673 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19674 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19675 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19676 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19677 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19678 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19679 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19680 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19681 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19682 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19683 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19684 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19685 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19686 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19687 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19688 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19689 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19690 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19691 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19692 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19693 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
19694 | }; |
19695 | ||
19696 | ||
19697 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19698 | ||
19699 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19700 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19701 | } | |
19702 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19703 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19704 | } | |
19705 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19706 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19707 | } | |
19708 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19709 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19710 | } | |
19711 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19712 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19713 | } | |
19714 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
19715 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19716 | } | |
19717 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19718 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19719 | } | |
19720 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19721 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19722 | } | |
19723 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19724 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19725 | } | |
19726 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19727 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19728 | } | |
19729 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19730 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19731 | } | |
19732 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19733 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19734 | } | |
19735 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19736 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19737 | } | |
19738 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19739 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19740 | } | |
19741 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19742 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19743 | } | |
19744 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19745 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19746 | } | |
19747 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19748 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19749 | } | |
19750 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19751 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19752 | } | |
19753 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19755 | } | |
19756 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19757 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19758 | } | |
19759 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19760 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19761 | } | |
19762 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19763 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19764 | } | |
19765 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19766 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19767 | } | |
19768 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19769 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19770 | } | |
19771 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19772 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19773 | } | |
19774 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19775 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19776 | } | |
19777 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19778 | return (void *)((wxObject *) ((wxDC *) x)); | |
19779 | } | |
19780 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19781 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19782 | } | |
19783 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19784 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19785 | } | |
19786 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19787 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19788 | } | |
19789 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19790 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19791 | } | |
19792 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19793 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19794 | } | |
19795 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19796 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19797 | } | |
19798 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19799 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19800 | } | |
19801 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19802 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19803 | } | |
19804 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19805 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19806 | } | |
19807 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19808 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19809 | } | |
19810 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19811 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19812 | } | |
19813 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19814 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19815 | } | |
19816 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19817 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19818 | } | |
19819 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19820 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19821 | } | |
19822 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19823 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19824 | } | |
19825 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19826 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19827 | } | |
19828 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19829 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19830 | } | |
19831 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19832 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19833 | } | |
19834 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19835 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19836 | } | |
19837 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19838 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19839 | } | |
19840 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19842 | } | |
19843 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19844 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19845 | } | |
19846 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19847 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19848 | } | |
19849 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19850 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19851 | } | |
19852 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19853 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19854 | } | |
19855 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19856 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19857 | } | |
19858 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19859 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19860 | } | |
19861 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19862 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19863 | } | |
19864 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19865 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19866 | } | |
19867 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19868 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19869 | } | |
19870 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19871 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19872 | } | |
19873 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19874 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19875 | } | |
19876 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19877 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19878 | } | |
19879 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19880 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19881 | } | |
19882 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19883 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19884 | } | |
19885 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19886 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19887 | } | |
19888 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19889 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19890 | } | |
19891 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19892 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19893 | } | |
19894 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19895 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19896 | } | |
19897 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19898 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19899 | } | |
19900 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19901 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19902 | } | |
19903 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19904 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19905 | } | |
19906 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19907 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19908 | } | |
19909 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19910 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19911 | } | |
19912 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19913 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19914 | } | |
19915 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19916 | return (void *)((wxObject *) ((wxImage *) x)); | |
19917 | } | |
19918 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19919 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19920 | } | |
19921 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19922 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19923 | } | |
19924 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19925 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19926 | } | |
19927 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19928 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19929 | } | |
19930 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19931 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19932 | } | |
19933 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19934 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19935 | } | |
19936 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19937 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19938 | } | |
19939 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19940 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19941 | } | |
19942 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19943 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19944 | } | |
19945 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19946 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19947 | } | |
19948 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19949 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19950 | } | |
19951 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19952 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19953 | } | |
19954 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19955 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19956 | } | |
19957 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19958 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19959 | } | |
19960 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19961 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19962 | } | |
d55e5bfc RD |
19963 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19964 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19965 | } | |
19966 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19967 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19968 | } | |
19969 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19970 | return (void *)((wxObject *) ((wxMask *) x)); | |
19971 | } | |
19972 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19973 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19974 | } | |
19975 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19976 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19977 | } | |
19978 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19979 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19980 | } | |
19981 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19982 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19983 | } | |
19984 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19985 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19986 | } | |
19987 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19988 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19989 | } | |
19990 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19991 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19992 | } | |
19993 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19994 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19995 | } | |
19996 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19997 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19998 | } | |
19999 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
20000 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
20001 | } | |
20002 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
20003 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
20004 | } | |
20005 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
20006 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
20007 | } | |
20008 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
20009 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
20010 | } | |
20011 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
20012 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
20013 | } | |
20014 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
20015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
20016 | } | |
20017 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
20018 | return (void *)((wxObject *) ((wxColour *) x)); | |
20019 | } | |
20020 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
20021 | return (void *)((wxObject *) ((wxFontList *) x)); | |
20022 | } | |
20023 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
20024 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
20025 | } | |
20026 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
20027 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
20028 | } | |
20029 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
20030 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20031 | } | |
20032 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
20033 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
20034 | } | |
20035 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
20036 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
20037 | } | |
20038 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
20039 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
20040 | } | |
20041 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
20042 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
20043 | } | |
20044 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
20045 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
20046 | } | |
20047 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
20048 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
20049 | } | |
20050 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
20051 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
20052 | } | |
20053 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
20054 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
20055 | } | |
20056 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
20057 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
20058 | } | |
20059 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
20060 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
20061 | } | |
20062 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
20063 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
20064 | } | |
d55e5bfc RD |
20065 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
20066 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
20067 | } | |
20068 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
20069 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
20070 | } | |
20071 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
20072 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
20073 | } | |
20074 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
20075 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
20076 | } | |
20077 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
20078 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
20079 | } | |
20080 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
20081 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
20082 | } | |
20083 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
20084 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
20085 | } | |
20086 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
20087 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
20088 | } | |
d55e5bfc RD |
20089 | 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}}; |
20090 | 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}}; | |
20091 | 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}}; | |
20092 | 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}}; | |
20093 | 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}}; | |
20094 | 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}}; | |
20095 | 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}}; | |
20096 | 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}}; | |
20097 | 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}}; | |
20098 | 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}}; | |
20099 | 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}}; | |
20100 | 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}}; | |
20101 | 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}}; | |
20102 | 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}}; | |
20103 | 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}}; | |
20104 | 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}}; | |
20105 | 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}}; | |
20106 | 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}}; | |
20107 | 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}}; | |
20108 | 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}}; | |
20109 | 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}}; | |
20110 | 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 | 20111 | 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 |
20112 | 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}}; |
20113 | 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}}; | |
20114 | 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}}; | |
20115 | 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}}; | |
20116 | 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}}; | |
20117 | 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}}; | |
20118 | 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}}; | |
20119 | 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}}; | |
20120 | 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}}; | |
20121 | 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}}; | |
20122 | 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}}; | |
20123 | 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}}; | |
20124 | 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 | 20125 | 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 |
20126 | 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}}; |
20127 | 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}}; | |
20128 | 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 | 20129 | 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 | 20130 | 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 |
20131 | 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}}; |
20132 | 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}}; | |
20133 | 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}}; | |
20134 | 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 | 20135 | 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 |
20136 | 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}}; |
20137 | 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}}; | |
20138 | 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 |
20139 | 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}}; |
20140 | 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}}; | |
20141 | 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}}; | |
20142 | 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}}; | |
20143 | 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}}; | |
20144 | ||
20145 | static swig_type_info *swig_types_initial[] = { | |
20146 | _swigt__p_wxPostScriptDC, | |
20147 | _swigt__p_wxBrush, | |
20148 | _swigt__p_wxColour, | |
20149 | _swigt__p_wxDC, | |
20150 | _swigt__p_wxMirrorDC, | |
20151 | _swigt__p_byte, | |
20152 | _swigt__p_wxPyFontEnumerator, | |
20153 | _swigt__p_char, | |
20154 | _swigt__p_wxIconLocation, | |
20155 | _swigt__p_wxImage, | |
20156 | _swigt__p_wxMetaFileDC, | |
20157 | _swigt__p_wxMask, | |
20158 | _swigt__p_wxSize, | |
20159 | _swigt__p_wxFont, | |
20160 | _swigt__p_wxWindow, | |
20161 | _swigt__p_double, | |
20162 | _swigt__p_wxMemoryDC, | |
20163 | _swigt__p_wxFontMapper, | |
20164 | _swigt__p_wxEffects, | |
20165 | _swigt__p_wxNativeEncodingInfo, | |
20166 | _swigt__p_wxPalette, | |
20167 | _swigt__p_wxBitmap, | |
20168 | _swigt__p_wxObject, | |
20169 | _swigt__p_wxRegionIterator, | |
20170 | _swigt__p_wxRect, | |
20171 | _swigt__p_wxString, | |
20172 | _swigt__p_wxPrinterDC, | |
20173 | _swigt__p_wxIconBundle, | |
20174 | _swigt__p_wxPoint, | |
20175 | _swigt__p_wxDash, | |
20176 | _swigt__p_wxScreenDC, | |
20177 | _swigt__p_wxCursor, | |
20178 | _swigt__p_wxClientDC, | |
20179 | _swigt__p_wxBufferedDC, | |
20180 | _swigt__p_wxImageList, | |
20181 | _swigt__p_unsigned_char, | |
20182 | _swigt__p_wxGDIObject, | |
20183 | _swigt__p_wxIcon, | |
20184 | _swigt__p_wxLocale, | |
20185 | _swigt__p_wxRegion, | |
d55e5bfc | 20186 | _swigt__p_wxLanguageInfo, |
c24da6d6 | 20187 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
20188 | _swigt__p_wxWindowDC, |
20189 | _swigt__p_wxPrintData, | |
20190 | _swigt__p_wxBrushList, | |
20191 | _swigt__p_wxFontList, | |
20192 | _swigt__p_wxPen, | |
20193 | _swigt__p_wxBufferedPaintDC, | |
20194 | _swigt__p_wxPaintDC, | |
20195 | _swigt__p_wxPenList, | |
d55e5bfc RD |
20196 | _swigt__p_int, |
20197 | _swigt__p_wxMetaFile, | |
20198 | _swigt__p_wxNativeFontInfo, | |
20199 | _swigt__p_wxEncodingConverter, | |
20200 | _swigt__p_wxColourDatabase, | |
20201 | 0 | |
20202 | }; | |
20203 | ||
20204 | ||
20205 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
20206 | ||
20207 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 20208 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
20209 | |
20210 | #ifdef __cplusplus | |
20211 | } | |
20212 | #endif | |
20213 | ||
20214 | #ifdef __cplusplus | |
20215 | extern "C" | |
20216 | #endif | |
20217 | SWIGEXPORT(void) SWIG_init(void) { | |
20218 | static PyObject *SWIG_globals = 0; | |
20219 | static int typeinit = 0; | |
20220 | PyObject *m, *d; | |
20221 | int i; | |
20222 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
20223 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
20224 | d = PyModule_GetDict(m); | |
20225 | ||
20226 | if (!typeinit) { | |
20227 | for (i = 0; swig_types_initial[i]; i++) { | |
20228 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
20229 | } | |
20230 | typeinit = 1; | |
20231 | } | |
20232 | SWIG_InstallConstants(d,swig_const_table); | |
20233 | ||
c32bde28 RD |
20234 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); |
20235 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
20236 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
20237 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
20238 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
20239 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
20240 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
20241 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
20242 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
20243 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
20244 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
20245 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
20246 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
20247 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
20248 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
20249 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
20250 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
20251 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
20252 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
20253 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
20254 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
20255 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
20256 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
20257 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
20258 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
20259 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
20260 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
20261 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
20262 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
20263 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
20264 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
20265 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
20266 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
20267 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
20268 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
20269 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
20270 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
20271 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
20272 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
20273 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
20274 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
20275 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
20276 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
20277 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
20278 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
20279 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
20280 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
20281 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
20282 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
20283 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
20284 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
20285 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
20286 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
20287 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
20288 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
20289 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
20290 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
20291 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
20292 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
20293 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
20294 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
20295 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
20296 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
20297 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
20298 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
20299 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
20300 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
20301 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
20302 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
20303 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
20304 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
20305 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
20306 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
20307 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
20308 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
20309 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
20310 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
20311 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
20312 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
20313 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
20314 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
20315 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
20316 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
20317 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
20318 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
20319 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
20320 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
20321 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
20322 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
20323 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
20324 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
20325 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
20326 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
20327 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
20328 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
20329 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
20330 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
20331 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
20332 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
20333 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
20334 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
20335 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
20336 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
20337 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
20338 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
20339 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
20340 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
20341 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
20342 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
20343 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
20344 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
20345 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
20346 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
20347 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
20348 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
20349 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
20350 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
20351 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
20352 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
20353 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
20354 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
20355 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
20356 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
20357 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
20358 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
20359 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
20360 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
d55e5bfc RD |
20361 | |
20362 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
20363 | ||
c32bde28 RD |
20364 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); |
20365 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
20366 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
20367 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
20368 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
20369 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
20370 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
20371 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
20372 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
20373 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
20374 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
20375 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
20376 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
20377 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
20378 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
20379 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
20380 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
20381 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
20382 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
20383 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
20384 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
20385 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
20386 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
20387 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
20388 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
20389 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
20390 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
20391 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
20392 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
20393 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
20394 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
20395 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
20396 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
20397 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
20398 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
20399 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
20400 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
20401 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
20402 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
20403 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
20404 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
20405 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
20406 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
20407 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
20408 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20409 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20410 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20411 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
20412 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20413 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20414 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
20415 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
20416 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
20417 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
20418 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
20419 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20420 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
20421 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
20422 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
20423 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20424 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20425 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20426 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20427 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20428 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20429 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20430 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20431 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20432 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20433 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20434 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20435 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20436 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
20437 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
20438 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
20439 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
20440 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
20441 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
20442 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
20443 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20444 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20445 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20446 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
20447 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
20448 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
20449 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
20450 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
20451 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
20452 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20453 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20454 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20455 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20456 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
20457 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
20458 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
20459 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
20460 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
20461 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
20462 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
20463 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
20464 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
20465 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
20466 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
20467 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
20468 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
20469 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
20470 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
20471 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
20472 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
20473 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20474 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
20475 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
20476 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
20477 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
20478 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20479 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
20480 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
20481 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
20482 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
20483 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
20484 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
20485 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
20486 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
20487 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
20488 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
20489 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
20490 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
20491 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
20492 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
20493 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
20494 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
20495 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
20496 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20497 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20498 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
20499 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
20500 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
20501 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
20502 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
20503 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
20504 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
20505 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
20506 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
20507 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20508 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20509 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
20510 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
20511 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
20512 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
20513 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
20514 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
20515 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20516 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
20517 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
20518 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20519 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
20520 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
20521 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20522 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
20523 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
20524 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
20525 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20526 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
20527 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20528 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20529 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20530 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
20531 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
20532 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
20533 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
20534 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
20535 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
20536 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
20537 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
20538 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
20539 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
20540 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20541 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20542 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
20543 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20544 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20545 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20546 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20547 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20548 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20549 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20550 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20551 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
20552 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20553 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20554 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20555 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
20556 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20557 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20558 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
20559 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20560 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
20561 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
20562 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
20563 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20564 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
20565 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
20566 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
20567 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
20568 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
20569 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
20570 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
20571 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
20572 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
20573 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
20574 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
20575 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
20576 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
20577 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
20578 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
20579 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
20580 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
20581 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20582 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
20583 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20584 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
20585 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
20586 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
20587 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
20588 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
20589 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
20590 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
20591 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
20592 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
20593 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
20594 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
20595 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
20596 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
20597 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
20598 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
20599 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
20600 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
20601 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
20602 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
20603 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
20604 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
20605 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
20606 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
20607 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
20608 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
20609 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
20610 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
20611 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20612 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
20613 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20614 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
20615 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
20616 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
d55e5bfc RD |
20617 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
20618 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20619 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20620 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20621 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20622 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20623 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20624 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20625 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20626 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20627 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20628 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20629 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20630 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20631 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20632 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20633 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20634 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20635 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20636 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20637 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20638 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20639 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20640 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20641 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20642 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20643 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20644 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20645 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20646 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20647 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20648 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20649 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20650 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20651 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20652 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20653 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20654 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20655 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20656 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20657 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20658 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20659 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20660 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20661 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20662 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20663 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20664 | ||
20665 | // Work around a chicken/egg problem in drawlist.cpp | |
20666 | wxPyDrawList_SetAPIPtr(); | |
20667 | ||
20668 | } | |
20669 |